#profile-v2-root,
#profile-v2-root * {
  box-sizing: border-box;
}

#profile-v2-root[hidden] {
  display: none !important;
}

#profile-v2-root {
  --profile-v2-cyan: #20caf3;
  --profile-v2-cyan-bright: #48d6f5;
  --profile-v2-purple: #a578ff;
  --profile-v2-green: #2adfa3;
  --profile-v2-red: #ff5364;
  --profile-v2-muted: rgba(198, 211, 224, .64);
  --profile-v2-summary-number-size: clamp(15px, 2.4vw, 24px);
  --profile-v2-frame-width: 96vw;
  --profile-v2-frame-height: 92vh;
  --profile-v2-header-height: clamp(30px, 5.6vh, 38px);
  position: fixed;
  inset: 0;
  z-index: 356;
  display: grid;
  place-items: center;
  padding: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% 0%, rgba(32, 202, 243, .055), transparent 45%),
    linear-gradient(180deg, rgba(7, 17, 28, .72) 0%, rgba(3, 8, 15, .82) 100%);
  color: #f1f5f7;
  font-family: inherit;
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  animation: profile-v2-fade 130ms ease-out both;
}

#profile-v2-root .profile-v2-shell {
  position: relative;
  width: min(var(--profile-v2-frame-width), 1120px);
  height: min(var(--profile-v2-frame-height), 620px);
  min-height: 250px;
  display: grid;
  grid-template-rows: var(--profile-v2-header-height) minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(32, 202, 243, .055), transparent 48%),
    linear-gradient(180deg, #07111c 0%, #03080f 100%);
  border: 1px solid rgba(50, 187, 225, .18);
  border-radius: 16px;
  box-shadow: 0 20px 58px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .035);
  container-name: profile-v2-shell;
  container-type: inline-size;
}

#profile-v2-root .profile-v2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 0 clamp(10px, 1.7vw, 18px);
  border-bottom: 1px solid rgba(130, 197, 230, .1);
  background: linear-gradient(90deg, rgba(12, 28, 42, .68), rgba(5, 13, 23, .5));
}

#profile-v2-root .profile-v2-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

#profile-v2-root .profile-v2-icon {
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
}

#profile-v2-root .profile-v2-tabs {
  display: flex;
  align-items: stretch;
  height: 100%;
  min-width: 0;
  gap: clamp(10px, 2vw, 24px);
}

#profile-v2-root .profile-v2-title,
#profile-v2-root .profile-v2-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 0 clamp(4px, .8vw, 9px);
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: rgba(222, 231, 244, .58);
  font-size: clamp(11px, 1.45vw, 15px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .13em;
  gap: clamp(6px, .7vw, 8px);
}

#profile-v2-root .profile-v2-title,
#profile-v2-root .profile-v2-tab.is-active {
  color: var(--profile-v2-cyan);
  background: rgba(32, 202, 243, .05);
  box-shadow: inset 0 -2px 0 rgba(48, 204, 240, .72);
  text-shadow: 0 0 8px rgba(32, 202, 243, .16);
}

#profile-v2-root .profile-v2-tab.is-active::after {
  display: none;
}

#profile-v2-root .profile-v2-tab:disabled {
  cursor: default;
  opacity: .58;
}

#profile-v2-root .profile-v2-close {
  position: relative;
  flex: 0 0 auto;
  min-width: clamp(64px, 8.4vw, 86px);
  height: calc(100% - 6px);
  min-height: 24px;
  max-height: 26px;
  padding: 0 12px;
  border: 1px solid rgba(150, 191, 220, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
  color: rgba(235, 242, 251, .82);
  font-size: clamp(9px, 1.12vw, 12px);
  font-weight: 900;
  letter-spacing: .12em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: background-color 90ms ease, border-color 90ms ease;
}

#profile-v2-root .profile-v2-close::before {
  content: "";
  position: absolute;
  inset: -4px 0;
}

#profile-v2-root .profile-v2-close:active {
  border-color: rgba(80, 199, 240, .28);
  background: rgba(255, 255, 255, .065);
}

#profile-v2-root .profile-v2-close:focus-visible,
#profile-v2-root .profile-v2-tab:focus-visible,
#profile-v2-root .profile-v2-match-card:focus-visible,
#profile-v2-root .profile-v2-chart-point:focus-visible {
  outline: 1px solid rgba(32, 202, 243, .55);
  outline-offset: 1px;
}

#profile-v2-root .profile-v2-profile-view {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
  grid-template-rows: minmax(0, 66fr) minmax(0, 34fr);
  gap: clamp(6px, 1vw, 11px);
  padding: clamp(7px, 1.25vw, 13px);
  overflow: hidden;
}

#profile-v2-root .profile-v2-guest-view {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 38px);
  overflow: auto;
}

