/* Mobile-Suits-Katalog */
.unit-page { padding: 0 0 4.5rem; }
.unit-lead { color: var(--muted); max-width: 46rem; margin-top: 0.35rem; }
.crumb { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; color: var(--muted); font-size: 0.88rem; margin-bottom: 0.85rem; }
.crumb a { color: var(--primary); }
.crumb span[aria-hidden="true"] { color: #cbd5e1; }

.badge-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.9rem 0 0.2rem; }
.pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.28rem 0.7rem; border-radius: 999px; background: var(--primary-light); color: var(--primary); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em; }
.pill-stars { background: #fff7ed; color: #9a3412; letter-spacing: 0.08em; }
.pill-quiet { background: var(--light); color: var(--slate); font-weight: 600; }

.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 0 1.4rem; }
.role-card { display: block; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1.15rem 1.2rem 1.2rem; box-shadow: var(--shadow); }
.role-card:hover { border-color: #f3b4c0; }
.role-card.on { border-color: var(--primary); box-shadow: 0 10px 28px rgba(196, 30, 58, 0.12); }
.role-card h2, .role-card h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.role-card p { color: var(--muted); font-size: 0.92rem; }
.role-card .count { display: block; margin-top: 0.7rem; font-size: 0.8rem; font-weight: 700; color: var(--primary); }

.cost-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1.6rem; }
.cost-chip { display: inline-flex; align-items: center; gap: 0.35rem; border: 1px solid #e2e8f0; background: #fff; color: var(--slate); border-radius: 999px; padding: 0.4rem 0.75rem; font-size: 0.84rem; font-weight: 700; }
.cost-chip em { font-style: normal; font-size: 0.72rem; font-weight: 700; color: var(--primary); background: var(--primary-light); border-radius: 999px; padding: 0.05rem 0.4rem; }
.cost-chip.has { border-color: #f3b4c0; }
.cost-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.cost-chip.on em { background: rgba(255,255,255,0.2); color: #fff; }

.suit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.suit-card { display: flex; flex-direction: column; gap: 0.45rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1.15rem 1.2rem 1.2rem; box-shadow: var(--shadow); min-height: 100%; }
.suit-card:hover { border-color: #f3b4c0; transform: translateY(-2px); transition: 0.2s; }
.suit-card h2, .suit-card h3 { font-size: 1.18rem; line-height: 1.3; }
.suit-card h2 a:hover, .suit-card h3 a:hover { color: var(--primary); }
.jp { color: var(--muted); font-size: 0.86rem; }
.suit-card .jp { color: var(--muted); font-size: 0.86rem; }
.suit-card p { color: #334155; font-size: 0.95rem; }
.suit-meta { display: flex; flex-wrap: wrap; gap: 0.55rem 0.9rem; color: var(--muted); font-size: 0.82rem; font-weight: 600; }

.unit-block { margin: 1.6rem 0 0; }
.unit-block h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.unit-prose p { color: #334155; margin-bottom: 0.8rem; max-width: 48rem; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-bottom: 0.9rem; }
.stat-cell { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 0.8rem 0.9rem; }
.stat-cell span { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.stat-cell strong { display: block; margin-top: 0.15rem; font-size: 1.2rem; letter-spacing: -0.02em; }

.stat-table, .enh-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; }
.stat-table th, .stat-table td, .enh-table th, .enh-table td { text-align: left; padding: 0.62rem 0.8rem; border-bottom: 1px solid #e2e8f0; vertical-align: top; font-size: 0.94rem; }
.stat-table th, .enh-table th { width: 34%; color: var(--slate); font-weight: 700; background: #f8fafc; }
.enh-table th { width: auto; }
.stat-table tr:last-child th, .stat-table tr:last-child td, .enh-table tr:last-child td { border-bottom: 0; }

.weapon-grid { display: grid; gap: 0.8rem; }
.weapon { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1rem 1.1rem 0.85rem; }
.weapon h3 { font-size: 1.05rem; }
.weapon .jp { color: var(--muted); font-size: 0.84rem; margin: 0.1rem 0 0.45rem; }
.weapon ul { list-style: disc; padding-left: 1.15rem; }
.weapon li { color: #334155; margin: 0.28rem 0; font-size: 0.95rem; }

.skill-list { display: grid; gap: 0.65rem; }
.skill { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 0.85rem 1rem; }
.skill h3 { font-size: 1rem; }
.skill .lv { color: var(--primary); font-weight: 700; font-size: 0.78rem; }
.skill p { color: #334155; margin-top: 0.3rem; font-size: 0.95rem; }

.unit-note { margin-top: 1.8rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1rem 1.1rem; color: var(--muted); font-size: 0.9rem; }
.unit-note a { color: var(--primary); text-decoration: underline; text-underline-offset: 0.15em; }
.empty-shelf { background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px; padding: 1.3rem 1.2rem; color: var(--muted); }

@media (max-width: 800px) {
  .role-grid, .suit-grid, .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-table th { width: 46%; }
}
@media (max-width: 560px) {
  .role-grid, .suit-grid, .stat-grid { grid-template-columns: 1fr; }
}
