.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: var(--primary); color: #fff; }
.bar h1 { flex: 1; margin: 0; font-size: 20px; }
.back { border: 0; background: rgba(255,255,255,.25); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 24px; line-height: 1; }
.who { border: 0; background: rgba(255,255,255,.25); color: #fff; border-radius: 999px; padding: 6px 14px; }
main { padding: 18px 16px 40px; max-width: 900px; margin: 0 auto; }
.section-title { font-size: 18px; margin: 22px 0 12px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.card { border: 0; background: #fff; border-radius: var(--radius); padding: 18px; text-align: left; box-shadow: 0 6px 20px rgba(0,0,0,.05); color: var(--ink); }
.card .icon { font-size: 40px; }
.card .name { font-size: 20px; font-weight: 800; margin-top: 6px; }
.card .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.card.mode { display: flex; align-items: center; gap: 14px; }
.badge { background: var(--bad); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 13px; margin-left: 6px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; line-height: 2; }
.empty a { color: var(--primary-dark); }

.levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 14px; }
.level { aspect-ratio: 1; border: 0; border-radius: 22px; background: #fff; box-shadow: 0 4px 0 var(--line); font-size: 24px; font-weight: 800; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.level small { font-size: 12px; letter-spacing: 1px; }
.level.current { background: var(--primary); color: #fff; box-shadow: 0 4px 0 var(--primary-dark); animation: pulse 1.6s infinite; }
.level.locked { background: #eee; color: #bbb; box-shadow: none; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.level-info { background: #fff; border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; line-height: 1.7; font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px; font-size: 16px; color: var(--ink); }
.chip.on { border-color: var(--primary); background: #fff3d6; font-weight: 700; }
.start { margin-top: 26px; width: 100%; font-size: 20px; padding: 16px; }
