@font-face {
  font-family: "Lilita"; font-display: swap;
  src: url(vendor/lilita-one.woff2) format("woff2");
}

:root {
  --ink: #12102a; --night: #2b1a6b; --night2: #1d1150;
  --yellow: #ffd400; --yellow2: #ffb800; --blue: #1fa7ff; --blue2: #0b6fe0;
  --purple: #8a3ffc; --pink: #ff4fa3; --green: #3ee07a; --white: #fff;
  --paper: #fbf7ff; --soft: #6b6390;
  --line: 3px solid var(--ink);
  --pop: 0 5px 0 var(--ink);
  --chunk: "Lilita", "Arial Black", Impact, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font: 600 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, #4b2bb3 0, transparent 45%),
    radial-gradient(circle at 100% 30%, #1b5fd0 0, transparent 40%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 18px, transparent 18px 36px),
    var(--night);
  background-attachment: fixed;
}
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* header */
.top { text-align: center; padding: 28px 16px 8px; color: var(--white); }
.logo {
  margin: 0; font: 400 clamp(40px, 9vw, 68px)/1 var(--chunk); letter-spacing: .01em;
  color: var(--yellow); transform: rotate(-2deg);
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink);
}
.logo span { color: var(--white); margin-left: .15em; }
.tagline { margin: 10px 0 0; opacity: .85; }

/* layout */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 24px; align-items: start;
  width: min(1240px, 100%); margin: 0 auto; padding: 20px 16px 40px;
}
.preview { position: sticky; top: 16px; min-width: 0; display: grid; gap: 8px; justify-items: center; }
@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; }
}

/* form panels */
.form { display: grid; gap: 18px; min-width: 0; }
.panel {
  background: var(--paper); border: var(--line); border-radius: 20px; padding: 18px;
  box-shadow: var(--pop); min-width: 0;
}
.panel h2 {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 14px;
  font: 400 24px/1.1 var(--chunk); letter-spacing: .01em;
}
.panel h2 i {
  display: grid; place-items: center; width: 34px; height: 34px; border: var(--line); border-radius: 10px;
  background: var(--yellow); font-style: normal; font-size: 20px; transform: rotate(-6deg); box-shadow: 0 3px 0 var(--ink);
}
.panel h2 em, .field em { font: 600 13px system-ui, sans-serif; font-style: normal; color: var(--soft); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field > span, .field > label { font-weight: 800; font-size: 14px; }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }

input[type="text"], input:not([type]), input[type="search"], input[type="number"] {
  width: 100%; min-width: 0; min-height: 46px; padding: 8px 14px; border: var(--line); border-radius: 12px;
  background: #fff; font-weight: 700; font-size: 16px;
}
.stepper { display: flex; }
.stepper input { border-radius: 0; text-align: center; border-left: 0; border-right: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper button {
  flex: none; width: 46px; border: var(--line); background: var(--blue); color: var(--white);
  font: 400 24px/1 var(--chunk); cursor: pointer;
}
.stepper button:first-child { border-radius: 12px 0 0 12px; }
.stepper button:last-child { border-radius: 0 12px 12px 0; }

/* chips (toggle buttons) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.small { margin-top: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px;
  border: var(--line); border-radius: 12px; background: #fff; box-shadow: 0 3px 0 var(--ink);
  font: 400 16px/1 var(--chunk); letter-spacing: .02em; cursor: pointer;
  transition: transform .08s, box-shadow .08s, background .12s;
}
.chips.small .chip { min-height: 34px; padding: 4px 11px; font-size: 14px; }
.chip:hover:not(:disabled) { transform: translateY(-1px); }
.chip:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.chip[aria-pressed="true"] { background: var(--yellow); }
.chip:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.chip .dot { width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; background: var(--c, #ccc); }

/* brawler picker */
.picked { display: flex; flex-wrap: wrap; gap: 10px; min-height: 0; margin-bottom: 12px; }
.picked:empty::before { content: "No mains yet — tap brawlers below."; color: var(--soft); }
.pick {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px;
  border: var(--line); border-radius: 14px; background: #fff; box-shadow: 0 3px 0 var(--ink);
}
.pick.main { background: var(--yellow); }
.pick .pic { width: 40px; height: 40px; border-radius: 9px; font-size: 15px; }
.pick b { font: 400 15px var(--chunk); }
.pick button {
  display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 16px; line-height: 1;
}
.pick.main .star { background: var(--ink); color: var(--yellow); }
.search { margin-bottom: 12px; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px;
  max-height: 430px; overflow: auto; padding: 4px 4px 8px; overscroll-behavior: contain;
}
.status { grid-column: 1 / -1; margin: 12px 0; color: var(--soft); }
.status button { margin-left: 6px; }
.bra {
  position: relative; display: grid; gap: 4px; justify-items: center; padding: 6px 4px;
  border: var(--line); border-radius: 14px; background: #fff; cursor: pointer; box-shadow: 0 3px 0 var(--ink);
  font: 400 12px/1.1 var(--chunk); letter-spacing: .02em; text-align: center; transition: transform .08s;
}
.bra .pic { width: 100%; aspect-ratio: 1; border-radius: 9px; font-size: 22px; }
.bra span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bra:hover:not(:disabled) { transform: translateY(-2px) rotate(-2deg); }
.bra[aria-pressed="true"] { background: var(--yellow); }
.bra[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: -8px; right: -8px; display: grid; place-items: center;
  width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 50%; background: var(--green); font-size: 13px;
}
.bra:disabled { opacity: .6; filter: grayscale(.7); cursor: not-allowed; box-shadow: none; }

/* images + placeholders */
.pic { display: block; object-fit: contain; background: #e7e1f7; }
.pic.ph {
  display: grid; place-items: center; overflow: hidden; color: var(--white);
  background: var(--bg, var(--purple)); font: 400 1em/1 var(--chunk);
  -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill;
}

/* skills */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px 22px; }
.skill { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.skill > span { font-weight: 800; }
.stars { display: flex; gap: 2px; }
.stars button {
  width: 34px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 28px; line-height: 1; color: #d8d2ea; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
}
.stars button.on { color: var(--yellow); }

/* modes */
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.mode {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 5px 10px 5px 5px; text-align: left;
  border: var(--line); border-radius: 12px; background: #fff; box-shadow: 0 3px 0 var(--ink); cursor: pointer;
  font: 400 15px/1.05 var(--chunk); letter-spacing: .02em;
}
.mode .pic { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--mc, var(--blue)); }
.mode .ph { font-size: 13px; }
.mode[aria-pressed="true"] { background: var(--yellow); }
.mode small { display: block; font: 700 11px system-ui, sans-serif; color: var(--soft); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 20px;
  border: var(--line); border-radius: 14px; box-shadow: var(--pop); background: #fff; cursor: pointer;
  font: 400 19px/1 var(--chunk); letter-spacing: .03em; text-decoration: none; color: var(--ink);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ink); }
.btn.yellow { background: var(--yellow); }
.btn.blue { background: var(--blue); color: var(--white); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--white); box-shadow: none; font-size: 16px; min-height: 42px; }
.btn:disabled { opacity: .6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.toast { min-height: 1.4em; margin: 0; color: var(--yellow); font-weight: 800; text-align: center; }
.jump { display: none; }
@media (max-width: 980px) {
  .jump { display: inline-flex; position: fixed; right: 14px; bottom: 14px; z-index: 5; min-height: 46px; font-size: 17px; }
  .jump.away { opacity: 0; pointer-events: none; }
}

/* ================= the card ================= */
.card-wrap { width: 100%; display: grid; justify-items: center; padding: 6px 0 10px; }
.card {
  --tier: var(--yellow);
  position: relative; width: 100%; max-width: 440px; overflow: hidden;
  border: 4px solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--ink);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 14px, transparent 14px 28px),
    linear-gradient(170deg, #3a7bff 0%, #6a35e8 55%, #3a1693 100%);
  color: var(--white); transform: rotate(-1.2deg);
}
.card.exporting { transform: none; }
.c-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 10px; }
.c-rank { flex: none; width: 74px; height: 74px; display: grid; place-items: center; overflow: visible; }
.c-rank img { display: block; width: 74px; height: 74px; object-fit: contain; filter: drop-shadow(0 3px 0 var(--ink)); }
.badge {
  position: relative; width: 66px; height: 70px; display: grid; place-items: center;
  background: var(--tier); border: 3px solid var(--ink);
  clip-path: polygon(50% 0, 100% 22%, 100% 74%, 50% 100%, 0 74%, 0 22%);
  font: 400 24px/1 var(--chunk); color: var(--white); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
}
.badge::before {
  content: ""; position: absolute; inset: 3px; z-index: -1;
  clip-path: polygon(50% 0, 100% 22%, 100% 74%, 50% 100%, 0 74%, 0 22%); background: var(--ink);
}
.c-who { min-width: 0; flex: 1; }
.c-name {
  margin: 0; font: 400 34px/1 var(--chunk); letter-spacing: .01em; overflow-wrap: anywhere;
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink);
}
.c-tag { margin-top: 2px; font: 700 13px ui-monospace, monospace; opacity: .85; }
.c-rankname {
  display: inline-block; margin-top: 6px; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 8px;
  background: var(--tier); color: var(--ink); font: 400 14px/1.1 var(--chunk); letter-spacing: .03em;
  box-shadow: 0 2px 0 var(--ink);
}
.c-trophies { display: flex; gap: 8px; padding: 0 16px; }
.c-trophies div {
  flex: 1; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 3px solid var(--ink); border-radius: 12px;
  background: rgba(18,16,42,.55);
}
.c-trophies svg { width: 24px; height: 24px; flex: none; }
.c-trophies b { display: block; font: 400 20px/1 var(--chunk); }
.c-trophies small { display: block; font-size: 10.5px; font-weight: 800; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }

.c-hero {
  position: relative; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: center;
  margin: 14px 16px 0; padding: 12px; border: 3px solid var(--ink); border-radius: 18px;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.55), transparent 60%), var(--rc, var(--yellow));
  box-shadow: 0 4px 0 var(--ink); color: var(--ink);
}
.c-frame { width: 100%; aspect-ratio: 1; overflow: hidden; border: 3px solid var(--ink); border-radius: 18px;
  background: var(--ink); box-shadow: 0 4px 0 var(--ink); transform: rotate(-4deg); }
.c-frame .pic { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.c-frame .ph { font-size: 56px; }
.c-hero .empty { font: 400 18px/1.2 var(--chunk); }
.c-main small { display: inline-block; padding: 2px 8px; border: 2px solid var(--ink); border-radius: 7px; background: var(--ink);
  color: var(--yellow); font: 400 13px/1.1 var(--chunk); letter-spacing: .06em; transform: rotate(-3deg); }
.c-main h3 { margin: 6px 0 2px; font: 400 30px/1 var(--chunk); color: var(--white); overflow-wrap: anywhere;
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.c-main p { margin: 0; font-weight: 800; font-size: 13px; }
.c-ovr { position: absolute; top: -12px; right: -10px; display: grid; place-items: center; width: 64px; height: 64px;
  border: 3px solid var(--ink); border-radius: 50%; background: var(--pink); transform: rotate(10deg); box-shadow: 0 3px 0 var(--ink);
  color: var(--white); text-align: center; }
.c-ovr b { font: 400 24px/1 var(--chunk); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.c-ovr small { display: block; font: 400 10px/1 var(--chunk); letter-spacing: .1em; color: var(--ink); }

.c-label { margin: 14px 16px 6px; font: 400 14px/1 var(--chunk); letter-spacing: .1em; color: var(--yellow);
  -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.c-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; }
.c-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 9px;
  background: var(--paper); color: var(--ink); font: 400 14px/1.1 var(--chunk); letter-spacing: .03em; box-shadow: 0 2px 0 var(--ink); }
.c-chip.cls { background: var(--c, var(--yellow)); }
.c-chip:nth-child(2n) { transform: rotate(2deg); } .c-chip:nth-child(2n+1) { transform: rotate(-2deg); }
.c-chip.tag { background: var(--pink); color: var(--white); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }

.c-skills { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 6px 10px; align-items: center; margin: 0 16px;
  padding: 8px 10px; border: 3px solid var(--ink); border-radius: 16px; background: rgba(18,16,42,.55); }
.c-skills svg { width: 160px; height: 150px; display: block; }
.c-bars { display: grid; gap: 4px; }
.c-bar { display: grid; grid-template-columns: minmax(0, 1fr) 64px; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; }
.c-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-bar i { display: flex; gap: 2px; }
.c-bar i b { flex: 1; height: 9px; border: 1.5px solid var(--ink); border-radius: 3px; background: rgba(255,255,255,.2); }
.c-bar i b.on { background: var(--yellow); }

.c-modes { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.c-mode { display: grid; justify-items: center; gap: 3px; width: 62px; text-align: center; font: 400 10.5px/1.05 var(--chunk); letter-spacing: .02em; }
.c-mode .pic { width: 44px; height: 44px; border: 3px solid var(--ink); border-radius: 12px; background: var(--mc, var(--blue));
  box-shadow: 0 2px 0 var(--ink); padding: 3px; }
.c-mode .ph { font-size: 14px; padding: 0; }

.c-others { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.c-other { display: grid; justify-items: center; gap: 3px; width: 72px; font: 400 11px/1.05 var(--chunk); text-align: center; }
.c-other .pic { width: 64px; height: 64px; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); }
.c-other .ph { font-size: 22px; }
.c-other:nth-child(odd) { transform: rotate(-3deg); } .c-other:nth-child(even) { transform: rotate(3deg); }

.c-none { padding: 0 16px; font-size: 12px; opacity: .7; }
.c-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 8px 16px;
  background: var(--ink); font-size: 10px; font-weight: 700; color: rgba(255,255,255,.75); }
.c-foot b { font: 400 13px/1 var(--chunk); color: var(--yellow); letter-spacing: .04em; }

@media (max-width: 480px) {
  .card { transform: none; }
  .c-hero { grid-template-columns: 120px minmax(0, 1fr); }
  .c-frame .ph { font-size: 40px; }
  .c-skills { grid-template-columns: 118px minmax(0, 1fr); gap: 6px; padding: 6px 8px; }
  .c-skills svg { width: 118px; height: 112px; }
  .c-bar { grid-template-columns: minmax(0, 1fr) 52px; font-size: 10px; gap: 4px; }
  .c-bar i b { height: 8px; }
  .c-tile b { font-size: 18px; }
  .c-name { font-size: 28px; }
}

/* ================= live stats ================= */
.taglook { display: flex; gap: 8px; }
.taglook input { flex: 1; }
.btn.small { min-height: 46px; padding: 8px 14px; font-size: 16px; box-shadow: 0 3px 0 var(--ink); }
.lookmsg { grid-column: 1 / -1; display: block; margin: -4px 0 0; font-size: 13px; line-height: 1.4; color: var(--soft); }
.muted { color: var(--soft); }
.small { font-size: 12.5px; }

.report p { margin: 0; }
.report { display: grid; gap: 10px; border-color: var(--ink); background: linear-gradient(180deg, #fff8d6, var(--paper) 140px); }
.report h2 { margin-bottom: 4px; }
.report h2 i { background: var(--pink); color: var(--white); }
.r-sub { margin: 8px 0 -2px; font: 400 18px/1.1 var(--chunk); letter-spacing: .02em; }
.r-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; }
.r-name { display: block; font: 400 26px/1.05 var(--chunk); overflow-wrap: anywhere; }
.r-tag { font: 700 13px ui-monospace, monospace; color: var(--soft); margin-right: 10px; }
.r-club { font-size: 13px; color: var(--soft); }
.r-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.r-pill { padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font: 400 13px/1.2 var(--chunk); letter-spacing: .02em; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.stat { display: grid; gap: 2px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: 0 2px 0 var(--ink); min-width: 0; }
.stat b { font: 400 21px/1 var(--chunk); overflow-wrap: anywhere; }
.stat span { font-size: 11.5px; font-weight: 700; color: var(--soft); line-height: 1.2; }
.form-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.form-dots i, .c-form i { width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 4px; background: #c9c3dc; }
.form-dots i.W, .c-form i.W { background: var(--green); }
.form-dots i.L, .c-form i.L { background: #ff5a5a; }
.r-table { display: grid; gap: 6px; }
.r-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 46px minmax(40px, 90px) 40px 62px; gap: 8px; align-items: center;
  padding: 4px 8px 4px 4px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font-size: 13.5px; }
.r-row.cls { grid-template-columns: 18px minmax(0, 1fr) minmax(60px, 2fr) 56px; padding-left: 10px; }
.r-label { font: 400 15px/1.1 var(--chunk); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-num { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.r-num.dim { color: var(--soft); font-weight: 700; font-size: 12px; }
.r-row .dot { width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; background: var(--c); }
.wr { display: block; height: 10px; border: 2px solid var(--ink); border-radius: 99px; background: linear-gradient(90deg, var(--yellow) var(--v), #eee8f8 var(--v)); }
.pic.r-ico { width: 30px; height: 30px; border-radius: 7px; font-size: 12px; }
.pic.r-ico.big { width: 54px; height: 54px; border-radius: 12px; border: 2px solid var(--ink); font-size: 18px; }
.r-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.r-top { display: grid; justify-items: center; gap: 2px; width: 74px; text-align: center; font-size: 11.5px; }
.r-top b { font: 400 13px/1.05 var(--chunk); }
.s-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.s-row > div { display: grid; min-width: 0; }
.s-row b { font: 400 16px/1.1 var(--chunk); }
.s-skills { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.s-skills li { display: grid; grid-template-columns: 160px 80px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 13.5px; }
.s-val { color: var(--yellow2); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; letter-spacing: 1px; }
.report .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn.ghost.dark { color: var(--ink); border-color: var(--ink); }
@media (max-width: 560px) {
  .r-row { grid-template-columns: 30px minmax(0, 1fr) 40px 40px; }
  .r-row .wr, .r-row .r-num.dim { display: none; }
  .r-row.cls { grid-template-columns: 18px minmax(0, 1fr) minmax(50px, 1fr) 50px; }
  .r-row.cls .wr { display: block; }
  .s-skills li { grid-template-columns: 1fr auto; }
  .s-skills li .small { grid-column: 1 / -1; margin-top: -4px; }
  .taglook { flex-wrap: wrap; }
  .taglook .btn { flex: 1; }
}

/* coach's notes */
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .notes { grid-template-columns: 1fr; } }
.notes h4 { margin: 0 0 6px; font: 400 16px/1 var(--chunk); letter-spacing: .03em; }
.notes h4.good { color: #148a45; } .notes h4.work { color: #c2410c; }
.notes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.note { padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: 0 2px 0 var(--ink); border-left-width: 8px; }
.note.good { border-left-color: var(--green); } .note.work { border-left-color: var(--tang, #ff9a3c); }
.note b { font: 400 16px/1.15 var(--chunk); }
.note p { margin: 4px 0 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.note .tip { color: var(--soft); }
.note .tip span { color: var(--ink); font-weight: 800; }
.c-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 16px 0; }
.c-note { display: grid; gap: 2px; padding: 6px 10px; border: 3px solid var(--ink); border-radius: 12px; color: var(--ink); min-width: 0; }
.c-note:only-child { grid-column: 1 / -1; }
.c-note.good { background: var(--green); } .c-note.work { background: #ffb15c; }
.c-note small { font: 800 9.5px/1 system-ui, sans-serif; letter-spacing: .08em; }
.c-note b { font: 400 15px/1.1 var(--chunk); overflow-wrap: anywhere; }

/* the card's scouting block */
.c-label .c-peak { float: right; padding: 1px 8px; border: 2px solid var(--ink); border-radius: 7px; background: var(--yellow);
  color: var(--ink); font-size: 11px; letter-spacing: .04em; -webkit-text-stroke: 0; }
.c-form { display: flex; align-items: center; gap: 10px; padding: 0 16px 8px; }
.c-dots { flex: 1; min-width: 0; display: flex; gap: 2px; }
.c-dots i { flex: 0 1 11px; min-width: 4px; height: 11px; border-width: 1.5px; border-radius: 3px; }
.c-form span { flex: none; font: 400 12px/1 var(--chunk); letter-spacing: .04em; }
.c-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 16px; }
.c-tile { display: grid; gap: 2px; padding: 7px 8px; border: 3px solid var(--ink); border-radius: 12px; background: rgba(18,16,42,.55); min-width: 0; }
.c-tile b { font: 400 20px/1 var(--chunk); color: var(--yellow); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.c-tile small { font: 800 9.5px/1.15 system-ui, sans-serif; letter-spacing: .04em; opacity: .85; overflow-wrap: anywhere; }

.foot { width: min(1240px, 100%); margin: 0 auto; padding: 10px 16px 80px; text-align: center; color: rgba(255,255,255,.75); font-size: 13px; }
.foot p { margin: 4px 0; }
.foot a { color: var(--yellow); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* the report's fold */
.more { border: 2px dashed var(--ink); border-radius: 14px; padding: 4px 12px; background: rgba(255,255,255,.6); }
.more[open] { padding-bottom: 12px; }
.more summary { cursor: pointer; padding: 8px 0; font: 400 18px/1.1 var(--chunk); letter-spacing: .02em; list-style-position: inside; }
.more summary span { font-family: system-ui, sans-serif; letter-spacing: 0; }
.more-body { display: grid; gap: 10px; }

/* the save sheet on phones */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(18,16,42,.72); backdrop-filter: blur(3px); }
.sheet-box { display: grid; gap: 12px; justify-items: center; width: min(420px, 100%); max-height: calc(100dvh - 32px); padding: 16px;
  border: var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--pop); }
.sheet-title { font: 400 24px/1 var(--chunk); }
.sheet-img { display: block; max-width: 100%; max-height: calc(100dvh - 230px); object-fit: contain; border-radius: 14px;
  -webkit-touch-callout: default; user-select: auto; }
.sheet-hint { margin: 0; font-size: 13px; color: var(--soft); text-align: center; }
.sheet-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.report h2 .dash-link { margin-left: auto; min-height: 38px; font-size: 15px; text-decoration: none; }

/* strengths and weaknesses */
.study { display: grid; gap: 12px; }
.study-sum { margin: 0; font-size: 13px; color: var(--soft); }
.study-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 760px) { .study-cols { grid-template-columns: 1fr; } }
.study-col h4 { margin: 0 0 8px; font: 400 18px/1 var(--chunk); letter-spacing: .02em; }
.study-col h4.good { color: #148a45; } .study-col h4.work { color: #c2410c; }
.findings { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.finding { padding: 12px 14px; border: 2px solid var(--ink); border-left-width: 8px; border-radius: 12px; background: #fff; box-shadow: 0 2px 0 var(--ink); }
.finding.good { border-left-color: #0ca30c; } .finding.bad { border-left-color: #eb6834; }
.finding-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.finding-kind { font: 800 11px/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.grade { padding: 3px 8px; border: 2px solid var(--ink); border-radius: 999px; font: 800 11px/1 system-ui, sans-serif; white-space: nowrap; }
.grade.strong { background: var(--ink); color: #fff; } .grade.likely { background: #fff; color: var(--ink); }
.finding-area { margin: 6px 0 2px; font: 400 20px/1.1 var(--chunk); }
.finding-head { margin: 0; font-weight: 800; font-size: 14.5px; }
.finding-ev { margin: 4px 0 0; font-size: 13.5px; line-height: 1.4; }
.finding-tip { margin: 6px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--soft); }
.finding-tip b { color: var(--ink); }
.finding-meta { margin: 6px 0 0; font: 700 11.5px ui-monospace, monospace; color: #8f88ab; }
.study-watch { border: 2px dashed #cfc8e3; border-radius: 12px; padding: 6px 12px; }
.study-watch summary { cursor: pointer; font: 400 15px/1.3 var(--chunk); }
.study-watch ul { margin: 6px 0 4px; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; }
.hbars.ci .hbar { grid-template-columns: minmax(90px, 170px) minmax(0, 1fr) auto; }
.ci-track { position: relative; height: 14px; border-radius: 99px; background: #eee9f7; }
.ci-whisker { position: absolute; top: 5px; height: 4px; border-radius: 2px; opacity: .55; }
.ci-dot { position: absolute; top: 1px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid #fbf7ff; }
.method-card { display: block; }
.method-sum { cursor: pointer; font: 400 19px/1.2 var(--chunk); }
.method { margin-top: 10px; font-size: 14px; line-height: 1.5; }
.method ol { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 8px; }
.method a { color: #2457b3; font-weight: 700; }
@media (max-width: 520px) { .hbars.ci .hbar { grid-template-columns: minmax(0, 1fr) auto; } .hbars.ci .ci-track { grid-column: 1 / -1; grid-row: 2; } }
.more-findings { margin-top: 10px; } .more-findings summary { cursor: pointer; font-weight: 800; font-size: 13.5px; margin-bottom: 8px; }
