/* PROFILE-STATS-001: MORI profile only. Shell owns Telegram safe-area insets. */
.menu-preview[data-theme=v23] .menu-body[data-v23-surface=profile] .menu-content{padding:0;scroll-padding:16px}
.menu-preview[data-theme=v23] .menu-body[data-v23-surface=profile]>.menu-nav{display:none}
.v23-profile{--profile-gold:#d4b56c;--profile-ink:#090a09;--profile-line:#766442;--profile-muted:#adaaa2;position:relative;isolation:isolate;width:100%;max-width:920px;min-height:var(--v23-page-height,100svh);margin:auto;padding:12px 14px 0;display:flex;flex-direction:column;color:#eceae3;background:#090a09;font-family:"V23 Roboto Condensed","Arial Narrow",Arial,sans-serif;font-size:15px;line-height:1.35;color-scheme:dark}
.v23-profile,.v23-profile *{box-sizing:border-box}
.v23-profile{container:profile / inline-size}
.v23-profile{min-height:min(900px,var(--v23-page-height,100svh))}
.v23-profile button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.v23-profile button:focus-visible{outline:2px solid #ffe3a1;outline-offset:3px}
.v23-profile button:disabled{cursor:default;color:#77776f;border-color:#3b3c36;background:#11120f;box-shadow:none}
.v23-profile [hidden]{display:none!important}
.v23-profile .profile-scene{position:absolute;inset:0 0 auto;height:210px;z-index:-1;pointer-events:none;background:linear-gradient(#05050565,#090a09 100%),url("assets/menu/designer-v23/images/background-crowns-f06496186f2d.webp") center 29%/cover;opacity:.8}
.v23-profile .profile-topbar{display:flex;align-items:center;gap:8px;min-height:44px;margin-bottom:16px}
.v23-profile .profile-back{width:44px;height:44px;display:grid;place-items:center;flex:none;border:0;background:transparent}
.v23-profile h1{margin:0;font:400 clamp(19px,4.8vw,25px)/1.2 "V23 Russo One",sans-serif;letter-spacing:.035em}
.v23-profile .profile-wordmark{margin-left:auto;color:var(--profile-gold);font-family:"V23 Russo One",sans-serif;font-size:22px}
.v23-profile .profile-player{display:flex;align-items:center;gap:12px;padding:12px;margin-bottom:12px;border:1px solid #756546;background:linear-gradient(125deg,#19180fee,#080908e8);border-radius:10px 2px 10px 2px}
.v23-profile .profile-avatar{position:relative;flex:0 0 66px;height:66px;border:1px solid var(--profile-gold);border-radius:6px 1px;overflow:hidden;background:#0a0a08}
.v23-profile .profile-avatar>img:first-child{display:block;width:100%;height:100%;object-fit:cover}
.v23-profile .profile-avatar .profile-crown{position:absolute;width:23px;height:19px;right:3px;bottom:3px;object-fit:contain}
.v23-profile .profile-identity{min-width:0;flex:1}
.v23-profile .profile-name{margin:0 0 3px;font-size:22px;font-weight:700;line-height:1.1;overflow-wrap:anywhere}
.v23-profile .profile-meta{display:flex;flex-wrap:wrap;gap:5px 12px;color:#c3beb1;font-size:13px}
.v23-profile .profile-health{display:flex;align-items:center;gap:7px;margin:7px 0 0;font-size:13px;color:#c3beb1}
.v23-profile .profile-health svg{width:17px;height:17px;color:var(--profile-gold)}
.v23-profile .profile-notice{margin:0 0 12px;padding:9px 11px;border-left:2px solid #aa915f;background:#15140fe6;color:#cec5ae;font-size:13px}
.v23-profile .profile-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
.v23-profile .profile-panel{min-width:0;border:1px solid #665b44;background:linear-gradient(120deg,#171812e8,#080908f2);border-radius:10px 2px 10px 2px;overflow:hidden}
.v23-profile .profile-panel-header{display:flex;align-items:center;gap:8px;min-height:54px;padding:5px 11px;border-bottom:1px solid #3d3b30}
.v23-profile .profile-section-toggle{display:flex;align-items:center;gap:8px;flex:1;min-width:0;min-height:44px;padding:5px 0;border:0;background:transparent;text-align:left}
.v23-profile .profile-section-toggle h2{font:400 17px/1.15 "V23 Russo One",sans-serif;letter-spacing:.01em;margin:0;overflow-wrap:anywhere}
.v23-profile .profile-chevron{width:18px;height:18px;flex:none;margin-left:auto;color:#e1dccd;transition:transform .15s ease}
.v23-profile .profile-chevron.is-open{transform:rotate(180deg)}
.v23-profile .profile-budget{display:flex;flex-direction:column;align-items:flex-end;gap:2px;flex:none;font-size:12px;color:var(--profile-muted);white-space:nowrap}
.v23-profile .profile-budget strong{color:#f3d588;font-size:16px;font-weight:600}
.v23-profile .profile-stat-list{padding:0 11px}
.v23-profile .profile-stat{display:grid;grid-template-columns:27px minmax(0,1fr) 52px 44px 44px;gap:8px;align-items:center;min-height:58px;border-bottom:1px solid #34372e}
.v23-profile .profile-stat:last-child{border-bottom:0}
.v23-profile .profile-stat>.profile-icon{color:var(--profile-gold);width:25px;height:25px}
.v23-profile .profile-stat-label{font-weight:600;font-size:15px;overflow-wrap:anywhere}
.v23-profile .profile-stat-value{text-align:center;font-variant-numeric:tabular-nums;font-size:21px;font-weight:650;line-height:1.1}
.v23-profile .profile-stat-value small{display:block;min-height:15px;margin-top:2px;color:#f3d588;font-size:12px;font-weight:500}
.v23-profile .profile-step{width:44px;height:44px;display:grid;place-items:center;padding:0;border:1px solid #bba16a;border-radius:5px 1px;background:linear-gradient(135deg,#302919,#10110e);font-size:27px;line-height:1}
.v23-profile .profile-step:enabled:active{background:#4a3b21}
.v23-profile .profile-allocation-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 11px;border-top:1px solid #3d3b30}
.v23-profile .profile-allocation-actions>span{color:#c8c1ae;font-size:13px;margin-right:auto}
.v23-profile .profile-allocation-actions strong{color:#f1d17f}
.v23-profile .profile-quiet,.v23-profile .profile-apply{min-height:44px;padding:8px 13px;border:1px solid #847249;border-radius:5px 1px;background:#10110e}
.v23-profile .profile-apply{background:linear-gradient(110deg,#b18a40,#efcb72 45%,#bd954a);color:#17140c;font-weight:750;border-color:#f2d593}
.v23-profile .profile-apply:enabled:active{filter:brightness(1.1)}
.v23-profile .profile-feedback{padding:0 11px 10px;color:#e6cf98;font-size:13px}
.v23-profile .profile-feedback:empty{display:none}
.v23-profile .profile-feedback p{margin:6px 0}
.v23-profile .profile-subtitle{margin:0;padding:7px 11px 2px;color:var(--profile-muted);font-size:12px}
.v23-profile .profile-parameters{padding:0 11px 4px}
.v23-profile .profile-parameter-group{padding:9px 0;border-bottom:1px solid #3a3d32}
.v23-profile .profile-parameter-group:last-child{border-bottom:0}
.v23-profile .profile-parameter-group h3{display:flex;align-items:center;gap:7px;margin:0 0 6px;font-size:12px;line-height:1.2;font-weight:600;letter-spacing:.035em;text-transform:uppercase;color:#c5c0b2}
.v23-profile .profile-parameter-group h3 svg{width:16px;height:16px;color:var(--profile-gold)}
.v23-profile .profile-parameter-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}
.v23-profile .profile-metric{min-width:0}
.v23-profile .profile-metric-label{display:block;color:#bdb9ad;font-size:12px;line-height:1.2}
.v23-profile .profile-metric-value{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px;margin-top:3px;font-size:17px;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.v23-profile .profile-metric-value del{font-size:14px;color:#b8b1a0;text-decoration:none}
.v23-profile .profile-metric-value .profile-arrow{font-size:15px;color:#e3c276}
.v23-profile .profile-metric-value strong{font-weight:600}
.v23-profile .profile-metric.is-changed .profile-metric-value strong{color:#f3d588}
.v23-profile .profile-metric-note{display:block;margin-top:3px;color:#c6b68e;font-size:11px;line-height:1.25}
.v23-profile .profile-secondary{display:grid;gap:10px;margin:12px 0 16px}
.v23-profile .profile-secondary .profile-panel-header{border-bottom:0}
.v23-profile .profile-masteries{padding:0 12px 12px}
.v23-profile .profile-masteries>p{margin:4px 0;color:#bdb9ad;font-size:13px}
.v23-profile .profile-mastery{padding:8px 0;border-top:1px solid #34372e}
.v23-profile .profile-mastery>div{display:flex;justify-content:space-between;gap:12px;font-size:13px}
.v23-profile .profile-mastery progress{display:block;width:100%;height:5px;margin-top:7px;accent-color:var(--profile-gold)}
.v23-profile .profile-history{display:flex;align-items:center;gap:10px;min-height:52px;padding:8px 12px;border:1px solid #655b43;border-radius:8px 2px;background:#11120e;text-align:left;font-size:16px}
.v23-profile .profile-history .profile-chevron{transform:rotate(-90deg)}
.v23-profile .profile-empty{padding:12px;color:#bdb9ad;font-size:13px}
.v23-profile .profile-icon{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
@container profile (min-width:760px){
 .v23-profile .profile-topbar{margin-bottom:14px}
 .v23-profile .profile-player{max-width:100%;margin-bottom:14px}
 .v23-profile .profile-layout{grid-template-columns:minmax(290px, .85fr) minmax(360px,1.15fr);gap:14px}
 .v23-profile .profile-stat{grid-template-columns:26px minmax(0,1fr) 50px 44px 44px;gap:7px;min-height:65px}
 .v23-profile .profile-panel-header{min-height:57px}
 .v23-profile .profile-secondary{grid-template-columns:1fr 1fr;align-items:start}
}
@container profile (max-width:331px){
 .v23-profile .profile-panel-header{padding-inline:8px}
 .v23-profile .profile-section-toggle h2{font-size:14px}
 .v23-profile .profile-stat-list{padding-inline:8px}
 .v23-profile .profile-stat{grid-template-columns:21px minmax(0,1fr) 35px 44px 44px;gap:5px}
 .v23-profile .profile-stat-label{font-size:13px}
 .v23-profile .profile-stat>.profile-icon{width:20px;height:20px}
 .v23-profile .profile-budget strong{font-size:14px}
 .v23-profile .profile-parameters{padding-inline:8px}
 .v23-profile .profile-metric-value{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.v23-profile *{transition:none!important}}
