/* ═══ Глобальные оформления — полный редизайн UI ═══ */

/* ── Общая система ── */
body[data-global-layout]{
  --lx-chrome-h:4.6rem;
  --lx-podium-gold:#fbbf24;
  --lx-podium-silver:#cbd5e1;
  --lx-podium-bronze:#d97706;
}
body[data-global-layout] .page{padding-left:12px;padding-right:12px}
body[data-global-layout] .page > .hero:not(.mafia-lx-keep){display:none}
body[data-global-layout] #pgPlay > .hero{display:none}

/* Шапка бренда */
.mafia-lx-header{
  padding:calc(10px + env(safe-area-inset-top)) 14px 10px;
  gap:12px;
  border-bottom-width:2px;
}
.mafia-lx-header-mark{
  width:42px;height:42px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  font-size:1.35rem;flex-shrink:0;
}
.mafia-lx-header-main{flex:1;min-width:0}
.mafia-lx-header-main h1{
  font-size:1.05rem;font-weight:900;letter-spacing:.06em;
  line-height:1.15;margin:0;
}
.mafia-lx-header-tag{
  font-size:.62rem;color:var(--hint);margin-top:2px;
  letter-spacing:.08em;text-transform:uppercase;
}
.mafia-lx-header-badge{
  font-size:.58rem;letter-spacing:.1em;
  padding:4px 10px;border-radius:6px;
}

/* Хром страниц */
.mafia-lx-chrome{
  position:relative;margin:-4px -4px 14px;padding:14px 14px 12px;
  border-radius:20px;overflow:hidden;
}
.mafia-lx-chrome-glow{
  position:absolute;inset:0;pointer-events:none;opacity:.85;
}
.mafia-lx-chrome-inner{
  position:relative;display:flex;align-items:center;gap:12px;
}
.mafia-lx-chrome-ico{
  font-size:2rem;width:52px;height:52px;border-radius:16px;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.mafia-lx-chrome-title{
  font-weight:900;font-size:1.05rem;letter-spacing:.05em;line-height:1.2;
}
.mafia-lx-chrome-sub{
  font-size:.72rem;color:var(--hint);margin-top:3px;line-height:1.35;
}

/* Пьедестал рейтинга */
.mafia-lb-podium,.mafia-home-podium{
  display:grid;grid-template-columns:1fr 1.15fr 1fr;
  gap:8px;align-items:end;margin-bottom:16px;padding:8px 4px 4px;
}
.mafia-podium-slot{display:flex;flex-direction:column;align-items:center;min-width:0}
.mafia-podium-slot .mafia-podium-card{
  width:100%;margin:0;flex-direction:column;text-align:center;
  padding:12px 8px 10px;border-radius:18px 18px 14px 14px;
}
.mafia-podium-slot .pr-rank{
  width:36px;height:36px;font-size:1rem;margin-bottom:6px;
}
.mafia-podium-slot .pr-av,.mafia-podium-slot .pr-av-ph{
  width:48px;height:48px;margin:0 auto 6px;border-radius:50%;
}
.mafia-podium-slot .pr-info{width:100%}
.mafia-podium-slot .pr-name{font-size:.78rem;justify-content:center}
.mafia-podium-slot .pr-sub{font-size:.62rem}
.mafia-podium--gold .mafia-podium-card{transform:translateY(-8px) scale(1.02)}
.mafia-podium--silver .mafia-podium-card{transform:translateY(-2px)}
.mafia-home-podium .mafia-podium-slot .pr-av,
.mafia-home-podium .mafia-podium-slot .pr-av-ph{width:40px;height:40px}
.mafia-home-podium{margin-bottom:10px}

/* Игры — хаб */
.mafia-play-hub{
  margin-bottom:14px;padding:10px;border-radius:18px;
}
.mafia-play-hub #playSubTabs{
  display:grid!important;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));
  gap:8px;margin:0!important;
}
.mafia-play-hub #playSubTabs .btn{
  min-height:44px;border-radius:14px;font-weight:800;font-size:.72rem;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
}
.mafia-lx-wallet-featured{
  margin-bottom:14px!important;border-radius:22px!important;
  padding:16px!important;
}
.mafia-lx-wallet-featured .casino-wallet-amount{font-size:2rem!important}

/* Роли — портретная галерея */
.mafia-lx-roles .search-box{border-radius:999px;margin-bottom:10px}
.mafia-lx-roles .pills{gap:6px;margin-bottom:12px}
.mafia-lx-roles .pill{border-radius:999px;padding:6px 12px;font-weight:700}
.mafia-lx-role-list .cat-header{
  font-size:.82rem;font-weight:800;letter-spacing:.06em;
  text-transform:uppercase;margin:14px 0 8px;
}
.mafia-lx-role-list .role-grid{gap:10px}
.mafia-lx-role-list .role-card{
  border-radius:16px;box-shadow:0 8px 24px rgba(0,0,0,.22);
}
.mafia-lx-role-list .role-card-img{aspect-ratio:3/4}
.mafia-lx-role-list .role-card-name{font-size:.68rem;font-weight:700}