#profile-v2-root .profile-v2-guest-panel {
  width: min(100%, 510px);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 46px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(32, 202, 243, .09), transparent 58%),
    linear-gradient(180deg, rgba(10, 25, 39, .82), rgba(4, 11, 19, .94));
}

#profile-v2-root .profile-v2-guest-kicker {
  color: var(--profile-v2-cyan);
  font-size: clamp(9px, 1.2vw, 11px);
  font-weight: 900;
  letter-spacing: .22em;
}

#profile-v2-root .profile-v2-guest-panel h2 {
  margin: 13px 0 0;
  color: #f4f9fc;
  font-size: clamp(19px, 3.1vw, 28px);
  line-height: 1.2;
  letter-spacing: .06em;
}

#profile-v2-root .profile-v2-guest-panel p {
  margin: 10px 0 0;
  color: rgba(211, 224, 235, .72);
  font-size: clamp(12px, 1.65vw, 15px);
  line-height: 1.65;
}

#profile-v2-root .profile-v2-guest-login {
  min-width: 132px;
  height: 38px;
  margin-top: 22px;
  border: 1px solid rgba(32, 202, 243, .48);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(32, 202, 243, .18), rgba(32, 202, 243, .07));
  color: var(--profile-v2-cyan-bright);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  box-shadow: 0 0 18px rgba(32, 202, 243, .08), inset 0 1px 0 rgba(255, 255, 255, .06);
}

#profile-v2-root .profile-v2-guest-login:focus-visible {
  outline: 1px solid rgba(32, 202, 243, .72);
  outline-offset: 3px;
}

#profile-v2-root .profile-v2-profile-view.is-loading > .profile-v2-player,
#profile-v2-root .profile-v2-profile-view.is-loading > .profile-v2-history,
#profile-v2-root .profile-v2-profile-view.is-loading > .profile-v2-summary,
#profile-v2-root .profile-v2-profile-view.is-error > .profile-v2-player,
#profile-v2-root .profile-v2-profile-view.is-error > .profile-v2-history,
#profile-v2-root .profile-v2-profile-view.is-error > .profile-v2-summary {
  visibility: hidden;
  opacity: 0;
}

#profile-v2-root .profile-v2-profile-view.is-ready > .profile-v2-player,
#profile-v2-root .profile-v2-profile-view.is-ready > .profile-v2-history,
#profile-v2-root .profile-v2-profile-view.is-ready > .profile-v2-summary {
  animation: profile-v2-content-reveal 140ms ease-out both;
}

#profile-v2-root .profile-v2-status {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(10px, 1.2vw, 14px);
  background:
    radial-gradient(circle at 50% 42%, rgba(32, 202, 243, .055), transparent 27%),
    linear-gradient(180deg, rgba(7, 17, 28, .18), rgba(3, 8, 15, .32));
  color: rgba(168, 205, 218, .74);
  pointer-events: none;
  animation: profile-v2-status-reveal 120ms ease-out both;
}

#profile-v2-root .profile-v2-status[hidden] {
  display: none !important;
}

#profile-v2-root .profile-v2-loading-spinner {
  width: clamp(30px, 3vw, 38px);
  aspect-ratio: 1;
  border: 2px solid rgba(90, 140, 165, .16);
  border-top-color: rgba(32, 202, 243, .96);
  border-right-color: rgba(32, 202, 243, .48);
  border-radius: 50%;
  filter: drop-shadow(0 0 4px rgba(32, 202, 243, .18));
  animation: profile-v2-loading-spin 960ms linear infinite;
}

#profile-v2-root .profile-v2-status-copy {
  font-size: clamp(8px, 1vw, 11px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
}

#profile-v2-root .profile-v2-status.is-error .profile-v2-loading-spinner {
  display: none;
}

#profile-v2-root .profile-v2-status.is-error .profile-v2-status-copy {
  color: rgba(222, 231, 244, .66);
}

#profile-v2-root .profile-v2-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(130, 197, 230, .12);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 34, 47, .94) 0%, rgba(7, 18, 29, .97) 100%);
  box-shadow: inset 0 1px 0 rgba(100, 211, 240, .06), 0 8px 24px rgba(0, 0, 0, .18);
}

#profile-v2-root .profile-v2-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 15% 0%, rgba(32, 202, 243, .055), transparent 48%);
  pointer-events: none;
}

#profile-v2-root .profile-v2-player {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: clamp(6px, 1.15vh, 10px);
  padding: clamp(10px, 1.7vw, 18px);
  overflow: hidden;
}

#profile-v2-root .profile-v2-panel-label {
  position: relative;
  z-index: 1;
  color: var(--profile-v2-muted);
  font-size: clamp(8px, 1vw, 10px);
  font-weight: 900;
  letter-spacing: .14em;
}

