.cr-split { flex: 1; min-height: 0; display: grid; grid-template-columns: max(calc(170 * var(--u)), 150px) 1fr; gap: calc(14 * var(--u)); padding-top: calc(8 * var(--u)); }
.cr-split.wide { grid-template-columns: max(calc(250 * var(--u)), 220px) 1fr; }
.cr-side { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: auto; scrollbar-width: none; padding: 2px; }
.cr-side::-webkit-scrollbar { display: none; }
.cr-side .f-tab { text-align: left; white-space: normal; line-height: 1.05; padding: 6px calc(14 * var(--u)); display: flex; align-items: center; gap: 8px; }
.cr-side .f-tab .n { margin-left: auto; font-size: 0.8em; opacity: 0.75; font-style: normal; }
.cr-side .f-tab.sel .n { opacity: 0.9; }
.cr-main { min-height: 0; overflow: auto; scrollbar-width: none; touch-action: pan-y; padding: 2px 2px calc(12 * var(--u)); display: flex; flex-direction: column; gap: calc(8 * var(--u)); }
.cr-main::-webkit-scrollbar { display: none; }
.cr-main > .f-section:first-child { margin-top: 0; }
.cr-main .f-section { margin: calc(8 * var(--u)) 0 0; }

.cr-panel { background: var(--f-panel); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--f-line); color: #fff; }
.cr-note { font-family: var(--f-font); font-weight: 500; font-size: max(calc(14 * var(--u)), 12px); color: var(--f-dim); line-height: 1.25; margin: 2px 2px 0; }
.cr-empty { font-family: var(--f-font); font-weight: 600; font-size: max(calc(16 * var(--u)), 14px); color: var(--f-dim); text-align: center; padding: calc(24 * var(--u)) 12px; }
.cr-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 6px; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 2px var(--f-line); font-family: var(--f-font); font-weight: 700; font-size: max(calc(17 * var(--u)), 15px); color: #fff; white-space: nowrap; flex: none; }
.cr-chip .coin { width: 18px; height: 18px; min-width: 0; min-height: 0; }
.cr-chip svg { width: 22px; height: 22px; }
.cr-tag { display: inline-block; padding: 1px 8px; border-radius: 4px; background: var(--tc, rgba(255, 255, 255, 0.2)); color: #fff; font-family: var(--f-font); font-weight: 700; font-size: max(calc(12 * var(--u)), 12px); text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.5; }
.cr-main .f-btn, .cr-hero .f-btn, .cr-me .f-btn { font-size: max(calc(16 * var(--u)), 14px); padding: 0 calc(16 * var(--u)); }
.cr-done { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--f-tap); padding: 0 12px; font-family: var(--f-font); font-weight: 700; text-transform: uppercase; font-size: max(calc(15 * var(--u)), 13px); color: var(--f-green); }



.cr-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(calc(122 * var(--u)), 112px), 1fr)); gap: calc(10 * var(--u)); }
.cr-patch { position: relative; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: calc(10 * var(--u)) 8px calc(10 * var(--u)); border-radius: 10px; background: var(--f-panel); box-shadow: inset 0 0 0 1px var(--f-line); color: #fff; font: inherit; min-height: 48px; }
.cr-patch.have { background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(8, 18, 52, 0.6)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28); }
.cr-patch:active { transform: translateY(2px); }
.cr-patch svg { width: max(calc(84 * var(--u)), 70px); height: max(calc(84 * var(--u)), 70px); filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.4)); }
.cr-patch.locked svg { filter: grayscale(1) brightness(0.75); opacity: 0.45; }
.cr-patch b { font-family: var(--f-font); font-weight: 700; text-transform: uppercase; font-size: max(calc(14 * var(--u)), 12px); line-height: 1.1; text-align: center; min-height: 2.2em; display: flex; align-items: center; }
.cr-patch.locked b { color: var(--f-dim); }
.cr-patch .f-prog { align-self: stretch; height: 6px; margin: 0 4px; }
.cr-patch small { font-family: var(--f-font); font-weight: 600; font-size: max(calc(13 * var(--u)), 12px); color: var(--f-dim); }
.cr-x { position: absolute; top: 6px; right: 6px; min-width: 30px; padding: 1px 7px; border-radius: 4px; background: var(--f-yellow); color: var(--f-ink); font-family: var(--f-font); font-weight: 700; font-size: max(calc(15 * var(--u)), 13px); text-align: center; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }

.cr-demo { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.55fr 1fr; gap: calc(14 * var(--u)); padding-top: calc(8 * var(--u)); }
.cr-demo .box { position: relative; min-height: 0; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #bfe3fb, #e9f6ff); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35), 0 6px 18px rgba(0, 0, 0, 0.3); }
.cr-demo .box canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cr-demo .demo-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--f-font); font-weight: 600; font-size: max(calc(16 * var(--u)), 14px); color: #2a3b5c; }
.cr-demo .demo-note.wait { width: 80%; text-align: center; line-height: 1.3; }
.cr-demo .cap { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 4px; background: rgba(8, 18, 52, 0.7); color: #fff; font-family: var(--f-font); font-weight: 700; text-transform: uppercase; font-size: max(calc(13 * var(--u)), 12px); letter-spacing: 0.03em; }
.cr-demo .info { min-height: 0; overflow: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: calc(7 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)); }
.cr-demo .info::-webkit-scrollbar { display: none; }
.cr-demo .top { display: flex; align-items: center; gap: 12px; }
.cr-demo .top svg { flex: none; width: max(calc(92 * var(--u)), 72px); height: max(calc(92 * var(--u)), 72px); filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.4)); }
.cr-demo .top.locked svg { filter: grayscale(1); opacity: 0.55; }
.cr-demo .top .big { font-family: var(--f-font); font-weight: 700; font-style: italic; font-size: max(calc(40 * var(--u)), 32px); color: var(--f-yellow); line-height: 1; }
.cr-demo .top .big .cr-tag { font-style: normal; margin-top: 6px; line-height: 1.3; }
.cr-demo .top .big small { display: block; font-style: normal; font-size: max(calc(13 * var(--u)), 12px); color: var(--f-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.cr-demo .desc { margin: 0; font-family: var(--f-font); font-weight: 500; font-size: max(calc(16 * var(--u)), 14px); line-height: 1.25; }
.cr-demo .f-prog { height: 10px; }
.cr-demo .kv { display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-font); font-weight: 600; font-size: max(calc(14 * var(--u)), 12px); color: var(--f-dim); }
.cr-demo .kv b { color: #fff; font-weight: 700; }
.cr-back { min-height: var(--f-tap); }

.cr-av { position: relative; width: max(calc(52 * var(--u)), 48px); height: max(calc(52 * var(--u)), 48px); flex: none; border-radius: 50%; background: var(--rc, #7f93b5); display: grid; place-items: center; color: #fff; font-family: var(--f-font); font-weight: 700; font-size: max(calc(24 * var(--u)), 20px); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8); cursor: pointer; }
.cr-av.has-av img { border-radius: 50%; }
.cr-av.has-av.full { overflow: visible; }
.cr-av.has-av.full img { width: 100%; height: 100%; object-fit: cover; }
.cr-av.framed { box-shadow: none; }

.cr-prof { flex: 1; min-height: 0; display: grid; grid-template-columns: max(calc(270 * var(--u)), 240px) 1fr; gap: calc(14 * var(--u)); padding-top: calc(8 * var(--u)); }
.cr-hero { min-height: 0; overflow: auto; scrollbar-width: none; display: flex; flex-direction: column; border-radius: 12px; background: var(--f-panel); box-shadow: inset 0 0 0 1px var(--f-line); }
.cr-hero::-webkit-scrollbar { display: none; }
.cr-hero .bn { position: relative; flex: none; border-radius: 12px 12px 0 0; padding: calc(12 * var(--u)) calc(12 * var(--u)) calc(10 * var(--u)); }
.cr-hero .bn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(8, 18, 52, 0.05), rgba(8, 18, 52, 0.6)); pointer-events: none; }
.cr-hero .who { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.cr-ring { position: relative; flex: none; width: max(calc(80 * var(--u)), 72px); height: max(calc(80 * var(--u)), 72px); border-radius: 50%; padding: 5px; background: conic-gradient(var(--f-yellow) calc(var(--p) * 1%), rgba(255, 255, 255, 0.25) 0); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
.cr-ring::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #0b1a4a; }
.cr-ring .cr-av { width: 100%; height: 100%; font-size: max(calc(36 * var(--u)), 30px); cursor: default; }
.cr-ring .lv { position: absolute; z-index: 2; left: 50%; bottom: -7px; transform: translateX(-50%); min-width: max(calc(36 * var(--u)), 34px); padding: 0 7px; border-radius: 4px; background: var(--f-yellow); color: var(--f-ink); font-family: var(--f-font); font-weight: 700; font-size: max(calc(14 * var(--u)), 13px); line-height: 1.5; text-align: center; white-space: nowrap; }
.cr-hero .name { min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.cr-hero .name .f-title { font-size: max(calc(22 * var(--u)), 19px); max-width: 100%; padding-right: 0.15em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-hero .name .title-tag { font-family: var(--f-font); font-weight: 700; text-transform: uppercase; font-size: max(calc(13 * var(--u)), 12px); line-height: 1.1; }
.cr-hero .id { padding: 1px 7px; border-radius: 4px; background: rgba(0, 0, 0, 0.45); font-family: var(--f-font); font-weight: 700; font-size: max(calc(13 * var(--u)), 12px); }
.cr-hero .body { display: flex; flex-direction: column; gap: calc(8 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)) calc(12 * var(--u)); }
.cr-rank { display: flex; align-items: center; gap: 10px; }
.cr-rank .st { flex: none; width: max(calc(40 * var(--u)), 36px); height: max(calc(40 * var(--u)), 36px); display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--rc); color: var(--f-ink); font-family: var(--f-font); font-weight: 700; font-size: max(calc(18 * var(--u)), 15px); }
.cr-rank .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cr-rank b { font-family: var(--f-font); font-weight: 700; text-transform: uppercase; font-size: max(calc(17 * var(--u)), 15px); color: var(--rc); line-height: 1; }
.cr-rank .f-prog { height: 7px; }
.cr-rank .f-prog i { background: var(--rc); }
.cr-rank small { font-family: var(--f-font); font-weight: 600; font-size: max(calc(13 * var(--u)), 12px); color: var(--f-dim); }
.cr-status { font-family: var(--f-font); font-weight: 700; text-transform: uppercase; font-size: max(calc(13 * var(--u)), 12px); color: var(--f-dim); display: inline-flex; align-items: center; gap: 6px; }
.cr-status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.cr-status.on { color: var(--f-green); }
.cr-status.on::before { background: var(--f-green); box-shadow: 0 0 8px var(--f-green); }
.cr-field { flex: 1; min-width: 0; min-height: var(--f-tap); padding: 0 12px; border: 0; border-radius: 6px; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 2px var(--f-line); color: #fff; font-family: var(--f-font); font-weight: 600; font-size: max(calc(17 * var(--u)), 16px); outline: none; }
.cr-field:focus { box-shadow: inset 0 0 0 2px var(--f-yellow); }
.cr-field::placeholder { color: rgba(255, 255, 255, 0.5); }
.cr-lbl { font-family: var(--f-font); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: max(calc(13 * var(--u)), 12px); color: var(--f-dim); }
.cr-line { display: flex; gap: 8px; align-items: center; }
.cr-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-acts .f-btn { flex: 1 1 auto; }
.cr-nick { max-width: 460px; }
.cr-right { min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.cr-right > .f-tabs { flex: none; }

.cr-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(calc(150 * var(--u)), 136px), 1fr)); gap: calc(8 * var(--u)); }
.cr-stat { padding: calc(10 * var(--u)) calc(12 * var(--u)); min-height: max(calc(70 * var(--u)), 62px); display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.cr-stat b { font-family: var(--f-font); font-weight: 700; font-size: max(calc(24 * var(--u)), 19px); line-height: 1.05; overflow-wrap: anywhere; }
.cr-stat small { font-family: var(--f-font); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; font-size: max(calc(12 * var(--u)), 12px); color: var(--f-dim); }
.cr-stat.hi { background: linear-gradient(160deg, rgba(255, 226, 52, 0.28), rgba(8, 18, 52, 0.7)); }
.cr-stat.hi b { color: var(--f-yellow); }

.cr-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(calc(104 * var(--u)), 96px), 1fr)); gap: calc(8 * var(--u)); }
.cr-cos { position: relative; border: 0; cursor: pointer; padding: calc(10 * var(--u)) 6px calc(8 * var(--u)); min-height: max(calc(104 * var(--u)), 92px); border-radius: 10px; background: var(--r-free); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22), 0 3px 8px rgba(0, 0, 0, 0.25); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px; font: inherit; }
.cr-cos.rare { background: var(--r-rare); } .cr-cos.epic { background: var(--r-epic); } .cr-cos.legendary { background: var(--r-legendary); }
.cr-cos .pv { flex: 1; display: grid; place-items: center; width: 100%; }
.cr-cos .pv .cr-av { width: max(calc(54 * var(--u)), 48px); height: max(calc(54 * var(--u)), 48px); cursor: inherit; }
.cr-cos .sw { width: 86%; height: max(calc(44 * var(--u)), 38px); border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); }
.cr-cos .tt { font-family: var(--f-font); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: max(calc(17 * var(--u)), 15px); line-height: 1.05; text-shadow: 0 2px 3px rgba(0, 0, 0, 0.6); padding: 0 4px; }
.cr-cos .nm { font-family: var(--f-font); font-weight: 700; text-transform: uppercase; font-size: max(calc(13 * var(--u)), 12px); line-height: 1.1; text-align: center; background: rgba(0, 0, 0, 0.3); border-radius: 4px; padding: 2px 6px; max-width: 100%; }
.cr-cos.sel { box-shadow: inset 0 0 0 4px var(--f-yellow), 0 0 14px rgba(255, 226, 52, 0.5); }
.cr-cos.sel::after { content: '✓'; position: absolute; top: 4px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--f-yellow); color: var(--f-ink); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.cr-cos.locked { filter: saturate(0.35) brightness(0.78); }
.cr-cos.locked::before { content: ''; position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='10' width='16' height='12' rx='2' fill='white'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3' fill='none' stroke='white' stroke-width='2.5'/%3E%3C/svg%3E"); }

.cr-friends { flex: 1; min-height: 0; display: grid; grid-template-columns: max(calc(250 * var(--u)), 220px) 1fr; gap: calc(14 * var(--u)); padding-top: calc(8 * var(--u)); }
.cr-me { padding: calc(12 * var(--u)); display: flex; flex-direction: column; gap: calc(8 * var(--u)); }
.cr-me .idl { display: flex; align-items: baseline; gap: 10px; }
.cr-me .big { font-family: var(--f-font); font-weight: 700; font-style: italic; font-size: max(calc(30 * var(--u)), 26px); color: var(--f-yellow); line-height: 1; }
.cr-me .cr-note { margin: 0; font-size: max(calc(13 * var(--u)), 12px); }
.cr-me hr { width: 100%; border: 0; height: 1px; background: var(--f-line); margin: 2px 0; }

.cr-list { padding: 4px; display: flex; flex-direction: column; gap: 4px; }
.cr-fr { display: flex; align-items: center; gap: calc(12 * var(--u)); min-height: max(calc(68 * var(--u)), 60px); padding: 6px calc(12 * var(--u)); border-radius: 8px; background: rgba(255, 255, 255, 0.06); }
.cr-fr:nth-child(even) { background: rgba(255, 255, 255, 0.1); }
.cr-fr .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-height: 48px; justify-content: center; }
.cr-fr .t b { font-family: var(--f-font); font-weight: 700; font-size: max(calc(19 * var(--u)), 16px); line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-fr .t small { font-family: var(--f-font); font-weight: 600; font-size: max(calc(13 * var(--u)), 12px); color: var(--f-dim); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cr-fr .t small .rk { color: var(--rc); text-transform: uppercase; }
.cr-fr .a { flex: none; display: flex; gap: 8px; }
.cr-fr .f-btn { font-size: max(calc(15 * var(--u)), 14px); padding: 0 calc(14 * var(--u)); }

@media (max-aspect-ratio: 4/3) {
  .cr-demo, .cr-prof, .cr-friends { grid-template-columns: 1fr; overflow: auto; }
  .cr-demo .box { min-height: 50vw; }
}
.cr-demo .demo-note { display: flex; flex-direction: column; align-items: center; gap: 8px; text-transform: uppercase; }
.demo-load { display: block; width: max(calc(160 * var(--u)), 140px); height: 8px; border-radius: 4px; background: rgba(42, 59, 92, 0.2); overflow: hidden; }
.demo-load b { display: block; width: 40%; height: 100%; border-radius: 4px; background: var(--f-blue); animation: demoLoad 0.9s ease-in-out infinite; }
@keyframes demoLoad { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

.qs-main { gap: calc(10 * var(--u)); padding-bottom: calc(16 * var(--u)); }
.qs-card { position: relative; min-width: 0; display: grid; align-items: center; column-gap: calc(14 * var(--u)); row-gap: calc(6 * var(--u)); padding: calc(12 * var(--u)) calc(16 * var(--u)); font-family: var(--f-font); flex: none; }
.qs-card.ok { box-shadow: inset 0 0 0 2px var(--f-green); }
.qs-card.claimed { opacity: 0.62; }
.qs-txt { min-width: 0; display: flex; flex-direction: column; gap: calc(5 * var(--u)); }
.qs-head { min-width: 0; display: flex; align-items: center; gap: 8px; }
.qs-name { min-width: 0; font-weight: 700; text-transform: uppercase; font-size: max(calc(18 * var(--u)), 15px); line-height: 1.12; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-overflow: ellipsis; }
.qs-head .qs-name { flex: 0 1 auto; display: block; white-space: nowrap; text-overflow: ellipsis; padding-right: 0.1em; }
.qs-desc { min-width: 0; font-weight: 600; font-size: max(calc(14 * var(--u)), 13px); line-height: 1.2; color: var(--f-dim); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-overflow: ellipsis; }
.qs-tag { flex: none; padding: 0 8px; border-radius: 4px; background: var(--tc, rgba(255, 255, 255, 0.2)); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: max(calc(12 * var(--u)), 11px); line-height: 1.6; white-space: nowrap; }
.qs-stage { flex: none; padding: 0 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: max(calc(12 * var(--u)), 11px); line-height: 1.6; white-space: nowrap; }
.qs-rw { min-width: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; text-align: right; font-weight: 700; }
.qs-rw small { font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; font-size: max(calc(12 * var(--u)), 11px); color: var(--f-dim); white-space: nowrap; }
.qs-coins { display: inline-flex; align-items: center; gap: 6px; font-size: max(calc(19 * var(--u)), 16px); line-height: 1.1; white-space: nowrap; }
.qs-coins .coin { width: max(calc(18 * var(--u)), 16px); height: max(calc(18 * var(--u)), 16px); min-width: 0; min-height: 0; }
.qs-prize { align-self: stretch; font-size: max(calc(15 * var(--u)), 13px); line-height: 1.15; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-overflow: ellipsis; }
.qs-act { display: flex; align-items: center; justify-content: flex-end; min-width: 0; }
.qs-act .f-btn { min-height: var(--f-tap); white-space: nowrap; }
.qs-rr { width: var(--f-tap); padding: 0 !important; }
.qs-rr svg { width: 55%; height: 55%; }
.qs-done { display: inline-flex; align-items: center; justify-content: center; min-height: var(--f-tap); font-weight: 700; text-transform: uppercase; font-size: max(calc(15 * var(--u)), 13px); color: var(--f-green); white-space: nowrap; }
.qs-count { font-weight: 700; font-size: max(calc(22 * var(--u)), 18px); line-height: 1; white-space: nowrap; }
.qs-count small { color: var(--f-dim); font-size: 0.65em; }
.qs-bar { min-width: 0; display: flex; align-items: center; gap: calc(10 * var(--u)); }
.qs-bar .f-prog { flex: 1 1 auto; min-width: 0; height: max(calc(10 * var(--u)), 8px); border-radius: 5px; }
.qs-bar .f-prog i { border-radius: inherit; transition: width 0.3s; }
.qs-card.ok .f-prog i { background: var(--f-green); }
.qs-num { flex: none; min-width: 4.6em; text-align: right; font-weight: 700; font-size: max(calc(14 * var(--u)), 13px); line-height: 1; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qs-pips { flex: none; display: flex; gap: 4px; }
.qs-pips i { width: max(calc(14 * var(--u)), 12px); height: max(calc(10 * var(--u)), 8px); border-radius: 3px; background: rgba(255, 255, 255, 0.2); }
.qs-pips i.on { background: var(--f-yellow); }
.qs-pips i.cur { box-shadow: inset 0 0 0 2px var(--f-yellow); }
.qs-note { padding: 0 calc(4 * var(--u)); }

.qs-day { grid-template-columns: minmax(0, 1fr) auto max(calc(118 * var(--u)), 104px); grid-template-areas: "txt rw act" "bar bar act"; min-height: max(calc(84 * var(--u)), 76px); }
.qs-day .qs-txt { grid-area: txt; }
.qs-day .qs-rw { grid-area: rw; }
.qs-day .qs-act { grid-area: act; }
.qs-day .qs-bar { grid-area: bar; }

.qs-chain { grid-template-columns: minmax(0, 1fr) minmax(0, min(38%, calc(240 * var(--u)))); grid-template-areas: "head rw" "desc rw" "bar bar"; row-gap: calc(5 * var(--u)); }
.qs-chain .qs-head { grid-area: head; }
.qs-chain .qs-desc { grid-area: desc; align-self: start; }
.qs-chain .qs-rw { grid-area: rw; align-self: stretch; padding: calc(6 * var(--u)) calc(10 * var(--u)); border-radius: 8px; background: rgba(255, 255, 255, 0.07); }
.qs-chain .qs-rw .qs-done { min-height: 0; }
.qs-chain .qs-bar { grid-area: bar; margin-top: calc(4 * var(--u)); }
.qs-chain.claimed .qs-rw { background: none; }
.qs-card.claimed .f-prog i, .qs-card.claimed .qs-pips i.on { background: var(--f-green); }

.qs-bonus { display: flex; gap: calc(14 * var(--u)); background: linear-gradient(90deg, rgba(255, 226, 52, 0.22), rgba(8, 18, 52, 0.6) 70%); }
.qs-bonus .qs-txt { flex: 1; }
.qs-bonus .qs-act { flex: none; min-width: max(calc(118 * var(--u)), 104px); }
.qs-bonus .qs-pips { margin-top: 2px; }
.qs-bonus .qs-pips i { width: max(calc(34 * var(--u)), 28px); }
.qs-ico { flex: none; width: max(calc(52 * var(--u)), 46px); height: max(calc(52 * var(--u)), 46px); border-radius: 8px; background: var(--r-epic); display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3); font-size: max(calc(24 * var(--u)), 20px); overflow: hidden; }
.qs-ico img { width: 88%; height: 88%; object-fit: contain; }

@media (max-width: 760px) {
  .qs-card { column-gap: 10px; padding: 10px 12px; }
  .qs-day { grid-template-columns: minmax(0, 1fr) auto auto; }
  .qs-bonus .qs-act { min-width: 0; }
}