/* Профиль — кино-макет */
.mafia-lx-prof-page .prof-shell.mafia-lx-prof{
  padding:0 0 8px;border-radius:22px;overflow:hidden;
}
.mafia-lx-prof .prof-h{
  display:flex;flex-direction:column;align-items:center;
  padding:20px 16px 14px;text-align:center;
}
.mafia-lx-prof .prof-av{
  width:96px;height:96px;border-radius:50%;margin-bottom:10px;
  box-shadow:0 0 0 4px rgba(255,255,255,.08),0 12px 40px rgba(0,0,0,.35);
}
.mafia-lx-prof .prof-name{font-size:1.35rem;font-weight:900}
.mafia-lx-prof .prof-stats{
  display:grid;grid-template-columns:repeat(4,1fr);gap:8px;
  margin:12px 0;padding:0 4px;
}
.mafia-lx-prof .prof-stat{
  border-radius:14px;padding:10px 6px;text-align:center;
  background:var(--card);border:1px solid var(--border);
}
.mafia-lx-prof .prof-lb-rank-wrap{
  margin:8px 12px 12px;border-radius:16px;padding:12px;text-align:center;
}

/* Кланы */
.mafia-lx-clans-page .mafia-lx-clans .clans-hero{
  display:none;
}
.mafia-lx-clans .clans-lb-row{
  border-radius:14px;margin-bottom:8px;padding:12px;
  background:var(--card);border:1px solid var(--border);
}
.mafia-lx-clans .clans-card,.mafia-lx-clans .clans-raid-card{
  border-radius:18px!important;
}

/* Рейтинг — вкладки */
.mafia-lx-lb .ptabs{
  border-radius:16px;padding:6px;gap:6px;
  background:rgba(0,0,0,.15);margin-bottom:12px;
}
.mafia-lx-lb .ptab{
  border-radius:12px;padding:8px 12px;font-weight:800;font-size:.72rem;
}
.mafia-lx-lb .player-row{
  border-radius:16px;padding:12px 14px;margin-bottom:8px;
}

/* Главная — порядок блоков */
body[data-global-layout] #pgHome.mafia-lx-page.active{display:flex;flex-direction:column}
body[data-global-layout="g_casino_prestige"] #pgHome .stat-grid{order:-3}
body[data-global-layout="g_casino_prestige"] #pgHome #homeTop{order:-2}
body[data-global-layout="g_neon_realm"] #pgHome #homeTop{order:-4}
body[data-global-layout="g_noir_lux"] #pgHome .mafia-lx-chrome{order:-5}
body[data-global-layout="g_executive"] #pgHome #homeAnn{order:10;opacity:.85}
.mafia-lx-home .stat-grid{
  border-radius:18px;padding:10px;gap:10px;margin-bottom:16px;
  background:rgba(0,0,0,.12);border:1px solid var(--border);
}
.mafia-lx-home .stat-box{
  border-radius:14px;padding:12px 8px;
  background:var(--card);border:1px solid var(--border);
}
.mafia-lx-home .stat-box .n{font-size:1.35rem;font-weight:900}
.mafia-lx-home .stitle{margin-top:6px}

/* Навигация — всегда снизу при глобальном оформлении */
body[data-global-layout] .app-shell-top{display:none!important}
body[data-global-layout]{padding-bottom:5.25rem!important}
body[data-global-layout] .bottom-nav{
  display:flex!important;
  position:fixed!important;
  bottom:0!important;left:0!important;right:0!important;
  margin:0!important;border-radius:0!important;
  padding:6px 2px calc(6px + env(safe-area-inset-bottom))!important;
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  box-shadow:0 -6px 28px rgba(0,0,0,.35),0 0 0 1px var(--border)!important;
  z-index:100;
}
body[data-global-layout] .nav-item{
  flex:1;min-width:0;border-radius:12px;padding:6px 2px 5px;
  transition:background .15s,box-shadow .15s;
}
body[data-global-layout] .nav-item.active{
  background:rgba(255,255,255,.06);
  box-shadow:inset 0 0 0 1px var(--border);
}
body[data-global-layout] .nav-item span:not(.ni){font-size:.56rem;font-weight:700;letter-spacing:.02em}
body[data-global-layout] .nav-item .ni{font-size:1.3rem;margin-bottom:1px}

