:root {
  --bg: #080c17;
  --bg-elevated: #0c1224;
  --title: #fcb700;
  --text: #d7dce8;
  --muted: #8b95ab;
  --line: rgba(252, 183, 0, 0.22);
  --glow: rgba(252, 183, 0, 0.35);
  --radius: 14px;
  --font-sans: "Inter", system-ui, sans-serif;
  --shadow-deep: 0 24px 80px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(252, 183, 0, 0.08), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(56, 120, 255, 0.06), transparent 50%),
    linear-gradient(180deg, #060914 0%, var(--bg) 38%, #050812 100%);
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2rem) 1.5rem;
  text-align: center;
}

.hero__title {
  margin: 0;
  line-height: 0;
}

.hero__brand {
  display: inline-block;
  width: auto;
  max-width: min(520px, 92vw);
  height: auto;
  vertical-align: top;
  filter: drop-shadow(0 0 28px var(--glow));
}

.brand-title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--title);
  text-shadow: 0 0 40px var(--glow);
}

.brand-title--sm {
  font-size: clamp(2rem, 5vw, 3rem);
}

.page-topic {
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  letter-spacing: -0.02em;
  color: var(--title);
}

.tagline {
  margin: 0.75rem 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 500;
  color: var(--text);
}

.tagline--muted {
  color: var(--muted);
}

.shell {
  width: min(1040px, 100% - 2rem);
  margin: 0 auto auto;
  padding-bottom: 3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.shell--narrow {
  width: min(720px, 100% - 2rem);
}

.panel {
  background: linear-gradient(145deg, rgba(12, 18, 36, 0.92), rgba(8, 12, 23, 0.72));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(10px);
}

.panel--carousel {
  padding-bottom: 1.25rem;
}

.panel__head {
  margin-bottom: 1rem;
}

.panel__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--title);
}

.panel__hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.panel__hint code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.85em;
  color: var(--text);
  background: rgba(252, 183, 0, 0.08);
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  border: 1px solid rgba(252, 183, 0, 0.15);
}

.carousel {
  --carousel-radius: 12px;
  margin-top: 0.25rem;
}

.carousel__viewport {
  outline: none;
  border-radius: var(--carousel-radius);
  overflow: hidden;
  border: 1px solid rgba(252, 183, 0, 0.18);
  background: #04060d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.carousel__viewport:focus-visible {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(252, 183, 0, 0.35);
}

.carousel__track {
  display: flex;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 30% 20%, #121a32, #060914);
}

.carousel__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 1;
}

.carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(252, 183, 0, 0.35);
  background: transparent;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.carousel__dot:hover {
  transform: scale(1.15);
}

.carousel__dot.is-active {
  background: var(--title);
  border-color: var(--title);
  box-shadow: 0 0 14px var(--glow);
}

.carousel__btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 23, 0.85);
  color: var(--title);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.carousel__btn:hover {
  background: rgba(252, 183, 0, 0.12);
  border-color: rgba(252, 183, 0, 0.45);
  transform: translateY(-1px);
}

.carousel__btn:active {
  transform: translateY(0);
}

.highlights {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.highlights li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 1rem;
  color: var(--text);
}

.highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 3px;
  background: var(--title);
  box-shadow: 0 0 12px var(--glow);
}