#profile-v2-root .profile-v2-player-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  align-items: center;
  gap: clamp(9px, 1.15vw, 14px);
}

#profile-v2-root .profile-v2-player-badge {
  position: relative;
  isolation: isolate;
  place-self: center;
  width: min(100%, clamp(108px, 11vw, 142px));
  max-height: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 82, 255, .12) 0%, rgba(32, 202, 243, .035) 52%, transparent 72%);
}

#profile-v2-root .profile-v2-player-badge::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border: 1px solid rgba(83, 199, 235, .15);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(124, 78, 255, .09);
}

#profile-v2-root .profile-v2-player-badge-image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  clip-path: circle(49% at 50% 50%);
  filter: drop-shadow(0 0 7px rgba(132, 75, 255, .18));
  user-select: none;
  -webkit-user-drag: none;
}

#profile-v2-root .profile-v2-player-badge-image:not([src]) {
  visibility: hidden;
}

#profile-v2-root .profile-v2-player-copy {
  --profile-v2-player-copy-end-space: clamp(8px, 1vw, 12px);
  container-name: profile-v2-player-copy;
  container-type: inline-size;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  padding-right: var(--profile-v2-player-copy-end-space);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2px, .55vh, 5px);
  overflow: visible;
}

#profile-v2-root .profile-v2-player-name {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(15px, 2.5vw, 25px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: .035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#profile-v2-root .profile-v2-player-copy .profile-v2-player-name {
  font-size: clamp(15px, 1.9vw, 21px);
}

#profile-v2-root .profile-v2-rank {
  overflow: hidden;
  color: #c6aaff;
  font-size: clamp(10px, 1.55vw, 15px);
  font-weight: 900;
  letter-spacing: .09em;
  text-overflow: ellipsis;
  text-shadow: 0 0 9px rgba(154, 107, 255, .16);
  white-space: nowrap;
}

#profile-v2-root .profile-v2-rating {
  display: block;
  width: calc(100% + var(--profile-v2-player-copy-end-space));
  max-width: none;
  min-width: 0;
  overflow: visible;
  background: linear-gradient(180deg, #6ce4ff 0%, #00b0e8 100%);
  background-clip: text;
  color: var(--profile-v2-cyan);
  font-size: clamp(29px, 27cqi, 48px);
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  line-height: .94;
  letter-spacing: .015em;
  text-shadow: 0 0 10px rgba(32, 202, 243, .12);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

#profile-v2-root .profile-v2-peak {
  display: flex;
  flex-wrap: wrap;
  gap: .35em;
  color: var(--profile-v2-muted);
  font-size: clamp(8px, 1.12vw, 11px);
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
}

#profile-v2-root .profile-v2-peak strong {
  color: rgba(244, 249, 255, .9);
  font-variant-numeric: tabular-nums;
}

#profile-v2-root .profile-v2-history {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-rows: clamp(19px, 3.2vh, 24px) minmax(0, 1fr) clamp(38px, 7.2vh, 48px);
  padding: clamp(5px, .85vw, 9px);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 31, 45, .94) 0%, rgba(5, 14, 23, .98) 100%);
}

#profile-v2-root .profile-v2-history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: var(--profile-v2-cyan);
  font-size: clamp(9px, 1.3vw, 13px);
  font-weight: 900;
  letter-spacing: .1em;
}

#profile-v2-root .profile-v2-history-header > span:last-child {
  color: rgba(211, 221, 236, .54);
  font-size: .82em;
}

#profile-v2-root .profile-v2-chart {
  position: relative;
  min-height: 0;
  overflow: hidden;
  touch-action: manipulation;
}

#profile-v2-root .profile-v2-chart-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

#profile-v2-root .profile-v2-chart-grid line {
  stroke: rgba(100, 162, 195, .16);
  stroke-dasharray: 4 5;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

#profile-v2-root .profile-v2-chart-grid-vertical {
  stroke: rgba(100, 162, 195, .12);
  stroke-dasharray: 4 5;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

#profile-v2-root .profile-v2-chart-current-line {
  stroke: rgba(32, 202, 243, .11);
  stroke-dasharray: 4 6;
  stroke-width: 1;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

#profile-v2-root .profile-v2-chart-grid text {
  fill: rgba(170, 190, 205, .55);
  font-size: 9px;
  font-weight: 700;
  text-anchor: end;
}

#profile-v2-root .profile-v2-chart-line {
  fill: none;
  stroke: var(--profile-v2-cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(32, 202, 243, .27));
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: profile-v2-draw-line 360ms ease-out forwards;
}

#profile-v2-root .profile-v2-chart-area {
  fill: url(#profileV2RatingArea);
  pointer-events: none;
}

#profile-v2-root .profile-v2-chart-hit {
  fill: transparent;
  pointer-events: all;
}

