/* Your rank card page (22 Oct 2026). */
.mc { max-width: 980px; margin: 0 auto; padding: 0 16px 4rem; color: #e8ebef; }
.mc-crumbs { font-family: 'JetBrains Mono', monospace; font-size: .78rem; letter-spacing: .08em; color: #858d98; margin: 1.6rem 0 1rem; }
.mc-crumbs a { color: #a3abb5; text-decoration: none; }
.mc-panel { background: #12151b; border: 1px solid #1c2027; border-radius: 16px; padding: 1.1rem 1.2rem; margin-top: 1rem; }
.mc-h { margin: 0 0 .8rem; font: 700 1.05rem 'Oswald', sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.mc-preview-wrap { container-type: inline-size; }
.mc-preview { position: relative; overflow: hidden; width: 100%; aspect-ratio: 934 / 282; border-radius: 16px; display: flex; align-items: center; gap: 4%; padding: 0 4%; box-sizing: border-box; }
.mc-pattern { position: absolute; inset: 0; pointer-events: none; }
.mc-preview > :not(.mc-pattern) { position: relative; }
.mc-ava { flex: none; width: 19%; aspect-ratio: 1; background: #2b2d31; display: grid; place-items: center; font-size: clamp(1.4rem, 7cqi, 3.4rem); overflow: visible; }
.mc-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.mc-badge { position: absolute; right: 0; bottom: 0; min-width: 28%; aspect-ratio: 1; border-radius: 50%; border: 3px solid #0d0d14; color: #fff; font-weight: 700; font-size: clamp(.55rem, 1.6cqi, .85rem); display: grid; place-items: center; }
.mc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: clamp(3px, 1.2cqi, 10px); }
.mc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.mc-name { font-weight: 700; font-size: clamp(.9rem, 3.6cqi, 1.9rem); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-handle { font-size: clamp(.6rem, 1.8cqi, .95rem); }
.mc-stats { display: flex; gap: clamp(8px, 3cqi, 26px); text-align: right; }
.mc-stats span { display: flex; flex-direction: column; }
.mc-stats small { font-size: clamp(.45rem, 1.3cqi, .72rem); font-weight: 600; letter-spacing: .04em; }
.mc-stats b { font-size: clamp(1rem, 4.6cqi, 2.5rem); line-height: 1; }
.mc-foot { font-size: clamp(.55rem, 1.7cqi, .9rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-track { height: clamp(10px, 2.6cqi, 24px); background: rgba(255,255,255,.09); overflow: hidden; }
.mc-fill { height: 100%; border-radius: inherit; display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; box-sizing: border-box; color: rgba(255,255,255,.9); font-weight: 700; font-size: clamp(.5rem, 1.4cqi, .8rem); }
.mc-xp { display: flex; justify-content: space-between; font-size: clamp(.5rem, 1.4cqi, .78rem); }
.mc-note { color: #a3abb5; font-size: .88rem; margin: .6rem 0 0; min-height: 1.2em; }
.mc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.mc-swatch { height: 48px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; display: flex; align-items: flex-end; padding: 4px 8px; box-shadow: inset 0 -3px 0 var(--a); color: #fff; font-size: .72rem; text-transform: capitalize; }
.mc-swatch.is-on { border-color: var(--a); }
.mc-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 14px; align-items: end; }
.mc-f { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; color: #a3abb5; min-width: 0; }
.mc-f select, .mc-f input[type=text] { background: #0b0d11; color: #e8ebef; border: 1px solid #262b34; border-radius: 8px; padding: .55rem .6rem; font: inherit; }
.mc-f input[type=color] { width: 100%; height: 38px; border: 1px solid #262b34; border-radius: 8px; background: #0b0d11; padding: 2px; }
.mc-wide { grid-column: 1 / -1; }
.mc-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: .9rem; font-size: .9rem; }
.mc-lib { margin-top: .9rem; }
.mc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .6rem; }
.mc-chip { border: 1px solid #262b34; background: #0b0d11; color: #e8ebef; border-radius: 999px; padding: .25rem .75rem; font-size: .8rem; cursor: pointer; }
.mc-chip.is-on { background: #a50f12; border-color: transparent; }
.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; max-height: 460px; overflow-y: auto; }
.mc-item { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; text-align: left; color: #fff; }
.mc-item img { display: block; width: 100%; aspect-ratio: 400 / 121; object-fit: cover; }
.mc-item span { display: block; font-size: .72rem; padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-item.is-on { border-color: #ff3b41; }
.mc-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 1.2rem; }
.mc-btn { border: 1px solid #262b34; background: #161a21; color: #e8ebef; border-radius: 10px; padding: .65rem 1.1rem; font: 600 .92rem inherit; cursor: pointer; }
.mc-primary { background: #a50f12; border-color: transparent; color: #fff; }
.mc-btn:disabled { opacity: .6; cursor: wait; }
.mc-more { margin-top: .6rem; }
.mc-status { text-align: right; color: #4bb174; min-height: 1.3em; }
.mc-status.bad { color: #ff6b6b; }
@media (max-width: 600px) { .mc-grid { grid-template-columns: repeat(2, 1fr); max-height: 380px; } .mc-panel { padding: .9rem; } }

/* hidden always wins: .mc-actions and panels are flex/grid (19 Nov 2026: Save showed on a locked page). */
.mc [hidden] { display: none !important; }
