/* Hero & backpack tab: hero and numbers on the left, backpack and the chosen item on the right (GAM-38). */
.panel.kit-wide { width: min(920px, 100%); }
.tab-body.kit-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.kit-column { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.doll { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "left hero right" "trinkets trinkets trinkets"; gap: 8px 10px;
  padding: 12px; border-radius: 12px; background: repeating-radial-gradient(circle at 50% 38%, #34373c 0 14px, #313338 14px 28px); }
.doll-col { display: flex; flex-direction: column; gap: 6px; }
.doll-col.left { grid-area: left; }
.doll-col.right { grid-area: right; }
.doll-col.trinkets { grid-area: trinkets; flex-direction: row; justify-content: center; gap: 18px; }
.slot-wrap { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.slot-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.doll-hero { grid-area: hero; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.hero-pic { width: 112px; height: 112px; image-rendering: pixelated; }
.stat-table { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 10px; background: var(--page); font-size: 14px; }
.stat-row { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 6px; padding: 3px 0; align-items: baseline; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-row + .stat-row { border-top: 1px solid var(--panel-line); }
.stat-head { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-name { text-align: left; }
.stat-base, .stat-gear { color: var(--muted); }
.stat-row .up { color: #7be08a; }
.stat-row .down { color: var(--bad); }
.kit-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 12px; min-height: 76px; padding: 10px; border-radius: 10px; background: var(--page); }
.kit-card > p { grid-column: 1 / -1; font-size: 14px; }
.kit-card .token { pointer-events: none; }
.kit-text { display: flex; flex-direction: column; font-size: 14px; min-width: 0; }
.kit-card .row { grid-column: 1 / -1; }
.kit-card .row button { flex: 1; }
.kit-head { display: flex; justify-content: space-between; align-items: baseline; }
.bag { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; justify-items: center; }
@media (max-width: 760px) {
  .panel.kit-wide { width: min(560px, 100%); }
  .tab-body.kit-body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 500px) {
  .hero-pic { width: 88px; height: 88px; }
  .doll { padding: 8px; gap: 6px; }
  .stat-table { font-size: 13px; }
}