#profile-v2-root .profile-v2-chart-dot {
  fill: #07111c;
  stroke: rgba(32, 202, 243, .78);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

#profile-v2-root .profile-v2-chart-latest-halo {
  fill: rgba(32, 202, 243, .08);
  stroke: rgba(72, 214, 245, .42);
  stroke-width: 1.25;
  filter: drop-shadow(0 0 5px rgba(32, 202, 243, .28));
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

#profile-v2-root .profile-v2-chart-point.is-latest .profile-v2-chart-dot,
#profile-v2-root .profile-v2-chart-point.is-selected .profile-v2-chart-dot {
  fill: #9deeff;
  stroke: #efffff;
  stroke-width: 2;
  filter: drop-shadow(0 0 4px rgba(32, 202, 243, .42));
}

#profile-v2-root .profile-v2-chart-point {
  cursor: pointer;
  outline: none;
}

#profile-v2-root .profile-v2-tooltip {
  position: absolute;
  z-index: 3;
  width: max-content;
  max-width: min(190px, calc(100% - 12px));
  padding: 7px 9px;
  border: 1px solid rgba(80, 199, 240, .25);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(12, 29, 41, .98), rgba(4, 12, 20, .985));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 8px 22px rgba(0, 0, 0, .38);
  color: rgba(237, 247, 255, .9);
  font-size: clamp(8px, 1.05vw, 11px);
  line-height: 1.45;
  pointer-events: none;
}

#profile-v2-root .profile-v2-tooltip strong {
  display: block;
  color: #fff;
  font-size: 1.08em;
}

#profile-v2-root .profile-v2-tooltip .is-positive {
  color: var(--profile-v2-green);
}

#profile-v2-root .profile-v2-tooltip .is-negative {
  color: var(--profile-v2-red);
}

#profile-v2-root .profile-v2-empty,
#profile-v2-root .profile-v2-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(207, 220, 238, .5);
  font-size: clamp(9px, 1.2vw, 12px);
  font-weight: 900;
  letter-spacing: .12em;
}

#profile-v2-root .profile-v2-error {
  color: rgba(255, 117, 139, .78);
}

#profile-v2-root .profile-v2-match-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 35px) / 8);
  gap: 5px;
  min-width: 0;
  min-height: 0;
  padding: 2px 0 1px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  touch-action: pan-x;
}

#profile-v2-root .profile-v2-match-strip::-webkit-scrollbar {
  display: none;
}

#profile-v2-root .profile-v2-match-card {
  min-width: 0;
  min-height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 1px 2px;
  border: 1px solid rgba(150, 191, 220, .1);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(16, 29, 40, .85), rgba(6, 14, 22, .95));
  color: #f7fbff;
  scroll-snap-align: start;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02), 0 5px 14px rgba(0, 0, 0, .14);
  transition: border-color 100ms ease, filter 100ms ease;
}

#profile-v2-root .profile-v2-match-card.is-selected {
  border-color: rgba(40, 198, 240, .65);
  background: linear-gradient(180deg, rgba(20, 58, 72, .45), rgba(7, 23, 29, .95));
  filter: brightness(1.06);
}

#profile-v2-root .profile-v2-match-card.is-place-first {
  box-shadow: inset 2px 0 0 rgba(72, 214, 245, .72), inset 0 1px 0 rgba(255, 255, 255, .02), 0 5px 14px rgba(0, 0, 0, .14);
}

#profile-v2-root .profile-v2-match-card.is-place-podium {
  box-shadow: inset 2px 0 0 rgba(100, 211, 240, .34), inset 0 1px 0 rgba(255, 255, 255, .02), 0 5px 14px rgba(0, 0, 0, .14);
}

#profile-v2-root .profile-v2-match-card.is-place-late {
  box-shadow: inset 2px 0 0 rgba(150, 180, 195, .16), inset 0 1px 0 rgba(255, 255, 255, .02), 0 5px 14px rgba(0, 0, 0, .14);
}

#profile-v2-root .profile-v2-match-place {
  overflow: hidden;
  max-width: 100%;
  font-size: clamp(9px, 1.45vw, 13px);
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#profile-v2-root .profile-v2-match-delta {
  font-size: clamp(8px, 1.18vw, 11px);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

#profile-v2-root .is-positive {
  color: var(--profile-v2-green);
}

#profile-v2-root .is-negative {
  color: var(--profile-v2-red);
}

#profile-v2-root .is-neutral {
  color: rgba(209, 220, 234, .58);
}

#profile-v2-root .profile-v2-summary {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  gap: clamp(6px, 1vw, 11px);
  min-width: 0;
  min-height: 0;
}

#profile-v2-root .profile-v2-summary.is-self {
  grid-template-columns: minmax(0, 30fr) minmax(0, 46fr) minmax(0, 24fr);
}

