/* Rust++ — Dota 2 profile, iOS 27 edition (loaded after apple_ios27.css / ios27_motion.css) */

#dota-results { display: flex; flex-direction: column; gap: 14px; }
.dota-tab-wrap { display: flex; flex-direction: column; gap: 14px; max-width: 1400px; margin: 0 auto; width: 100%; }

/* recent searches */
.dp-recent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.dp-recent:empty { display: none; }
.dp-recent-lbl { font-size: 11.5px; color: var(--ios-text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-right: 2px; }
.dp-recent-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--ios-border); color: var(--ios-text-1);
  font: 600 12.5px var(--ios-font); cursor: pointer; max-width: 200px;
}
.dp-recent-chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.dp-recent-chip:hover { background: rgba(255,255,255,.09); border-color: var(--ios-border-hover); }

/* header */
.dp-header {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 24px; border-radius: 28px; border: 1px solid var(--ios-border);
  background: var(--ios-surface-1); box-shadow: var(--ios-glass-edge), 0 14px 40px rgba(0,0,0,.4);
}
.dp-header-bg {
  position: absolute; inset: -40px; background-size: cover; background-position: center 30%;
  filter: blur(36px) saturate(140%); opacity: .32; transform: scale(1.1); pointer-events: none;
}
.dp-header::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,17,19,.55), rgba(17,17,19,.85)); pointer-events: none; }
.dp-header > *:not(.dp-header-bg) { position: relative; z-index: 1; }
.dp-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.dp-avatar { position: relative; flex-shrink: 0; }
.dp-avatar img { width: 84px; height: 84px; border-radius: 24px; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.12); }
.dp-avatar::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ios-text-3); border: 3px solid #141416; }
.dp-avatar.online::after { background: var(--ios-blue); }
.dp-avatar.ingame::after { background: var(--ios-green); animation: ios27Breathe 2.4s ease-in-out infinite; }
.dp-id-text { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dp-name { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--ios-text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dp-presence { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ios-text-2); }
.dp-presence i { width: 7px; height: 7px; border-radius: 50%; background: var(--ios-text-3); }
.dp-presence.online { color: #BFDBFE; } .dp-presence.online i { background: var(--ios-blue); }
.dp-presence.ingame { color: #A7F3D0; } .dp-presence.ingame i { background: var(--ios-green); animation: ios27Breathe 2.4s ease-in-out infinite; }
.dp-meta { font-size: 12px; color: var(--ios-text-3); padding-left: 8px; border-left: 1px solid var(--ios-divider); }
.dp-links { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-links a, .dp-links button {
  font: 600 11.5px var(--ios-font); color: var(--ios-text-2); text-decoration: none; cursor: pointer;
  padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--ios-border);
}
.dp-links a:hover, .dp-links button:hover { color: var(--ios-text-1); background: rgba(255,255,255,.1); }
.dp-rank { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.dp-medal { position: relative; width: 92px; height: 92px; }
.dp-medal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0,0,0,.5)); }
.dp-medal-none { width: 92px; height: 92px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.05); color: var(--ios-text-3); font-size: 32px; font-weight: 800; }
.dp-rank-name { font-size: 18px; font-weight: 800; color: var(--ios-text-1); letter-spacing: -.02em; }
.dp-rank-mmr { font-size: 13px; color: var(--ios-text-2); font-variant-numeric: tabular-nums; margin-top: 2px; }

