:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0d1c2d;
  --panel-strong: #12263d;
  --line: #243a52;
  --text: #edf5ff;
  --muted: #91a8bf;
  --blue: #2673f0;
  --blue-hover: #155bd1;
  --gold: #c8aa6e;
  --win: #36b37e;
  --loss: #ef5b67;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 1080px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(38, 115, 240, 0.18), transparent 36rem),
    linear-gradient(180deg, #091827 0%, var(--bg) 55%);
  font-family: Pretendard, "Noto Sans KR", "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

.lol-shell {
  width: min(1440px, calc(100% - 96px));
  margin: 0 auto;
  padding: 56px 0 40px;
}

.lol-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.header-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.home-link {
  flex: none;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.home-link:hover {
  border-color: var(--gold);
}

.search-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 28, 45, 0.88);
}

.search-form {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 190px 116px;
  align-items: end;
  gap: 12px;
}

.search-mode {
  display: inline-flex;
  grid-column: 1 / -1;
  justify-self: start;
  padding: 4px;
  border: 1px solid #33516f;
  border-radius: 10px;
  background: #071523;
}

.search-mode-button {
  min-width: 94px;
  padding: 9px 16px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.search-mode-button.active {
  color: white;
  background: var(--blue);
}

.region-field.disabled {
  opacity: 0.42;
}

.search-field,
.region-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-field-wrap {
  position: relative;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 20;
  overflow: hidden;
  border: 1px solid #33516f;
  border-radius: 10px;
  background: #071523;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.search-suggestions[hidden] {
  display: none;
}

.suggestion-button {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 62px;
  padding: 8px 11px;
  border: 0;
  border-bottom: 1px solid rgba(51, 81, 111, 0.58);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.suggestion-button:last-child {
  border-bottom: 0;
}

.suggestion-button:hover,
.suggestion-button.active {
  background: #132b43;
}

.suggestion-image {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
}

.suggestion-copy,
.suggestion-copy strong,
.suggestion-copy span {
  display: block;
  min-width: 0;
}

.suggestion-copy span {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

input,
select {
  width: 100%;
  height: 52px;
  border: 1px solid #33516f;
  border-radius: 8px;
  outline: none;
  color: var(--text);
  background: #071523;
}

input {
  padding: 0 17px;
  font-size: 17px;
}

select {
  padding: 0 12px;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(38, 115, 240, 0.2);
}

.search-button {
  height: 52px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.search-button:hover {
  background: var(--blue-hover);
}

.search-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.search-help {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.text-example {
  padding: 0;
  border: 0;
  color: #88b4ff;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.status {
  min-height: 24px;
  margin: 24px 0 12px;
  color: var(--muted);
}

.status.error {
  color: #ff9aa4;
}

.results {
  display: grid;
  gap: 20px;
}

.champion-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-position: center 18%;
  background-size: cover;
}

.champion-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(4, 13, 24, 0.98) 0%, rgba(4, 13, 24, 0.84) 42%, rgba(4, 13, 24, 0.18) 78%);
}

.champion-identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 740px;
  padding: 46px;
}

.champion-icon,
.profile-icon,
.match-champion-icon {
  flex: none;
  object-fit: cover;
  border: 2px solid var(--gold);
  border-radius: 12px;
  background: var(--panel-strong);
}

.champion-icon {
  width: 128px;
  height: 128px;
}

.champion-name {
  margin-bottom: 4px;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.champion-title {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 18px;
}

.champion-lore {
  margin-bottom: 0;
  color: #c8d7e6;
  line-height: 1.75;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(600px, 1.28fr);
  gap: 20px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.panel-heading {
  padding: 20px 22px 0;
  font-size: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 10px 16px;
  background: var(--panel);
}

.stat dt {
  color: var(--muted);
  font-size: 13px;
}

.stat dd {
  margin: 0;
  font-weight: 800;
}

.ability-list {
  display: grid;
  gap: 1px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.ability {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px 20px;
  background: var(--panel);
}

.ability-image-wrap {
  position: relative;
  width: 68px;
  height: 68px;
}

.ability-image {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
}

.ability-key {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: #07111f;
  background: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.ability h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.ability p {
  margin-bottom: 0;
  color: #bdcede;
  line-height: 1.6;
}

.ability-meta {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 110px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.choice-button {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--panel);
  cursor: pointer;
  text-align: left;
}

.choice-button:hover {
  border-color: var(--blue);
  background: var(--panel-strong);
}

.choice-button img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
}

.choice-button strong,
.choice-button span {
  display: block;
}

.choice-button span {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-panel {
  padding: 28px;
}

.player-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.profile-icon {
  display: block;
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 50%;
  transition: border-radius 160ms ease;
}

.profile-icon-toggle {
  flex: none;
  width: 88px;
  height: 88px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  outline: 0;
  background: transparent;
  cursor: pointer;
}

.profile-icon-toggle.square,
.profile-icon-toggle.square .profile-icon {
  border-radius: 0;
}

.profile-icon-toggle:focus-visible {
  outline: 2px solid #5bc0ff;
  outline-offset: 3px;
}

.player-id {
  margin-bottom: 7px;
  font-size: 30px;
}

.player-meta {
  margin-bottom: 0;
  color: var(--muted);
}

.primary-position {
  display: grid;
  grid-template-columns: 54px auto;
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 11px;
  margin-left: auto;
  padding: 9px 13px 9px 10px;
  border: 1px solid rgba(65, 157, 221, 0.54);
  border-radius: 10px;
  background: linear-gradient(115deg, rgba(15, 74, 116, 0.55), rgba(5, 20, 33, 0.82));
  box-shadow: 0 0 18px rgba(33, 148, 231, 0.16);
}

.primary-position-icon {
  grid-row: 1 / 4;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.primary-position-caption {
  color: #7fa4c0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.primary-position-label {
  color: #e8f7ff;
  font-size: 17px;
  line-height: 1.1;
}

.primary-position-count {
  color: #91a8bf;
  font-size: 11px;
}

.jungle-start-summary {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #263f56;
  border-radius: 10px;
  background: #071523;
}

.jungle-start-title {
  display: block;
  margin-bottom: 5px;
  color: #dcefff;
  font-size: 15px;
}

.jungle-start-description {
  margin: 0 0 12px;
  color: #8ba3b9;
  font-size: 11px;
  line-height: 1.55;
}

.jungle-start-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.jungle-start-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 11px;
  border-radius: 7px;
  background: #0b1d2e;
}

.jungle-start-row.blue {
  border-left: 4px solid #229cf3;
}

.jungle-start-row.red {
  border-left: 4px solid #c73c4c;
}

.jungle-team-label,
.jungle-start-count,
.jungle-start-empty {
  color: #91a8bf;
  font-size: 11px;
}

.jungle-buff-label {
  color: #f0f7fc;
  font-size: 13px;
}

.jungle-team-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.jungle-team-button {
  min-height: 42px;
  border: 1px solid #29465f;
  border-radius: 8px;
  color: #8ca5bb;
  background: #07111d;
  cursor: pointer;
  font-weight: 800;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.jungle-team-button:not(:disabled):hover {
  color: #eef8ff;
  background: #0d2234;
}

.jungle-team-button.blue.active {
  border-color: #26a9ff;
  color: #dff4ff;
  background: linear-gradient(110deg, rgba(23, 137, 219, 0.36), #091b2a);
  box-shadow: 0 0 18px rgba(38, 169, 255, 0.25), inset 0 0 18px rgba(38, 169, 255, 0.08);
}

.jungle-team-button.red.active {
  border-color: #dd4055;
  color: #ffe7ea;
  background: linear-gradient(110deg, rgba(174, 37, 58, 0.4), #1d0c14);
  box-shadow: 0 0 18px rgba(221, 64, 85, 0.24), inset 0 0 18px rgba(221, 64, 85, 0.08);
}

.jungle-team-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.jungle-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.jungle-route-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #29465f;
  border-radius: 11px;
  background: #030a11;
}

.jungle-route-card[hidden] {
  display: none;
}

.jungle-route-card.blue {
  border-color: rgba(38, 169, 255, 0.46);
}

.jungle-route-card.red {
  border-color: rgba(221, 64, 85, 0.48);
}

.jungle-route-card-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 8px 10px;
  background: linear-gradient(90deg, rgba(12, 33, 51, 0.96), rgba(5, 13, 21, 0.98));
}

.jungle-route-card.red .jungle-route-card-heading {
  background: linear-gradient(90deg, rgba(49, 16, 25, 0.95), rgba(15, 7, 11, 0.98));
}

.jungle-route-champion {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.jungle-route-card-copy {
  min-width: 0;
}

.jungle-route-card-copy strong,
.jungle-route-card-copy span,
.jungle-route-card-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jungle-route-card-copy strong {
  color: #edf7ff;
  font-size: 12px;
}

.jungle-route-card-copy span,
.jungle-route-card-copy small {
  margin-top: 2px;
  color: #8da5bb;
  font-size: 9px;
}

.jungle-route-result {
  padding: 4px 6px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 900;
}

.jungle-route-result.win {
  color: #bce8ff;
  background: rgba(26, 143, 219, 0.2);
}

.jungle-route-result.loss {
  color: #ffc6ce;
  background: rgba(191, 42, 65, 0.22);
}

.jungle-route-map {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #010407;
}

.jungle-route-map-image,
.jungle-vision-layer,
.jungle-reach-layer,
.jungle-route-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.jungle-route-map-image {
  z-index: 1;
  display: block;
  object-fit: cover;
}

.jungle-vision-layer {
  z-index: 2;
  pointer-events: none;
}

.jungle-reach-layer {
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

.jungle-reach-circle {
  stroke: rgba(130, 222, 255, 0.9);
  stroke-width: 4;
  stroke-dasharray: 14 10;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(71, 191, 255, 0.85));
}

.jungle-reach-circle.minute-2 { fill-opacity: 0.9; }
.jungle-reach-circle.minute-3 { fill-opacity: 0.82; }
.jungle-reach-circle.minute-4 { fill-opacity: 0.74; }
.jungle-reach-circle.minute-5 { fill-opacity: 0.68; }

.jungle-reach-origin {
  fill: rgba(220, 248, 255, 0.18);
  stroke: rgba(196, 240, 255, 0.96);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(68, 191, 255, 0.95));
}

.jungle-reach-layer.red .jungle-reach-circle {
  stroke: rgba(255, 134, 154, 0.9);
  filter: drop-shadow(0 0 5px rgba(255, 65, 99, 0.82));
}

.jungle-reach-layer.red .jungle-reach-origin {
  fill: rgba(255, 211, 219, 0.18);
  stroke: rgba(255, 202, 212, 0.96);
  filter: drop-shadow(0 0 5px rgba(255, 72, 105, 0.95));
}

.jungle-fog-shape {
  fill: rgba(0, 0, 0, 0.86);
}

.jungle-route-layer {
  z-index: 4;
  overflow: visible;
  pointer-events: none;
}

.jungle-route-line {
  fill: none;
  stroke: #27b5ff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(25, 171, 255, 0.95));
}

.jungle-route-layer.red .jungle-route-line {
  stroke: #f04b61;
  filter: drop-shadow(0 0 5px rgba(240, 75, 97, 0.94));
}

.jungle-route-point {
  fill: #07141f;
  stroke: #61c9ff;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.jungle-route-layer.red .jungle-route-point {
  fill: #210910;
  stroke: #ff7184;
}

.jungle-route-point.current {
  fill: #ecbe4b;
  stroke: #fff0b1;
}

.jungle-route-minute {
  fill: #ffffff;
  font-size: 760px;
  font-weight: 950;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.78);
  stroke-width: 110px;
  pointer-events: none;
}

.jungle-route-cs {
  fill: #fff6c8;
  font-size: 600px;
  font-weight: 900;
  letter-spacing: 12px;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.9);
  stroke-linejoin: round;
  stroke-width: 170px;
  pointer-events: none;
}

.jungle-route-current {
  position: absolute;
  z-index: 5;
  display: grid;
  width: 38px;
  height: 38px;
  overflow: visible;
  place-items: center;
  border: 3px solid #58c8ff;
  border-radius: 50%;
  background: #06111b;
  box-shadow: 0 0 0 3px rgba(16, 133, 211, 0.38), 0 4px 12px rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%);
}

.jungle-route-current.red {
  border-color: #f05b70;
  box-shadow: 0 0 0 3px rgba(208, 51, 75, 0.38), 0 4px 12px rgba(0, 0, 0, 0.9);
}

.jungle-route-current-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.jungle-route-current-minute {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid #f8e8a5;
  border-radius: 50%;
  color: #fff8d8;
  background: #785b0b;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.75);
  font-size: 9px;
  font-weight: 950;
}

.jungle-camp-predictions {
  display: grid;
  gap: 1px;
  padding: 1px 0 0;
  background: #02070b;
}

.jungle-camp-prediction {
  display: grid;
  grid-template-columns: 31px 43px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 4px 7px;
  color: #71869a;
  background: #071019;
  font-size: 9px;
}

.jungle-camp-prediction.has-clear {
  color: #dcecff;
  background: linear-gradient(90deg, rgba(28, 132, 199, 0.18), #071019 68%);
}

.jungle-route-card.red .jungle-camp-prediction.has-clear {
  background: linear-gradient(90deg, rgba(196, 43, 67, 0.2), #12090d 68%);
}

.jungle-camp-prediction strong,
.jungle-camp-prediction-cs {
  white-space: nowrap;
}

.jungle-camp-prediction-cs {
  color: #f6d979;
  font-weight: 850;
}

.jungle-camp-prediction-route {
  overflow: hidden;
  color: #d9ebfa;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jungle-camp-prediction-route.empty {
  color: #66798a;
  font-weight: 600;
}

.live-game-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #091827;
}

.live-game-card.active {
  border-color: rgba(54, 179, 126, 0.62);
  background: linear-gradient(110deg, rgba(54, 179, 126, 0.12), #091827 48%);
}

.live-game-heading,
.live-game-details,
.live-opponent-button {
  display: flex;
  align-items: center;
}

.live-game-heading {
  gap: 9px;
}

.live-game-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #60758b;
  box-shadow: 0 0 0 4px rgba(96, 117, 139, 0.14);
}

.live-game-card.active .live-game-dot {
  background: #36b37e;
  box-shadow: 0 0 0 4px rgba(54, 179, 126, 0.15), 0 0 14px rgba(54, 179, 126, 0.45);
}

.live-game-note,
.live-opponent-missing {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.live-game-details {
  gap: 14px;
  margin-top: 14px;
}

.live-champion-image,
.live-opponent-image {
  width: 54px;
  height: 54px;
  border-radius: 9px;
  object-fit: cover;
}

.live-game-copy {
  min-width: 190px;
}

.live-game-copy strong,
.live-game-copy span,
.live-opponent-copy small,
.live-opponent-copy strong,
.live-opponent-copy span {
  display: block;
}

.live-game-copy span,
.live-opponent-copy small,
.live-opponent-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.live-opponent-button {
  gap: 11px;
  min-width: 330px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid #315270;
  border-radius: 10px;
  color: var(--text);
  background: #102439;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.live-opponent-button:hover,
.live-opponent-button:focus-visible {
  border-color: var(--blue);
  background: #16314c;
}

.live-opponent-copy {
  min-width: 0;
}

.live-opponent-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-opponent-missing {
  margin: 0 0 0 auto;
}

.play-style-section {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #315270;
  border-radius: 12px;
  background: linear-gradient(130deg, rgba(38, 115, 240, 0.09), #091827 55%);
}

.play-style-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.play-style-heading h3,
.play-style-heading p {
  margin: 0;
}

.play-style-heading h3 {
  font-size: 17px;
}

.play-style-heading p {
  color: var(--muted);
  font-size: 12px;
}

.play-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.play-style-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b1d2f;
}

.play-style-card.early {
  border-top: 3px solid #6aa7ff;
}

.play-style-card.late {
  border-top: 3px solid var(--gold);
}

.play-style-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.play-style-caption,
.play-style-label {
  display: block;
}

.play-style-caption {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.play-style-label {
  font-size: 24px;
}

.play-style-count {
  flex: none;
  padding: 6px 9px;
  border-radius: 999px;
  color: #d7e8ff;
  background: #173653;
  font-size: 12px;
  font-weight: 800;
}

.play-style-criteria {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.play-style-criterion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 7px;
  color: #8197ad;
  background: #071523;
  font-size: 12px;
}

.play-style-criterion.active {
  color: #dcecff;
}

.play-style-criterion strong {
  color: var(--gold);
}

.play-style-mixed,
.play-style-unclear {
  display: block;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.structure-replay-section {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #315270;
  border-radius: 12px;
  background: #091827;
}

.structure-replay-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.structure-replay-heading h3,
.structure-replay-heading p {
  margin: 0;
}

.structure-replay-heading h3 {
  font-size: 17px;
}

.structure-replay-heading p {
  color: var(--muted);
  font-size: 12px;
}

.structure-replay-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.structure-replay-tab {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #071523;
  cursor: pointer;
  text-align: left;
}

.structure-replay-tab:hover,
.structure-replay-tab.active {
  border-color: var(--blue);
  background: #102b44;
}

.structure-replay-tab span,
.structure-replay-tab strong,
.structure-replay-tab small {
  display: block;
  min-width: 0;
}

.structure-replay-tab strong,
.structure-replay-tab small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.structure-replay-tab strong {
  font-size: 11px;
}

.structure-replay-tab small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.structure-replay-champion {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  object-fit: cover;
}

.structure-replay-stage {
  display: grid;
  grid-template-columns: minmax(360px, 480px) minmax(240px, 1fr);
  align-items: center;
  gap: 26px;
  margin-top: 16px;
}

.structure-map {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid #35536e;
  border-radius: 14px;
  background: #02080e;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.structure-map-image,
.structure-map-layer,
.structure-champion-layer,
.structure-objective-layer,
.structure-death-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.structure-map-image {
  object-fit: cover;
}

.structure-map-layer {
  pointer-events: none;
}

.structure-champion-layer {
  z-index: 5;
  pointer-events: none;
}

.structure-objective-layer {
  z-index: 8;
  pointer-events: none;
}

.structure-death-layer {
  z-index: 11;
  pointer-events: none;
}

.map-champion {
  position: absolute;
  z-index: 5;
  display: grid;
  width: 30px;
  height: 30px;
  overflow: hidden;
  place-items: center;
  border: 2px solid #d8344f;
  border-radius: 50%;
  background: #07111b;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.82);
  transform: translate(-50%, -50%);
}

.map-champion.blue {
  border-color: #00b7d9;
}

.map-champion.self {
  z-index: 6;
  width: 36px;
  height: 36px;
  border-width: 3px;
  box-shadow: 0 0 0 2px #f0c75e, 0 3px 9px rgba(0, 0, 0, 0.9);
}

.map-champion.respawned {
  box-shadow: 0 0 0 2px rgba(126, 219, 138, 0.52), 0 3px 9px rgba(0, 0, 0, 0.9);
}

.map-champion-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-objective-event {
  position: absolute;
  z-index: 8;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: rgba(3, 10, 17, 0.88);
  box-shadow: 0 0 0 3px rgba(216, 52, 79, 0.42), 0 4px 10px rgba(0, 0, 0, 0.82);
  transform: translate(-50%, -50%);
}

.map-objective-event.blue {
  box-shadow: 0 0 0 3px rgba(0, 183, 217, 0.45), 0 4px 10px rgba(0, 0, 0, 0.82);
}

.map-objective-event-glyph {
  width: 32px;
  height: 32px;
  background: #dc2849;
  -webkit-mask-image: url("/lol/icons/cdragon-timeline-objectives.png");
  -webkit-mask-position: center calc(var(--objective-row) * -32px);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 32px 224px;
  mask-image: url("/lol/icons/cdragon-timeline-objectives.png");
  mask-position: center calc(var(--objective-row) * -32px);
  mask-repeat: no-repeat;
  mask-size: 32px 224px;
}

.map-objective-event-glyph.structure-icon {
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  -webkit-mask-image: none;
  mask-image: none;
}

.map-objective-event-glyph.epic-icon {
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  -webkit-mask-image: none;
  mask-image: none;
}

.map-objective-event.blue .map-objective-event-glyph:not(.structure-icon) {
  background: #00b7d9;
}

.map-objective-event.blue .map-objective-event-glyph.epic-icon {
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.map-epic-objective {
  position: absolute;
  z-index: 7;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(3, 10, 17, 0.72);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.88);
  transform: translate(-50%, -50%);
}

.map-epic-objective.estimated {
  outline: 1px dashed rgba(226, 236, 241, 0.72);
  outline-offset: 1px;
}

.map-epic-objective-glyph {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.95));
}

.map-epic-objective-count {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 9px;
  color: #fff;
  background: #4a287f;
  font-size: 11px;
  line-height: 1;
}

.map-death-event {
  position: absolute;
  z-index: 11;
  display: grid;
  width: clamp(18px, 4.5%, 23px);
  height: auto;
  aspect-ratio: 1;
  place-items: center;
  transform: translate(-50%, -50%);
}

.map-death-event-glyph {
  display: block;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.95));
}

.map-death-event.ally .map-death-event-glyph {
  filter: drop-shadow(0 0 2px rgba(126, 219, 138, 0.88)) drop-shadow(0 1px 2px rgba(46, 107, 69, 0.95));
}

.map-death-event.enemy .map-death-event-glyph {
  filter: drop-shadow(0 0 2px rgba(217, 90, 99, 0.9)) drop-shadow(0 1px 2px rgba(107, 43, 51, 0.96));
}

.structure-replay-current-event {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.structure-replay-current-event.active {
  color: #f0c75e;
}

.map-structure {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  transform: translate(-50%, -50%);
}

.map-structure-glyph {
  display: block;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  image-rendering: auto;
  filter: drop-shadow(0 0 1px #02070a);
  transition: opacity 120ms ease;
}

.map-structure-glyph.loading,
.map-death-event-glyph.loading,
.map-objective-event-glyph.loading,
.map-epic-objective-glyph.loading {
  opacity: 0.5;
}

.map-structure.tower {
  width: 40px;
  height: 40px;
}

.map-structure.inhibitor {
  width: 42px;
  height: 42px;
}

.map-structure.nexus {
  z-index: 3;
  width: 44px;
  height: 44px;
}

.map-structure.destroyed {
  z-index: 1;
  opacity: 0.72;
}

.map-structure.tower.destroyed {
  display: none;
}

.map-structure.destroyed .map-structure-glyph {
  filter: grayscale(0) drop-shadow(0 0 1px #02070a);
}

.map-structure.respawn-estimated {
  border: 1px dashed rgba(226, 236, 241, 0.72);
  border-radius: 50%;
}

.structure-replay-controls {
  display: grid;
  gap: 13px;
  align-content: center;
}

.structure-replay-result {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.structure-replay-time {
  font-variant-numeric: tabular-nums;
  font-size: 38px;
  letter-spacing: -0.04em;
}

.structure-replay-range {
  width: 100%;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  accent-color: var(--gold);
  box-shadow: none;
}

.structure-replay-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.structure-replay-play,
.structure-replay-reset {
  min-height: 44px;
  border: 1px solid #35536e;
  border-radius: 8px;
  color: var(--text);
  background: #10283e;
  cursor: pointer;
  font-weight: 800;
}

.structure-replay-play {
  border-color: #b88935;
  color: #ffdb8f;
}

.structure-replay-play:hover,
.structure-replay-reset:hover {
  background: #173653;
}

.structure-replay-destroyed,
.structure-replay-next {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.structure-replay-next {
  min-height: 18px;
  color: #d8e8f7;
}

.replay-performance-graph {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #4d421d;
  border-radius: 10px;
  color: #f9e7a7;
  background: #030303;
  box-shadow: inset 0 0 32px rgba(255, 202, 43, 0.035);
}

.replay-performance-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.replay-performance-heading h4,
.replay-performance-heading p,
.replay-performance-breakdown {
  margin: 0;
}

.replay-performance-heading h4 {
  color: #ffd64d;
  font-size: 16px;
}

.replay-performance-heading p {
  margin-top: 3px;
  color: #8c8467;
  font-size: 11px;
}

.replay-performance-selected {
  color: #ffe36f;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.replay-performance-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.replay-performance-metric {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #4b4328;
  border-radius: 5px;
  color: #a99c70;
  background: #0a0a08;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.replay-performance-metric:hover,
.replay-performance-metric.active {
  border-color: #ffd43b;
  color: #1b1603;
  background: #ffd43b;
  box-shadow: 0 0 14px rgba(255, 212, 59, 0.22);
}

.replay-performance-chart {
  display: block;
  width: 100%;
  height: 260px;
  margin-top: 10px;
  overflow: visible;
  background: #000;
}

.replay-performance-grid line {
  stroke: #2b281b;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.replay-performance-area {
  fill: rgba(255, 208, 46, 0.09);
}

.replay-performance-line {
  fill: none;
  stroke: #ffd22e;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(255, 210, 46, 0.45));
}

.replay-performance-cursor {
  stroke: rgba(255, 231, 133, 0.72);
  stroke-dasharray: 4 4;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.replay-performance-dot {
  fill: #0b0901;
  stroke: #ffdf50;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.replay-performance-axis-label {
  fill: #8e8564;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.replay-performance-axis-label.time {
  fill: #706a52;
}

.replay-performance-summary {
  display: grid;
  grid-template-columns: repeat(8, minmax(90px, 1fr));
  overflow-x: auto;
  border-top: 1px solid #332e1d;
  border-bottom: 1px solid #332e1d;
}

.replay-performance-stat {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border-right: 1px solid #272418;
  text-align: center;
}

.replay-performance-stat:last-child {
  border-right: 0;
}

.replay-performance-stat small {
  color: #777059;
  font-size: 10px;
}

.replay-performance-stat strong {
  overflow: hidden;
  color: #ffdc51;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
}

.replay-performance-breakdown {
  margin-top: 11px;
  color: #d3c584;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.combat-history {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid #24425d;
}

.combat-history-title {
  display: block;
  margin-bottom: 8px;
  color: #f2d58e;
  font-size: 13px;
}

.combat-history-list {
  display: grid;
  gap: 5px;
  max-height: 190px;
  overflow-y: auto;
  padding-right: 4px;
}

.combat-history-row {
  display: grid;
  grid-template-columns: 62px 104px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 7px 8px;
  border-left: 3px solid #5d758a;
  border-radius: 5px;
  color: #71879a;
  background: #07131f;
  font-size: 10px;
}

.combat-history-row.kill {
  border-left-color: #2a9dcc;
}

.combat-history-row.death {
  border-left-color: #b52d45;
}

.combat-history-row.past {
  color: #c9dbea;
}

.combat-history-row.active {
  color: #fff;
  background: #15314a;
  box-shadow: inset 0 0 0 1px rgba(240, 199, 94, 0.48);
}

.combat-history-row time {
  color: #8fb2cf;
  font-variant-numeric: tabular-nums;
}

.combat-history-row strong,
.combat-history-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combat-history-empty {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.mastery-section {
  margin-top: 22px;
}

.mastery-heading {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--muted);
}

.mastery-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mastery-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #091827;
}

.mastery-rank {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #08131f;
  background: #f1c86c;
  font-size: 12px;
  font-weight: 900;
}

.mastery-portrait {
  width: 64px;
  height: 64px;
  border-radius: 9px;
  object-fit: cover;
}

.mastery-copy strong,
.mastery-copy span {
  display: block;
}

.mastery-copy span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.match-history {
  margin-top: 26px;
}

.match-history-heading {
  margin-bottom: 14px;
  font-size: 18px;
}

.match-history-list {
  display: grid;
  gap: 0;
  overflow-x: auto;
  padding: 2px 0 8px;
}

.match-history-list .match-card {
  margin-top: 0;
}

.match-card {
  --match-slot: 60px;
  position: relative;
  display: grid;
  grid-template-columns:
    calc(var(--match-slot) * 4)
    var(--match-slot)
    calc(var(--match-slot) * 4)
    calc(var(--match-slot) * 4);
  width: calc(var(--match-slot) * 13 + 16px);
  height: calc(var(--match-slot) * 2);
  overflow: hidden;
  border-left: 16px solid #a9182b;
  background: #020303;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.match-card.win {
  border-left-color: #009cff;
}

.match-champion {
  position: relative;
  width: calc(var(--match-slot) * 4);
  height: calc(var(--match-slot) * 2);
  overflow: hidden;
  background: #050606;
}

.match-champion-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  filter: saturate(0.92) contrast(1.05);
}

.match-champion-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 33%, rgba(0, 0, 0, 0.08) 72%, transparent 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.38) 0%, transparent 48%);
  pointer-events: none;
}

.match-tier-line {
  position: absolute;
  top: 9px;
  left: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100% - 24px);
}

.match-average-tier,
.match-lp-delta {
  padding: 4px 7px;
  overflow: hidden;
  border-radius: 4px;
  color: #f2e7ca;
  background: rgba(0, 0, 0, 0.64);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  text-shadow: 0 1px 5px #000;
  white-space: nowrap;
}

.match-lp-delta.positive {
  color: #7ed7ff;
  background: rgba(0, 76, 126, 0.78);
}

.match-lp-delta.negative {
  color: #ff9b9b;
  background: rgba(118, 19, 30, 0.78);
}

.match-lp-delta.unavailable {
  color: #9aabb9;
  background: rgba(0, 0, 0, 0.58);
  font-size: 10px;
}

.match-kda {
  position: absolute;
  left: 18px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  text-shadow: 0 2px 8px #000, 0 0 18px rgba(0, 0, 0, 0.9);
}

.match-kda-score {
  appearance: none;
  padding: 2px 0;
  border: 0;
  color: #ffe400;
  background: transparent;
  font: inherit;
  font-size: 29px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.match-kda-score:hover,
.match-kda-score:focus-visible {
  color: #fff04d;
  text-decoration: underline;
}

.match-spells {
  display: grid;
  grid-template-rows: repeat(2, var(--match-slot));
  gap: 0;
  background: #030404;
}

.match-rune-board {
  display: grid;
  grid-template-columns: repeat(4, var(--match-slot));
  grid-template-rows: repeat(2, var(--match-slot));
  gap: 0;
  background: #020303;
}

.match-items {
  display: grid;
  grid-template-columns: repeat(4, var(--match-slot));
  grid-template-rows: repeat(2, var(--match-slot));
  gap: 0;
  background: #020303;
}

.match-spell-icon,
.match-rune-icon,
.match-item-icon,
.match-empty-slot {
  display: block;
  width: var(--match-slot);
  height: var(--match-slot);
  background: #020303;
  object-fit: cover;
}

.match-rune-icon {
  padding: 5px;
  object-fit: contain;
}

.match-rune-icon.primary {
  background: radial-gradient(circle, rgba(49, 10, 42, 0.62), #020303 72%);
}

.match-rune-icon.secondary {
  background: radial-gradient(circle, rgba(37, 18, 68, 0.62), #020303 72%);
}

.match-empty-slot {
  border: 0;
}

.empty-match {
  margin: 24px 0 0;
  color: var(--muted);
}

.lol-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #6f879d;
  font-size: 12px;
}

.ban-recommendation-section {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #31465d;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(13, 20, 29, 0.98), rgba(5, 10, 16, 0.98));
}

.ban-recommendation-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.ban-recommendation-heading h3 {
  margin-bottom: 4px;
  font-size: 24px;
}

.ban-recommendation-heading p,
.ban-score-note,
.ban-data-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.ban-recommendation-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(130px, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.ban-filter-select {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #334960;
  border-radius: 8px;
  color: var(--text);
  background: #09131e;
}

.ban-recommendation-content {
  margin-top: 18px;
}

.ban-recommendation-loading,
.ban-recommendation-empty,
.ban-recommendation-error {
  margin: 0;
  padding: 24px;
  border: 1px dashed #344b63;
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

.ban-recommendation-error {
  color: #ff939b;
}

.ban-analysis-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #283d52;
  border-radius: 10px;
  background: rgba(12, 25, 39, 0.72);
}

.ban-analysis-champion-image {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.ban-analysis-copy {
  display: grid;
  gap: 2px;
}

.ban-analysis-copy span,
.ban-analysis-copy small {
  color: var(--muted);
  font-size: 12px;
}

.ban-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ban-recommendation-card {
  overflow: hidden;
  border: 1px solid #394a59;
  border-top: 3px solid #8796a4;
  border-radius: 10px;
  background: #070d13;
}

.ban-recommendation-card.rank-1 {
  border-color: #7e2c35;
  border-top-color: #ef5b67;
  background: linear-gradient(155deg, rgba(71, 18, 25, 0.72), #070d13 58%);
}

.ban-recommendation-card.rank-2 {
  border-color: #765026;
  border-top-color: #f09a41;
  background: linear-gradient(155deg, rgba(67, 39, 14, 0.64), #070d13 58%);
}

.ban-card-heading {
  display: grid;
  grid-template-columns: auto 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 13px;
}

.ban-rank {
  color: #ffbd55;
  font-weight: 900;
}

.ban-champion-image {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  object-fit: cover;
}

.ban-card-identity {
  display: grid;
  gap: 3px;
}

.ban-card-identity span {
  color: var(--muted);
  font-size: 11px;
}

.ban-score {
  display: grid;
  justify-items: end;
}

.ban-score strong {
  color: #ffd26d;
  font-size: 24px;
  line-height: 1;
}

.ban-score span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.ban-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #263744;
  border-bottom: 1px solid #263744;
}

.ban-metric {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 11px;
  border-right: 1px solid #1d2c38;
  border-bottom: 1px solid #1d2c38;
}

.ban-metric span {
  overflow: hidden;
  color: #7890a4;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ban-metric strong {
  font-size: 12px;
}

.ban-reasons {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 12px 18px 14px 29px;
  color: #c5d3df;
  font-size: 12px;
  line-height: 1.45;
}

.ban-score-note {
  margin-top: 12px;
}

.ban-data-note {
  margin-top: 7px;
  color: #e5a456;
}

.one-trick-section {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #5b3c69;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(27, 15, 34, 0.98), rgba(6, 10, 16, 0.98) 58%);
}

.one-trick-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.one-trick-heading h3 {
  margin-bottom: 4px;
  color: #f2d6ff;
  font-size: 24px;
}

.one-trick-heading p,
.one-trick-data-note,
.one-trick-caution-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.one-trick-state-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.one-trick-state {
  padding: 10px 12px;
  border: 1px solid #3a4655;
  border-radius: 8px;
  color: #aebdca;
  background: #08111a;
  cursor: pointer;
}

.one-trick-state.active {
  border-color: #b66ddd;
  color: #fff;
  background: linear-gradient(135deg, #63337a, #362049);
  box-shadow: 0 0 16px rgba(184, 92, 225, 0.24);
}

.one-trick-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(130px, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.one-trick-select {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #3c4b5a;
  border-radius: 8px;
  color: var(--text);
  background: #09131e;
}

.one-trick-rosters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.one-trick-roster-editor {
  min-width: 0;
  padding: 10px;
  border: 1px solid #2b3b4a;
  border-radius: 9px;
  background: rgba(5, 11, 17, 0.66);
}

.one-trick-roster-editor > label {
  display: block;
  margin-bottom: 7px;
  color: #9db0c0;
  font-size: 11px;
  font-weight: 800;
}

.one-trick-roster-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.one-trick-roster-add button {
  padding: 0 14px;
  border: 1px solid #694a79;
  border-radius: 8px;
  color: #edd8f7;
  background: #2a1a33;
  cursor: pointer;
}

.one-trick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 25px;
  margin-top: 8px;
}

.one-trick-chip {
  padding: 4px 7px;
  border: 1px solid #5c4568;
  border-radius: 999px;
  color: #e4cee9;
  background: #201427;
  font-size: 10px;
  cursor: pointer;
}

.one-trick-chip-empty {
  align-self: center;
  color: #667a8c;
  font-size: 10px;
}

.one-trick-content {
  margin-top: 18px;
}

.one-trick-loading,
.one-trick-empty,
.one-trick-error {
  margin: 0;
  padding: 24px;
  border: 1px dashed #4d3d59;
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

.one-trick-error {
  color: #ff939b;
}

.one-trick-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
  padding: 11px 13px;
  border: 1px solid #50335d;
  border-radius: 10px;
  background: rgba(35, 17, 43, 0.68);
}

.one-trick-main-image,
.one-trick-champion-image {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.one-trick-summary-copy {
  display: grid;
  gap: 2px;
}

.one-trick-summary-copy span,
.one-trick-summary-copy small,
.one-trick-identity span,
.one-trick-identity small {
  color: var(--muted);
  font-size: 11px;
}

.one-trick-fallback-note {
  margin: 0 0 12px;
  padding: 9px 11px;
  border-left: 3px solid #ffb84d;
  color: #efc77e;
  background: rgba(82, 48, 12, 0.34);
  font-size: 12px;
}

.one-trick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.one-trick-card {
  overflow: hidden;
  border: 1px solid #3c4854;
  border-top: 3px solid #8c99a5;
  border-radius: 10px;
  background: #070d13;
}

.one-trick-card.rank-1 {
  border-color: #70427d;
  border-top-color: #d879ef;
  background: linear-gradient(155deg, rgba(70, 30, 81, 0.72), #070d13 58%);
}

.one-trick-card.rank-2 {
  border-color: #765026;
  border-top-color: #f09a41;
}

.one-trick-card-heading {
  display: grid;
  grid-template-columns: auto 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 12px;
}

.one-trick-rank {
  color: #e8b5f6;
  font-size: 11px;
  font-weight: 900;
}

.one-trick-identity {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.one-trick-score {
  display: grid;
  justify-items: end;
}

.one-trick-score strong {
  color: #f1c56d;
  font-size: 23px;
  line-height: 1;
}

.one-trick-score span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.one-trick-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 12px 10px;
}

.one-trick-badges span {
  padding: 3px 6px;
  border: 1px solid #664375;
  border-radius: 999px;
  color: #e6c6ef;
  background: #22142a;
  font-size: 9px;
}

.one-trick-badges .owned {
  border-color: #2e7354;
  color: #91e8bd;
  background: #10281f;
}

.one-trick-badges .not-owned {
  border-color: #704048;
  color: #e7a0a6;
  background: #2b1519;
}

.one-trick-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #263744;
  border-bottom: 1px solid #263744;
}

.one-trick-metric {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 10px;
  border-right: 1px solid #1d2c38;
  border-bottom: 1px solid #1d2c38;
}

.one-trick-metric span {
  color: #7890a4;
  font-size: 10px;
}

.one-trick-metric strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.one-trick-reasons {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 12px 18px 14px 29px;
  color: #c5d3df;
  font-size: 12px;
  line-height: 1.45;
}

.one-trick-avoid {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #4e3038;
}

.one-trick-avoid h4 {
  margin: 0 0 9px;
  color: #ff9ba3;
  font-size: 15px;
}

.one-trick-avoid-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.one-trick-avoid-card {
  display: flex;
  align-items: start;
  gap: 9px;
  padding: 9px;
  border: 1px solid #59353c;
  border-radius: 8px;
  background: rgba(50, 18, 23, 0.5);
}

.one-trick-avoid-image {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
}

.one-trick-avoid-card strong {
  font-size: 12px;
}

.one-trick-avoid-card p {
  margin: 3px 0 0;
  color: #c9a2a6;
  font-size: 10px;
  line-height: 1.35;
}

.one-trick-caution-note,
.one-trick-data-note {
  margin-top: 8px;
}

.one-trick-data-note {
  color: #d9a356;
}

.lol-footer p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 1180px) {
  html {
    min-width: 0;
  }

  .lol-shell {
    width: min(100% - 32px, 980px);
    padding-top: 28px;
  }

  .search-form,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mastery-list {
    grid-template-columns: 1fr;
  }

  .play-style-grid {
    grid-template-columns: 1fr;
  }

  .ban-recommendation-grid {
    grid-template-columns: 1fr;
  }

  .one-trick-grid,
  .one-trick-avoid-grid {
    grid-template-columns: 1fr;
  }

  .structure-replay-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .structure-replay-stage {
    grid-template-columns: 1fr;
  }

  .champion-identity {
    padding: 32px;
  }
}

@media (max-width: 720px) {
  .lol-shell {
    width: min(100% - 18px, 680px);
    padding-top: 18px;
  }

  .jungle-start-rows,
  .jungle-route-grid {
    grid-template-columns: 1fr;
  }

  .ban-recommendation-section {
    padding: 15px 11px;
  }

  .ban-recommendation-heading {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .ban-recommendation-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .one-trick-section {
    padding: 15px 11px;
  }

  .one-trick-heading {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .one-trick-controls,
  .one-trick-rosters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .one-trick-card-heading {
    grid-template-columns: auto 42px minmax(0, 1fr) auto;
  }

  .one-trick-champion-image {
    width: 42px;
    height: 42px;
  }

  .jungle-route-card-heading {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .jungle-route-champion {
    width: 38px;
    height: 38px;
  }

  .replay-performance-graph {
    padding: 12px 8px;
  }

  .replay-performance-header {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }

  .replay-performance-chart {
    height: 220px;
  }

  .replay-performance-metric {
    flex: 1 1 calc(33.333% - 6px);
    padding: 0 7px;
  }

  .replay-performance-summary {
    grid-template-columns: repeat(8, minmax(80px, 1fr));
    overflow-x: auto;
  }

  .match-history-list {
    gap: 0;
  }

  .match-card {
    --match-slot: clamp(27px, calc((100vw - 42px) / 13), 48px);
    width: calc(var(--match-slot) * 13 + 8px);
    border-left-width: 8px;
  }

  .match-kda {
    left: calc(var(--match-slot) * 0.28);
    bottom: calc(var(--match-slot) * 0.2);
    gap: calc(var(--match-slot) * 0.18);
  }

  .match-kda-score {
    font-size: clamp(15px, calc(var(--match-slot) * 0.48), 23px);
  }

  .match-tier-line {
    top: calc(var(--match-slot) * 0.14);
    left: calc(var(--match-slot) * 0.18);
    gap: 3px;
  }

  .match-average-tier,
  .match-lp-delta {
    padding: 3px 5px;
    font-size: clamp(8px, calc(var(--match-slot) * 0.2), 11px);
  }

  .match-lp-delta.unavailable {
    font-size: clamp(7px, calc(var(--match-slot) * 0.16), 9px);
  }

  .match-rune-icon {
    padding: clamp(2px, calc(var(--match-slot) * 0.08), 4px);
  }
}