#profile-v2-root .profile-v2-summary-card {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(3px, .7vh, 6px);
  padding: clamp(7px, 1.1vw, 11px) clamp(10px, 1.4vw, 15px);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 31, 44, .86), rgba(5, 14, 23, .96));
}

#profile-v2-root .profile-v2-summary-title {
  position: relative;
  z-index: 1;
  color: var(--profile-v2-cyan);
  font-size: clamp(8px, 1.05vw, 11px);
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
}

#profile-v2-root .profile-v2-summary-metrics {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

#profile-v2-root .profile-v2-summary-metric {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  justify-items: center;
  gap: clamp(4px, .9vh, 7px);
  padding-inline: 4px;
  text-align: center;
}

#profile-v2-root .profile-v2-ranked-record .profile-v2-summary-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#profile-v2-root .profile-v2-summary-metric + .profile-v2-summary-metric::before {
  content: "";
  position: absolute;
  top: 13%;
  bottom: 9%;
  left: 0;
  width: 1px;
  background: rgba(150, 191, 220, .09);
}

#profile-v2-root .profile-v2-summary-metric span {
  overflow: hidden;
  max-width: 100%;
  color: var(--profile-v2-muted);
  font-size: clamp(7px, .9vw, 10px);
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#profile-v2-root .profile-v2-summary-metric strong {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: rgba(241, 245, 247, .94);
  font-size: var(--profile-v2-summary-number-size);
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#profile-v2-root .profile-v2-public-stats .profile-v2-summary-metric strong {
  color: var(--profile-v2-cyan);
  text-shadow: 0 0 10px rgba(32, 202, 243, .1);
}

#profile-v2-root .profile-v2-public-stats .profile-v2-summary-metric strong,
#profile-v2-root .profile-v2-ranked-record .profile-v2-summary-metric strong {
  width: 100%;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

#profile-v2-root .profile-v2-public-stats {
  container-name: profile-v2-public-stats;
  container-type: inline-size;
}

#profile-v2-root .profile-v2-metric-icon {
  width: clamp(16px, 1.65vw, 20px);
  height: clamp(16px, 1.65vw, 20px);
  color: rgba(120, 188, 210, .38);
}

#profile-v2-root .profile-v2-ev-info {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  margin: -3px 0 -3px 1px;
  padding: 0;
  border: 1px solid rgba(32, 202, 243, .35);
  border-radius: 50%;
  background: rgba(32, 202, 243, .06);
  color: rgba(185, 241, 247, .78);
  font: inherit;
  font-size: 8px;
  font-weight: 950;
  line-height: 1;
  cursor: help;
}

#profile-v2-root .profile-v2-ev-info:focus-visible {
  outline: 1px solid rgba(32, 202, 243, .72);
  outline-offset: 2px;
}

#profile-v2-root .profile-v2-ev-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  align-items: center;
  gap: clamp(8px, .9vw, 11px);
}

#profile-v2-root .profile-v2-ev-summary {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: clamp(5px, .9vh, 8px);
}

#profile-v2-root .profile-v2-ev-stat {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 2px;
  text-align: left;
}

#profile-v2-root .profile-v2-ev-stat span {
  overflow: visible;
  max-width: 100%;
  color: rgba(172, 190, 205, .58);
  font-size: clamp(6px, .72vw, 8px);
  font-weight: 900;
  letter-spacing: .07em;
  line-height: 1;
  white-space: nowrap;
}

#profile-v2-root .profile-v2-ev-stat strong {
  overflow: visible;
  max-width: 100%;
  color: rgba(239, 245, 250, .9);
  font-size: clamp(10px, 1.25vw, 14px);
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

#profile-v2-root .profile-v2-ev-stat.is-actual strong {
  color: var(--profile-v2-cyan);
}

#profile-v2-root .profile-v2-ev-stat.is-score strong {
  color: var(--profile-v2-purple);
}

#profile-v2-root .profile-v2-ev-stat.is-diff strong.is-above-ev {
  color: rgba(255, 202, 128, .9);
}

#profile-v2-root .profile-v2-ev-stat.is-diff strong.is-below-ev {
  color: rgba(157, 184, 255, .88);
}

#profile-v2-root .profile-v2-ev-stat.is-diff strong.is-even-ev {
  color: rgba(229, 236, 242, .74);
}

#profile-v2-root .profile-v2-ev-rate {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
}

#profile-v2-root .profile-v2-ev-rate-svg {
  display: block;
  width: min(108px, 100%, 20vh);
  max-width: 100%;
  height: auto;
  overflow: visible;
}