/* ═══ 01 Noir Luxury ═══ */
body[data-global-layout="g_noir_lux"]{
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%,rgba(212,164,24,.12),transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 80%,rgba(212,164,24,.06),transparent 50%),
    linear-gradient(180deg,#0c0a08 0%,#14100c 50%,#080604 100%);
}
body[data-global-layout="g_noir_lux"] .mafia-lx-header{
  background:linear-gradient(180deg,rgba(212,164,24,.08),transparent);
  border-bottom-color:rgba(212,164,24,.35);
}
body[data-global-layout="g_noir_lux"] .mafia-lx-header-mark{
  background:linear-gradient(135deg,#3d3010,#1a1408);
  box-shadow:0 0 20px rgba(212,164,24,.25),inset 0 1px 0 rgba(255,220,150,.15);
}
body[data-global-layout="g_noir_lux"] .mafia-lx-header-main h1{
  background:linear-gradient(90deg,#f5e6b8,#d4a418,#f5e6b8);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
body[data-global-layout="g_noir_lux"] .mafia-lx-chrome{
  background:linear-gradient(135deg,rgba(212,164,24,.12),rgba(0,0,0,.4));
  border:1px solid rgba(212,164,24,.28);
  box-shadow:0 12px 40px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,220,150,.08);
}
body[data-global-layout="g_noir_lux"] .mafia-lx-chrome-ico{
  background:rgba(212,164,24,.15);border:1px solid rgba(212,164,24,.35);
}
body[data-global-layout="g_noir_lux"] .mafia-lx-chrome-title{
  color:#f5e6b8;text-transform:uppercase;letter-spacing:.1em;
}
body[data-global-layout="g_noir_lux"] .mafia-play-hub{
  background:rgba(212,164,24,.06);border:1px solid rgba(212,164,24,.2);
}
body[data-global-layout="g_noir_lux"] .mafia-lx-wallet-featured{
  background:linear-gradient(145deg,rgba(212,164,24,.14),rgba(0,0,0,.35))!important;
  border:1px solid rgba(212,164,24,.35)!important;
}
body[data-global-layout="g_noir_lux"] .mafia-podium--gold .mafia-podium-card{
  border-color:rgba(251,191,36,.5)!important;
  box-shadow:0 0 28px rgba(212,164,24,.25)!important;
}
body[data-global-layout="g_noir_lux"] .stitle{
  font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  background:linear-gradient(90deg,#f5e6b8,#d4a418,#f5e6b8);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
body[data-global-layout="g_noir_lux"] .card{
  border-radius:18px;border-color:rgba(212,164,24,.22);
  box-shadow:0 8px 28px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,220,150,.06);
}
body[data-global-layout="g_noir_lux"] .btn-primary{
  background:linear-gradient(135deg,#d4a418,#b8860b);border:none;
  box-shadow:0 4px 16px rgba(212,164,24,.35);
}

/* ═══ 02 Casino Prestige ═══ */
body[data-global-layout="g_casino_prestige"]{
  background-image:
    radial-gradient(circle at 15% 20%,rgba(16,185,129,.15),transparent 40%),
    radial-gradient(circle at 85% 15%,rgba(234,179,8,.12),transparent 35%),
    repeating-linear-gradient(45deg,rgba(255,255,255,.015) 0 2px,transparent 2px 8px),
    linear-gradient(168deg,#061410 0%,#0a2018 100%);
}
body[data-global-layout="g_casino_prestige"] .mafia-lx-header{
  background:linear-gradient(180deg,rgba(16,185,129,.1),transparent);
  border-bottom-color:rgba(234,179,8,.35);
}
body[data-global-layout="g_casino_prestige"] .mafia-lx-header-mark{
  background:linear-gradient(180deg,#10b981,#047857);
  border-radius:50%;font-size:1.5rem;
  box-shadow:0 0 24px rgba(16,185,129,.4);
}
body[data-global-layout="g_casino_prestige"] .mafia-lx-header-main h1{
  font-size:1.2rem;color:#fef08a;
}
body[data-global-layout="g_casino_prestige"] .mafia-lx-chrome{
  background:linear-gradient(165deg,rgba(16,185,129,.15),rgba(0,0,0,.45));
  border:2px solid rgba(234,179,8,.3);border-radius:24px;
}
body[data-global-layout="g_casino_prestige"] .mafia-lx-chrome-title{color:#fef08a}
body[data-global-layout="g_casino_prestige"] .mafia-play-hub #playSubTabs .btn{border-radius:999px}
body[data-global-layout="g_casino_prestige"] .mafia-lx-role-list .role-grid{grid-template-columns:repeat(2,1fr)}
body[data-global-layout="g_casino_prestige"] .btn{border-radius:999px}
body[data-global-layout="g_casino_prestige"] .btn-primary{
  background:linear-gradient(180deg,#10b981,#047857);
  box-shadow:0 0 20px rgba(16,185,129,.25);
}
body[data-global-layout="g_casino_prestige"] .card{
  border-radius:20px;border:1px solid rgba(234,179,8,.25);
  background:linear-gradient(165deg,var(--card),rgba(0,0,0,.15));
}

/* ═══ 03 Royal Velvet ═══ */
body[data-global-layout="g_royal_velvet"]{
  background-image:
    radial-gradient(ellipse 60% 40% at 50% 0%,rgba(168,85,247,.18),transparent 55%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l4 8h9l-7 6 3 9-9-6-9 6 3-9-7-6h9z' fill='%23a855f7' fill-opacity='.03'/%3E%3C/svg%3E"),
    linear-gradient(180deg,#12081c 0%,#1a0f28 100%);
}
body[data-global-layout="g_royal_velvet"] .mafia-lx-header{
  background:linear-gradient(180deg,rgba(109,40,217,.15),transparent);
  border-bottom-color:rgba(234,179,8,.3);
}
body[data-global-layout="g_royal_velvet"] .mafia-lx-header-mark{
  background:linear-gradient(135deg,#7c3aed,#4c1d95);
  border:2px solid rgba(234,179,8,.4);border-radius:12px;
}
body[data-global-layout="g_royal_velvet"] .mafia-lx-chrome{
  background:linear-gradient(135deg,rgba(124,58,237,.2),rgba(0,0,0,.35));
  border:1px solid rgba(234,179,8,.25);
  border-radius:18px;
}
body[data-global-layout="g_royal_velvet"] .mafia-lx-chrome-title{color:#f5d0fe}
body[data-global-layout="g_royal_velvet"] .mafia-lx-chrome-ico{
  border:1px solid rgba(234,179,8,.3);background:rgba(168,85,247,.2);
}
body[data-global-layout="g_royal_velvet"] .stitle{color:#f5d0fe}
body[data-global-layout="g_royal_velvet"] .card{
  border-radius:16px;border:1px solid rgba(234,179,8,.2);
  box-shadow:0 0 0 1px rgba(168,85,247,.12),0 6px 24px rgba(0,0,0,.3);
}
body[data-global-layout="g_royal_velvet"] .nav-item.active .ni{
  filter:drop-shadow(0 0 6px rgba(234,179,8,.6));
}

/* ═══ 04 Holographic Glass ═══ */
body[data-global-layout="g_holo_glass"]{
  background-image:
    radial-gradient(ellipse 50% 40% at 20% 10%,rgba(6,182,212,.15),transparent 50%),
    radial-gradient(ellipse 45% 35% at 80% 20%,rgba(168,85,247,.12),transparent 45%),
    linear-gradient(180deg,#0a0f1a 0%,#0f172a 100%);
}
body[data-global-layout="g_holo_glass"] .mafia-lx-header,
body[data-global-layout="g_holo_glass"] .mafia-lx-chrome,
body[data-global-layout="g_holo_glass"] .card,
body[data-global-layout="g_holo_glass"] .mafia-play-hub,
body[data-global-layout="g_holo_glass"] .mafia-lx-prof .prof-stat{
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
}
body[data-global-layout="g_holo_glass"] .mafia-lx-header{
  background:rgba(255,255,255,.04);
  border-bottom-color:rgba(6,182,212,.3);
}
body[data-global-layout="g_holo_glass"] .mafia-lx-header-mark{
  background:linear-gradient(135deg,rgba(6,182,212,.3),rgba(168,85,247,.3));
  border:1px solid rgba(255,255,255,.15);
}
body[data-global-layout="g_holo_glass"] .mafia-lx-chrome{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(6,182,212,.28);
  box-shadow:0 0 24px rgba(168,85,247,.12),inset 0 1px 0 rgba(255,255,255,.08);
}
body[data-global-layout="g_holo_glass"] .mafia-lx-chrome-title{
  background:linear-gradient(90deg,#22d3ee,#a78bfa,#22d3ee);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
body[data-global-layout="g_holo_glass"] .card{
  border-radius:18px;border:1px solid rgba(6,182,212,.28);
  background:rgba(255,255,255,.04);
}
body[data-global-layout="g_holo_glass"] .btn-primary{
  background:linear-gradient(135deg,rgba(6,182,212,.85),rgba(168,85,247,.85));
}

/* ═══ 05 AI Command Center ═══ */
body[data-global-layout="g_ai_command"]{
  --accent:#22c55e;--border:rgba(34,197,94,.25);
  background-image:
    repeating-linear-gradient(0deg,rgba(34,197,94,.03) 0 1px,transparent 1px 24px),
    repeating-linear-gradient(90deg,rgba(34,197,94,.03) 0 1px,transparent 1px 24px),
    linear-gradient(180deg,#020a04 0%,#041208 100%);
  font-family:ui-monospace,Consolas,'Courier New',monospace;
}
body[data-global-layout="g_ai_command"] .mafia-lx-header{
  background:rgba(0,20,8,.8);
  border-bottom:2px solid rgba(34,197,94,.4);
}
body[data-global-layout="g_ai_command"] .mafia-lx-header-mark{
  background:#041208;border:1px solid rgba(34,197,94,.5);border-radius:6px;
  font-size:1rem;
}
body[data-global-layout="g_ai_command"] .mafia-lx-header-main h1{color:#86efac;font-size:.95rem}
body[data-global-layout="g_ai_command"] .mafia-lx-chrome{
  background:rgba(0,20,8,.7);
  border:1px solid rgba(34,197,94,.35);border-left:4px solid #22c55e;
  border-radius:8px;
}
body[data-global-layout="g_ai_command"] .mafia-lx-chrome-title{
  color:#86efac;font-size:.88rem;letter-spacing:.12em;
}
body[data-global-layout="g_ai_command"] .mafia-lx-chrome-sub{font-size:.65rem}
body[data-global-layout="g_ai_command"] .stitle{
  font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:#86efac;
}
body[data-global-layout="g_ai_command"] .card{
  border-radius:8px;border-left:3px solid var(--accent);
  background:rgba(0,20,8,.55);
}
body[data-global-layout="g_ai_command"] .btn{border-radius:6px;font-weight:700}
body[data-global-layout="g_ai_command"] .player-row{
  font-family:inherit;border-left:3px solid rgba(34,197,94,.4);
}
body[data-global-layout="g_ai_command"] .mafia-lx-role-list .role-card{border-radius:8px}

/* ═══ 06 Brush Mafia ═══ */
body[data-global-layout="g_brush_mafia"]{
  background-image:
    radial-gradient(ellipse 70% 50% at 30% 100%,rgba(193,18,31,.15),transparent 55%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E"),
    linear-gradient(175deg,#1a0808 0%,#0f0404 100%);
}
body[data-global-layout="g_brush_mafia"] .mafia-lx-header{
  border-bottom:3px solid rgba(193,18,31,.5);
  transform:rotate(-0.3deg);
}
body[data-global-layout="g_brush_mafia"] .mafia-lx-header-mark{
  background:#3b0d0d;border-radius:4px 16px 6px 12px;
  transform:rotate(-2deg);
}
body[data-global-layout="g_brush_mafia"] .mafia-lx-header-main h1{
  color:#fca5a5;font-weight:900;text-transform:uppercase;
  text-shadow:3px 3px 0 rgba(0,0,0,.6);transform:rotate(-0.5deg);
}
body[data-global-layout="g_brush_mafia"] .mafia-lx-chrome{
  background:rgba(59,13,13,.6);
  border:2px solid rgba(193,18,31,.35);
  border-radius:4px 22px 8px 18px;
  transform:rotate(-0.4deg);
}
body[data-global-layout="g_brush_mafia"] .mafia-lx-chrome-title{
  font-weight:900;font-size:1.15rem;text-transform:uppercase;
  color:#fca5a5;text-shadow:2px 2px 0 rgba(0,0,0,.5);
}
body[data-global-layout="g_brush_mafia"] .stitle{
  font-weight:900;font-size:1.05rem;letter-spacing:.08em;
  text-transform:uppercase;color:#fca5a5;
  text-shadow:2px 2px 0 rgba(0,0,0,.5);
}
body[data-global-layout="g_brush_mafia"] .card{
  border-radius:4px 18px 8px 14px;
  border:2px solid rgba(193,18,31,.35);
  transform:rotate(-0.2deg);
}
body[data-global-layout="g_brush_mafia"] .mafia-lx-role-list .role-card{
  border-radius:4px 16px 6px 14px;
}

/* ═══ 07 3D Motion Casino ═══ */
body[data-global-layout="g_motion_3d"]{
  background:linear-gradient(180deg,#0a1420 0%,#061018 100%);
}
body[data-global-layout="g_motion_3d"] .mafia-lx-header-mark{
  background:linear-gradient(145deg,#10b981,#065f46);
  border-radius:18px;
  box-shadow:0 8px 0 #034d3a,0 12px 24px rgba(0,0,0,.4);
}
body[data-global-layout="g_motion_3d"] .mafia-lx-chrome{
  background:linear-gradient(180deg,var(--card),rgba(0,0,0,.3));
  border-radius:22px;
  box-shadow:0 12px 0 rgba(0,0,0,.25),0 16px 32px rgba(0,0,0,.35);
}
body[data-global-layout="g_motion_3d"] .card,
body[data-global-layout="g_motion_3d"] .mafia-lx-wallet-featured,
body[data-global-layout="g_motion_3d"] .player-row,
body[data-global-layout="g_motion_3d"] .mafia-lx-role-list .role-card{
  border-radius:22px;
  box-shadow:0 12px 0 rgba(0,0,0,.25),0 16px 32px rgba(0,0,0,.35);
  transition:transform .15s ease,box-shadow .15s ease;
}
body[data-global-layout="g_motion_3d"] .card:active,
body[data-global-layout="g_motion_3d"] .player-row:active{
  transform:translateY(4px);
  box-shadow:0 6px 0 rgba(0,0,0,.2);
}
body[data-global-layout="g_motion_3d"] .nav-item .ni{font-size:22px}
body[data-global-layout="g_motion_3d"] .btn-primary{
  box-shadow:0 6px 0 #065f46,0 10px 24px rgba(16,185,129,.3);
}
body[data-global-layout="g_motion_3d"] .mafia-podium--gold .mafia-podium-card{
  box-shadow:0 16px 0 rgba(0,0,0,.3),0 0 32px rgba(16,185,129,.2)!important;
}

/* ═══ 08 Cinematic 3D ═══ */
body[data-global-layout="g_cinema_3d"]{
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 100%,rgba(244,63,94,.12),transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 0%,rgba(168,85,247,.1),transparent 50%),
    linear-gradient(180deg,#0f0812 0%,#1a0a14 100%);
}
body[data-global-layout="g_cinema_3d"] .mafia-lx-header{
  border-bottom-color:rgba(244,63,94,.3);
}
body[data-global-layout="g_cinema_3d"] .mafia-lx-header-mark{
  border-radius:50%;
  box-shadow:0 0 0 3px rgba(244,63,94,.35),0 0 32px rgba(168,85,247,.2);
}
body[data-global-layout="g_cinema_3d"] .mafia-lx-chrome{
  border-radius:24px;padding:18px 16px;
  box-shadow:0 20px 50px rgba(0,0,0,.45),inset 0 0 60px rgba(244,63,94,.08);
  border:1px solid rgba(244,63,94,.25);
}
body[data-global-layout="g_cinema_3d"] .mafia-lx-chrome-title{
  font-size:1.2rem;letter-spacing:.08em;text-transform:uppercase;
}
body[data-global-layout="g_cinema_3d"] .mafia-lx-prof .prof-av{
  width:120px;height:120px;
  box-shadow:0 0 0 4px rgba(244,63,94,.35),0 0 48px rgba(168,85,247,.25);
}
body[data-global-layout="g_cinema_3d"] .mafia-lx-role-list .role-card-img{aspect-ratio:2/3}
body[data-global-layout="g_cinema_3d"] .mafia-lx-role-list .role-card{
  box-shadow:0 0 0 2px rgba(244,63,94,.2),0 16px 40px rgba(0,0,0,.4);
}
body[data-global-layout="g_cinema_3d"] .card{border-radius:20px}
body[data-global-layout="g_cinema_3d"] .stitle{font-weight:700;letter-spacing:.05em}

/* ═══ 09 Executive Black Gold ═══ */
body[data-global-layout="g_executive"]{
  --bg:#0a0a0c;--bg2:#121216;--card:rgba(255,255,255,.04);
  --accent:#c9a227;--border:rgba(201,162,39,.2);
  background:#0a0a0c;
}
body[data-global-layout="g_executive"] .mafia-lx-header{
  background:#0a0a0c;
  border-bottom:1px solid rgba(201,162,39,.25);
  padding-top:calc(8px + env(safe-area-inset-top));
}
body[data-global-layout="g_executive"] .mafia-lx-header-mark{
  background:transparent;border:1px solid rgba(201,162,39,.4);
  border-radius:8px;font-size:1rem;color:var(--accent);
}
body[data-global-layout="g_executive"] .mafia-lx-header-main h1{
  font-weight:600;letter-spacing:.18em;font-size:.82rem;color:var(--accent);
}
body[data-global-layout="g_executive"] .mafia-lx-header-tag{letter-spacing:.14em}
body[data-global-layout="g_executive"] .mafia-lx-chrome{
  background:transparent;
  border:1px solid rgba(201,162,39,.15);
  border-radius:10px;padding:12px 14px;
}
body[data-global-layout="g_executive"] .mafia-lx-chrome-ico{
  background:transparent;border:1px solid rgba(201,162,39,.2);
  border-radius:8px;font-size:1.2rem;width:40px;height:40px;
}
body[data-global-layout="g_executive"] .mafia-lx-chrome-title{
  font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  font-size:.78rem;color:var(--accent);
}
body[data-global-layout="g_executive"] .stitle{
  font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  font-size:.68rem;color:var(--accent);
}
body[data-global-layout="g_executive"] .card{
  border-radius:10px;border:1px solid rgba(201,162,39,.15);box-shadow:none;
}
body[data-global-layout="g_executive"] .btn{border-radius:8px}
body[data-global-layout="g_executive"] .player-row{
  border-radius:8px;background:transparent;
  border:1px solid rgba(201,162,39,.12);
}
body[data-global-layout="g_executive"] .mafia-lx-home .stat-box{
  background:transparent;border-color:rgba(201,162,39,.12);
}

/* ═══ 10 Neon Realm ═══ */
body[data-global-layout="g_neon_realm"]{
  background-image:
    radial-gradient(ellipse 60% 40% at 50% 0%,rgba(6,182,212,.2),transparent 55%),
    radial-gradient(ellipse 50% 35% at 80% 70%,rgba(168,85,247,.15),transparent 50%),
    linear-gradient(180deg,#050510 0%,#0a0618 100%);
}
body[data-global-layout="g_neon_realm"] .mafia-lx-header{
  box-shadow:0 0 24px rgba(6,182,212,.15);
  border-bottom-color:rgba(6,182,212,.35);
}
body[data-global-layout="g_neon_realm"] .mafia-lx-header-mark{
  background:linear-gradient(135deg,rgba(6,182,212,.3),rgba(168,85,247,.3));
  box-shadow:0 0 20px rgba(168,85,247,.35);
  animation:mafiaNeonPulse 3s ease-in-out infinite;
}
body[data-global-layout="g_neon_realm"] .mafia-lx-chrome{
  border:1px solid rgba(6,182,212,.3);
  box-shadow:0 0 28px rgba(168,85,247,.15);
  animation:mafiaNeonPulse 4s ease-in-out infinite;
}
body[data-global-layout="g_neon_realm"] .mafia-lx-chrome-title{
  background:linear-gradient(90deg,#06b6d4,#e879f9,#06b6d4);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
body[data-global-layout="g_neon_realm"] .nav-item.active{
  background:rgba(168,85,247,.15);border-radius:14px;
  box-shadow:0 0 16px rgba(6,182,212,.25);
}
body[data-global-layout="g_neon_realm"] .card{
  border-radius:16px;
  box-shadow:0 0 0 1px rgba(6,182,212,.2),0 0 28px rgba(168,85,247,.1);
}
body[data-global-layout="g_neon_realm"] .btn-primary{
  background:linear-gradient(90deg,#06b6d4,#a855f7);
  box-shadow:0 0 20px rgba(168,85,247,.35);
}
body[data-global-layout="g_neon_realm"] .mafia-lb-podium .mafia-podium--gold .mafia-podium-card{
  box-shadow:0 0 32px rgba(6,182,212,.35),0 0 48px rgba(168,85,247,.2)!important;
  border-color:rgba(6,182,212,.4)!important;
}
@keyframes mafiaNeonPulse{
  0%,100%{box-shadow:0 0 20px rgba(6,182,212,.15)}
  50%{box-shadow:0 0 36px rgba(168,85,247,.25)}
}

/* Чипы выбора */
.global-layout-chips .global-chip{min-height:4.5rem}
.global-layout-chips .global-chip.active{
  box-shadow:0 0 0 2px var(--accent),0 4px 20px rgba(0,0,0,.25);
}
body[data-global-layout] .theme-chip.active,
body[data-global-layout] .shell-chip.active,
body[data-global-layout] .global-chip.active{
  border-color:var(--accent);
}

html[data-a11y-motion="reduce"] body[data-global-layout="g_neon_realm"] .mafia-lx-chrome,
html[data-a11y-motion="reduce"] body[data-global-layout="g_neon_realm"] .mafia-lx-header-mark{
  animation:none;
}

/* ═══ ВНУТРЕННИЕ СТРАНИЦЫ — общий редизайн ═══ */

/* ── Главная ── */
body[data-global-layout] .mafia-lx-game-row{
  border-radius:16px;padding:12px 14px;margin-bottom:8px;
  background:var(--card);border:1px solid var(--border);
  box-shadow:0 4px 16px rgba(0,0,0,.15);
}
body[data-global-layout] .mafia-lx-ann-card{
  border-radius:16px;padding:14px;margin-bottom:10px;
  border:1px solid var(--border);
  background:linear-gradient(135deg,var(--card),rgba(0,0,0,.12));
}
body[data-global-layout] .mafia-lx-home .stitle{
  padding:8px 4px 6px;margin-top:12px;
  border-bottom:1px solid var(--border);
}

/* ── Рейтинг ── */
body[data-global-layout] .mafia-lx-lb-filters{
  margin-bottom:14px;padding:8px;border-radius:18px;
  background:rgba(0,0,0,.18);border:1px solid var(--border);
}
body[data-global-layout] .mafia-lx-lb-filters .ptabs{margin:0 0 6px!important}
body[data-global-layout] .mafia-lx-lb-filters .ptabs:last-child{margin-bottom:0!important}
body[data-global-layout] .mafia-lx-lb-list .mafia-lx-lb-card{
  position:relative;padding:14px 14px 14px 62px!important;
  min-height:68px;border-radius:18px!important;
  margin-bottom:10px!important;
  box-shadow:0 6px 20px rgba(0,0,0,.18);
  border:1px solid var(--border)!important;
}
body[data-global-layout] .mafia-lx-lb-card .pr-av,
body[data-global-layout] .mafia-lx-lb-card .pr-av-ph{
  position:absolute;left:12px;top:50%;transform:translateY(-50%);
  width:44px!important;height:44px!important;
}
body[data-global-layout] .mafia-lx-lb-card .pr-rank{
  position:static;flex-shrink:0;
  width:28px;height:28px;font-size:.8rem;
}
body[data-global-layout] .mafia-lx-lb-card .pr-rank.r1,
body[data-global-layout] .mafia-lx-lb-card .pr-rank.r2,
body[data-global-layout] .mafia-lx-lb-card .pr-rank.r3{
  display:none;
}
body[data-global-layout] .mafia-lx-lb-card .pr-name{font-size:.88rem;font-weight:800}
body[data-global-layout] .mafia-lx-lb-card .pr-sub{font-size:.68rem}

/* ── Казино / Игры ── */
body[data-global-layout] .mafia-lx-play-content{
  display:flex;flex-direction:column;gap:4px;
}
body[data-global-layout] .mafia-lx-game-panel{margin-bottom:8px}
body[data-global-layout] .mafia-lx-game-panel .mafia-lx-inner-card,
body[data-global-layout] .mafia-lx-game-panel>.card{
  border-radius:22px!important;padding:18px!important;
  border:2px solid var(--border)!important;
  box-shadow:0 10px 32px rgba(0,0,0,.25)!important;
  margin-bottom:0!important;
}
body[data-global-layout] .mafia-lx-roulette-wrap{
  padding:14px;border-radius:24px;margin:10px 0 14px;
  background:radial-gradient(ellipse at 50% 30%,rgba(255,255,255,.06),rgba(0,0,0,.35));
  border:1px solid var(--border);
}
body[data-global-layout] .mafia-lx-roulette-wrap .roulette-stage{
  width:min(94vw,340px);margin-bottom:8px;
}
body[data-global-layout] .mafia-lx-bet-tile{
  min-height:54px!important;border-radius:16px!important;
  font-weight:800!important;font-size:.78rem!important;
}
body[data-global-layout] .mafia-lx-slip{
  border-radius:18px!important;padding:14px!important;
  background:rgba(0,0,0,.2)!important;
}
body[data-global-layout] .mafia-lx-play .mafia-play-hub .btn-primary{
  box-shadow:0 0 0 2px var(--accent),0 4px 16px rgba(0,0,0,.2);
}
body[data-global-layout] .slot-game-card,
body[data-global-layout] .dice-game-card{
  border-radius:22px!important;
}

/* ── Кланы ── */
body[data-global-layout] .mafia-lx-clans .mafia-lx-clans-lb{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;
  padding:14px!important;border-radius:20px!important;
  margin-bottom:16px!important;
}
body[data-global-layout] .mafia-lx-clan-lb-card{
  flex-direction:column!important;text-align:center!important;
  padding:14px 10px!important;border-radius:16px!important;
  border:1px solid var(--border)!important;
  background:var(--card)!important;
  margin:0!important;
}
body[data-global-layout] .mafia-lx-clan-lb-top1{
  grid-column:1/-1;padding:18px!important;
  border-color:var(--accent)!important;
  box-shadow:0 0 24px rgba(212,164,24,.15);
}
body[data-global-layout] .mafia-lx-clan-lb-top1 .clans-lb-pts{font-size:1.1rem}
body[data-global-layout] .mafia-lx-clans-pick{
  grid-template-columns:1fr!important;gap:12px!important;
}
body[data-global-layout] .mafia-lx-clan-card{
  border-radius:20px!important;padding:18px!important;
  box-shadow:0 8px 28px rgba(0,0,0,.28)!important;
}
body[data-global-layout] .mafia-lx-clan-card .btn{margin-top:12px!important;border-radius:14px!important}
body[data-global-layout] .mafia-lx-clan-clicker{
  border-radius:24px!important;margin:14px 0!important;
  padding:24px 16px!important;
}
body[data-global-layout] .mafia-lx-clan-clicker .clans-tap-btn{
  width:228px!important;height:228px!important;
}
body[data-global-layout] .mafia-lx-clan-war{
  border-radius:20px!important;margin:12px 0!important;
  overflow:hidden;
}
body[data-global-layout] .mafia-lx-clan-feed{
  border-radius:16px!important;margin-bottom:12px!important;
  border:1px solid var(--border)!important;
}
body[data-global-layout] .mafia-lx-section-title{
  font-size:.78rem!important;letter-spacing:.08em;
  text-transform:uppercase;margin:18px 0 10px!important;
}

/* ── Игра за столом ── */
body[data-global-layout] .mafia-lx-game .mafia-lx-game-hero{
  border-radius:22px!important;margin-bottom:14px!important;
  padding:22px 16px!important;
}
body[data-global-layout] .mafia-lx-game-card{
  border-radius:18px!important;
  box-shadow:0 6px 22px rgba(0,0,0,.2)!important;
  margin-bottom:12px!important;
}
body[data-global-layout] .mafia-lx-role-hero{
  border-radius:20px!important;padding:16px!important;
  margin-bottom:14px!important;
  background:linear-gradient(160deg,var(--card),rgba(0,0,0,.2))!important;
  border:1px solid var(--border)!important;
}
body[data-global-layout] .mafia-lx-role-hero .gp-role-img,
body[data-global-layout] .mafia-lx-role-hero .gp-role-icon{
  max-width:120px;margin:0 auto 10px;
}
body[data-global-layout] .mafia-lx-action-btn{
  border-radius:14px!important;min-height:48px!important;
  font-weight:800!important;margin-bottom:8px!important;
}
body[data-global-layout] .mafia-lx-game-btns{
  display:grid!important;grid-template-columns:1fr 1fr;gap:10px;
}
body[data-global-layout] .mafia-lx-game-btns .btn{
  min-height:50px;border-radius:14px;font-weight:800;
}

/* ── Роли — ещё крупнее ── */
body[data-global-layout] .mafia-lx-role-list .role-grid{
  grid-template-columns:repeat(2,1fr)!important;gap:12px;
}
body[data-global-layout] .mafia-lx-role-list .role-card-name{
  font-size:.74rem!important;padding:2px 0;
}

/* ── Профиль — карточки ── */
body[data-global-layout] .mafia-lx-prof-page .card{
  border-radius:18px!important;margin-bottom:12px!important;
  box-shadow:0 4px 18px rgba(0,0,0,.15);
}
body[data-global-layout] .mafia-lx-prof .wr-bar{
  height:10px;border-radius:999px;
}