/* KPIs */
.dp-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.dp-kpi {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 22px; min-width: 0;
  background: var(--ios-glass-fill), var(--ios-surface-1); border: 1px solid var(--ios-border); box-shadow: var(--ios-glass-edge);
}
.dp-kpi-val { font-size: 21px; font-weight: 800; letter-spacing: -.03em; color: var(--ios-text-1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dp-kpi-lbl { font-size: 11.5px; color: var(--ios-text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-ring { width: 46px; height: 46px; flex-shrink: 0; transform: rotate(-90deg); }
.dp-ring circle { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 6; }
.dp-ring .v { stroke: var(--ios-accent); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ios-curve-sheet); }
.dp-ring.pos .v { stroke: var(--ios-green); } .dp-ring.neg .v { stroke: var(--ios-red); }
.dp-risk-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; background: var(--ios-green); box-shadow: 0 0 12px var(--ios-green); }
.dp-risk-dot.orange { background: var(--ios-amber); box-shadow: 0 0 12px var(--ios-amber); }
.dp-risk-dot.red { background: var(--ios-red); box-shadow: 0 0 12px var(--ios-red); }

/* tabs */
.dp-tabs-row { display: flex; justify-content: flex-start; padding: 2px 0; }
.dp-body.dp-in { animation: ios27TabIn .45s var(--ios-curve-sheet) both; }

/* cards */
.dp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dp-span2 { grid-column: span 2; } .dp-span3 { grid-column: 1 / -1; }
.dp-card {
  background: var(--ios-glass-fill), var(--ios-surface-1); border: 1px solid var(--ios-border); border-radius: 24px;
  padding: 18px 20px; box-shadow: var(--ios-glass-edge), 0 6px 22px rgba(0,0,0,.28); min-width: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.dp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dp-card-head > span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ios-text-2); }
.dp-card-head small { font-size: 11.5px; color: var(--ios-text-3); }
.dp-muted { color: var(--ios-text-3); font-size: 13px; }
.dp-empty { align-items: flex-start; gap: 6px; }
.dp-empty b { font-size: 15px; color: var(--ios-text-1); } .dp-empty span { font-size: 13px; color: var(--ios-text-2); }
.pos { color: var(--ios-green) !important; } .neg { color: var(--ios-red) !important; }

.dp-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-radius: 18px; font-size: 13.5px; }
.dp-banner.win { background: var(--ios-green-tint); border: 1px solid rgba(52,211,153,.25); color: #A7F3D0; }
.dp-banner.loss { background: var(--ios-red-tint); border: 1px solid rgba(248,113,113,.25); color: #FECACA; }
.dp-banner span { color: var(--ios-text-2); font-size: 12.5px; }

.dp-form { display: flex; gap: 3px; }
.dp-form i { width: 10px; height: 18px; border-radius: 3px; background: var(--ios-red); opacity: .85; }
.dp-form i.w { background: var(--ios-green); }

.dp-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; display: block; }
.dp-bar > * { display: block; height: 100%; border-radius: 3px; background: var(--ios-accent); animation: ios27BarX .9s var(--ios-curve-sheet) both; transform-origin: left; }
.dp-bar > .pos { background: var(--ios-green); } .dp-bar > .neg { background: var(--ios-red); }
.dp-bar > .games { background: linear-gradient(90deg, #8B5CF6, #C4B5FD); }

/* trend chart */
.dp-trend svg { width: 100%; height: 150px; display: block; overflow: visible; }
.dp-trend .mid { stroke: rgba(255,255,255,.14); stroke-dasharray: 4 5; }
.dp-trend .area { fill: url(#dpTrendFill); }
.dp-trend .line { fill: none; stroke: var(--ios-accent); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(167,139,250,.5)); }
.dp-trend .dots circle { fill: #141416; stroke: var(--ios-accent); stroke-width: 2; vector-effect: non-scaling-stroke; cursor: default; }
.dp-trend .dots circle:hover { fill: var(--ios-accent); }
.dp-trend-legend { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--ios-text-3); margin-top: 6px; }

/* signature heroes */
.dp-sig { display: flex; flex-direction: column; gap: 10px; }
.dp-sig-row { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 12px; align-items: center; }
.dp-sig-img { width: 64px; height: 36px; border-radius: 9px; object-fit: cover; }
.dp-sig-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dp-sig-name { font-size: 13.5px; font-weight: 700; color: var(--ios-text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-sig-num { text-align: right; display: flex; flex-direction: column; }
.dp-sig-num b { font-size: 14px; } .dp-sig-num small { font-size: 11px; color: var(--ios-text-3); }

/* best / worst */
.dp-bw { display: flex; flex-direction: column; gap: 6px; }
.dp-bw-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.dp-bw-row { display: grid; grid-template-columns: 30px minmax(0,1fr) auto 52px; gap: 10px; align-items: center; font-size: 13px; }
.dp-bw-icon { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: rgba(255,255,255,.05); }
.dp-bw-name { color: var(--ios-text-1); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-bw-g { color: var(--ios-text-3); font-size: 12px; } .dp-bw-row b { text-align: right; }

/* splits */
.dp-split { display: flex; flex-direction: column; gap: 6px; }
.dp-split + .dp-split { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--ios-divider); }
.dp-split-title { font-size: 11px; font-weight: 700; color: var(--ios-text-3); text-transform: uppercase; letter-spacing: .05em; }
.dp-split-row { display: grid; grid-template-columns: 96px minmax(0,1fr) 28px 46px; gap: 10px; align-items: center; font-size: 12.5px; }
.dp-split-lbl { color: var(--ios-text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-split-g { color: var(--ios-text-3); text-align: right; font-variant-numeric: tabular-nums; }
.dp-split-row b { text-align: right; font-variant-numeric: tabular-nums; }

/* heat */
.dp-heat { display: flex; flex-direction: column; gap: 3px; }
.dp-heat-row, .dp-heat-hours { display: grid; grid-template-columns: 24px repeat(24, 1fr); gap: 3px; align-items: center; }
.dp-heat-row span { font-size: 10.5px; color: var(--ios-text-3); font-weight: 600; }
.dp-heat-row i { display: block; height: 18px; border-radius: 4px; background: rgba(167,139,250, calc(.05 + var(--v) * .95)); }
.dp-heat-hours span { font-size: 10px; color: var(--ios-text-3); font-variant-numeric: tabular-nums; }

/* roles duo */
.dp-duo { display: flex; flex-direction: column; gap: 8px; }
.dp-duo + .dp-duo { margin-top: 10px; }
.dp-duo-labels { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ios-text-2); }
.dp-duo-labels b { color: var(--ios-text-1); }
.dp-duo-bar { height: 10px; border-radius: 5px; background: rgba(96,165,250,.55); overflow: hidden; }
.dp-duo-bar div { height: 100%; background: var(--ios-accent); border-radius: 5px 0 0 5px; animation: ios27BarX .9s var(--ios-curve-sheet) both; transform-origin: left; }

/* risk */
.dp-risk { display: flex; align-items: center; gap: 14px; }
.dp-risk-ring { width: 80px; height: 80px; flex-shrink: 0; }
.dp-risk-ring circle { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 7; transform: rotate(-90deg); transform-origin: center; }
.dp-risk-ring .v { stroke: var(--ios-green); stroke-linecap: round; }
.dp-risk-ring.orange .v { stroke: var(--ios-amber); } .dp-risk-ring.red .v { stroke: var(--ios-red); }
.dp-risk-ring text { fill: var(--ios-text-1); font: 800 17px var(--ios-font); text-anchor: middle; }
.dp-risk-verdict { font-size: 13.5px; font-weight: 700; }
.dp-risk-verdict.green { color: #A7F3D0; } .dp-risk-verdict.orange { color: #FDE68A; } .dp-risk-verdict.red { color: #FECACA; }
.dp-factors { display: flex; flex-direction: column; gap: 6px; }
.dp-factor { font-size: 12.5px; color: var(--ios-text-2); padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border-left: 3px solid var(--ios-green); }
.dp-factor.medium { border-left-color: var(--ios-amber); } .dp-factor.high { border-left-color: var(--ios-red); }

.dp-aliases { display: flex; flex-wrap: wrap; gap: 8px; }
.dp-alias { display: inline-flex; flex-direction: column; padding: 7px 12px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--ios-border); font-size: 13px; font-weight: 600; color: var(--ios-text-1); }
.dp-alias small { font-size: 10.5px; font-weight: 500; color: var(--ios-text-3); }

/* toolbar & chips */
.dp-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.dp-toolbar-sum { margin-left: auto; font-size: 12.5px; color: var(--ios-text-2); }
.dp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dp-chip {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--ios-border); background: rgba(255,255,255,.04);
  color: var(--ios-text-2); font: 600 12.5px var(--ios-font); cursor: pointer;
}
.dp-chip:hover { color: var(--ios-text-1); border-color: var(--ios-border-hover); }
.dp-chip.active { background: var(--ios-accent); border-color: var(--ios-accent); color: #0B0B0E; }
.dp-chip:disabled { opacity: .6; cursor: default; }
.dp-select, .dp-input {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ios-border); background: var(--ios-surface-2);
  color: var(--ios-text-1); font: 500 13px var(--ios-font); outline: none;
}
.dp-input { min-width: 220px; }

/* matches */
.dp-matches { display: flex; flex-direction: column; gap: 6px; }
.dp-match {
  position: relative; overflow: hidden; display: grid; align-items: center; gap: 14px; width: 100%; text-align: left;
  grid-template-columns: 4px 76px minmax(0, 1.4fr) 100px 110px 70px 70px 96px 16px;
  padding: 8px 14px 8px 0; border-radius: 16px; border: 1px solid var(--ios-border-subtle);
  background: var(--ios-surface-1); color: var(--ios-text-1); font-family: var(--ios-font); cursor: pointer;
}
.dp-match:hover { background: var(--ios-surface-2); border-color: var(--ios-border); }
.dp-match-strip { align-self: stretch; margin: -8px 0; background: var(--ios-red); }
.dp-match.win .dp-match-strip { background: var(--ios-green); }
.dp-match-hero { width: 76px; height: 43px; border-radius: 10px; object-fit: cover; }
.dp-match-main, .dp-match-res, .dp-match-kda, .dp-match-farm { display: flex; flex-direction: column; min-width: 0; }
.dp-match-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-match-sub { font-size: 11.5px; color: var(--ios-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-match-sub em, .dp-pl-text em { color: var(--ios-red); font-style: normal; }
.dp-match-res b { font-size: 13px; color: var(--ios-red); } .dp-match.win .dp-match-res b { color: var(--ios-green); }
.dp-match small { font-size: 11px; color: var(--ios-text-3); }
.dp-match-kda b, .dp-match-farm b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.k { color: var(--ios-green); } .d { color: var(--ios-red); } .a { color: var(--ios-text-2); }
.dp-match-date { font-size: 12px; color: var(--ios-text-3); text-align: right; white-space: nowrap; }
.dp-match-chev { width: 16px; height: 16px; fill: none; stroke: var(--ios-text-3); stroke-width: 2; }

/* heroes */
.dp-heroes { display: flex; flex-direction: column; gap: 6px; }
.dp-hero-row {
  display: grid; grid-template-columns: 76px minmax(0,1fr) 72px 72px 110px 110px 104px; gap: 14px; align-items: center;
  padding: 8px 14px 8px 8px; border-radius: 16px; background: var(--ios-surface-1); border: 1px solid var(--ios-border-subtle);
}
.dp-hero-row:hover { background: var(--ios-surface-2); }
.dp-hero-img { width: 76px; height: 43px; border-radius: 10px; object-fit: cover; }
.dp-hero-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dp-hero-name { font-size: 14px; font-weight: 700; color: var(--ios-text-1); }
.dp-hero-stat { display: flex; flex-direction: column; text-align: right; min-width: 0; }
.dp-hero-stat b { font-size: 13.5px; color: var(--ios-text-1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dp-hero-stat small { font-size: 10.5px; color: var(--ios-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* peers */
.dp-peers { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.dp-peer {
  position: relative; display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 14px; align-items: center; text-align: left;
  padding: 14px 16px; border-radius: 22px; background: var(--ios-glass-fill), var(--ios-surface-1); border: 1px solid var(--ios-border);
  color: var(--ios-text-1); font-family: var(--ios-font); cursor: pointer; box-shadow: var(--ios-glass-edge);
}
.dp-peer:hover { border-color: var(--ios-border-hover); transform: translateY(-2px); }
.dp-peer.suspect { border-color: rgba(251,191,36,.35); }
.dp-peer img { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; }
.dp-peer-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.dp-peer-name { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-peer-sub { font-size: 12px; color: var(--ios-text-3); }
.dp-peer-wr { text-align: right; display: flex; flex-direction: column; }
.dp-peer-wr b { font-size: 17px; } .dp-peer-wr small { font-size: 11px; color: var(--ios-text-3); }
.dp-peer-tag { position: absolute; top: -8px; right: 14px; font-size: 10.5px; font-weight: 700; color: #0B0B0E; background: var(--ios-amber); padding: 2px 9px; border-radius: 999px; }

/* inventory */
.dp-inv-head { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.dp-inv-val { font-size: 34px; font-weight: 800; letter-spacing: -.04em; color: var(--ios-text-1); }
.dp-rars { display: flex; flex-wrap: wrap; gap: 8px; }
.dp-rar { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--ios-border); color: var(--ios-text-2); }
.dp-rar b { color: var(--ios-text-1); }
.dp-rar.arcana { color: #ADE55C; } .dp-rar.immortal { color: #E4AE39; } .dp-rar.mythical { color: #D32CE6; } .dp-rar.rare { color: #6D8BFF; }
.dp-skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 14px; }
.dp-skin {
  border-radius: 20px; overflow: hidden; background: var(--ios-surface-1); border: 1px solid var(--ios-border);
  box-shadow: inset 0 -2px 0 var(--rc), var(--ios-glass-edge); padding-bottom: 12px; transition: transform .3s var(--ios-curve-snappy);
}
.dp-skin:hover { transform: translateY(-3px); }
.dp-skin-img { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--rc) 28%, transparent), transparent 70%); }
.dp-skin-img img { max-width: 80%; max-height: 80%; object-fit: contain; }
.dp-skin-name { font-size: 13px; font-weight: 700; color: var(--ios-text-1); padding: 8px 12px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-skin-sub { display: flex; justify-content: space-between; padding: 0 12px; font-size: 11.5px; color: var(--rc); }
.dp-skin-sub b { color: var(--ios-text-1); }

/* match sheet */
.dp-sheet-backdrop {
  position: fixed; inset: 0; z-index: 400; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,0); backdrop-filter: blur(0); pointer-events: none;
  transition: background .4s var(--ios-curve-sheet), backdrop-filter .4s var(--ios-curve-sheet);
}
.dp-sheet-backdrop.open { background: rgba(0,0,0,.5); backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%); pointer-events: auto; }
.dp-sheet {
  position: relative; width: min(1180px, 100%); max-height: 92dvh; overflow-y: auto; padding: 10px 26px 26px;
  border-radius: 30px 30px 0 0; background: var(--ios-glass-fill), rgba(20,20,24,.92);
  border: 1px solid rgba(255,255,255,.08); border-bottom: none; box-shadow: var(--ios-glass-edge), 0 -20px 60px rgba(0,0,0,.6);
  transform: translateY(105%); transition: transform .55s var(--ios-curve-sheet);
}
.dp-sheet-backdrop.open .dp-sheet { transform: none; }
.dp-sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.22); margin: 0 auto 14px; }
.dp-sheet-close {
  position: absolute; top: 16px; right: 18px; width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
}
.dp-sheet-close svg { width: 14px; height: 14px; stroke: var(--ios-text-1); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.dp-ms-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 50px 16px 0; }
.dp-ms-title { font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--ios-text-1); }
.dp-ms-head.win .dp-ms-title { color: var(--ios-green); } .dp-ms-head.loss .dp-ms-title { color: var(--ios-red); }
.dp-ms-sub { font-size: 13px; color: var(--ios-text-2); margin-top: 2px; }
.dp-ms-score { display: flex; align-items: center; gap: 10px; font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dp-ms-score .rad { color: var(--ios-green); } .dp-ms-score .dire { color: var(--ios-red); } .dp-ms-score i { color: var(--ios-text-3); font-style: normal; }
.dp-ms-unparsed { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.04); font-size: 13px; color: var(--ios-text-2); margin-bottom: 14px; }

.dp-adv { padding: 14px 16px; border-radius: 20px; background: rgba(255,255,255,.03); border: 1px solid var(--ios-border-subtle); margin-bottom: 16px; }
.dp-adv svg { width: 100%; height: 170px; display: block; }
.dp-adv .zero { stroke: rgba(255,255,255,.2); }
.dp-adv .ticks line { stroke: rgba(255,255,255,.05); }
.dp-adv .ticks text { fill: var(--ios-text-3); font: 10px var(--ios-font); text-anchor: middle; }
.dp-adv .gold-area.rad { fill: rgba(52,211,153,.22); } .dp-adv .gold-area.dire { fill: rgba(248,113,113,.22); }
.dp-adv .gold-line { fill: none; stroke: #FBBF24; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.dp-adv .xp-line { fill: none; stroke: #60A5FA; stroke-width: 1.6; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; opacity: .85; }
.dp-adv-legend { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--ios-text-2); margin-bottom: 6px; }
.dp-adv-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.dp-adv-legend i.gold { background: #FBBF24; } .dp-adv-legend i.xp { background: #60A5FA; }
.dp-adv-end { margin-left: auto; color: var(--ios-text-1); font-weight: 600; }
.dp-adv-sides { display: flex; justify-content: space-between; font-size: 11px; margin-top: 4px; }
.dp-adv-sides .rad { color: var(--ios-green); } .dp-adv-sides .dire { color: var(--ios-red); }

.dp-team { margin-bottom: 16px; border-radius: 20px; overflow: hidden; border: 1px solid var(--ios-border-subtle); }
.dp-team-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; font-size: 13px; font-weight: 800; }
.dp-team-head.rad { background: rgba(52,211,153,.1); color: #A7F3D0; } .dp-team-head.dire { background: rgba(248,113,113,.1); color: #FECACA; }
.dp-team-head b { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.12); color: var(--ios-text-1); }
.dp-team-cols, .dp-pl {
  display: grid; grid-template-columns: minmax(0, 2.2fr) 100px 80px 96px 96px 64px minmax(0, 2.4fr); gap: 10px; align-items: center; padding: 0 16px;
}
.dp-team-cols { font-size: 10.5px; font-weight: 700; color: var(--ios-text-3); text-transform: uppercase; letter-spacing: .04em; padding-top: 8px; padding-bottom: 6px; }
.dp-pl { padding-top: 7px; padding-bottom: 7px; border-top: 1px solid var(--ios-divider); font-size: 12.5px; color: var(--ios-text-2); font-variant-numeric: tabular-nums; }
.dp-pl.focus { background: rgba(167,139,250,.1); box-shadow: inset 3px 0 0 var(--ios-accent); }
.dp-pl-id { display: flex; align-items: center; gap: 10px; min-width: 0; position: relative; }
.dp-pl-hero { width: 58px; height: 33px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.dp-pl-lvl { position: absolute; left: 40px; bottom: -3px; min-width: 18px; height: 16px; padding: 0 4px; border-radius: 8px; background: #0B0B0E; border: 1px solid var(--ios-border); font-size: 10px; font-weight: 700; color: var(--ios-text-1); display: flex; align-items: center; justify-content: center; }
.dp-pl-text { display: flex; flex-direction: column; min-width: 0; }
.dp-pl-text a { color: var(--ios-text-1); font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-pl-text a:hover { color: var(--ios-accent); }
.dp-pl-text small { font-size: 11px; color: var(--ios-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-pl-kda { font-weight: 700; }
.dp-pl-nw { display: flex; flex-direction: column; gap: 4px; }
.dp-pl-nw b { color: #FDE68A; } .dp-pl-nw i { height: 3px; border-radius: 2px; background: #FBBF24; opacity: .7; }
.dp-pl-items { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.dp-item { width: 36px; height: 26px; border-radius: 5px; background: rgba(255,255,255,.05); overflow: hidden; flex-shrink: 0; }
.dp-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-item.neutral { width: 26px; border-radius: 50%; margin-left: 4px; }
.dp-buff { width: 18px; height: 18px; border-radius: 50%; font-size: 9.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; background: rgba(96,165,250,.25); color: #BFDBFE; }
.dp-ms-links { display: flex; gap: 8px; justify-content: flex-end; }
.dp-ms-links a { font-size: 12.5px; font-weight: 600; color: var(--ios-text-2); text-decoration: none; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); }
.dp-ms-links a:hover { color: var(--ios-text-1); }

/* responsive */
@media (max-width: 1280px) {
  .dp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dp-match { grid-template-columns: 4px 64px minmax(0,1fr) 92px 100px 64px 84px 16px; }
  .dp-match .dp-match-farm:nth-of-type(2) { display: none; }
  .dp-hero-row { grid-template-columns: 64px minmax(0,1fr) 64px 64px 100px; }
  .dp-hero-row .dp-hero-stat.wide { display: none; }
  .dp-team-cols, .dp-pl { grid-template-columns: minmax(0, 2fr) 90px 70px 80px 64px minmax(0, 2.2fr); }
  .dp-team-cols span:nth-child(5), .dp-pl > span:nth-child(5) { display: none; }
}
@media (max-width: 980px) {
  .dp-grid { grid-template-columns: 1fr; }
  .dp-span2, .dp-span3 { grid-column: auto; }
  .dp-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .dp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-tabs { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .dp-name { font-size: 21px; }
  .dp-avatar img { width: 64px; height: 64px; border-radius: 18px; }
  .dp-medal, .dp-medal-none { width: 64px; height: 64px; }
  .dp-match { grid-template-columns: 4px 56px minmax(0,1fr) auto 16px; padding-right: 10px; }
  .dp-match-hero { width: 56px; height: 32px; }
  .dp-match .dp-match-farm, .dp-match .dp-match-date, .dp-match .dp-match-res small { display: none; }
  .dp-match-res { display: none; }
  .dp-hero-row { grid-template-columns: 56px minmax(0,1fr) 56px 56px; }
  .dp-hero-row .dp-hero-stat:last-child { display: none; }
  .dp-hero-img { width: 56px; height: 32px; }
  .dp-input { min-width: 0; flex: 1; }
  .dp-sheet { padding: 8px 12px 20px; }
  .dp-team-cols { display: none; }
  .dp-pl { grid-template-columns: minmax(0,1fr) auto; row-gap: 6px; }
  .dp-pl > span:nth-child(3), .dp-pl > span:nth-child(4), .dp-pl > span:nth-child(5), .dp-pl > span:nth-child(6) { display: none; }
  .dp-pl-items { grid-column: 1 / -1; }
  .dp-ms-title { font-size: 22px; } .dp-ms-score { font-size: 26px; }
}