@container profile-v2-shell (min-width: 700px) and (max-width: 899px) {
  #profile-v2-root .profile-v2-profile-view {
    --profile-v2-summary-number-size: clamp(15px, 1.9vw, 16px);
  }

  #profile-v2-root .profile-v2-player-content {
    grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
    gap: clamp(7px, 1cqi, 10px);
  }

  #profile-v2-root .profile-v2-player-badge {
    width: min(100%, clamp(92px, 14cqi, 118px));
  }

  #profile-v2-root .profile-v2-player-copy .profile-v2-player-name {
    font-size: clamp(15px, 2.4cqi, 19px);
  }

  #profile-v2-root .profile-v2-rating {
    font-size: clamp(29px, 26cqi, 36px);
    letter-spacing: 0;
  }

  #profile-v2-root .profile-v2-summary.is-self {
    grid-template-columns: minmax(0, 28fr) minmax(0, 44fr) minmax(0, 28fr);
  }

  #profile-v2-root .profile-v2-ranked-record .profile-v2-summary-metric span {
    letter-spacing: .05em;
  }

  #profile-v2-root .profile-v2-ev-content {
    grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
    gap: clamp(10px, 1.4cqi, 13px);
  }

  #profile-v2-root .profile-v2-ev-rate-svg {
    width: min(100%, 16cqi, 104px);
  }

  #profile-v2-root .profile-v2-ev-stat span {
    font-size: clamp(6px, .88cqi, 7.5px);
    letter-spacing: .045em;
  }

  #profile-v2-root .profile-v2-ev-stat strong {
    font-size: clamp(10px, 1.45cqi, 12px);
  }
}

#profile-v2-root .profile-v2-ev-rate-frame,
#profile-v2-root .profile-v2-ev-rate-track,
#profile-v2-root .profile-v2-ev-rate-base,
#profile-v2-root .profile-v2-ev-rate-over {
  fill: none;
  vector-effect: non-scaling-stroke;
  shape-rendering: geometricPrecision;
}

#profile-v2-root .profile-v2-ev-rate-frame {
  stroke: rgba(32, 202, 243, .58);
  stroke-width: 1.25;
  filter: drop-shadow(0 0 2px rgba(32, 202, 243, .1));
}

#profile-v2-root .profile-v2-ev-rate-base,
#profile-v2-root .profile-v2-ev-rate-over {
  vector-effect: none;
}

#profile-v2-root .profile-v2-ev-rate-track {
  stroke: rgba(90, 140, 165, .18);
  stroke-width: 3.5;
}

#profile-v2-root .profile-v2-ev-rate-base {
  stroke: var(--profile-v2-cyan);
  stroke-width: 3.5;
  stroke-linecap: butt;
  filter: drop-shadow(0 0 2px rgba(32, 202, 243, .11));
}

#profile-v2-root .profile-v2-ev-rate-over {
  stroke: #f2b45f;
  stroke-width: 3.5;
  stroke-linecap: butt;
  filter: drop-shadow(0 0 2px rgba(242, 180, 95, .12));
}

#profile-v2-root .profile-v2-ev-rate-value {
  fill: var(--profile-v2-cyan);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
}

#profile-v2-root .profile-v2-ev-rate-svg.is-below .profile-v2-ev-rate-value {
  fill: var(--profile-v2-purple);
}

#profile-v2-root .profile-v2-ev-rate-svg.is-above .profile-v2-ev-rate-value {
  fill: #f2b45f;
}

#profile-v2-root .profile-v2-ev-rate-svg.is-unavailable .profile-v2-ev-rate-value {
  fill: rgba(180, 196, 210, .5);
}

#profile-v2-root .profile-v2-ev-rate-label {
  fill: rgba(172, 190, 205, .5);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .12em;
}

#profile-v2-root .profile-v2-summary-metric strong.is-positive {
  color: var(--profile-v2-green);
  text-shadow: 0 0 10px rgba(42, 223, 163, .1);
}

#profile-v2-root .profile-v2-summary-metric strong.is-negative {
  color: var(--profile-v2-red);
  text-shadow: 0 0 10px rgba(255, 83, 100, .1);
}

#profile-v2-root .profile-v2-summary-metric strong.is-neutral {
  color: rgba(225, 233, 240, .7);
}

#profile-v2-root .profile-v2-section-title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: clamp(5px, .65vw, 7px);
  color: var(--profile-v2-cyan);
  font-size: clamp(9px, 1.15vw, 13px);
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-shadow: 0 0 8px rgba(32, 202, 243, .12);
}

#profile-v2-root .profile-v2-section-title .profile-v2-icon {
  width: clamp(13px, 1.45vw, 17px);
  height: clamp(13px, 1.45vw, 17px);
  color: rgba(100, 211, 240, .78);
}

#profile-v2-root .profile-v2-analysis-view {
  min-height: 0;
  display: grid;
  place-items: center;
  margin: clamp(7px, 1.25vw, 13px);
  border: 1px solid rgba(130, 197, 230, .12);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 34, 47, .9), rgba(7, 18, 29, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 8px 24px rgba(0, 0, 0, .18);
  color: rgba(207, 220, 238, .54);
  font-size: clamp(10px, 1.35vw, 13px);
  font-weight: 900;
  letter-spacing: .12em;
}