.cta-band {
  text-align: center;
  padding: 0.5rem 0 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.6rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--bg);
  background: linear-gradient(180deg, #ffd45a, var(--title));
  border: 1px solid rgba(255, 214, 120, 0.65);
  border-radius: 999px;
  text-decoration: none;
  box-shadow:
    0 14px 40px rgba(252, 183, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow:
    0 18px 50px rgba(252, 183, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cta-button:focus-visible {
  outline: 2px solid var(--title);
  outline-offset: 3px;
}

.cta-button.cta-button--outline {
  color: var(--title);
  background: rgba(8, 12, 22, 0.55);
  border: 1px solid rgba(252, 183, 0, 0.5);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cta-button.cta-button--outline:hover {
  filter: brightness(1.06);
  border-color: rgba(255, 214, 120, 0.65);
  box-shadow:
    0 14px 40px rgba(252, 183, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cta-button.cta-button--outline:focus-visible {
  outline: 2px solid rgba(252, 183, 0, 0.85);
  outline-offset: 3px;
}

.cta-button.cta-button--outline:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.cta-note {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.foot__icon {
  width: 28px;
  height: auto;
  flex-shrink: 0;
  opacity: 0.9;
}

.brand-img--wordmark {
  display: inline-block;
  width: auto;
  max-width: 140px;
  height: auto;
  vertical-align: middle;
}

.back-link__wordmark {
  max-width: 118px;
}

.subhead {
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2rem) 1rem;
  text-align: center;
}

.subhead--bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  text-align: center;
}

.subhead--bar .back-link {
  align-self: flex-start;
  margin-bottom: 0;
  text-align: left;
}

.subhead__intro {
  width: 100%;
  max-width: min(640px, 100%);
  margin-inline: auto;
}

.subhead__intro .page-topic {
  margin-top: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.back-link__icon {
  width: 22px;
  height: auto;
  flex-shrink: 0;
  opacity: 0.95;
}

.back-link:hover {
  color: var(--title);
  border-bottom-color: rgba(252, 183, 0, 0.45);
}

.lede {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.lede code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.92em;
  color: var(--title);
  background: rgba(252, 183, 0, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.panel--nexus-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nexus-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.nexus-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.nexus-form__row--split {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 1.25rem;
}

.nexus-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1 1 11rem;
  min-width: 0;
}

@media (max-width: 520px) {
  .nexus-form__row--split {
    flex-direction: column;
    align-items: stretch;
  }

  .nexus-form__row--split .nexus-form__field {
    flex: 1 1 auto;
  }
}

.nexus-form__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.nexus-form__input,
.nexus-form__select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: rgba(4, 6, 13, 0.65);
  border: 1px solid rgba(252, 183, 0, 0.2);
  border-radius: 10px;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.nexus-form__input::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

.nexus-form__input:focus,
.nexus-form__select:focus {
  border-color: rgba(252, 183, 0, 0.45);
  box-shadow: 0 0 0 3px rgba(252, 183, 0, 0.15);
}

.nexus-form__input:disabled,
.nexus-form__select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.nexus-form__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.nexus-form__hint code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.9em;
  color: var(--title);
}

.nexus-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.25rem;
}

.nexus-form__actions .cta-button,
.nexus-form__actions .nexus-cta {
  margin: 0;
}

/**
 * Nexus AI form buttons: two explicit variants (no shared “filled” base on .nexus-cta),
 * plus appearance reset so UA button styles cannot override fills.
 */
.nexus-cta {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.6rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.nexus-cta--solid {
  color: var(--bg);
  background: linear-gradient(180deg, #ffd45a, var(--title));
  border: 1px solid rgba(255, 214, 120, 0.65);
  box-shadow:
    0 14px 40px rgba(252, 183, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.nexus-cta--solid:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow:
    0 18px 50px rgba(252, 183, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.nexus-cta--solid:focus-visible {
  outline: 2px solid var(--title);
  outline-offset: 3px;
}

.nexus-cta--solid:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.nexus-cta--ghost {
  color: var(--title);
  background: rgba(8, 12, 22, 0.55);
  border: 1px solid rgba(252, 183, 0, 0.5);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nexus-cta--ghost:hover {
  filter: brightness(1.06);
  border-color: rgba(255, 214, 120, 0.65);
  box-shadow:
    0 14px 40px rgba(252, 183, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nexus-cta--ghost:focus-visible {
  outline: 2px solid rgba(252, 183, 0, 0.85);
  outline-offset: 3px;
}

.nexus-cta--ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.nexus-form__btn-secondary {
  padding: 0.55rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--title);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.nexus-form__btn-secondary:hover {
  background: rgba(252, 183, 0, 0.08);
  border-color: rgba(252, 183, 0, 0.45);
}

.nexus-form__phase {
  margin-left: auto;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(252, 183, 0, 0.2);
  border-radius: 999px;
}

.nexus-form__phase[data-phase="fetching"] {
  color: #7ee787;
  border-color: rgba(126, 231, 135, 0.45);
}

.nexus-form__phase[data-phase="analyzing"] {
  color: #7ee787;
  border-color: rgba(126, 231, 135, 0.45);
}

.nexus-form__phase[data-phase="done"] {
  color: #7ee787;
  border-color: rgba(126, 231, 135, 0.35);
}

.nexus-form__phase[data-phase="error"] {
  color: #ff8b7a;
  border-color: rgba(255, 139, 122, 0.35);
}

.nexus-form__status {
  min-height: 1.5em;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.nexus-form__result {
  margin: 0;
  padding: 1rem;
  max-height: min(420px, 55vh);
  overflow: auto;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #c8d0e0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(252, 183, 0, 0.12);
  border-radius: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

.nexus-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.shell--stats {
  width: min(1120px, 100% - 2rem);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.stats-section {
  padding-top: 0.5rem;
}

.stats-section__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--title);
}

.stats-section__hint {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1rem 0.9rem;
  background: linear-gradient(
    155deg,
    rgba(12, 18, 36, 0.95),
    rgba(8, 12, 23, 0.88)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left-width: 3px;
  box-shadow: var(--shadow-deep);
}

.stat-card--win {
  border-left-color: rgba(126, 231, 135, 0.75);
}

.stat-card--loss {
  border-left-color: rgba(255, 139, 122, 0.55);
}

.stat-card--interactive {
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 200ms ease,
    transform 180ms ease;
}

.stat-card--interactive:hover {
  border-color: rgba(252, 183, 0, 0.4);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(252, 183, 0, 0.08);
  transform: translateY(-2px);
}

.stat-card--interactive:focus-visible {
  outline: 2px solid rgba(252, 183, 0, 0.55);
  outline-offset: 3px;
}

.stat-card--interactive[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.78;
}

@media (prefers-reduced-motion: reduce) {
  .stat-card--interactive:hover {
    transform: none;
  }
}

.stat-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-card__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.stat-card__champ {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--title);
  letter-spacing: -0.02em;
}

.stat-card__lane {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

.stat-card__tier {
  font-size: 0.78rem;
  color: #a8b4cc;
}

.stat-card__kda {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 8px;
  border: 1px solid rgba(252, 183, 0, 0.1);
}

.stat-card__kda-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.stat-card__kda-values {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.stat-card__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
}

.stat-card__metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-card__metric dt {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-card__metric dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.stat-card__foot {
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(252, 183, 0, 0.1);
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
  word-break: break-all;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.analyze-modal[hidden] {
  display: none !important;
}

.analyze-modal:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.analyze-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  box-sizing: border-box;
}

.analyze-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.82);
  backdrop-filter: blur(8px);
}

.analyze-modal__sheet {
  position: relative;
  z-index: 1;
  width: min(960px, 94vw);
  min-height: min(85vh, 880px);
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(1.1rem, 3vw, 1.85rem);
  padding-top: clamp(2.5rem, 5vw, 3rem);
  background: linear-gradient(
    155deg,
    rgba(14, 20, 40, 0.98),
    rgba(8, 12, 23, 0.96)
  );
  border: 1px solid rgba(252, 183, 0, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
}

.analyze-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(252, 183, 0, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.analyze-modal__close:hover {
  color: var(--title);
  border-color: rgba(252, 183, 0, 0.45);
  background: rgba(252, 183, 0, 0.08);
}

.analyze-modal__top {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
}

.analyze-modal__tile {
  width: 100%;
  max-width: 100%;
}

.analyze-modal__tile--line.stat-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  margin: 0;
  box-sizing: border-box;
}

.analyze-modal__tile-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  width: 100%;
  max-width: 100%;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text);
}

.analyze-modal__tile-seg {
  white-space: nowrap;
  flex: 0 1 auto;
}

.analyze-modal__tile-seg:first-child {
  font-weight: 600;
  color: var(--title);
}

.analyze-modal__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.analyze-modal__loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(36vh, 360px);
  padding: 1rem 0.5rem;
}

.analyze-modal__loading[hidden] {
  display: none !important;
}

.analyze-modal__results {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  gap: 0.35rem;
}

.analyze-modal__results[hidden] {
  display: none !important;
}

.analyze-modal__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.25rem 0 0.5rem;
  border-bottom: 1px solid rgba(252, 183, 0, 0.18);
}

.analyze-modal__nav-btn {
  margin: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(252, 183, 0, 0.3);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  cursor: pointer;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.analyze-modal__nav-btn:hover {
  color: var(--title);
  border-color: rgba(252, 183, 0, 0.5);
  background: rgba(252, 183, 0, 0.1);
}

.analyze-modal__nav-btn:focus-visible {
  outline: 2px solid rgba(252, 183, 0, 0.55);
  outline-offset: 2px;
}

.analyze-modal__scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 0.15rem 0.1rem 0.65rem;
  -webkit-overflow-scrolling: touch;
}

.analyze-modal__message {
  margin: 0;
  max-width: 38ch;
  text-align: center;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
}

/* Match analysis body: same glass / gold-line language as .panel, not a separate light theme */
.analyze-report {
  background: transparent;
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.35rem 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.analyze-report__section {
  margin-top: 1.15rem;
  scroll-margin-top: 0.35rem;
  padding: 0.85rem 0.95rem;
  background: linear-gradient(
    145deg,
    rgba(12, 18, 36, 0.55),
    rgba(8, 12, 23, 0.42)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.analyze-report__section:first-child {
  margin-top: 0;
}

.analyze-report__h {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--title);
}

.analyze-report__phase {
  margin-top: 0.85rem;
}

.analyze-report__phase:first-of-type {
  margin-top: 0;
}

.analyze-report__phase-title {
  margin: 0 0 0.4rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.analyze-report__phase-range {
  font-weight: 500;
  color: var(--muted);
}

.analyze-report__timeline-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.analyze-report__timeline-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(252, 183, 0, 0.1);
}

.analyze-report__timeline-row:last-child {
  border-bottom: 0;
}

.analyze-report__timeline-row::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 0.38rem;
  border-radius: 50%;
  background: var(--title);
  box-shadow: 0 0 10px var(--glow);
}

.analyze-report__time {
  flex-shrink: 0;
  min-width: 4.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.analyze-report__timeline-text {
  flex: 1;
  color: var(--text);
}

.analyze-report__team-block {
  margin-top: 0.85rem;
}

.analyze-report__team-block:first-child {
  margin-top: 0.35rem;
}

.analyze-report__team-title {
  margin: 0 0 0.45rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.analyze-report__team-title--blue {
  color: #7ab7ff;
}

.analyze-report__team-title--red {
  color: #ff9a8a;
}

.analyze-report__team-title--neutral {
  color: var(--muted);
}

.analyze-report__player-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.analyze-report__perf-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: capitalize;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(252, 183, 0, 0.1);
  border: 1px solid rgba(252, 183, 0, 0.2);
  color: var(--muted);
}

.analyze-report__player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .analyze-report__player-grid {
    grid-template-columns: 1fr;
  }
}

.analyze-report__player-card {
  border: 1px solid rgba(252, 183, 0, 0.14);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  background: rgba(8, 12, 23, 0.55);
}

.analyze-report__player-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.analyze-report__champ-name {
  font-size: 0.88rem;
  color: var(--text);
}

.analyze-report__role {
  margin-left: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}

.analyze-report__grade {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: rgba(56, 120, 255, 0.15);
  border: 1px solid rgba(122, 183, 255, 0.25);
  color: #b8d4ff;
}

.analyze-report__player-summary {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--muted);
}

.analyze-report__player-body {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text);
}

.analyze-report__kp-table {
  border: 1px solid rgba(252, 183, 0, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(8, 12, 23, 0.45);
}

.analyze-report__kp-row {
  display: grid;
  grid-template-columns: minmax(5rem, auto) 1fr;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(252, 183, 0, 0.08);
  align-items: start;
}

.analyze-report__kp-row:last-child {
  border-bottom: 0;
}

.analyze-report__kp-time {
  font-size: 0.78rem;
  color: var(--muted);
}

.analyze-report__kp-text {
  font-size: 0.82rem;
  color: var(--text);
}

.analyze-report__prose {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(252, 183, 0, 0.14);
  border-radius: 8px;
  background: rgba(8, 12, 23, 0.5);
  font-size: 0.82rem;
  color: var(--text);
}

.analyze-report__prose--tight {
  margin-top: 0.55rem;
}

.analyze-report__insight-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(252, 183, 0, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(8, 12, 23, 0.45);
}

.analyze-report__insight {
  position: relative;
  padding: 0.55rem 0.65rem 0.55rem 1.5rem;
  font-size: 0.82rem;
  color: var(--text);
  border-bottom: 1px solid rgba(252, 183, 0, 0.08);
}

.analyze-report__insight:last-child {
  border-bottom: 0;
}

.analyze-report__insight::before {
  content: "→";
  position: absolute;
  left: 0.55rem;
  color: var(--title);
  font-size: 0.85rem;
  opacity: 0.85;
}

.analyze-report__champ-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(252, 183, 0, 0.12);
}

.analyze-report__champ-block:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.analyze-report__champ-heading {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.analyze-report__muted {
  color: var(--muted);
  font-weight: 500;
}

.analyze-report__dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .analyze-report__dual {
    grid-template-columns: 1fr;
  }
}

.analyze-report__box {
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font-size: 0.78rem;
}

.analyze-report__box--well {
  border: 1px solid rgba(126, 231, 135, 0.35);
  background: rgba(126, 231, 135, 0.08);
}

.analyze-report__box--improve {
  border: 1px solid rgba(252, 183, 0, 0.35);
  background: rgba(252, 183, 0, 0.07);
}

.analyze-report__box-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.analyze-report__box--well .analyze-report__box-title {
  color: #9ee5a8;
}

.analyze-report__box--improve .analyze-report__box-title {
  color: var(--title);
}

.analyze-report__box-list {
  margin: 0;
  padding-left: 1rem;
}

.analyze-report__box-list li {
  margin: 0.25rem 0;
  color: var(--text);
}

.analyze-report__pre {
  margin: 0;
  padding: 0.65rem 0.75rem;
  max-height: min(50vh, 420px);
  overflow: auto;
  font-size: 0.72rem;
  line-height: 1.4;
  border-radius: 8px;
  background: rgba(4, 8, 16, 0.85);
  color: var(--text);
  border: 1px solid var(--line);
}

@media (max-width: 520px) {
  .carousel__chrome {
    flex-wrap: wrap;
  }

  .carousel__btn {
    order: 2;
  }

  .carousel__dots {
    order: 1;
    flex: 1 1 100%;
  }
}