#profile-v2-root .profile-v2-analysis-view[hidden],
#profile-v2-root .profile-v2-profile-view[hidden] {
  display: none !important;
}

@media (min-width: 900px) {
  #profile-v2-root .profile-v2-match-strip {
    grid-auto-columns: calc((100% - 45px) / 10);
  }

  #profile-v2-root .profile-v2-chart-grid line {
    stroke: rgba(100, 162, 195, .2);
    stroke-dasharray: 5 6;
  }

  #profile-v2-root .profile-v2-chart-grid-vertical {
    stroke: rgba(100, 162, 195, .15);
    stroke-dasharray: 5 6;
  }

  #profile-v2-root .profile-v2-chart-line {
    stroke-width: 2.5;
    filter: drop-shadow(0 0 5px rgba(32, 202, 243, .32));
  }

  #profile-v2-root .profile-v2-chart-dot {
    stroke: #20caf3;
    stroke-opacity: .78;
    stroke-width: 1.5;
  }
}

@media (max-height: 390px) {
  #profile-v2-root .profile-v2-profile-view {
    --profile-v2-summary-number-size: clamp(12px, 1.45vw, 16px);
  }

  #profile-v2-root .profile-v2-shell {
    width: min(var(--profile-v2-frame-width), 1050px);
    height: var(--profile-v2-frame-height);
  }

  #profile-v2-root .profile-v2-profile-view {
    padding: 6px;
    gap: 6px;
    grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
    grid-template-rows: minmax(0, 66fr) minmax(0, 34fr);
  }

  #profile-v2-root .profile-v2-summary.is-self {
    grid-template-columns: minmax(0, 29fr) minmax(0, 47fr) minmax(0, 24fr);
  }

  #profile-v2-root .profile-v2-history {
    padding: 5px;
    grid-template-rows: 18px minmax(0, 1fr) 38px;
  }

  #profile-v2-root .profile-v2-player {
    padding: 8px 9px;
    gap: 4px;
  }

  #profile-v2-root .profile-v2-player-content {
    grid-template-columns: minmax(0, 66px) minmax(0, 1fr);
    gap: 5px;
  }

  #profile-v2-root .profile-v2-player-badge {
    width: 66px;
  }

  #profile-v2-root .profile-v2-player-copy {
    gap: 1px;
  }

  #profile-v2-root .profile-v2-rating {
    font-size: clamp(29px, 26cqi, 33px);
  }

  #profile-v2-root .profile-v2-match-card {
    min-height: 36px;
  }

  #profile-v2-root .profile-v2-summary-card {
    gap: 3px;
    padding: 5px 6px;
  }

  #profile-v2-root .profile-v2-ev-info {
    width: 12px;
    height: 12px;
    font-size: 6px;
  }

  #profile-v2-root .profile-v2-summary-title {
    font-size: 7px;
  }

  #profile-v2-root .profile-v2-section-title {
    gap: 4px;
    font-size: 8px;
  }

  #profile-v2-root .profile-v2-section-title .profile-v2-icon {
    width: 12px;
    height: 12px;
  }

  #profile-v2-root .profile-v2-summary-metric {
    gap: 3px;
    padding-inline: 2px;
  }

  #profile-v2-root .profile-v2-summary-metric span {
    font-size: 6.5px;
    letter-spacing: .06em;
  }

  #profile-v2-root .profile-v2-summary-metric strong {
    font-size: var(--profile-v2-summary-number-size);
  }

  #profile-v2-root .profile-v2-public-stats .profile-v2-summary-metric strong,
  #profile-v2-root .profile-v2-ranked-record .profile-v2-summary-metric strong {
    letter-spacing: -.015em;
  }

  #profile-v2-root .profile-v2-metric-icon {
    width: 13px;
    height: 13px;
  }

  #profile-v2-root .profile-v2-ev-content {
    grid-template-columns: minmax(62px, .95fr) minmax(0, 1.05fr);
    gap: 6px;
  }

  #profile-v2-root .profile-v2-ev-rate-svg {
    width: 63px;
  }

  #profile-v2-root .profile-v2-ev-rate-frame {
    stroke: rgba(32, 202, 243, .36);
    stroke-width: .5;
    filter: none;
  }

  #profile-v2-root .profile-v2-ev-rate-track,
  #profile-v2-root .profile-v2-ev-rate-base,
  #profile-v2-root .profile-v2-ev-rate-over {
    stroke-width: 3.5;
  }

  #profile-v2-root .profile-v2-ev-rate-base,
  #profile-v2-root .profile-v2-ev-rate-over {
    vector-effect: none;
    stroke-width: 5.55;
  }

  #profile-v2-root .profile-v2-ev-rate-track {
    stroke: rgba(35, 46, 62, .92);
  }

  #profile-v2-root .profile-v2-ev-rate-base {
    filter: drop-shadow(0 0 1.5px rgba(32, 202, 243, .1));
  }

  #profile-v2-root .profile-v2-ev-rate-over {
    filter: drop-shadow(0 0 1.5px rgba(242, 180, 95, .14));
  }

  #profile-v2-root .profile-v2-ev-summary {
    gap: 3px;
  }

  #profile-v2-root .profile-v2-ev-stat {
    gap: 2px;
  }

  #profile-v2-root .profile-v2-ev-stat span {
    font-size: 5.5px;
    letter-spacing: .04em;
  }

  #profile-v2-root .profile-v2-ev-stat strong {
    font-size: 9px;
  }

  #profile-v2-root .profile-v2-status {
    gap: 8px;
  }

  #profile-v2-root .profile-v2-loading-spinner {
    width: 24px;
    border-width: 1.5px;
  }

  #profile-v2-root .profile-v2-status-copy {
    font-size: 7px;
  }
}

@container profile-v2-player-copy (max-width: 170px) {
  #profile-v2-root .profile-v2-rating {
    font-size: clamp(22px, 20cqi, 36px);
    letter-spacing: 0;
  }
}

@container profile-v2-public-stats (max-width: 260px) {
  #profile-v2-root .profile-v2-public-stats .profile-v2-summary-metric {
    padding-inline: clamp(0px, .8cqi, 2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #profile-v2-root,
  #profile-v2-root .profile-v2-chart-line,
  #profile-v2-root .profile-v2-profile-view.is-ready > .profile-v2-player,
  #profile-v2-root .profile-v2-profile-view.is-ready > .profile-v2-history,
  #profile-v2-root .profile-v2-profile-view.is-ready > .profile-v2-summary,
  #profile-v2-root .profile-v2-status,
  #profile-v2-root .profile-v2-loading-spinner {
    animation: none !important;
  }

  #profile-v2-root .profile-v2-chart-line {
    stroke-dashoffset: 0;
  }

  #profile-v2-root .profile-v2-match-card {
    transition: none;
  }
}

@keyframes profile-v2-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes profile-v2-status-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes profile-v2-content-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes profile-v2-loading-spin {
  to { transform: rotate(360deg); }
}

@keyframes profile-v2-draw-line {
  to { stroke-dashoffset: 0; }
}

/* Existing filter controls, outside the main content's height budget. */
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-subtabs{position:relative;display:flex;align-items:center;flex:0 0 auto;}
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-tabset{min-width:0;flex:1;align-self:stretch;}
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-subtab{padding-block:4px 7px;line-height:1.2;}
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-filter-button{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;height:22px;color:#aabac5;background:#101c25;border:1px solid #60748680;border-radius:5px;padding:3px 7px;font:700 10px/1.2 Arial;cursor:pointer;}
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-filter-button.is-active{color:var(--profile-v2-cyan-bright);border-color:#3da6c699;background:#071822;}
#profile-v2-root .profile-v2-analysis-filter-button svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;}
#profile-v2-root:not([data-analysis-filters-open]) .profile-v2-analysis-view [data-profile-v2-analysis-contexts]{display:none!important;}
#profile-v2-root .profile-v2-analysis-view [data-profile-v2-analysis-contexts]{position:absolute;top:100%;right:0;z-index:15;width:min(420px,100%);max-height:min(220px,60vh);overflow:auto;padding:8px;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:none!important;grid-auto-rows:30px;gap:4px!important;background:#071822;border:1px solid #3da6c699;border-radius:7px;box-shadow:0 5px 20px #0008;}
/* Override the former two-column stagger only inside the popup. Same controls/state. */
#profile-v2-root #profile-v2-analysis-filters>div{grid-column:1;grid-row:auto;justify-self:stretch;justify-content:flex-start;height:30px;gap:4px;}
#profile-v2-root #profile-v2-analysis-filters .profile-v2-analysis-context-label{flex:0 0 62px;margin:0;font-size:9px;letter-spacing:.05em;}
#profile-v2-root #profile-v2-analysis-filters button{height:26px;padding-block:0;font-size:9px;}
#profile-v2-root #profile-v2-analysis-filters button::before{inset:3px 0;}
#profile-v2-root #profile-v2-analysis-filters .profile-v2-stack-range{width:auto;flex:1;min-width:0;}
#profile-v2-root #profile-v2-analysis-filters .profile-v2-stack-range>strong{font-size:9px;}
#profile-v2-root #profile-v2-analysis-filters .profile-v2-analysis-period em{font-size:8px;}
