:root {
  --bg: #030814;
  --bg-primary: #040b19;
  --bg-secondary: #071426;
  --bg-card: #081727;
  --bg-hover: #0d2541;
  --panel: #071421;
  --panel-2: #0a1b2f;
  --line: rgba(126, 194, 255, 0.15);
  --line-strong: rgba(91, 202, 255, 0.4);
  --text: #f1f7ff;
  --text-muted: #9bb0c8;
  --muted: #9bb0c8;
  --gold: #78e6ff;
  --cyan: #42c8ff;
  --amber: #d4ad5c;
  --green: #47e6aa;
  --red: #ff6174;
  --danger: #ff6174;
  --space-blue: #0d2a55;
  --space-violet: #303177;
  --space-glow: rgba(75, 181, 255, 0.2);
  --shadow-soft: 0 24px 62px rgba(0, 8, 22, 0.68);
  --shadow-card: 0 16px 38px rgba(0, 8, 22, 0.58);
  --sidebar-compact: 74px;
  --sidebar-expanded: 250px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, Helvetica, sans-serif;
  background:
    linear-gradient(180deg, rgba(10, 31, 63, 0.82) 0%, rgba(4, 12, 26, 0.96) 42%, rgba(2, 6, 15, 1) 100%),
    linear-gradient(115deg, rgba(43, 91, 176, 0.14), transparent 42%),
    var(--bg-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.bg-art {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle, rgba(153, 216, 255, 0.22) 0 1px, transparent 1.6px) 8% 12% / 190px 260px,
    radial-gradient(circle, rgba(112, 202, 255, 0.16) 0 1px, transparent 1.5px) 76% 20% / 240px 310px,
    linear-gradient(180deg, rgba(8, 25, 53, 0.62), rgba(3, 9, 20, 0.92)),
    var(--bg-primary);
}

@keyframes bgDrift {
  from {
    transform: scale(1);
    filter: saturate(0.9);
  }

  to {
    transform: scale(1.05);
    filter: saturate(1.15);
  }
}

.shell {
  display: flex;
  width: min(1560px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  border-inline: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(3, 11, 24, 0.98), rgba(6, 17, 34, 0.96)),
    var(--bg-primary);
  box-shadow: 0 0 110px rgba(0, 10, 30, 0.82);
}

.sidebar {
  position: sticky;
  top: 0;
  width: 250px;
  height: 100vh;
  flex: 0 0 250px;
  overflow: auto;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(16, 47, 88, 0.34), rgba(4, 12, 25, 0.96) 40%),
    var(--bg-secondary);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 76px;
  padding: 0 16px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(80, 192, 255, 0.12), transparent),
    rgba(7, 18, 34, 0.84);
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong {
  display: block;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand small,
.sidebar-foot,
.panel p,
.module-card p {
  color: var(--muted);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-weight: 500;
  text-align: left;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

.nav-mode-icon,
.nav-mode-badge {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.nav-mode-icon {
  display: block;
  object-fit: contain;
  filter: saturate(0.86);
  transition: filter 180ms ease, transform 180ms ease;
}

.nav-mode-badge {
  display: grid;
  place-items: center;
  border: 2px solid #a88b4f;
  border-radius: 50%;
  color: #36bcd8;
  box-shadow: inset 0 0 0 3px rgba(15, 91, 114, 0.52);
}

.nav-mode-badge svg {
  width: 22px;
  height: 22px;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.nav-item:hover .nav-mode-icon,
.nav-item.active .nav-mode-icon {
  filter: saturate(1.18) brightness(1.1);
  transform: scale(1.06);
}

.nav-item.active {
  border-left: 4px solid var(--gold);
  background: linear-gradient(90deg, rgba(105, 210, 231, 0.08), transparent);
  color: var(--gold);
}

.subnav {
  display: none;
  padding: 8px 0;
  background: #071426;
}

.subnav.open {
  display: block;
}

.nav-toggle > span:not(.nav-mode-badge) {
  flex: 1;
}

.nav-chevron {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.subnav a {
  display: block;
  padding: 10px 34px;
  color: #666666;
  transition: color 0.2s ease;
}

.subnav a.active,
.subnav a:hover {
  color: var(--gold);
}

.ranked-hub {
  padding: 24px;
}

.ranked-hub-head,
.ranked-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ranked-hub-head {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(105, 210, 231, 0.08), transparent 42%),
    #05080b;
}

.ranked-hub-head span,
.ranked-section-head span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.ranked-hub-head h2,
.ranked-section-head h3 {
  margin: 5px 0;
}

.ranked-hub-head p {
  margin: 0;
  color: var(--muted);
}

.ranked-hub-head > strong {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  color: #8d98a6;
  font-size: 12px;
  white-space: nowrap;
}

.ranked-hub-head b {
  color: var(--gold);
}

.ranked-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.ranked-meta-panel,
.ranked-patch-panel {
  border: 1px solid var(--line);
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    #030814;
}

.ranked-section-head {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.ranked-section-head a {
  color: var(--gold);
  font-size: 12px;
}

.ranked-role-groups {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.ranked-role-group {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  background: #030814;
}

.ranked-role-head,
.ranked-role-list,
.patch-change-group > div,
.ranked-patch-grid {
  display: grid;
}

.ranked-role-head {
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ranked-role-head img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.32));
}

.ranked-role-head strong {
  color: #f1f4f8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ranked-role-head span {
  color: #8d98a6;
  font-size: 10px;
  justify-self: end;
}

.ranked-role-list,
.patch-change-group > div {
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  gap: 6px;
}

.ranked-role-empty {
  padding: 10px 0;
  color: #7e8792;
  font-size: 12px;
}

.ranked-compact-card {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  width: 100%;
  min-height: 62px;
  padding: 5px;
  border: 1px solid var(--line);
  background: #08172b;
  color: #d7dee7;
  text-align: center;
}

.ranked-compact-card:hover,
.ranked-compact-card:focus-visible {
  z-index: 5;
  border-color: var(--line-strong);
  background: rgba(105, 210, 231, 0.08);
  color: var(--gold);
  outline: 0;
}

.ranked-compact-card:hover strong,
.ranked-compact-card:hover span,
.ranked-compact-card:focus-visible strong,
.ranked-compact-card:focus-visible span {
  color: var(--gold);
}

.ranked-compact-card img {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  object-fit: cover;
}

.ranked-compact-card strong,
.ranked-compact-card span {
  overflow: hidden;
  width: 100%;
  color: #f1f4f8;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranked-compact-card b {
  color: var(--green);
  font-size: 9px;
  line-height: 1;
}

.ranked-patch-grid {
  gap: 1px;
  background: var(--line);
}

.patch-change-group {
  padding: 16px;
  background: #030814;
}

.patch-change-group h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #c7d0da;
  font-size: 13px;
}

.patch-change-group h4 svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.patch-change-card::before,
.patch-change-card::after {
  position: absolute;
  z-index: 30;
  left: 50%;
  width: max-content;
  min-width: 230px;
  max-width: 300px;
  border-color: var(--line-strong);
  background: #071426;
  box-shadow: 0 18px 38px rgba(0, 8, 24, 0.62);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.patch-change-card::before {
  bottom: calc(100% + 42px);
  padding: 12px 14px 0;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  color: var(--gold);
  content: attr(data-tooltip-title);
  font-size: 13px;
  font-weight: 900;
}

.patch-change-card::after {
  bottom: calc(100% + 8px);
  min-height: 40px;
  padding: 5px 14px 13px;
  border: 1px solid var(--line-strong);
  border-top: 0;
  color: #dfe6f0;
  content: attr(data-tooltip-body);
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
}

.patch-change-card:hover::before,
.patch-change-card:hover::after,
.patch-change-card:focus-visible::before,
.patch-change-card:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1050px) {
  .ranked-role-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .patch-change-group {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .ranked-hub {
    padding: 14px;
  }

  .ranked-hub-head {
    display: block;
  }

  .ranked-hub-head > strong {
    display: inline-block;
    margin-top: 12px;
  }

  .ranked-role-groups {
    grid-template-columns: 1fr;
  }

  .ranked-role-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .patch-change-group > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ranked-compact-card {
    min-height: 60px;
  }

  .patch-change-card::before,
  .patch-change-card::after {
    left: 0;
    min-width: min(260px, calc(100vw - 42px));
    transform: translate(0, 6px);
  }

  .patch-change-card:hover::before,
  .patch-change-card:hover::after,
  .patch-change-card:focus-visible::before,
  .patch-change-card:focus-visible::after {
    transform: translate(0, 0);
  }
}

.sidebar-foot {
  padding: 18px 24px;
  font-size: 13px;
}

.content {
  min-width: 0;
  flex: 1;
}

body:not(.quiz-fullscreen) .content {
  --ad-rail-width: clamp(340px, 23vw, 430px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--ad-rail-width);
  align-content: start;
  position: relative;
}

body:not(.quiz-fullscreen) .content::before,
body:not(.quiz-fullscreen) .content::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 4;
  min-height: 100%;
  pointer-events: none;
}

body:not(.quiz-fullscreen) .content::before {
  z-index: 0;
  border-left: 1px solid rgba(105, 210, 231, 0.12);
  background:
    radial-gradient(circle at 46% 18%, rgba(105, 210, 231, 0.2), transparent 31%),
    radial-gradient(circle at 78% 58%, rgba(67, 94, 180, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.72)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(2, 11, 29, 0.44)),
    url("https://raw.communitydragon.org/latest/plugins/rcp-be-lol-game-data/global/default/content/src/leagueclient/gamemodeassets/aram/img/gameflow-background.jpg") center top / cover repeat-y;
  box-shadow:
    inset 18px 0 36px rgba(0, 0, 0, 0.42),
    inset 0 0 80px rgba(105, 210, 231, 0.06);
  filter: saturate(1.08) brightness(0.9) contrast(1.08);
}

body:not(.quiz-fullscreen) .content::after {
  z-index: 1;
  background:
    radial-gradient(circle, rgba(214, 229, 255, 0.42) 0 1px, transparent 1.8px) 18% 12% / 140px 220px,
    radial-gradient(circle, rgba(105, 210, 231, 0.32) 0 1px, transparent 1.8px) 72% 28% / 190px 260px,
    radial-gradient(circle, rgba(105, 210, 231, 0.22) 0 1px, transparent 1.8px) 46% 76% / 240px 310px;
  opacity: 0.48;
  animation: adRailParticles 18s linear infinite;
}

body:not(.quiz-fullscreen) .content > .topbar,
body:not(.quiz-fullscreen) .content > .hero,
body:not(.quiz-fullscreen) .content > .filters,
body:not(.quiz-fullscreen) .content > .page {
  grid-column: 1;
  min-width: 0;
  z-index: 2;
}

body:not(.quiz-fullscreen) .content > .topbar {
  z-index: 1200;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 76px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  isolation: isolate;
  overflow: visible;
}

.search button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(105, 210, 231, 0.05);
  color: var(--gold);
}

.search {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(520px, 58vw);
  border: 1px solid var(--line-strong);
  background: #071426;
}

.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0 14px;
  color: #fff;
  outline: 0;
}

.search input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 1300;
  display: none;
  max-height: 330px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  background: #071426;
  box-shadow: 0 18px 40px rgba(0, 8, 24, 0.58);
}

.search-results.open {
  display: block;
}

.search-results a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: #dfe6f0;
}

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

.search-results a:hover {
  background: rgba(105, 210, 231, 0.09);
  color: #fff;
}

.search-results img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.hero {
  position: relative;
  min-height: 470px;
  padding: 54px 36px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #061226;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(130deg, rgba(20, 72, 132, 0.18), transparent 45%),
    #061226;
}

.hero-art-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(1);
  transition:
    opacity 1200ms ease;
  will-change: opacity, transform;
}

.hero-art-slide.is-active {
  opacity: 1;
  animation: heroSlideZoom 7800ms ease forwards;
}

.hero-art-slide::before {
  display: none;
}

.hero-art-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--hero-image);
  background-position: var(--hero-position, center);
  background-repeat: no-repeat;
  background-size: var(--hero-fit, cover);
  opacity: 1;
  pointer-events: none;
  filter: brightness(1.05) saturate(1.08) contrast(1.03);
  -webkit-mask-image: none;
  mask-image: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: 
    linear-gradient(90deg, rgba(4, 11, 23, 0.58), rgba(4, 11, 23, 0.16) 52%, rgba(4, 11, 23, 0.42)),
    linear-gradient(180deg, rgba(4, 11, 23, 0.02) 0%, rgba(4, 11, 23, 0.14) 58%, rgba(3, 8, 18, 0.84) 100%);
  pointer-events: none;
}

.hero::before {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.82);
}

.hero-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-title {
  display: block;
  max-width: 760px;
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.94;
}

.hero p {
  max-width: 760px;
  color: #c4cad4;
  line-height: 1.7;
}

.hero-mini-games {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 340px));
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: none;
  margin: 26px 0 0 auto;
}

.hero-game-button {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 118px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid #3a4655;
  border-radius: 6px;
  padding: 15px 18px 13px;
  text-decoration: none;
  color: #f3e6b3;
  background: #040811;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.72),
    inset 0 0 0 3px rgba(201, 170, 80, 0.16),
    0 18px 44px rgba(0, 0, 0, 0.58);
  cursor: pointer;
  isolation: isolate;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.hero-game-button::before,
.hero-game-button::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-game-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  background:
    radial-gradient(circle at 50% 24%, rgba(55, 191, 255, 0.24), transparent 42%),
    linear-gradient(135deg, #04101d 0%, #081827 46%, #02060d 100%);
  opacity: 1;
  transform: scale(1.01);
}

.hero-game-champ {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28%;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  filter: saturate(1.06) contrast(1.04);
  opacity: 0.98;
}

.hero-game-champ::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(1, 5, 12, 0.32) 100%),
    linear-gradient(90deg, rgba(85, 212, 255, 0.18), transparent 28%, transparent 72%, rgba(224, 194, 98, 0.12));
  pointer-events: none;
}

.hero-game-champ-1 {
  left: -4%;
  background-position: center 8%;
}

.hero-game-champ-2 {
  left: 15%;
  background-position: center 6%;
}

.hero-game-champ-3 {
  left: 34%;
  background-position: center 6%;
}

.hero-game-champ-4 {
  left: 53%;
  background-position: center 4%;
}

.hero-game-champ-5 {
  left: 72%;
  background-position: center 6%;
}

.hero-game-button::before {
  inset: 0;
  z-index: 1;
  border: 8px solid transparent;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(2, 6, 13, 0.02), rgba(2, 6, 13, 0.06) 46%, rgba(2, 6, 13, 0.7)),
    linear-gradient(90deg, rgba(2, 8, 16, 0.18), rgba(2, 8, 16, 0.01) 56%, rgba(2, 8, 16, 0.22));
  box-shadow: inset 0 0 0 1px rgba(226, 236, 255, 0.22);
  opacity: 1;
}

.hero-game-button::after {
  inset: -40% -20%;
  z-index: 2;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 240, 169, 0.28) 48%, transparent 60%);
  transform: translateX(-68%) rotate(3deg);
  animation: heroButtonSheen 5.8s ease-in-out infinite;
}

.hero-game-button:hover {
  transform: translateY(-2px);
  border-color: #bfc7d2;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.72),
    inset 0 0 0 3px rgba(201, 170, 80, 0.28),
    0 22px 52px rgba(0, 0, 0, 0.64),
    0 0 24px rgba(201, 170, 80, 0.16);
}

.hero-game-logo {
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 3;
  display: grid;
  justify-items: center;
  color: #e9c56c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 0.76;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  text-shadow:
    0 2px 0 #3a2607,
    0 0 12px rgba(255, 220, 111, 0.42),
    0 7px 18px rgba(0, 0, 0, 0.88);
  -webkit-text-stroke: 0.75px rgba(61, 39, 7, 0.9);
}

.hero-game-logo span {
  display: block;
}

.hero-game-logo em {
  display: block;
  margin: 2px 0 3px;
  color: #fff1b8;
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1;
}

.hero-mission-logo {
  color: #9fe7ff;
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-size: 30px;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 #062539,
    0 0 14px rgba(93, 220, 255, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.88);
  -webkit-text-stroke: 0;
}

.hero-daily-button {
  border-color: rgba(93, 220, 255, 0.55);
}

.hero-game-button small {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 11px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 6px 8px;
  border: none;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(4, 10, 20, 0.76), rgba(4, 10, 20, 0.46));
  color: #e7edf6;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.88);
  text-transform: uppercase;
}

.quiz-page-container {
  min-height: 100vh;
  padding: 0;
  background: #030405;
}

.quiz-fullscreen {
  overflow-x: hidden;
  background: #030405;
}

.quiz-fullscreen .bg-art,
.quiz-fullscreen .sidebar,
.quiz-fullscreen .topbar {
  display: none;
}

.quiz-fullscreen .shell {
  width: 100%;
  min-height: 100vh;
  border: 0;
  box-shadow: none;
  background: #030405;
}

.quiz-fullscreen .content {
  min-height: 100vh;
}

.champion-quiz-page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 34px 18px 70px;
  overflow: hidden;
  isolation: isolate;
}

.champion-quiz-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 8, 14, 0.18), rgba(3, 8, 14, 0.84)),
    linear-gradient(90deg, rgba(1, 4, 10, 0.74), rgba(5, 18, 34, 0.3) 48%, rgba(1, 4, 10, 0.72)),
    linear-gradient(135deg, rgba(29, 134, 180, 0.22), transparent 42%, rgba(201, 170, 80, 0.12)),
    url("https://raw.communitydragon.org/latest/plugins/rcp-be-lol-game-data/global/default/content/src/leagueclient/gamemodeassets/classic_sru/img/parties-background.jpg") center center / cover no-repeat;
  filter: saturate(1.04) brightness(0.76) contrast(1.08);
  opacity: 1;
  animation: none;
  pointer-events: none;
}

.champion-quiz-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 140px);
  opacity: 0.6;
  pointer-events: none;
}

.quiz-home-return {
  position: absolute;
  top: 24px;
  left: 26px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border: 1px solid rgba(201, 170, 80, 0.34);
  border-left: 3px solid #c9aa50;
  padding: 0 14px 0 10px;
  background: rgba(8, 12, 16, 0.66);
  color: #f4df9b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 12px 26px rgba(0, 0, 0, 0.34);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.quiz-home-return:hover {
  transform: translateX(-2px);
  border-color: rgba(240, 212, 79, 0.66);
  background: rgba(14, 19, 25, 0.82);
  color: #fff3bf;
}

.quiz-home-return svg {
  width: 17px;
  height: 17px;
}

.quiz-loldle-shell {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(720px, 100%);
  min-height: 0;
  padding: 22px 22px 34px;
  border: 1px solid rgba(185, 154, 78, 0.22);
  background:
    linear-gradient(180deg, rgba(5, 13, 23, 0.42), rgba(3, 7, 12, 0.32)),
    rgba(0, 0, 0, 0.08);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.quiz-top-controls {
  position: absolute;
  top: 40px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #e4e5e8;
}

.quiz-top-controls a,
.quiz-top-controls span {
  display: grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(9, 13, 16, 0.48);
  font-weight: 900;
}

.quiz-logo {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  margin-top: 10px;
  color: #f5d15d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 96px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.86;
  text-shadow:
    0 2px 0 #49320b,
    0 0 20px rgba(255, 209, 86, 0.34),
    0 9px 28px rgba(0, 0, 0, 0.82);
  -webkit-text-stroke: 1px #2d2109;
}

.quiz-logo span {
  color: #f2c84f;
}

.quiz-logo b {
  color: #ffe178;
  font-weight: 900;
}

.quiz-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: min(410px, 100%);
  margin-top: 22px;
  border: 2px solid #b99a4e;
  border-radius: 8px;
  padding: 10px 13px;
  background: rgba(31, 36, 42, 0.94);
}

.quiz-stat-strip span {
  display: grid;
  place-items: center;
  gap: 3px;
  color: #aeb3bb;
  font-size: 13px;
  font-weight: 900;
}

.quiz-stat-strip svg {
  width: 30px;
  height: 30px;
}

.quiz-stat-strip b {
  color: #f7f7f7;
  font-size: 14px;
}

.quiz-start-panel,
.quiz-game-panel,
.quiz-result-panel,
.quiz-leaderboard {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.quiz-start-panel,
.quiz-result-panel {
  grid-column: 1;
}

.quiz-start-panel {
  display: grid;
  width: min(580px, 100%);
  gap: 16px;
  min-height: 0;
  padding: 0;
  margin-top: 12px;
  background: transparent;
}

.quiz-start-copy,
.quiz-result-panel p,
.quiz-empty-score {
  margin: 0;
  color: #c8d0db;
  line-height: 1.7;
}

.quiz-entry-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  justify-items: center;
  width: min(520px, 100%);
  margin: 0 auto;
}

.quiz-entry-box label {
  display: grid;
  gap: 8px;
  width: 100%;
}

.quiz-entry-box small {
  color: #c8d0db;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.quiz-entry-box input,
.quiz-answer-form input {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(34, 42, 48, 0.92);
  color: #fff;
  outline: none;
}

.quiz-entry-box input {
  height: 72px;
  border: 4px solid #02aeb8;
  padding: 0 20px;
  font-size: 20px;
}

.quiz-entry-box .quiz-primary-button {
  align-self: center;
}

.quiz-entry-box em {
  width: 100%;
  min-height: 18px;
  color: #ff7b7b;
  font-style: normal;
  font-size: 13px;
}

.quiz-primary-button,
.quiz-answer-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 50%;
  background: #222a30;
  color: #070707;
  font-weight: 950;
  cursor: pointer;
  box-shadow: none;
}

.quiz-primary-button {
  width: 86px;
  height: 86px;
  margin-left: 0;
  border: 5px solid #f0d44f;
  color: #f0d44f;
  box-shadow: 0 0 14px rgba(240, 212, 79, 0.72);
}

.quiz-game-panel {
  grid-column: 1;
  overflow: hidden;
  width: min(620px, 100%);
  min-height: 0;
  padding: 0;
  margin-top: 16px;
}

.quiz-hud {
  display: none;
}

.quiz-hud > div {
  min-height: 82px;
  border: 1px solid rgba(201, 170, 80, 0.18);
  border-radius: 2px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.36);
}

.quiz-hud small {
  display: block;
  margin-bottom: 5px;
  color: #8f98a7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.quiz-hud strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiz-time-card strong {
  color: var(--gold);
  font-size: 36px;
}

.quiz-progress {
  display: block;
  width: min(430px, 100%);
  height: 8px;
  margin: 12px auto 0;
  overflow: hidden;
  border: 1px solid rgba(240, 212, 79, 0.55);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
}

.quiz-progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #f0d44f;
  transition: width 260ms linear;
}

.quiz-stage {
  position: relative;
}

.quiz-image-frame {
  position: relative;
  overflow: hidden;
  width: min(500px, 100%);
  height: 280px;
  margin: 0 auto 16px;
  border: 3px solid #b99a4e;
  border-radius: 8px;
  aspect-ratio: auto;
  background: #030507;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.56);
}

.quiz-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.46)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.52), transparent 34%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.quiz-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.quiz-image-frame img.is-swapping {
  animation: quizImagePop 420ms ease both;
}

.quiz-image-frame > span {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  border: 1px solid rgba(201, 170, 80, 0.32);
  border-radius: 2px;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--gold);
  font-weight: 900;
}

.quiz-answer-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 0;
  margin-top: 16px;
}

.quiz-answer-form input {
  height: 72px;
  border: 4px solid #02aeb8;
  border-right: 0;
  padding: 0 20px;
  font-size: 20px;
  font-weight: 900;
  transition: box-shadow 120ms ease, border-color 120ms ease;
}

.quiz-answer-form button {
  width: 86px;
  height: 86px;
  margin-left: -2px;
  border: 5px solid #f0d44f;
  color: #f0d44f;
  box-shadow: 0 0 14px rgba(240, 212, 79, 0.72);
}

.quiz-message-card {
  width: min(520px, 100%);
  margin: 0 auto 20px;
  border: 2px solid #b99a4e;
  border-radius: 8px;
  padding: 18px 26px;
  background: rgba(31, 36, 42, 0.95);
  color: #f6f6f6;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.48);
}

.quiz-message-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.25;
}

.quiz-message-card p {
  margin: 14px 0 0;
  color: #b6b7bd;
  font-size: 18px;
}

.quiz-answer-form input[data-state="wrong"] {
  border-color: #ff5d63;
  box-shadow: inset 4px 0 0 rgba(255, 93, 99, 0.85);
}

.quiz-answer-form input[data-state="missing"] {
  border-color: #f1c84b;
  box-shadow: inset 4px 0 0 rgba(241, 200, 75, 0.85);
}

.quiz-answer-form input[data-state="correct"] {
  border-color: #42d98f;
  box-shadow: inset 4px 0 0 rgba(66, 217, 143, 0.85);
}

.quiz-feedback {
  min-height: 32px;
  margin-top: 14px;
  font-weight: 800;
  font-size: 16px;
  text-align: center;
}

.quiz-feedback b {
  display: inline-flex;
  gap: 2px;
  margin-left: 6px;
  color: #e8eef8;
}

.quiz-feedback .wrong-letter {
  display: inline-grid;
  min-width: 18px;
  place-items: center;
  border-radius: 2px;
  background: #74292d;
  color: #fff;
  box-shadow: none;
}

.quiz-feedback[data-state="wrong"] {
  color: #ff7b7b;
}

.quiz-feedback[data-state="missing"] {
  color: #f1c84b;
}

.quiz-feedback[data-state="correct"],
.quiz-feedback[data-state="done"] {
  color: #42d98f;
}

.quiz-leaderboard {
  grid-column: 2;
  grid-row: 1 / span 3;
  overflow: hidden;
  padding: 0;
}

.quiz-board-head {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.26);
}

.quiz-board-head h2 {
  margin: 6px 0 0;
  font-size: 28px;
}

.quiz-leaderboard div div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 70px 44px;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quiz-leaderboard div div.is-podium {
  margin: 0;
  border: 0;
  border-left: 3px solid #c9aa50;
  border-radius: 0;
  background: rgba(201, 170, 80, 0.055);
}

.quiz-leaderboard b,
.quiz-leaderboard span {
  color: var(--gold);
  font-weight: 950;
}

.quiz-leaderboard strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiz-leaderboard small {
  color: #8f98a7;
  font-size: 12px;
}

.quiz-result-panel {
  display: grid;
  place-items: center;
  width: min(620px, 100%);
  min-height: 0;
  margin-top: 22px;
  border: 2px solid #b99a4e;
  border-radius: 8px;
  padding: 34px;
  background: rgba(31, 36, 42, 0.95);
  text-align: center;
}

.quiz-result-panel[hidden],
.quiz-game-panel[hidden],
.quiz-start-panel[hidden] {
  display: none;
}

.quiz-result-panel h2 {
  margin: 10px 0;
  color: #fff;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 0.9;
}

.quiz-result-panel .quiz-primary-button {
  margin-top: 20px;
}

.quiz-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.quiz-secondary-link,
.quiz-board-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid #b99a4e;
  border-radius: 8px;
  background: rgba(31, 36, 42, 0.92);
  color: #f3e6b3;
  font-weight: 900;
}

.quiz-secondary-link {
  min-height: 52px;
  padding: 0 18px;
}

.quiz-board-link {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 5;
  min-height: 44px;
  padding: 0 14px;
}

.quiz-leaderboard-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 26px;
  background:
    linear-gradient(180deg, rgba(5, 12, 22, 0.28), rgba(2, 5, 10, 0.86)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(5, 18, 34, 0.32) 52%, rgba(0, 0, 0, 0.74)),
    linear-gradient(135deg, rgba(42, 167, 222, 0.18), transparent 45%, rgba(201, 170, 80, 0.12)),
    url("https://raw.communitydragon.org/latest/plugins/rcp-be-lol-game-data/global/default/content/src/leagueclient/gamemodeassets/classic_sru/img/gameflow-background.jpg") center center / cover no-repeat;
}

.quiz-board-shell {
  width: min(820px, calc(100vw - 180px));
}

.quiz-board-home,
.quiz-board-replay {
  position: fixed;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 2px solid #b99a4e;
  border-radius: 10px;
  padding: 14px 10px;
  background: rgba(31, 36, 42, 0.92);
  color: #f3e6b3;
  font-weight: 900;
  text-align: center;
}

.quiz-board-home {
  left: 26px;
  top: 24px;
  min-height: 46px;
  padding: 0 15px;
  grid-auto-flow: column;
}

.quiz-board-replay {
  left: 28px;
  top: 50%;
  width: 104px;
  min-height: 116px;
  padding: 14px 10px;
  transform: translateY(-50%);
}

.quiz-board-replay svg {
  width: 34px;
  height: 34px;
  color: #f0d44f;
}

.quiz-leaderboard-hero {
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: center;
}

.quiz-leaderboard-hero a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: #f3e6b3;
  font-weight: 900;
}

.quiz-leaderboard-hero span {
  display: block;
  color: #c9aa50;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quiz-leaderboard-hero h1 {
  margin: 10px 0 14px;
  font-size: 64px;
  line-height: 0.88;
}

.quiz-leaderboard-hero p {
  max-width: 560px;
  margin-inline: auto;
  color: #c8d0db;
  font-size: 16px;
  line-height: 1.7;
}

.quiz-grand-board {
  overflow: hidden;
  border: 1px solid rgba(201, 170, 80, 0.34);
  background: rgba(3, 5, 7, 0.86);
}

.quiz-grand-board-head,
.quiz-grand-board [data-quiz-leaderboard] > div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 128px 92px;
  align-items: center;
}

.quiz-grand-board-head {
  border-bottom: 1px solid rgba(201, 170, 80, 0.24);
  color: #c9aa50;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quiz-grand-board-head span,
.quiz-grand-board [data-quiz-leaderboard] > div > * {
  padding: 12px 15px;
}

.quiz-grand-board [data-quiz-leaderboard] > div {
  min-height: 58px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quiz-grand-board [data-quiz-leaderboard] > div.is-podium {
  border-left: 4px solid #c9aa50;
  background: rgba(201, 170, 80, 0.075);
}

.quiz-grand-board b {
  color: #c9aa50;
  font-size: 18px;
}

.quiz-grand-board strong {
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiz-grand-board small {
  color: #aeb6c1;
  font-size: 13px;
}

.quiz-grand-board span {
  color: #f3e6b3;
  font-size: 21px;
  font-weight: 950;
}

.hero-game-button-secondary {
  border-color: rgba(93, 220, 255, 0.52);
  color: #e8fbff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 48px rgba(0, 0, 0, 0.42),
    0 0 26px rgba(93, 220, 255, 0.13);
}

.hero-game-button-secondary i {
  color: #5ddcff;
  filter: drop-shadow(0 0 12px rgba(93, 220, 255, 0.38));
}

@keyframes heroEnergySweep {
  0%,
  100% {
    transform: translateX(-34%);
    opacity: 0.18;
  }

  45% {
    transform: translateX(26%);
    opacity: 0.34;
  }
}

@keyframes heroSlideZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.08);
  }
}

@keyframes heroButtonSheen {
  0%,
  42% {
    transform: translateX(-62%) rotate(3deg);
    opacity: 0;
  }

  58% {
    opacity: 0.72;
  }

  100% {
    transform: translateX(68%) rotate(3deg);
    opacity: 0;
  }
}

@keyframes quizGridDrift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(96px);
  }
}

@keyframes quizImagePop {
  from {
    opacity: 0.3;
    transform: scale(1.035);
    filter: saturate(0.8) brightness(0.75);
  }

  to {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1) brightness(1);
  }
}

@keyframes adRailParticles {
  from {
    background-position:
      18% 12%,
      72% 28%,
      46% 76%;
  }

  to {
    background-position:
      18% -208px,
      72% -232px,
      46% -234px;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 430px;
    padding: 54px 20px;
  }

  .hero-art-slide::after {
    background-size: cover;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-title {
    font-size: 46px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-mini-games {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .hero-game-button {
    min-height: 120px;
    padding: 15px 16px 13px;
  }

  .hero-game-logo {
    top: 12px;
    left: 50%;
    font-size: 24px;
  }

  .hero-game-logo em {
    font-size: 8px;
  }

  .hero-game-button small {
    font-size: 10px;
  }

  .quiz-home-return {
    top: 16px;
    left: 16px;
    min-height: 34px;
    padding-right: 11px;
    font-size: 11px;
  }

  .champion-quiz-page,
  .quiz-start-panel {
    grid-template-columns: 1fr;
  }

  .quiz-page-container {
    padding: 16px;
  }

  .quiz-start-panel {
    min-height: 0;
    padding: 0;
  }

  .quiz-leaderboard {
    grid-column: 1;
    grid-row: auto;
  }

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

  .quiz-image-frame {
    aspect-ratio: 4 / 3;
  }

  .quiz-board-shell {
    width: 100%;
  }

  .quiz-board-replay {
    position: static;
    display: inline-flex;
    width: auto;
    min-height: 52px;
    margin-bottom: 16px;
    padding: 0 16px;
    transform: none;
  }

  .quiz-board-home,
  .quiz-board-replay {
    position: static;
    display: inline-flex;
    min-height: 42px;
    margin: 0 0 12px;
    padding: 0 14px;
  }

  .quiz-board-link {
    position: fixed;
    top: 16px;
    right: 16px;
    display: inline-flex;
    min-height: 34px;
    margin: 0;
    padding: 0 11px;
    font-size: 11px;
  }

  .quiz-leaderboard div div {
    grid-template-columns: 34px minmax(0, 1fr) 56px 34px;
  }

  .quiz-grand-board-head,
  .quiz-grand-board [data-quiz-leaderboard] > div {
    grid-template-columns: 54px minmax(0, 1fr) 88px 64px;
  }

  .quiz-leaderboard-hero h1 {
    font-size: 42px;
  }

  .quiz-logo {
    font-size: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art-slide {
    transition: opacity 250ms ease;
    transform: none;
  }

  .hero-art-slide.is-active {
    transform: none;
  }

  .hero::before,
  .hero-game-button::after,
  body:not(.quiz-fullscreen) .content::after {
    animation: none;
  }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 18, 0.96);
}

.filters span,
.filters button {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  padding: 14px 20px;
  color: #b8c0cd;
}

.filters span {
  color: var(--gold);
}

.page {
  padding: 28px;
  background:
    linear-gradient(125deg, rgba(28, 87, 163, 0.12), transparent 44%),
    #071426;
  color: var(--text);
}

.alert {
  margin-bottom: 18px;
  border: 1px solid rgba(255, 93, 99, 0.35);
  background: rgba(255, 93, 99, 0.08);
  padding: 14px 16px;
  color: #ff9da1;
}

.profile-card,
.module-card,
.panel,
.metric-grid article {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.premium,
.premium-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--panel);
}

.profile-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 20px;
}

.profile-card img {
  width: 84px;
  height: 84px;
  border: 1px solid var(--line-strong);
}

.profile-card h1 {
  margin: 0;
  font-size: 42px;
}

.profile-card h1 span {
  color: #99a4b4;
}

.rank-box {
  text-align: right;
}

.rank-box strong,
.rank-box span {
  display: block;
}

.rank-box strong {
  color: var(--gold);
  font-size: 22px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.queue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.queue-grid article,
.mastery-row,
.live-box {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  padding: 16px;
}

.queue-grid span,
.mastery-row small,
.live-box span {
  color: var(--muted);
}

.queue-grid strong,
.queue-grid small,
.mastery-row strong,
.mastery-row span,
.mastery-row em,
.live-box strong,
.live-box span {
  display: block;
}

.queue-grid strong {
  margin: 8px 0;
  color: var(--gold);
  font-size: 22px;
}

.mastery-row {
  display: grid;
  grid-template-columns: 1fr 120px 100px;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.mastery-row span {
  color: var(--cyan);
}

.mastery-row em {
  color: var(--gold);
  font-style: normal;
}

.live-box strong {
  color: var(--muted);
  font-size: 24px;
}

.live-box.online strong {
  color: var(--green);
}

.metric-grid article {
  min-height: 118px;
  padding: 18px;
}

.metric-grid span,
.module-card strong {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metric-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 34px;
}

.metric-grid small,
.pool-row small,
.match-row small,
.match-row span {
  color: var(--muted);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-bottom: 22px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.module-card {
  padding: 18px;
}

.module-card p {
  line-height: 1.6;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.panel {
  margin-bottom: 24px;
  padding: 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.panel h2 {
  margin: 0;
  color: #fff;
  font-weight: 700;
}

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

.role-card {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  padding: 16px;
}

.role-card h3 {
  margin: 0 0 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  color: var(--gold);
  font-size: 26px;
}

.bar-row {
  display: grid;
  grid-template-columns: 116px 1fr 52px;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  color: #aeb6c3;
  font-size: 14px;
}

.bar-row b {
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.bar-row i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

.bar-row em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.pool-row,
.champion-row,
.category-card,
.ranking-row,
.match-row,
.replay-row {
  display: grid;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}

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

.category-card {
  display: block;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  padding: 12px;
}

.category-card span {
  display: block;
  height: 120px;
  margin-bottom: 12px;
  background-position: center;
  background-size: cover;
}

.category-card strong,
.category-card b,
.category-card em {
  display: block;
}

.category-card p,
.category-card em {
  color: var(--muted);
}

.category-card b {
  color: var(--green);
}

.collector-note {
  border: 1px solid rgba(200, 173, 103, 0.28);
  background: rgba(200, 173, 103, 0.08);
  color: #ddc887;
  margin-bottom: 16px;
  padding: 14px 16px;
}

.data-table {
  display: grid;
  gap: 8px;
}

.data-table > div {
  display: grid;
  grid-template-columns: 1fr 160px 120px 180px;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.data-table span,
.data-table em {
  color: var(--muted);
  font-style: normal;
}

.data-table b {
  color: var(--green);
}

.build-table {
  display: grid;
  gap: 10px;
}

.build-row {
  display: grid;
  grid-template-columns: 210px 150px 150px 150px 1fr;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.build-player {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-shadow {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle, rgba(93, 220, 255, 0.18), transparent 56%),
    #0b1018;
}

.build-versus,
.build-result,
.build-kda {
  display: flex;
  align-items: center;
  gap: 9px;
}

.build-versus img {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
}

.build-versus span {
  color: var(--muted);
}

.build-result,
.build-kda {
  display: block;
}

.build-player small,
.build-result small,
.build-kda small,
.build-row em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.build-kda strong {
  color: var(--cyan);
}

.build-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.build-items img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tier-view-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.tier-view-tabs a {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  padding: 10px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tier-view-tabs a.active,
.tier-view-tabs a:hover {
  border-color: var(--line-strong);
  background: rgba(93, 220, 255, 0.1);
  color: var(--cyan);
}

.tier-view-tabs svg {
  width: 16px;
  height: 16px;
}

.tier-board {
  display: grid;
  gap: 10px;
}

.tier-board-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  min-height: 74px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.tier-board-label {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
}

.tier-board-champions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-content: center;
  padding: 10px;
}

.tier-board-champions span {
  position: relative;
  width: 50px;
  height: 50px;
}

.tier-board-champions img {
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
}

.tier-board-champions small {
  position: absolute;
  right: 1px;
  bottom: 1px;
  max-width: 48px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.78);
  padding: 2px 3px;
  color: #c5cedb;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-tabs a {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  padding: 10px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.role-tabs a.active,
.role-tabs a:hover {
  border-color: var(--line-strong);
  background: rgba(93, 220, 255, 0.1);
  color: var(--cyan);
}

.tier-table {
  overflow-x: auto;
}

.tier-head,
.tier-row {
  display: grid;
  grid-template-columns: 42px minmax(170px, 1fr) 62px repeat(7, minmax(84px, 0.58fr));
  min-width: 1030px;
  align-items: center;
}

.tier-head {
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier-head span,
.tier-row > span,
.tier-row > b {
  padding: 12px 10px;
}

.tier-row {
  border-bottom: 1px solid var(--line);
  color: #b9c1cd;
}

.tier-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.tier-champion {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tier-champion img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
}

.tier-champion small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

.tier-badge {
  justify-self: start;
  min-width: 34px;
  padding: 8px !important;
  text-align: center;
}

.tier-s {
  background: #c94f3d;
}

.tier-a {
  background: #b88642;
}

.tier-b {
  background: #5d8d73;
}

.tier-c {
  background: #4b607c;
}

.tier-d {
  background: #66546e;
}

.tier-e {
  background: #68464b;
}

.tier-f {
  background: #4b3538;
}

.item-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.item-stat-card {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  padding: 16px;
}

.item-stat-card h3 {
  margin: 0 0 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  color: var(--gold);
  font-size: 20px;
}

.item-stat-head,
.item-stat-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(130px, 0.8fr) minmax(130px, 0.8fr);
  gap: 12px;
  align-items: center;
}

.item-stat-head {
  padding: 0 8px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.item-stat-row {
  border-top: 1px solid var(--line);
  padding: 10px 8px;
}

.item-stat-extra {
  display: none;
}

.item-stat-extra.is-visible {
  display: grid;
}

.item-see-more {
  display: block;
  margin: 14px auto 0;
  border: 1px solid var(--line-strong);
  background: rgba(93, 220, 255, 0.1);
  padding: 9px 18px;
  color: var(--cyan);
  cursor: pointer;
  font-weight: 700;
}

.item-see-more:hover {
  background: rgba(93, 220, 255, 0.18);
}

.item-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.item-icons img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
}

.item-rate {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.item-rate b {
  display: block;
  width: 64px;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.item-rate i {
  display: block;
  height: 100%;
  background: var(--cyan);
}

.item-rate.winrate i {
  background: var(--green);
}

.item-empty {
  color: var(--muted);
}

.green {
  color: var(--green);
}

.red {
  color: var(--red);
}

.gold {
  color: var(--gold);
}

img.asset-fallback {
  object-fit: cover;
  background: #0b1119;
}

.ranking-row {
  grid-template-columns: 1fr 160px 120px 100px;
  padding: 14px 0;
}

.ranking-row small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

.ranking-row span {
  color: var(--gold);
}

.ranking-row b {
  color: var(--cyan);
}

.ranking-row em {
  color: var(--green);
  font-style: normal;
}

.best-player-table {
  overflow-x: auto;
}

.best-player-head,
.best-player-row {
  display: grid;
  grid-template-columns: 42px minmax(210px, 1fr) minmax(170px, 0.8fr) minmax(180px, 0.8fr) minmax(210px, 1fr);
  min-width: 940px;
  align-items: center;
  gap: 12px;
}

.best-player-head {
  border-block: 1px solid var(--line);
  padding: 12px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.best-player-row {
  border-bottom: 1px solid var(--line);
  padding: 14px 10px;
  color: #c2cad6;
}

.best-player-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.best-player-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 400;
}

.best-player-row b {
  color: var(--gold);
}

.best-player-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.best-player-name > img {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
}

.rank-empty span {
  color: var(--muted);
}

.best-player-champions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.best-player-champions img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
}

.pool-row {
  grid-template-columns: 48px 1fr 86px 90px;
  padding: 12px 0;
}

.pool-row img {
  width: 48px;
  height: 48px;
}

.pool-row span {
  color: var(--green);
}

.pool-row b {
  color: var(--gold);
}

.read-list p {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 14px 0;
}

.read-list strong {
  color: var(--cyan);
}

.champion-row {
  grid-template-columns: 74px 1fr auto;
  padding: 10px 0;
}

.champion-row span {
  height: 52px;
  background-position: center;
  background-size: cover;
}

.champion-row small,
.replay-row small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

.champion-row b {
  color: var(--green);
}

.match-row {
  grid-template-columns: 150px 210px 130px 1fr 220px;
  padding: 16px 0;
}

.match-row.is-win {
  border-left: 3px solid var(--green);
  padding-left: 14px;
}

.match-row.is-loss {
  border-left: 3px solid var(--red);
  padding-left: 14px;
}

.match-result strong {
  color: var(--green);
}

.is-loss .match-result strong {
  color: var(--red);
}

.match-result span,
.match-result small,
.match-kda span,
.match-stats span {
  display: block;
}

.match-champ {
  display: flex;
  align-items: center;
  gap: 12px;
}

.match-champ img {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
}

.match-kda strong {
  font-size: 20px;
}

.match-assets {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.match-assets img {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
}

.replay-row {
  grid-template-columns: 90px 1fr 130px 160px;
  padding: 14px 0;
}

.win {
  color: var(--green);
}

.lose {
  color: var(--red);
}

.replay-row em {
  color: var(--muted);
  font-style: normal;
}

.legal {
  color: #717987;
  font-size: 12px;
}

svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 1280px) {
  body:not(.quiz-fullscreen) .content {
    display: block;
  }

  body:not(.quiz-fullscreen) .content::before,
  body:not(.quiz-fullscreen) .content::after {
    display: none;
  }

  .match-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1100px) {
  .sidebar {
    display: none;
  }

  .module-grid,
  .category-grid,
  .main-grid,
  .item-stat-grid,
  .role-grid,
  .profile-grid,
  .queue-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar,
  .profile-card,
  .replay-row,
  .match-row,
  .pool-row {
    grid-template-columns: 1fr;
  }

  .data-table > div,
  .build-row,
  .ranking-row,
  .mastery-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    width: 100%;
  }

  .page {
    padding: 16px;
  }
}

.stream-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.stream-modal.active {
  opacity: 1;
  visibility: visible;
}

.stream-modal-content {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.9);
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -320px; /* Half of 640px */
  margin-top: -200px; /* Roughly half of height */
}

/* Kapat/Sürükle alanı */
.stream-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background:
    linear-gradient(180deg, rgba(8, 24, 46, 0.98), rgba(4, 12, 27, 0.96)),
    #061226;
  border-bottom: 1px solid var(--line-strong);
  cursor: grab;
  user-select: none;
}

.stream-header:active {
  cursor: grabbing;
}

.stream-header .stream-title {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  pointer-events: none;
}

.stream-close {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stream-close:hover {
  color: var(--danger);
  background: rgba(255, 0, 0, 0.1);
}

.stream-container {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.champion-detail {
  padding: 0;
  overflow: visible;
}

.champion-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 4px;
}

.champion-detail-top span,
.champion-kda-card > span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.champion-detail-top h2 {
  margin: 8px 0;
  color: #f6f8fb;
  font-size: 30px;
}

.champion-detail-top p {
  margin: 0;
  color: #aab4c4;
}

.champion-detail-icon {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  object-fit: cover;
}

.champion-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(520px, calc(100% - 48px));
  margin: 18px 24px 24px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: #080d13;
}

.champion-picker svg {
  color: var(--gold);
}

.champion-picker input {
  width: 100%;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f0f4f9;
  font: inherit;
}

.champion-picker-results {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  max-height: 330px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  background: #080d13;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.54);
}

.champion-picker-results.open {
  display: block;
}

.champion-picker-results a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: #c9d1dd;
  text-decoration: none;
}

.champion-picker-results a[hidden] {
  display: none;
}

.champion-picker-results a:hover {
  background: rgba(93, 220, 255, 0.1);
  color: #fff;
}

.champion-picker-results img {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
}

.champion-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) minmax(240px, 1.3fr);
  gap: 12px;
  padding: 0 24px 12px;
}

.champion-matchup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px 12px;
}

.champion-matchup-card {
  padding: 16px;
  border: 1px solid var(--line);
  background: #040b17;
}

.champion-matchup-card.matchup-strong {
  border-top: 2px solid var(--green);
}

.champion-matchup-card.matchup-weak {
  border-top: 2px solid var(--red);
}

.champion-matchup-card h3 {
  margin: 0;
  color: #edf1f6;
  font-size: 16px;
}

.champion-matchup-card p {
  margin: 5px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.champion-matchup-card > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.matchup-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  color: inherit;
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.matchup-chip:hover {
  border-color: rgba(105, 210, 231, 0.44);
  background: rgba(105, 210, 231, 0.06);
  transform: translateY(-1px);
}

.matchup-chip img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
}

.matchup-chip strong {
  min-width: 0;
  overflow: hidden;
  color: #d2d8e2;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matchup-chip small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.matchup-strong .matchup-chip small {
  color: var(--green);
}

.matchup-weak .matchup-chip small {
  color: var(--red);
}

.matchup-empty {
  color: var(--muted);
  font-size: 13px;
}

.champion-ring-card,
.champion-kda-card,
.champion-stat-box {
  border: 1px solid var(--line);
  background: #040b17;
}

.champion-ring-card {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 178px;
  padding: 16px;
  color: #b3bdcb;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

.champion-ring {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--value) * 1%), rgba(255, 255, 255, 0.08) 0);
}

.champion-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #040b17;
}

.champion-ring strong {
  z-index: 1;
  grid-area: 1 / 1;
  color: #e8edf4;
  font-size: 18px;
}

.ring-cyan {
  --ring-color: var(--cyan);
}

.ring-green {
  --ring-color: var(--green);
}

.ring-red {
  --ring-color: var(--red);
}

.champion-kda-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}

.champion-kda-card strong {
  font-size: 32px;
  font-weight: 700;
}

.champion-kda-card strong b,
.champion-kda-card strong em,
.champion-kda-card strong i {
  font-style: normal;
}

.champion-kda-card strong b {
  color: var(--green);
}

.champion-kda-card strong em {
  color: var(--red);
}

.champion-kda-card strong i {
  color: var(--gold);
}

.champion-kda-card small {
  color: var(--muted);
}

.champion-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px 24px;
}

.champion-stat-box {
  min-width: 0;
  padding: 18px;
}

.champion-stat-box h3 {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 16px;
}

.champion-list-head,
.champion-stat-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 84px;
  gap: 12px;
  align-items: center;
}

.champion-list-head {
  padding: 0 8px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.champion-stat-row {
  padding: 11px 8px;
  border-top: 1px solid var(--line);
  color: #c4cbd5;
}

.champion-stat-row span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.champion-stat-row span b,
.duration-row > b {
  display: block;
  width: 84px;
  height: 9px;
  background: rgba(255, 255, 255, 0.08);
}

.champion-stat-row span i,
.duration-row > b i {
  display: block;
  height: 100%;
  background: var(--cyan);
}

.damage-stack {
  display: flex;
  height: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.damage-donut {
  width: 156px;
  height: 156px;
  display: grid;
  place-items: center;
  margin: 4px auto 18px;
  border-radius: 50%;
  background: conic-gradient(
    #e04b43 0 calc(var(--physical) * 1%),
    #369cca calc(var(--physical) * 1%) calc((var(--physical) + var(--magic)) * 1%),
    #aeb6c1 calc((var(--physical) + var(--magic)) * 1%) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.damage-donut::before {
  content: "";
  grid-area: 1 / 1;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: #040b17;
}

.damage-donut strong {
  z-index: 1;
  grid-area: 1 / 1;
  color: #edf1f6;
  font-size: 22px;
  text-align: center;
}

.damage-donut small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.damage-stack i,
.damage-legend i {
  display: block;
  height: 100%;
}

.damage-physical {
  background: #e04b43;
}

.damage-magic {
  background: #369cca;
}

.damage-true {
  background: #aeb6c1;
}

.damage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.damage-legend span {
  display: flex;
  gap: 5px;
  align-items: center;
}

.damage-legend i {
  width: 10px;
  height: 10px;
}

.champion-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.champion-mini-grid span {
  padding: 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.champion-mini-grid b {
  display: block;
  margin-bottom: 4px;
  color: #edf1f6;
  font-size: 20px;
}

.duration-row {
  display: grid;
  grid-template-columns: 64px 1fr 64px 64px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: #c4cbd5;
}

.duration-row > b {
  width: 100%;
}

.duration-row span {
  color: var(--green);
}

.duration-row small {
  color: var(--muted);
}

.champion-player-head,
.champion-player-row {
  display: grid;
  grid-template-columns: 28px minmax(180px, 1fr) 72px 86px 56px;
  gap: 10px;
  align-items: center;
}

.champion-player-head {
  padding: 0 0 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.champion-player-row {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: #c4cbd5;
}

.champion-player-summoner {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.champion-player-summoner > img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
}

.champion-player-summoner strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.champion-player-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.champion-player-row > b {
  color: var(--green);
}

.champion-player-row > em {
  color: #d5b86b;
  font-style: normal;
}

.champion-player-tier img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.champion-builds {
  margin-top: 14px;
}

.champion-build-role {
  padding: 0 20px 22px;
}

.champion-build-role + .champion-build-role {
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.champion-build-role-title {
  margin: 0 0 12px;
  padding: 10px 0 0;
  color: var(--cyan);
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.champion-build-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: #040b17;
}

.champion-build-card h3 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 15px;
}

.champion-build-head,
.champion-build-row {
  display: grid;
  grid-template-columns: 74px minmax(238px, 1fr) minmax(440px, 1.7fr) 150px 64px;
  gap: 10px;
  align-items: center;
}

.champion-build-head {
  padding: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.champion-build-row {
  min-height: 48px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.champion-build-row strong {
  color: var(--green);
  font-size: 13px;
}

.champion-build-spells,
.champion-build-row .item-icons {
  display: flex;
  gap: 4px;
  min-height: 34px;
}

.champion-build-spells img,
.champion-build-row .item-icons img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
}

.champion-build-spells .asset-tooltip {
  width: 34px;
  height: 34px;
}

.champion-build-runes {
  display: flex;
  gap: 12px;
  min-width: 0;
  min-height: 30px;
}

.champion-build-rune-tree {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-right: 10px;
  border-right: 1px solid var(--line);
}

.champion-build-rune-tree:last-child {
  padding-right: 10px;
}

.champion-build-rune-tree img {
  width: 27px;
  height: 27px;
  object-fit: contain;
  border-radius: 50%;
}

.champion-build-rune-tree .champion-build-rune-style {
  width: 22px;
  height: 22px;
  margin-right: 2px;
  opacity: 0.72;
}

.champion-build-stat-perks {
  display: flex;
  align-items: center;
  gap: 3px;
}

.champion-build-stat-perks img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  border-radius: 50%;
}

.asset-tooltip {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.asset-tooltip::before,
.asset-tooltip::after {
  content: none;
}

.asset-tooltip-card {
  position: absolute;
  z-index: 120;
  left: 50%;
  bottom: calc(100% + 10px);
  display: block;
  width: 372px;
  max-width: min(372px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(181, 153, 99, 0.5);
  border-radius: 2px;
  background: rgba(3, 3, 4, 0.96);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.72), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.asset-tooltip:hover .asset-tooltip-card,
.asset-tooltip:focus-visible .asset-tooltip-card {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tooltip-portal-ready .asset-tooltip > .asset-tooltip-card,
.tooltip-portal-ready .patch-change-card::before,
.tooltip-portal-ready .patch-change-card::after {
  display: none !important;
}

.asset-tooltip-portal {
  position: fixed !important;
  z-index: 20000 !important;
  top: 0;
  right: auto !important;
  bottom: auto !important;
  left: 0;
  display: block !important;
  width: min(372px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 6px, 0) !important;
}

.asset-tooltip-portal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) !important;
}

.spell-tooltip .asset-tooltip-card {
  left: 0;
  transform: translate(0, 8px);
}

.spell-tooltip:hover .asset-tooltip-card,
.spell-tooltip:focus-visible .asset-tooltip-card {
  transform: translate(0, 0);
}

.ability-tooltip .asset-tooltip-card {
  top: 0;
  bottom: auto;
  left: calc(100% + 10px);
  z-index: 180;
  transform: translate(8px, 0);
}

.ability-tooltip:hover .asset-tooltip-card,
.ability-tooltip:focus-visible .asset-tooltip-card {
  transform: translate(0, 0);
}

.asset-tooltip-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 11px;
  border-bottom: 1px solid rgba(181, 153, 99, 0.35);
  background:
    linear-gradient(90deg, rgba(33, 28, 17, 0.65), rgba(5, 5, 7, 0.45)),
    rgba(6, 6, 8, 0.98);
}

.asset-tooltip-head img {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(181, 153, 99, 0.65);
  background: #070707;
  object-fit: cover;
}

.asset-tooltip-head strong {
  display: block;
  color: #f4f0e7;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: 0;
}

.tooltip-gold {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: #c9a953;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.tooltip-gold::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #f4d987, #b98c2e 58%, #72501c);
  box-shadow: 0 0 0 1px rgba(244, 217, 135, 0.34);
}

.asset-tooltip-body {
  display: grid;
  gap: 4px;
  padding: 12px 14px 14px;
  color: #b8b3aa;
  font-size: 15px;
  line-height: 1.32;
}

.tooltip-line {
  display: block;
}

.tooltip-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: #c8c1b5;
  font-size: 16px;
  white-space: nowrap;
}

.tooltip-stat b {
  display: inline !important;
  color: #ede6d8;
  font-weight: 700;
}

.tooltip-stat span {
  display: inline !important;
  color: #a8a19a;
}

.tooltip-title-line,
.tooltip-effect {
  margin-top: 10px;
  color: #f4f0e7;
  font-weight: 850;
}

.tooltip-title-line + .tooltip-line,
.tooltip-effect + .tooltip-line {
  margin-top: 1px;
}

.tooltip-accent {
  color: #f1d16d;
  font-weight: 800;
}

.tooltip-green {
  color: #49d982;
  font-weight: 800;
}

.tooltip-statword {
  color: #d9c59a;
}

.tooltip-physical {
  color: #e0674e !important;
}

.tooltip-magic {
  color: #b37cff !important;
}

.tooltip-true {
  color: #f3f3f3 !important;
}

.tooltip-mana {
  color: #5fb4ff !important;
}

.tooltip-defense {
  color: #9eb7cf !important;
}

.tooltip-utility {
  color: #d9c56a !important;
}

.tooltip-redword {
  color: #e46a5e;
}

.champion-build-pending {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.ranked-loadout-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: #071426;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
}

.ranked-loadout-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(105, 210, 231, 0.08), transparent 54%),
    #0a1b2f;
}

.ranked-loadout-summary span,
.ranked-loadout-summary em {
  display: block;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-style: normal;
}

.ranked-loadout-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 15px;
}

.ranked-loadout-summary small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
}

.ranked-lane-tabs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: #030303;
}

.ranked-lane-tab {
  display: grid;
  min-width: 132px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #090909;
  color: #e9edf2;
}

.ranked-lane-tab.active,
.ranked-lane-tab:hover {
  border-color: var(--gold);
  background: rgba(105, 210, 231, 0.12);
  color: #fff;
}

.ranked-lane-tab span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.ranked-loadout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 1px;
  background: var(--line);
}

.ranked-loadout-card {
  min-height: 0;
  display: grid;
  align-content: start;
  padding: 20px;
  background: var(--panel-2);
}

.ranked-loadout-card h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 16px;
  text-transform: uppercase;
  font-size: 14px;
}

.ranked-loadout-card h3 small {
  color: var(--muted);
  font-size: 12px;
  text-transform: none;
}

.ranked-rune-choice,
.ranked-build-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.ranked-build-choice {
  grid-template-columns: minmax(0, 1fr) 124px;
}

.ranked-rune-choice:first-of-type,
.ranked-build-choice:first-of-type {
  border-top: 0;
}

.ranked-rune-choice strong,
.ranked-build-choice strong {
  color: #fff;
}

.ranked-rune-choice span,
.ranked-build-choice span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.ranked-loadout-card .champion-build-runes {
  gap: 16px;
}

.ranked-loadout-card .item-icons {
  justify-content: flex-start;
}

.ranked-build-assets {
  display: grid;
  gap: 12px;
}

.ranked-build-assets .champion-build-spells {
  justify-content: flex-start;
}

.ranked-build-assets .champion-build-spells img {
  width: 42px;
  height: 42px;
}

.ranked-ability-panel {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #071426;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
}

.ranked-ability-panel > h3 {
  margin: 0 0 14px;
  text-transform: uppercase;
  font-size: 14px;
}

.ranked-skill-card {
  margin-top: 12px;
  border-color: var(--line);
  background: var(--panel-2);
}

.ranked-skill-card:first-of-type {
  margin-top: 0;
}

.ranked-skill-card .skill-order-table {
  min-width: 940px;
}

.ranked-skill-card .skill-order-head {
  grid-template-columns: 48px repeat(18, 36px) 132px 112px;
}

.skill-order-line {
  display: grid;
  grid-template-columns: 48px 648px 132px 112px;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.skill-order-line:last-child {
  border-bottom: 0;
}

.skill-order-line img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
}

.skill-order-line > .asset-tooltip,
.skill-order-row > .asset-tooltip {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
}

.skill-order-line > .asset-tooltip img,
.skill-order-row > .asset-tooltip img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
}

.skill-order-levels {
  display: grid;
  grid-template-columns: repeat(18, 36px);
}

.skill-order-levels span {
  display: grid;
  place-items: center;
  height: 50px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 13px;
}

.skill-order-levels span.active {
  background: rgba(105, 210, 231, 0.12);
  color: var(--gold);
  font-weight: 800;
}

.skill-order-line strong {
  text-align: center;
  font-size: 12px;
}

@media (max-width: 980px) {
  .ranked-loadout-grid {
    grid-template-columns: 1fr;
  }
}

.champion-build-rate {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.champion-build-rate b {
  display: block;
  width: 92px;
  height: 9px;
  background: rgba(255, 255, 255, 0.08);
}

.champion-build-rate i {
  display: block;
  height: 100%;
  background: var(--cyan);
}

.champion-rune-layout,
.jungle-path-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.9fr);
  gap: 16px;
  padding: 16px;
}

.champion-rune-panel,
.jungle-path-panel,
.skill-order-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: #040b17;
}

.champion-rune-panel h3,
.jungle-path-panel h3,
.skill-order-card h3 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font-size: 15px;
}

.skill-order-card h3 small {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.champion-rune-list {
  overflow-x: auto;
}

.champion-rune-head,
.champion-rune-row {
  display: grid;
  grid-template-columns: minmax(500px, 1fr) 150px 74px 64px;
  gap: 14px;
  align-items: center;
  min-width: 820px;
}

.champion-rune-head {
  padding: 12px 14px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.champion-rune-row {
  min-height: 58px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
}

.champion-rune-row > strong {
  font-size: 13px;
}

.champion-rune-row > span {
  color: var(--muted);
  font-size: 12px;
}

.pro-rune-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(250px, 1.4fr);
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-top: 1px solid var(--line);
}

.pro-rune-card strong {
  display: block;
  color: #eef3f7;
  font-size: 13px;
}

.pro-rune-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.skill-order-stack {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.skill-order-card {
  overflow-x: auto;
}

.ranked-ability-panel .skill-order-card,
.ranked-ability-panel .skill-order-table {
  overflow: visible;
}

.skill-order-table {
  min-width: 1060px;
}

.skill-order-head,
.skill-order-row {
  display: grid;
  grid-template-columns: 48px repeat(18, 36px) 132px 112px;
  align-items: center;
}

.skill-order-head {
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.skill-order-row {
  position: relative;
  padding: 0 14px;
  min-height: 50px;
  border-bottom: 1px solid var(--line);
}

.skill-order-row img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
}

.skill-name {
  display: none;
}

.skill-cell {
  display: grid;
  place-items: center;
  width: 36px;
  height: 50px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 13px;
}

.skill-cell.active {
  background: rgba(93, 220, 255, 0.1);
  color: #dce7ef;
  font-weight: 700;
}

.skill-order-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.skill-order-meter b {
  display: block;
  width: 62px;
  height: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.skill-order-meter i {
  display: block;
  height: 100%;
  background: var(--cyan);
}

.skill-order-meter.win i {
  background: var(--green);
}

.jungle-side-tabs {
  margin: 0 16px;
}

.jungle-path-layout {
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
}

.jungle-first-head,
.jungle-first-row,
.jungle-path-head,
.jungle-path-row {
  display: grid;
  gap: 12px;
  align-items: center;
}

.jungle-first-head,
.jungle-first-row {
  grid-template-columns: 42px minmax(76px, 1fr) 108px 108px;
}

.jungle-path-head,
.jungle-path-row {
  grid-template-columns: minmax(640px, 1fr) 150px 150px;
}

.jungle-first-head,
.jungle-path-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.jungle-first-row,
.jungle-path-row {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.jungle-first-row img,
.jungle-path-camps img {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  background: #060a0f;
  object-fit: cover;
}

.jungle-first-row strong {
  font-size: 12px;
}

.jungle-path-main {
  overflow-x: auto;
}

.jungle-path-head,
.jungle-path-row {
  min-width: 1060px;
}

.jungle-path-camps {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
}

.jungle-path-camps span {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  width: 70px;
}

.jungle-path-camps small {
  display: block;
  width: 100%;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
}

.jungle-path-camps svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.champion-rune-stack,
.jungle-scenario-stack,
.arena-detail-grid {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.lane-rune-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 12px;
  padding: 14px;
}

.lane-rune-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.lane-rune-card h4 {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: #eef3f7;
  font-size: 13px;
}

.lane-rune-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.lane-rune-row:first-of-type {
  border-top: 0;
}

.lane-rune-row .champion-build-runes,
.pro-rune-card .champion-build-runes {
  flex-wrap: wrap;
  gap: 8px;
}

.lane-rune-meta {
  display: grid;
  justify-items: end;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
}

.lane-rune-meta strong {
  font-size: 13px;
}

.lane-rune-meta em {
  font-style: normal;
}

.pro-rune-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 12px;
  padding: 14px;
}

.pro-rune-card {
  grid-template-columns: 190px 150px minmax(0, 1fr);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.pro-rune-player,
.pro-rune-rank {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.pro-rune-player img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
}

.pro-rune-rank img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.pro-rune-rank span {
  color: #eef3f7;
  font-size: 12px;
  font-weight: 700;
}

.pro-rune-rank small {
  margin-top: 2px;
}

.jungle-scenario-card {
  position: relative;
  overflow-x: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)), #040b17;
}

.jungle-scenario-card h3 small {
  margin-left: 10px;
  color: var(--muted);
  font-size: 13px;
}

.jungle-scenario-card h3 {
  font-size: 18px;
  padding-block: 18px;
}

.recommended-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(231, 193, 75, 0.45);
  background: rgba(231, 193, 75, 0.13);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.jungle-scenario-card.is-recommended h3 {
  padding-left: 118px;
}

.arena-detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.arena-hub {
  display: grid;
  gap: 22px;
}

.arena-hub-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.arena-hub-head span,
.arena-meta-panel .ranked-section-head span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.arena-hub-head h2 {
  margin: 4px 0 4px;
  color: var(--text);
  font-size: 32px;
  letter-spacing: 0;
}

.arena-hub-head p {
  margin: 0;
  color: var(--text-muted);
}

.arena-hub-head > strong {
  padding: 12px 16px;
  border: 1px solid rgba(105, 210, 231, 0.22);
  background: rgba(105, 210, 231, 0.055);
  color: var(--text-muted);
  font-size: 12px;
}

.arena-hub-head > strong b {
  color: var(--gold);
}

.arena-meta-panel {
  min-width: 0;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 0, rgba(105, 210, 231, 0.07), transparent 36%),
    var(--bg-card);
}

.arena-meta-board {
  display: grid;
  gap: 0;
}

.arena-meta-tier {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  min-height: 88px;
  border-top: 1px solid var(--line);
}

.arena-meta-tier > strong {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: #0b0b0b;
  font-size: 24px;
  font-weight: 950;
}

.arena-meta-tier.tier-S\+ > strong {
  background: linear-gradient(180deg, #ffef92, #e3b63f);
}

.arena-meta-tier.tier-S > strong {
  background: linear-gradient(180deg, #f2d361, #cfa534);
}

.arena-meta-tier.tier-A > strong {
  background: linear-gradient(180deg, #55e39a, #2cae6b);
}

.arena-meta-tier.tier-B > strong {
  background: linear-gradient(180deg, #79cfff, #3a7fa7);
}

.arena-meta-tier.tier-C > strong {
  background: linear-gradient(180deg, #b69cff, #7258bf);
}

.arena-meta-tier.tier-D > strong {
  background: linear-gradient(180deg, #a7adb7, #58606b);
}

.arena-meta-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, 50px);
  align-items: start;
  justify-content: start;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  overflow: visible;
}

.arena-meta-card {
  position: relative;
}

.arena-meta-card:hover,
.arena-meta-card:focus-visible {
  z-index: 4;
}

.arena-meta-tier .ranked-card-preview {
  top: calc(100% + 9px);
}

.arena-meta-list .arena-meta-card:nth-child(-n + 3) .ranked-card-preview {
  left: 0;
  transform: translate(0, -4px) scale(0.98);
}

.arena-meta-list .arena-meta-card:nth-child(-n + 3):hover .ranked-card-preview,
.arena-meta-list .arena-meta-card:nth-child(-n + 3):focus-visible .ranked-card-preview {
  transform: translate(0, 0) scale(1);
}

.arena-signal-panel {
  overflow: visible;
  border-radius: 16px;
  background: var(--bg-card);
}

.arena-signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  padding: 16px;
}

.arena-signal-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.arena-signal-card:hover,
.arena-signal-card:focus-visible {
  border-color: rgba(105, 210, 231, 0.32);
  background: var(--bg-hover);
  transform: translateY(-2px);
}

.arena-signal-card img {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #060606;
}

.arena-signal-card > span {
  grid-row: span 3;
}

.arena-signal-card strong,
.arena-signal-card small,
.arena-signal-card em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arena-signal-card strong {
  font-size: 13px;
}

.arena-signal-card small {
  color: var(--text-muted);
  font-size: 11px;
}

.arena-signal-card em {
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.arena-tier-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.arena-tier-panel,
.arena-panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: #040b17;
}

.arena-tier-panel h3,
.arena-panel h3 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font-size: 15px;
}

.arena-tier-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 74px;
  padding: 0;
  gap: 0;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.arena-tier-row > strong {
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  color: #071017;
  font-size: 28px;
}

.arena-tier-row.tier-S > strong {
  background: #f1c84b;
}

.arena-tier-row.tier-A > strong {
  background: #42d98f;
}

.arena-tier-row.tier-B > strong {
  background: #5ddcff;
}

.arena-tier-row.tier-C > strong {
  background: #b18cff;
}

.arena-tier-row.tier-D > strong {
  background: #8f98a7;
}

.arena-tier-row > div {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 7px;
  padding: 10px;
}

.arena-tier-icon img {
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  background: #060a0f;
}

.arena-tier-icon.augment-rarity-silver,
.arena-augment-name .augment-rarity-silver,
.arena-signal-card .augment-rarity-silver {
  --augment-rarity-border: #92a3b6;
  --augment-rarity-color: #d7e4f1;
  --augment-rarity-glow: rgba(189, 206, 224, 0.34);
  --augment-rarity-filter: grayscale(0.08) brightness(1.05) contrast(1.08);
}

.arena-tier-icon.augment-rarity-gold,
.arena-augment-name .augment-rarity-gold,
.arena-signal-card .augment-rarity-gold {
  --augment-rarity-border: #d6a73f;
  --augment-rarity-color: #f2c65b;
  --augment-rarity-glow: rgba(214, 167, 63, 0.42);
  --augment-rarity-filter: grayscale(0.08) brightness(1.08) contrast(1.08);
}

.arena-tier-icon.augment-rarity-prismatic,
.arena-augment-name .augment-rarity-prismatic,
.arena-signal-card .augment-rarity-prismatic {
  --augment-rarity-border: #efdfff;
  --augment-rarity-color: #dcb8ff;
  --augment-rarity-glow: rgba(232, 195, 255, 0.5);
  --augment-rarity-filter: grayscale(0.06) brightness(1.12) contrast(1.08);
}

.arena-tier-icon.augment-rarity-silver,
.arena-tier-icon.augment-rarity-gold,
.arena-tier-icon.augment-rarity-prismatic,
.arena-augment-name .augment-rarity-silver,
.arena-augment-name .augment-rarity-gold,
.arena-augment-name .augment-rarity-prismatic,
.arena-signal-card .augment-rarity-silver,
.arena-signal-card .augment-rarity-gold,
.arena-signal-card .augment-rarity-prismatic {
  isolation: isolate;
}

.arena-tier-icon.augment-rarity-silver img,
.arena-tier-icon.augment-rarity-gold img,
.arena-tier-icon.augment-rarity-prismatic img,
.arena-augment-name .augment-rarity-silver img,
.arena-augment-name .augment-rarity-gold img,
.arena-augment-name .augment-rarity-prismatic img,
.arena-signal-card .augment-rarity-silver img,
.arena-signal-card .augment-rarity-gold img,
.arena-signal-card .augment-rarity-prismatic img {
  border-color: var(--augment-rarity-border);
  filter: var(--augment-rarity-filter);
  box-shadow:
    0 0 12px var(--augment-rarity-glow),
    inset 0 0 0 1px var(--augment-rarity-glow);
}

.arena-tier-icon.augment-rarity-silver::before,
.arena-tier-icon.augment-rarity-gold::before,
.arena-tier-icon.augment-rarity-prismatic::before,
.arena-augment-name .augment-rarity-silver::before,
.arena-augment-name .augment-rarity-gold::before,
.arena-augment-name .augment-rarity-prismatic::before,
.arena-signal-card .augment-rarity-silver::before,
.arena-signal-card .augment-rarity-gold::before,
.arena-signal-card .augment-rarity-prismatic::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 1px;
  background: var(--augment-rarity-color);
  mix-blend-mode: color;
  opacity: 0.95;
  pointer-events: none;
}

.arena-head,
.arena-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 130px 130px 58px;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
}

.arena-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.arena-row {
  border-top: 1px solid var(--line);
}

.arena-row strong {
  color: #eef3f7;
  font-size: 13px;
}

.arena-augment-name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.arena-augment-name img {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: #060a0f;
}

.arena-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.arena-item-head,
.arena-item-row {
  grid-template-columns: minmax(260px, 1fr) 130px 58px;
}

.arena-item-row .item-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

@media (max-width: 1100px) {
  .champion-metric-grid,
  .champion-detail-grid,
  .champion-matchup-grid,
  .champion-rune-layout,
  .jungle-path-layout,
  .arena-tier-layout,
  .arena-detail-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .champion-detail-top {
    padding: 18px 16px 2px;
  }

  .champion-detail-top h2 {
    font-size: 26px;
  }

  .champion-detail-icon {
    width: 64px;
    height: 64px;
  }

  .champion-picker {
    width: calc(100% - 32px);
    margin: 16px;
  }

  .champion-metric-grid,
  .champion-detail-grid,
  .champion-matchup-grid {
    padding-inline: 16px;
  }

  .champion-build-head,
  .champion-build-row {
    grid-template-columns: 74px minmax(214px, 1fr) minmax(420px, 1fr) 112px 56px;
  }

  .champion-build-rate b {
    width: 48px;
  }

  .champion-build-card {
    overflow-x: auto;
  }

  .champion-build-head,
  .champion-build-row {
    min-width: 930px;
  }
}

/* Premium theme pass */
.brand {
  min-height: 76px;
  height: 76px;
  border-bottom-color: var(--line);
  background:
    radial-gradient(circle at 24% 22%, rgba(105, 210, 231, 0.12), transparent 38%),
    var(--bg-secondary);
}

.brand strong {
  color: var(--text);
  letter-spacing: 0.08em;
}

.brand small {
  color: var(--text-muted);
}

.sidebar nav {
  display: grid;
  gap: 7px;
  padding: 16px 10px;
}

.nav-item {
  min-height: 48px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 0;
  color: var(--text-muted);
  font-weight: 650;
  letter-spacing: 0;
}

.nav-item:hover {
  border-color: var(--line);
  background: var(--bg-hover);
  color: var(--text);
}

.nav-item.active {
  border-color: rgba(105, 210, 231, 0.18);
  border-left-color: var(--gold);
  background: rgba(105, 210, 231, 0.08);
  color: var(--text);
}

.nav-item.active svg,
.nav-item.active .nav-mode-badge {
  color: var(--gold);
}

.nav-mode-icon,
.nav-mode-badge {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}

.nav-mode-badge {
  border-color: rgba(105, 210, 231, 0.5);
  box-shadow: inset 0 0 0 2px rgba(105, 210, 231, 0.18);
}

.subnav {
  margin: -4px 0 4px 14px;
  padding: 5px 0 5px 18px;
  border-left: 1px solid var(--line);
  background: transparent;
}

.subnav a {
  padding: 8px 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.subnav a.active,
.subnav a:hover {
  color: var(--gold);
}

.page {
  padding: 40px;
  background:
    radial-gradient(circle at 72% 0, rgba(105, 210, 231, 0.075), transparent 34%),
    radial-gradient(circle at 10% 16%, rgba(105, 210, 231, 0.04), transparent 28%),
    var(--bg-primary);
}

.panel,
.profile-card,
.premium-card,
.ranked-meta-panel,
.ranked-patch-panel,
.champion-rune-panel,
.jungle-path-panel,
.skill-order-card,
.champion-build-card,
.ranked-loadout-panel,
.ranked-ability-panel,
.arena-tier-panel,
.arena-panel,
.champion-matchup-card,
.champion-ring-card,
.champion-kda-card,
.role-card,
.category-card,
.module-card,
.queue-grid article,
.mastery-row,
.live-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent 42%),
    var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 28px;
  margin-bottom: 32px;
}

.panel-head,
.ranked-section-head {
  border-bottom-color: var(--line);
}

.panel h2,
.ranked-section-head h3,
.ranked-hub-head h2 {
  color: var(--text);
  letter-spacing: 0;
}

.ranked-hub {
  padding: 32px;
}

.ranked-hub-head {
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 86% 20%, rgba(105, 210, 231, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 46%),
    var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.ranked-hub-head > strong {
  border-color: var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.ranked-hub-grid {
  gap: 24px;
  margin-top: 28px;
}

.ranked-role-groups {
  gap: 0;
  background: transparent;
}

.ranked-role-group {
  gap: 14px;
  padding: 18px;
  background: transparent;
  border-right: 1px solid var(--line);
}

.ranked-role-group:last-child {
  border-right: 0;
}

.ranked-role-head {
  gap: 8px;
  min-height: 24px;
}

.ranked-role-head img {
  width: 18px;
  height: 18px;
  filter: sepia(0.75) saturate(1.1) drop-shadow(0 0 8px rgba(105, 210, 231, 0.2));
}

.ranked-role-head strong {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.ranked-role-head span {
  color: var(--text-muted);
  font-size: 11px;
}

.ranked-role-list {
  grid-template-columns: repeat(auto-fill, 50px);
  justify-content: center;
  align-items: start;
  gap: 10px 8px;
}

.ranked-compact-card {
  min-height: 98px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--bg-card);
  box-shadow: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.ranked-compact-card:hover,
.ranked-compact-card:focus-visible {
  z-index: 2;
  border-color: rgba(105, 210, 231, 0.34);
  background: var(--bg-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.ranked-meta-card {
  justify-items: center;
  align-content: center;
  width: 50px;
  min-height: 58px;
  height: 58px;
  padding: 4px;
  border-radius: 8px;
  overflow: visible;
}

.ranked-compact-card img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: var(--bg-secondary);
  object-fit: cover;
}

.ranked-meta-card img {
  width: 36px;
  height: 36px;
  margin-bottom: 3px;
  border-radius: 7px;
  border-color: rgba(105, 210, 231, 0.36);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.38);
}

.ranked-meta-card > strong,
.ranked-meta-card > b,
.ranked-meta-card > i {
  display: none;
}

.ranked-card-name {
  display: block;
  width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 8px;
  font-weight: 750;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranked-compact-card strong,
.ranked-compact-card span {
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranked-compact-card b {
  color: var(--green);
  font-size: 10px;
}

.ranked-meta-card b {
  color: var(--text-muted);
  font-weight: 650;
}

.ranked-meta-card b em {
  color: var(--green);
  font-style: normal;
  font-weight: 850;
}

.ranked-meta-card i {
  display: block;
  width: 48px;
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.ranked-meta-card i::before {
  content: "";
  display: block;
  width: var(--wr);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.ranked-compact-card .ranked-card-preview {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  bottom: auto;
  z-index: 30;
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  width: 410px;
  max-width: 410px;
  min-height: 116px;
  overflow: hidden;
  border: 1px solid rgba(105, 210, 231, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    #101010;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px) scale(0.98);
  transition: opacity 150ms ease, transform 150ms ease;
  max-width: none;
  color: var(--text);
  white-space: normal;
  text-align: left;
}

.ranked-role-group:first-child .ranked-card-preview {
  left: 0;
  transform: translate(0, -4px) scale(0.98);
}

.ranked-role-group:first-child .ranked-meta-card:hover .ranked-card-preview,
.ranked-role-group:first-child .ranked-meta-card:focus-visible .ranked-card-preview {
  transform: translate(0, 0) scale(1);
}

.ranked-role-group:last-child .ranked-card-preview {
  right: 0;
  left: auto;
  transform: translate(0, -4px) scale(0.98);
}

.ranked-role-group:last-child .ranked-meta-card:hover .ranked-card-preview,
.ranked-role-group:last-child .ranked-meta-card:focus-visible .ranked-card-preview {
  transform: translate(0, 0) scale(1);
}

.ranked-compact-card .ranked-card-preview::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 196px;
  background:
    radial-gradient(circle at center, rgba(105, 210, 231, 0.12), transparent 58%),
    #090909;
}

.ranked-compact-card .ranked-card-preview::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 196px;
  height: 100%;
  border-radius: 0;
  background-image: var(--champion-splash);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(1.08) contrast(1.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ranked-compact-card .ranked-card-preview > span {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: none;
  overflow: visible;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: normal;
  text-overflow: clip;
  white-space: normal;
}

.ranked-compact-card .ranked-card-preview > span:first-child {
  min-height: 116px;
}

.ranked-compact-card .ranked-card-preview > span:last-child {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 14px 16px 14px 16px;
  text-align: left;
}

.ranked-compact-card .ranked-card-preview strong {
  display: block;
  width: auto;
  max-width: none;
  overflow: visible;
  color: var(--text);
  font-size: 16px;
  font-weight: 850;
  line-height: 1;
  text-align: left;
  text-overflow: clip;
  white-space: normal;
}

.ranked-compact-card .ranked-card-preview small,
.ranked-compact-card .ranked-card-preview em {
  display: block;
  width: auto;
  max-width: none;
  overflow: visible;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.25;
  text-align: left;
  text-overflow: clip;
  white-space: normal;
}

.ranked-compact-card .ranked-card-preview b {
  display: block;
  width: max-content;
  margin-top: 4px;
  border: 1px solid rgba(46, 204, 113, 0.28);
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.1);
  padding: 4px 8px;
  color: var(--green);
  font-size: 11px;
}

.ranked-meta-card:hover .ranked-card-preview,
.ranked-meta-card:focus-visible .ranked-card-preview {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.preview-portal-ready .ranked-meta-card > .ranked-card-preview {
  display: none !important;
}

.ranked-card-preview-portal {
  position: fixed !important;
  z-index: 19000 !important;
  top: 0;
  right: auto !important;
  bottom: auto !important;
  left: 0;
  display: grid !important;
  grid-template-columns: 196px minmax(0, 1fr);
  width: min(410px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  min-height: 116px;
  overflow: hidden;
  border: 1px solid rgba(105, 210, 231, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    #101010;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.62);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate3d(0, 6px, 0) scale(0.98) !important;
  transition: opacity 150ms ease, transform 150ms ease;
  white-space: normal;
}

.ranked-card-preview-portal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

.ranked-card-preview-portal::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 196px;
  background:
    radial-gradient(circle at center, rgba(105, 210, 231, 0.12), transparent 58%),
    #090909;
}

.ranked-card-preview-portal::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 196px;
  height: 100%;
  background-image: var(--champion-splash);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(1.08) contrast(1.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ranked-card-preview-portal > span {
  position: relative;
  z-index: 1;
  display: block;
  overflow: visible;
  color: inherit;
  line-height: normal;
  white-space: normal;
}

.ranked-card-preview-portal > span:first-child {
  min-height: 116px;
}

.ranked-card-preview-portal > span:last-child {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 14px 16px;
}

.ranked-card-preview-portal strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 850;
  line-height: 1;
}

.ranked-card-preview-portal small,
.ranked-card-preview-portal em {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.25;
}

.ranked-card-preview-portal b {
  display: block;
  width: max-content;
  margin-top: 4px;
  border: 1px solid rgba(46, 204, 113, 0.28);
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.1);
  padding: 4px 8px;
  color: var(--green);
  font-size: 11px;
}

@media (max-width: 480px) {
  .ranked-card-preview-portal {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .ranked-card-preview-portal::before,
  .ranked-card-preview-portal::after {
    width: 120px;
  }
}

.ranked-patch-grid {
  padding: 18px;
  gap: 18px;
}

.patch-change-group h4 {
  margin-bottom: 12px;
}

.patch-change-group > div {
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 10px;
}

.patch-change-card {
  min-height: 86px;
}

/* Night-sky theme finish */
.topbar,
.filters {
  border-color: rgba(126, 194, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(8, 24, 46, 0.96), rgba(4, 13, 28, 0.9)),
    #061226;
}

.search,
.champion-picker {
  border-color: rgba(91, 202, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(10, 30, 54, 0.92), rgba(5, 14, 29, 0.9)),
    #071426;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 30px rgba(66, 200, 255, 0.05);
}

.search button {
  border-color: rgba(91, 202, 255, 0.34);
  background: rgba(66, 200, 255, 0.09);
  color: var(--gold);
}

.search-results,
.champion-picker-results {
  border-color: rgba(91, 202, 255, 0.28);
  background: rgba(5, 16, 32, 0.98);
  box-shadow: 0 18px 46px rgba(0, 8, 24, 0.78);
}

.filters span {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(66, 200, 255, 0.2);
}

.page {
  background:
    linear-gradient(125deg, rgba(13, 42, 85, 0.24), transparent 44%),
    linear-gradient(180deg, #08172b 0%, #071326 54%, #040a17 100%);
}

.brand {
  background:
    linear-gradient(145deg, rgba(54, 156, 238, 0.15), rgba(6, 17, 34, 0.92) 46%),
    #071426;
}

.nav-item:hover {
  border-color: rgba(91, 202, 255, 0.22);
  background: rgba(12, 34, 60, 0.86);
}

.nav-item.active {
  border-color: rgba(91, 202, 255, 0.3);
  border-left-color: var(--gold);
  background:
    linear-gradient(90deg, rgba(66, 200, 255, 0.2), rgba(26, 91, 170, 0.08) 62%, transparent),
    rgba(7, 21, 40, 0.94);
  box-shadow: inset 0 0 24px rgba(66, 200, 255, 0.05);
}

.subnav {
  background: rgba(5, 15, 31, 0.82);
}

.sidebar {
  width: var(--sidebar-compact);
  flex: 0 0 var(--sidebar-compact);
  overflow: visible;
  scrollbar-width: none;
  border-right: 0;
  background: transparent;
  isolation: isolate;
  transition: box-shadow 220ms ease;
  z-index: 1400;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--sidebar-compact);
  height: 100%;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(13, 42, 80, 0.62), rgba(5, 14, 28, 0.98) 42%),
    linear-gradient(90deg, rgba(66, 200, 255, 0.055), transparent),
    var(--bg-secondary);
  transition:
    width 220ms ease,
    box-shadow 220ms ease;
  z-index: 0;
}

.sidebar::-webkit-scrollbar {
  width: 0;
}

.sidebar:hover,
.sidebar:focus-within {
  width: var(--sidebar-compact);
  flex-basis: var(--sidebar-compact);
  z-index: 1400;
}

.sidebar:hover::before,
.sidebar:focus-within::before {
  width: var(--sidebar-expanded);
  box-shadow: 22px 0 56px rgba(0, 8, 24, 0.62);
}

.brand {
  justify-content: center;
  gap: 0;
  padding-inline: 11px;
  width: var(--sidebar-compact);
  position: relative;
  z-index: 1;
  transition:
    width 220ms ease,
    gap 180ms ease,
    padding 180ms ease;
}

.brand .brand-mark + span,
.nav-label,
.nav-chevron {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  white-space: nowrap;
  transition:
    max-width 180ms ease,
    opacity 140ms ease,
    visibility 140ms ease;
}

.sidebar:hover .brand,
.sidebar:focus-within .brand {
  width: var(--sidebar-expanded);
  justify-content: flex-start;
  gap: 10px;
  padding-inline: 16px;
}

.sidebar:hover .brand .brand-mark + span,
.sidebar:focus-within .brand .brand-mark + span,
.sidebar:hover .nav-label,
.sidebar:focus-within .nav-label,
.sidebar:hover .nav-chevron,
.sidebar:focus-within .nav-chevron {
  max-width: 180px;
  opacity: 1;
  visibility: visible;
}

.sidebar nav {
  padding-inline: 9px;
  width: var(--sidebar-compact);
  max-height: calc(100vh - 76px);
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  scrollbar-width: none;
  transition: width 220ms ease;
  z-index: 1;
}

.sidebar nav::-webkit-scrollbar {
  width: 0;
}

.sidebar:hover nav,
.sidebar:focus-within nav {
  width: var(--sidebar-expanded);
}

.nav-item {
  justify-content: center;
  gap: 0;
  padding-inline: 0;
}

.sidebar:hover .nav-item,
.sidebar:focus-within .nav-item {
  justify-content: flex-start;
  gap: 12px;
  padding-inline: 11px;
}

.nav-toggle > .nav-label {
  flex: 1;
}

.sidebar:not(:hover):not(:focus-within) .subnav {
  display: none;
  margin: 0;
  padding: 0;
  border-left: 0;
}

.sidebar:hover .subnav,
.sidebar:focus-within .subnav {
  opacity: 1;
  visibility: visible;
}

.panel,
.profile-card,
.premium-card,
.ranked-meta-panel,
.ranked-patch-panel,
.champion-rune-panel,
.jungle-path-panel,
.skill-order-card,
.champion-build-card,
.ranked-loadout-panel,
.ranked-ability-panel,
.arena-tier-panel,
.arena-panel,
.champion-matchup-card,
.champion-ring-card,
.champion-kda-card,
.role-card,
.category-card,
.module-card,
.queue-grid article,
.mastery-row,
.live-box,
.item-stat-card,
.ranked-loadout-card {
  border-color: rgba(137, 190, 255, 0.1);
  background:
    linear-gradient(145deg, rgba(17, 55, 98, 0.34), rgba(7, 20, 36, 0.9) 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.006)),
    var(--panel);
  box-shadow:
    0 24px 64px rgba(0, 8, 24, 0.66),
    inset 0 1px rgba(255, 255, 255, 0.04);
}

.premium,
.premium-card {
  background:
    linear-gradient(145deg, rgba(18, 62, 112, 0.34), rgba(7, 20, 36, 0.92) 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006)),
    var(--panel);
}

.ranked-hub-head,
.arena-hub-head,
.ranked-loadout-summary {
  border-color: rgba(105, 210, 231, 0.14);
  background:
    linear-gradient(135deg, rgba(45, 135, 219, 0.14), transparent 46%),
    linear-gradient(90deg, rgba(48, 49, 119, 0.12), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 46%),
    var(--bg-card);
}

.ranked-section-head,
.panel-head,
.champion-list-head,
.tier-head,
.arena-head,
.item-stat-head,
.best-player-head,
.skill-order-head {
  border-color: rgba(137, 190, 255, 0.1);
  background: linear-gradient(90deg, rgba(66, 200, 255, 0.06), rgba(10, 32, 58, 0.18) 58%, transparent);
}

.ranked-role-group,
.patch-change-group {
  background:
    linear-gradient(180deg, rgba(11, 35, 61, 0.46), rgba(5, 16, 30, 0.18)),
    transparent;
}

.ranked-compact-card,
.tier-row,
.item-stat-row,
.champion-list-row,
.arena-row,
.jungle-path-row,
.skill-order-line,
.ranked-rune-choice,
.ranked-build-choice {
  border-color: rgba(137, 190, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.034), transparent),
    rgba(8, 22, 40, 0.86);
}

.ranked-compact-card:hover,
.ranked-compact-card:focus-visible,
.category-card:hover,
.module-card:hover {
  border-color: rgba(105, 210, 231, 0.36);
  background:
    linear-gradient(180deg, rgba(66, 200, 255, 0.1), rgba(13, 37, 65, 0.92)),
    var(--bg-hover);
  box-shadow:
    0 18px 42px rgba(0, 8, 24, 0.62),
    0 0 24px rgba(66, 200, 255, 0.1);
}

.profile-card h1 span,
.ranked-hub-head p,
.ranked-role-head span,
.ranked-card-name i,
.panel p,
.module-card p {
  color: var(--text-muted);
}

.home-news-panel .panel-head p {
  max-width: 640px;
  margin: 6px 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.home-news-card {
  position: relative;
  display: grid;
  min-height: 286px;
  overflow: hidden;
  border: 1px solid rgba(126, 194, 255, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(26, 91, 170, 0.16), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.006)),
    #071426;
  box-shadow: var(--shadow-card);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.home-news-card:hover,
.home-news-card:focus-visible {
  border-color: rgba(105, 210, 231, 0.34);
  box-shadow:
    0 20px 48px rgba(0, 8, 24, 0.66),
    0 0 28px rgba(66, 200, 255, 0.12);
  outline: 0;
  transform: translateY(-3px);
}

.home-news-card.is-featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 456px;
}

.home-news-media {
  display: block;
  min-height: 142px;
  overflow: hidden;
  border-bottom: 1px solid rgba(137, 190, 255, 0.09);
  background: #061226;
}

.home-news-media img {
  display: block;
  width: 100%;
  height: 142px;
  object-fit: cover;
  filter: saturate(1.04) brightness(0.86);
}

.home-news-card.is-featured .home-news-media {
  min-height: 268px;
}

.home-news-card.is-featured .home-news-media img {
  height: 268px;
}

.home-news-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

.home-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-news-meta b,
.home-news-meta em,
.home-news-meta time {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(105, 210, 231, 0.16);
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(8, 22, 40, 0.82);
  color: var(--text-muted);
  font-style: normal;
}

.home-news-meta b {
  border-color: rgba(105, 210, 231, 0.32);
  color: var(--gold);
}

.home-news-card strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.home-news-card.is-featured strong {
  font-size: 28px;
  line-height: 1.12;
}

.home-news-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.home-meta-brief {
  margin-bottom: 20px;
}

.home-ranked-brief,
.home-arena-brief {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.home-ranked-brief {
  margin-top: 2px;
}

.home-arena-brief {
  margin-top: 16px;
}

.home-ranked-brief > header,
.home-arena-brief > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.home-ranked-brief > header span,
.home-arena-brief > header span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.home-ranked-brief > header h3,
.home-arena-brief > header h3 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 22px;
}

.home-ranked-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.home-ranked-column {
  display: grid;
  grid-template-rows: 86px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(126, 194, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(66, 200, 255, 0.075), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.006)),
    #08172b;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.home-ranked-role-head {
  display: grid;
  place-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(137, 190, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(66, 200, 255, 0.12), rgba(11, 34, 62, 0.28)),
    rgba(10, 27, 50, 0.84);
}

.home-ranked-role-head img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: sepia(0.46) saturate(1.28) drop-shadow(0 0 8px rgba(66, 200, 255, 0.2));
}

.home-ranked-role-head strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

.home-ranked-picks {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
  padding: 24px 12px 26px;
}

.home-ranked-pick {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text);
  text-align: center;
  transition: transform 160ms ease;
}

.home-ranked-pick:hover,
.home-ranked-pick:focus-visible {
  outline: 0;
  transform: translateY(-2px);
}

.home-ranked-avatar {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 160deg, var(--gold), rgba(47, 119, 212, 0.72), #1a2942, var(--gold));
  box-shadow:
    0 9px 22px rgba(0, 8, 24, 0.54),
    0 0 0 1px rgba(255, 255, 255, 0.07);
}

.home-ranked-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(0, 0, 0, 0.82);
  border-radius: inherit;
  object-fit: cover;
}

.home-ranked-pick strong,
.home-arena-card strong {
  overflow: hidden;
  max-width: 100%;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-ranked-pick small,
.home-arena-card small {
  overflow: hidden;
  max-width: 100%;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-meta-empty {
  display: grid;
  min-height: 170px;
  place-items: center;
  color: var(--text-muted);
  font-style: normal;
  text-align: center;
}

.home-arena-card {
  min-width: 0;
  border: 1px solid rgba(126, 194, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.006)),
    rgba(8, 23, 43, 0.72);
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.home-arena-card:hover,
.home-arena-card:focus-visible {
  border-color: rgba(105, 210, 231, 0.34);
  background:
    linear-gradient(180deg, rgba(66, 200, 255, 0.1), rgba(255, 255, 255, 0.01)),
    rgba(10, 32, 58, 0.86);
  outline: 0;
  transform: translateY(-2px);
}

.home-arena-card img {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(105, 210, 231, 0.18);
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 8, 24, 0.42);
}

.home-arena-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.home-arena-card {
  display: grid;
  justify-items: center;
  gap: 7px;
  border-radius: 12px;
  padding: 12px 8px 10px;
  text-align: center;
}

.home-arena-card img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
}

@supports (content-visibility: auto) {
  .page > .panel,
  .page > .champion-detail,
  .page > .champion-builds,
  .site-footer {
    content-visibility: auto;
    contain-intrinsic-size: 460px;
  }

  .page > .home-news-panel,
  .page > .home-meta-brief {
    contain-intrinsic-size: 620px;
  }
}

.riot-article-panel {
  overflow: hidden;
  padding: 0;
}

.riot-article-hero {
  display: grid;
  border-bottom: 1px solid rgba(137, 190, 255, 0.1);
}

.riot-article-cover {
  display: block;
  min-height: min(430px, 38vw);
  background-position: center;
  background-size: cover;
  filter: saturate(1.02) brightness(0.84);
}

.riot-article-title {
  display: grid;
  gap: 14px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(26, 91, 170, 0.16), transparent 52%),
    linear-gradient(180deg, rgba(5, 15, 30, 0.5), transparent);
}

.riot-article-title h1 {
  max-width: 980px;
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.98;
}

.riot-article-title p {
  max-width: 820px;
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.riot-article-video {
  max-width: 980px;
  margin: 30px auto 0;
  padding: 0 28px;
}

.riot-article-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(137, 190, 255, 0.16);
  border-radius: 16px;
  background: #061226;
  box-shadow:
    0 22px 58px rgba(0, 8, 24, 0.62),
    0 0 34px rgba(66, 200, 255, 0.08);
}

.riot-article-body {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 28px 46px;
  color: #d7e3f4;
  font-size: 16px;
  line-height: 1.76;
}

.riot-article-body h2,
.riot-article-body h3,
.riot-article-body h4 {
  margin: 22px 0 2px;
  color: var(--text);
  line-height: 1.15;
}

.riot-article-body h2 {
  font-size: 30px;
}

.riot-article-body h3 {
  font-size: 23px;
}

.riot-article-body p,
.riot-article-body ul,
.riot-article-body ol,
.riot-article-body blockquote {
  margin: 0;
}

.riot-article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  background: rgba(66, 200, 255, 0.07);
  color: #e8f4ff;
}

.riot-article-body a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(135, 232, 255, 0.36);
  text-underline-offset: 3px;
}

.riot-article-body img {
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(137, 190, 255, 0.12);
  border-radius: 12px;
  background: #061226;
}

.riot-article-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.riot-article-body th,
.riot-article-body td {
  border: 1px solid rgba(137, 190, 255, 0.1);
  padding: 10px 12px;
}

.site-footer {
  grid-column: 1;
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 38px 40px 28px;
  border-top: 1px solid rgba(126, 194, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(8, 22, 42, 0.98), rgba(4, 10, 22, 0.99)),
    #061226;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 -18px 46px rgba(0, 8, 24, 0.42);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 40px;
  left: 40px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(135, 232, 255, 0.42), transparent);
  opacity: 0.72;
}

.site-footer-grid,
.site-footer-bottom,
.site-footer-legal {
  position: relative;
  z-index: 1;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 26px 34px;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #f4f8ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer nav {
  display: grid;
  gap: 9px;
}

.site-footer-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #aebbd2;
  font-size: 14px;
  line-height: 1.35;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
  color: var(--gold);
  outline: 0;
  text-decoration: underline;
  text-decoration-color: rgba(135, 232, 255, 0.44);
  text-underline-offset: 4px;
}

.site-footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 32px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(137, 190, 255, 0.08);
}

.site-footer-bottom strong,
.site-footer-bottom span {
  display: block;
  margin-bottom: 10px;
  color: #f4f8ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer-bottom p {
  max-width: 760px;
  margin: 0;
  color: #91a0ba;
  font-size: 13px;
  line-height: 1.65;
}

.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  color: #74839d;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .home-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-ranked-board {
    gap: 8px;
  }

  .home-ranked-picks {
    padding-inline: 10px;
  }

  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .site-footer-bottom {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .ranked-role-group {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .page {
    padding: 20px;
  }

  .home-news-grid {
    grid-template-columns: 1fr;
  }

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

  .home-ranked-column {
    grid-template-rows: 74px 1fr;
  }

  .home-ranked-picks {
    gap: 14px;
    padding: 18px 10px 20px;
  }

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

  .home-news-card.is-featured {
    grid-column: auto;
    grid-row: auto;
    min-height: 360px;
  }

  .riot-article-cover {
    min-height: 250px;
  }

  .riot-article-title,
  .riot-article-video,
  .riot-article-body {
    padding-inline: 20px;
  }

  .site-footer {
    padding: 42px 24px 28px;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer-link {
    font-size: 15px;
  }

  .ranked-hub {
    padding: 18px;
  }

  .ranked-hub-head {
    padding: 20px;
  }

  .ranked-role-groups {
    grid-template-columns: 1fr;
  }

  .ranked-role-list {
    grid-template-columns: repeat(auto-fill, 50px);
    justify-content: center;
  }
}

/* Overflow containment pass */
body:not(.quiz-fullscreen) {
  overflow-x: hidden;
}

.shell,
.content,
.page,
.panel,
.profile-card,
.premium-card,
.ranked-hub,
.ranked-meta-panel,
.ranked-patch-panel,
.ranked-loadout-panel,
.ranked-ability-panel,
.champion-detail,
.champion-build-card,
.champion-rune-panel,
.jungle-path-panel,
.skill-order-card,
.arena-panel,
.arena-tier-panel,
.site-footer {
  min-width: 0;
  max-width: 100%;
}

.build-row,
.match-row,
.ranking-row,
.pool-row,
.champion-row,
.champion-build-row,
.ranked-rune-choice,
.ranked-build-choice,
.lane-rune-row,
.pro-rune-card,
.arena-row,
.jungle-path-row,
.skill-order-line,
.item-stat-row,
.tier-row {
  min-width: 0;
}

.build-row > *,
.match-row > *,
.ranking-row > *,
.pool-row > *,
.champion-row > *,
.champion-build-row > *,
.ranked-rune-choice > *,
.ranked-build-choice > *,
.lane-rune-row > *,
.pro-rune-card > *,
.arena-row > *,
.jungle-path-row > *,
.skill-order-line > *,
.item-stat-row > *,
.tier-row > * {
  min-width: 0;
}

.build-player strong,
.build-result strong,
.build-player small,
.build-result small,
.pro-rune-player strong,
.pro-rune-player small,
.pro-rune-rank span,
.pro-rune-rank small,
.arena-augment-name,
.tier-champion strong,
.champion-build-row strong,
.ranked-card-name,
.ranked-card-name i {
  overflow: hidden;
  text-overflow: ellipsis;
}

.build-player strong,
.build-result strong,
.pro-rune-player strong,
.pro-rune-player small,
.pro-rune-rank span,
.pro-rune-rank small,
.tier-champion strong,
.champion-build-row strong,
.ranked-card-name,
.ranked-card-name i {
  white-space: nowrap;
}

.item-icons,
.build-items,
.champion-build-spells,
.champion-build-row .item-icons,
.champion-build-runes,
.champion-build-rune-tree,
.champion-build-stat-perks,
.arena-tier-row > div,
.arena-item-row .item-icons,
.jungle-path-camps {
  max-width: 100%;
}

.champion-build-runes,
.champion-build-rune-tree,
.champion-build-stat-perks {
  flex-wrap: wrap;
}

.best-player-row > *,
.best-player-name,
.best-player-name strong,
.rank-empty,
.best-player-champions,
.quiz-grand-board [data-quiz-leaderboard] > div > * {
  min-width: 0;
}

.best-player-name strong,
.best-player-name small,
.rank-empty b,
.rank-empty small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.best-player-name strong {
  display: block;
}

.best-player-champions {
  max-width: 100%;
}

.pro-rune-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
}

.pro-rune-card {
  grid-template-columns: minmax(0, 1fr) minmax(128px, 0.72fr);
  grid-template-areas:
    "player rank"
    "runes runes";
  align-items: start;
  overflow: hidden;
}

.pro-rune-player {
  grid-area: player;
}

.pro-rune-rank {
  grid-area: rank;
}

.pro-rune-card > .champion-build-runes {
  grid-area: runes;
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  gap: 7px 9px;
}

.pro-rune-card .champion-build-rune-tree {
  padding-right: 8px;
}

.pro-rune-card .champion-build-rune-tree img {
  width: 25px;
  height: 25px;
}

.pro-rune-card .champion-build-rune-tree .champion-build-rune-style {
  width: 21px;
  height: 21px;
}

.pro-rune-card .champion-build-stat-perks img {
  width: 22px;
  height: 22px;
}

.lane-rune-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.lane-rune-row {
  grid-template-columns: minmax(0, 1fr) minmax(96px, 120px);
}

.arena-detail-grid,
.item-stat-grid,
.champion-matchup-grid,
.champion-detail-grid,
.profile-grid,
.metric-grid,
.queue-grid,
.category-grid,
.module-grid {
  min-width: 0;
}

.data-table,
.build-table,
.tier-table,
.champion-rune-list,
.best-player-table,
.quiz-grand-board,
.item-stat-card,
.champion-build-card,
.ranked-ability-panel,
.ranked-skill-card,
.jungle-scenario-card,
.arena-panel {
  max-width: 100%;
  overflow-x: auto;
}

.champion-build-head,
.champion-build-row {
  min-width: 930px;
}

.ranked-skill-card .skill-order-table,
.skill-order-table {
  max-width: none;
}

.ranked-ability-panel .skill-order-card {
  overflow-x: auto;
  overflow-y: visible;
}

.main-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.champion-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.metric-grid,
.queue-grid,
.role-grid,
.category-grid,
.module-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.profile-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.profile-card h1,
.profile-card h1 span,
.rank-box {
  min-width: 0;
}

.profile-card h1 {
  overflow-wrap: anywhere;
}

.tier-view-tabs,
.role-tabs,
.ranked-lane-tabs {
  max-width: 100%;
  overflow-x: auto;
}

.arena-row .item-icons,
.jungle-path-camps,
.build-items {
  flex-wrap: wrap;
  overflow: visible;
}

@media (max-width: 1460px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .pro-rune-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "player"
      "rank"
      "runes";
  }

  .pro-rune-rank {
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .profile-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rank-box {
    grid-column: 1 / -1;
    text-align: left;
  }

  .lane-rune-row {
    grid-template-columns: 1fr;
  }

  .lane-rune-meta {
    justify-items: start;
  }
}

/* Final night-sky color pass */
body {
  background-color: #030814;
}

body:not(.quiz-fullscreen) .content::before {
  border-left-color: rgba(91, 202, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(8, 29, 61, 0.78), rgba(4, 12, 28, 0.9)),
    linear-gradient(115deg, rgba(47, 119, 212, 0.2), transparent 44%),
    url("https://raw.communitydragon.org/latest/plugins/rcp-be-lol-game-data/global/default/content/src/leagueclient/gamemodeassets/aram/img/gameflow-background.jpg") center top / cover repeat-y;
  filter: saturate(1.12) brightness(0.86) contrast(1.08);
}

.topbar,
.filters,
.site-footer {
  background:
    linear-gradient(180deg, rgba(8, 24, 46, 0.96), rgba(4, 12, 27, 0.94)),
    #061226;
}

.page {
  background:
    linear-gradient(125deg, rgba(28, 87, 163, 0.2), transparent 44%),
    linear-gradient(180deg, #08172b 0%, #071426 54%, #040a17 100%);
}

.panel,
.premium,
.premium-card,
.profile-card,
.ranked-meta-panel,
.ranked-patch-panel,
.champion-rune-panel,
.jungle-path-panel,
.skill-order-card,
.champion-build-card,
.ranked-loadout-panel,
.ranked-ability-panel,
.arena-tier-panel,
.arena-panel,
.champion-matchup-card,
.champion-ring-card,
.champion-kda-card,
.role-card,
.category-card,
.module-card,
.queue-grid article,
.mastery-row,
.live-box,
.item-stat-card,
.ranked-loadout-card {
  border-color: rgba(126, 194, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(17, 55, 98, 0.34), rgba(7, 20, 36, 0.92) 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.006)),
    #071421;
  box-shadow:
    0 24px 64px rgba(0, 8, 24, 0.64),
    inset 0 1px rgba(255, 255, 255, 0.04);
}

.ranked-section-head,
.panel-head,
.champion-list-head,
.tier-head,
.arena-head,
.item-stat-head,
.best-player-head,
.skill-order-head {
  border-color: rgba(126, 194, 255, 0.13);
  background: linear-gradient(90deg, rgba(66, 200, 255, 0.06), rgba(10, 32, 58, 0.18) 58%, transparent);
}

.search,
.champion-picker,
.search-results,
.champion-picker-results,
.data-table,
.build-table {
  border-color: rgba(91, 202, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(10, 30, 54, 0.92), rgba(5, 14, 29, 0.9)),
    #071426;
}

.nav-item.active {
  border-left-color: var(--amber);
}

.home-news-meta b,
.site-footer h2 {
  color: var(--amber);
}

.home-ranked-column,
.home-news-card,
.home-arena-card,
.ranked-compact-card,
.tier-row,
.item-stat-row,
.champion-list-row,
.arena-row,
.jungle-path-row,
.skill-order-line,
.ranked-rune-choice,
.ranked-build-choice {
  border-color: rgba(126, 194, 255, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.034), transparent),
    rgba(8, 22, 40, 0.86);
}

.ranked-compact-card:hover,
.ranked-compact-card:focus-visible,
.home-news-card:hover,
.home-news-card:focus-visible,
.home-arena-card:hover,
.home-arena-card:focus-visible,
.category-card:hover,
.module-card:hover {
  border-color: rgba(91, 202, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(66, 200, 255, 0.1), rgba(13, 37, 65, 0.92)),
    var(--bg-hover);
  box-shadow:
    0 20px 48px rgba(0, 8, 24, 0.64),
    0 0 28px rgba(66, 200, 255, 0.12);
}
.asset-tooltip-card,
.asset-tooltip-portal {
  background: rgba(4, 12, 25, 0.98);
  border-color: rgba(126, 194, 255, 0.28);
}

/* ═══════════════════════════════════════════════════════
   Hero Inline Quiz – compact overlay within hero bounds
   ═══════════════════════════════════════════════════════ */

/* CRITICAL: ensure [hidden] works inside hero quiz */
.hero.hero-quiz-active [hidden] {
  display: none !important;
}

/* Hide copy and mini-games with a fade */
.hero-quiz-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 250ms ease !important;
  position: absolute !important;
}

/* Hero container when quiz is active – lock to original size */
.hero.hero-quiz-active {
  min-height: 470px;
  max-height: 470px;
  height: 470px;
  display: flex;
  align-items: stretch;
}

/* Darken the hero art so quiz content is readable */
.hero.hero-quiz-active::after {
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(2, 8, 18, 0.55), rgba(2, 8, 18, 0.82) 70%),
    linear-gradient(180deg, rgba(2, 6, 14, 0.2) 0%, rgba(2, 6, 14, 0.7) 100%);
}

/* The quiz overlay container – fills hero exactly */
.hero.hero-quiz-active [data-hero-quiz] {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: heroQuizFadeIn 300ms ease both;
}

@keyframes heroQuizFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* ══════════════════════════════════════
   Quiz Page inside hero
   ══════════════════════════════════════ */
.hero.hero-quiz-active .champion-quiz-page {
  position: relative;
  min-height: 0;
  max-width: 100%;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
  isolation: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero.hero-quiz-active .champion-quiz-page::before,
.hero.hero-quiz-active .champion-quiz-page::after {
  display: none;
}

/* ── Navigation buttons ── */
.hero.hero-quiz-active .quiz-home-return {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 10;
  min-height: 30px;
  padding: 0 10px 0 7px;
  font-size: 10px;
  gap: 5px;
  border-radius: 4px;
  border-width: 1px;
  border-left-width: 2px;
}
.hero.hero-quiz-active .quiz-home-return svg {
  width: 13px;
  height: 13px;
}

.hero.hero-quiz-active .quiz-board-link {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
  border-radius: 4px;
  border-width: 1px;
}
.hero.hero-quiz-active .quiz-board-link svg {
  width: 13px;
  height: 13px;
}

/* ── Main quiz shell ── */
.hero.hero-quiz-active .quiz-loldle-shell {
  width: min(500px, 92%);
  padding: 16px 20px 20px;
  border: 1px solid rgba(201, 170, 80, 0.22);
  border-radius: 10px;
  background: rgba(5, 12, 22, 0.82);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Hide top controls (TR label) */
.hero.hero-quiz-active .quiz-top-controls {
  display: none;
}

/* Logo – smaller & elegant */
.hero.hero-quiz-active .quiz-logo {
  font-size: 36px;
  margin-top: 0;
  line-height: 1;
  text-shadow:
    0 1px 0 #49320b,
    0 0 12px rgba(255, 209, 86, 0.3),
    0 5px 16px rgba(0, 0, 0, 0.75);
}

/* ── Stat strip – single row, minimal ── */
.hero.hero-quiz-active .quiz-stat-strip {
  width: 100%;
  max-width: 400px;
  margin-top: 10px;
  padding: 6px 10px;
  gap: 6px;
  border-width: 1px;
  border-radius: 6px;
  background: rgba(31, 36, 42, 0.8);
}
.hero.hero-quiz-active .quiz-stat-strip svg {
  width: 15px;
  height: 15px;
}
.hero.hero-quiz-active .quiz-stat-strip b {
  font-size: 12px;
}
.hero.hero-quiz-active .quiz-stat-strip span {
  font-size: 10px;
  gap: 2px;
}

/* ══════════════════════════════════════
   Start Panel – compact & centered
   ══════════════════════════════════════ */
.hero.hero-quiz-active .quiz-start-panel {
  width: 100%;
  max-width: 440px;
  gap: 10px;
  margin-top: 10px;
  padding: 0;
}

/* Message card */
.hero.hero-quiz-active .quiz-message-card {
  width: 100%;
  margin: 0;
  padding: 10px 16px;
  border-width: 1px;
  border-radius: 6px;
  border-color: rgba(185, 154, 78, 0.3);
  background: rgba(31, 36, 42, 0.7);
  backdrop-filter: blur(8px);
}
.hero.hero-quiz-active .quiz-message-card strong {
  font-size: 14px;
  line-height: 1.3;
}
.hero.hero-quiz-active .quiz-message-card p {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(200, 208, 219, 0.8);
}

/* Name input area – horizontal layout */
.hero.hero-quiz-active .quiz-entry-box {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0 10px;
  align-items: center;
}
.hero.hero-quiz-active .quiz-entry-box label {
  grid-column: 1;
  grid-row: 1;
  gap: 3px;
}
.hero.hero-quiz-active .quiz-entry-box .quiz-primary-button {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}
.hero.hero-quiz-active .quiz-entry-box em {
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 14px;
  font-size: 11px;
  margin-top: 2px;
}
.hero.hero-quiz-active .quiz-entry-box small {
  font-size: 10px;
  letter-spacing: 0.06em;
}
.hero.hero-quiz-active .quiz-entry-box input {
  height: 42px;
  padding: 0 12px;
  font-size: 14px;
  border-width: 2px;
  border-radius: 4px;
}

/* Play button */
.hero.hero-quiz-active .quiz-primary-button {
  width: 42px;
  height: 42px;
  border-width: 3px;
  box-shadow: 0 0 10px rgba(240, 212, 79, 0.45);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.hero.hero-quiz-active .quiz-primary-button:hover {
  transform: scale(1.06);
  box-shadow: 0 0 18px rgba(240, 212, 79, 0.7);
}
.hero.hero-quiz-active .quiz-primary-button svg {
  width: 16px;
  height: 16px;
}

/* ══════════════════════════════════════
   Game Panel – the actual gameplay
   ══════════════════════════════════════ */
.hero.hero-quiz-active .quiz-game-panel {
  width: 100%;
  max-width: 460px;
  margin-top: 8px;
}

/* Champion image frame */
.hero.hero-quiz-active .quiz-image-frame {
  width: 100%;
  max-width: 420px;
  height: 220px;
  margin: 0 auto 8px;
  border-width: 2px;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}
.hero.hero-quiz-active .quiz-image-frame img {
  max-height: 220px;
}
.hero.hero-quiz-active .quiz-image-frame > span {
  top: 6px;
  right: 6px;
  padding: 3px 7px;
  font-size: 11px;
  border-radius: 3px;
}

/* Answer form – horizontal */
.hero.hero-quiz-active .quiz-answer-form {
  grid-template-columns: minmax(0, 1fr) 42px;
  margin-top: 8px;
  gap: 0;
  display: grid;
  align-items: stretch;
}
.hero.hero-quiz-active .quiz-answer-form input {
  height: 42px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  border-width: 2px;
  border-radius: 4px 0 0 4px;
  margin: 0;
}
.hero.hero-quiz-active .quiz-answer-form button {
  width: 42px;
  height: 42px;
  border-width: 2px;
  border-left-width: 0;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px rgba(240, 212, 79, 0.45);
  margin: 0;
}
.hero.hero-quiz-active .quiz-answer-form button svg {
  width: 14px;
  height: 14px;
}

/* Progress bar */
.hero.hero-quiz-active .quiz-progress {
  width: calc(100% - 10px);
  max-width: 340px;
  height: 5px;
  margin: 12px auto 0;
  border-radius: 999px;
}

/* Feedback text */
.hero.hero-quiz-active .quiz-feedback {
  min-height: 18px;
  margin-top: 4px;
  font-size: 12px;
}

/* ══════════════════════════════════════
   Result Panel – game over
   ══════════════════════════════════════ */
.hero.hero-quiz-active .quiz-result-panel {
  width: 100%;
  max-width: 380px;
  margin-top: 8px;
  padding: 16px 18px;
  border-width: 1px;
  border-radius: 8px;
  border-color: rgba(185, 154, 78, 0.3);
  background: rgba(31, 36, 42, 0.7);
  backdrop-filter: blur(8px);
}
.hero.hero-quiz-active .quiz-result-panel > span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9aa50;
}
.hero.hero-quiz-active .quiz-result-panel h2 {
  margin: 6px 0;
  font-size: 32px;
  line-height: 1;
}
.hero.hero-quiz-active .quiz-result-panel p {
  font-size: 12px;
  line-height: 1.5;
  color: #c8d0db;
}
.hero.hero-quiz-active .quiz-result-actions {
  margin-top: 10px;
  gap: 8px;
}
.hero.hero-quiz-active .quiz-result-panel .quiz-primary-button {
  margin-top: 0;
  width: 38px;
  height: 38px;
}
.hero.hero-quiz-active .quiz-secondary-link {
  min-height: 34px;
  padding: 0 14px;
  font-size: 11px;
  border-radius: 6px;
  border-width: 1px;
  transition: background 200ms ease, border-color 200ms ease;
}
.hero.hero-quiz-active .quiz-secondary-link:hover {
  background: rgba(201, 170, 80, 0.12);
  border-color: rgba(201, 170, 80, 0.5);
}

/* ══════════════════════════════════════
   Leaderboard inside hero
   ══════════════════════════════════════ */
.hero.hero-quiz-active .quiz-leaderboard-page {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
}

/* Leaderboard nav buttons */
.hero.hero-quiz-active .quiz-board-home,
.hero.hero-quiz-active .quiz-board-replay {
  position: absolute !important;
  z-index: 10 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  border-width: 1px !important;
  border-radius: 5px !important;
  font-size: 10px !important;
  gap: 6px !important;
  width: max-content !important;
  max-width: max-content !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}
.hero.hero-quiz-active .quiz-board-home {
  top: 12px !important;
  left: 14px !important;
  right: auto !important;
  bottom: auto !important;
}
.hero.hero-quiz-active .quiz-board-replay {
  top: 12px !important;
  right: 14px !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
}
.hero.hero-quiz-active .quiz-board-home svg,
.hero.hero-quiz-active .quiz-board-replay svg {
  width: 13px !important;
  height: 13px !important;
}

/* Leaderboard shell card */
.hero.hero-quiz-active .quiz-board-shell {
  width: min(540px, 88%);
  border-radius: 10px;
  padding: 16px 16px 18px;
  background: rgba(5, 12, 22, 0.82);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(201, 170, 80, 0.22);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Leaderboard header */
.hero.hero-quiz-active .quiz-leaderboard-hero {
  text-align: center;
  margin-bottom: 10px;
}
.hero.hero-quiz-active .quiz-leaderboard-hero span {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #c9aa50;
}
.hero.hero-quiz-active .quiz-leaderboard-hero h1 {
  margin: 5px 0 4px;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero.hero-quiz-active .quiz-leaderboard-hero p {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(200, 208, 219, 0.7);
  max-width: 380px;
  margin-inline: auto;
}

/* Leaderboard table */
.hero.hero-quiz-active .quiz-grand-board {
  max-height: 260px;
  overflow-y: auto;
  border-radius: 6px;
  border-color: rgba(201, 170, 80, 0.18);
}

/* Custom scrollbar for leaderboard */
.hero.hero-quiz-active .quiz-grand-board::-webkit-scrollbar {
  width: 4px;
}
.hero.hero-quiz-active .quiz-grand-board::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.hero.hero-quiz-active .quiz-grand-board::-webkit-scrollbar-thumb {
  background: rgba(201, 170, 80, 0.3);
  border-radius: 4px;
}

.hero.hero-quiz-active .quiz-grand-board-head,
.hero.hero-quiz-active .quiz-grand-board [data-quiz-leaderboard] > div {
  grid-template-columns: 40px minmax(0, 1fr) 95px 48px;
}
.hero.hero-quiz-active .quiz-grand-board-head {
  font-size: 9px !important;
  letter-spacing: 0.08em;
  position: sticky;
  top: 0;
  background: rgba(3, 5, 7, 0.95);
  z-index: 1;
}
.hero.hero-quiz-active .quiz-grand-board-head span {
  white-space: nowrap;
  font-size: 9px !important;
}
.hero.hero-quiz-active .quiz-grand-board-head span,
.hero.hero-quiz-active .quiz-grand-board [data-quiz-leaderboard] > div > * {
  padding: 7px 8px;
}
.hero.hero-quiz-active .quiz-grand-board [data-quiz-leaderboard] > div {
  min-height: 34px;
  transition: background 150ms ease;
}

.hero.hero-quiz-active .quiz-grand-board [data-quiz-leaderboard] > div:hover {
  background: rgba(201, 170, 80, 0.05);
}
.hero.hero-quiz-active .quiz-grand-board b {
  font-size: 13px;
}
.hero.hero-quiz-active .quiz-grand-board strong {
  font-size: 12px;
}
.hero.hero-quiz-active .quiz-grand-board small {
  font-size: 10px;
}
.hero.hero-quiz-active .quiz-grand-board [data-quiz-leaderboard] > div > span {
  font-size: 12px;
}
.hero.hero-quiz-active .quiz-empty-score {
  font-size: 12px;
  padding: 16px;
  text-align: center;
  color: #8f98a7;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero.hero-quiz-active {
    height: 420px;
    max-height: 420px;
    min-height: 420px;
  }
  .hero.hero-quiz-active .quiz-loldle-shell {
    width: min(360px, 92%);
    padding: 10px 12px 14px;
  }
  .hero.hero-quiz-active .quiz-logo {
    font-size: 26px;
  }
  .hero.hero-quiz-active .quiz-image-frame {
    height: 110px;
  }
  .hero.hero-quiz-active .quiz-board-shell {
    width: min(360px, 92%);
    padding: 12px 10px 14px;
  }
  .hero.hero-quiz-active .quiz-grand-board {
    max-height: 180px;
  }
}

@media (max-width: 480px) {
  .hero.hero-quiz-active {
    height: 380px;
    max-height: 380px;
    min-height: 380px;
  }
  .hero.hero-quiz-active .quiz-loldle-shell {
    width: 96%;
    padding: 8px 8px 10px;
  }
  .hero.hero-quiz-active .quiz-logo {
    font-size: 22px;
  }
  .hero.hero-quiz-active .quiz-stat-strip {
    padding: 4px 6px;
  }
  .hero.hero-quiz-active .quiz-image-frame {
    height: 90px;
  }
  .hero.hero-quiz-active .quiz-entry-box input,
  .hero.hero-quiz-active .quiz-answer-form input {
    height: 36px;
    font-size: 13px;
  }
}

.daily-challenge-page,
.mode-hub {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.daily-challenge-hero,
.mode-hub-hero {
  position: relative;
  display: flex;
  min-height: 250px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(3, 8, 18, 0.88), rgba(3, 8, 18, 0.42) 58%, rgba(3, 8, 18, 0.76)),
    var(--daily-splash, var(--mode-bg)) center 24% / cover no-repeat,
    #071421;
  box-shadow: var(--shadow-card);
}

.mode-hub-hero {
  background:
    linear-gradient(90deg, rgba(3, 8, 18, 0.9), rgba(3, 8, 18, 0.34) 58%, rgba(3, 8, 18, 0.78)),
    var(--mode-bg) center / cover no-repeat,
    #071421;
}

.daily-challenge-hero::after,
.mode-hub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(2, 7, 16, 0.56) 100%),
    radial-gradient(circle at 18% 16%, rgba(93, 220, 255, 0.22), transparent 36%);
}

.daily-challenge-hero > *,
.mode-hub-hero > * {
  position: relative;
  z-index: 1;
}

.daily-challenge-hero span,
.mode-hub-hero span,
.daily-board-head span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.daily-challenge-hero h1,
.mode-hub-hero h2 {
  max-width: 760px;
  margin: 8px 0;
  font-size: 48px;
  line-height: 0.98;
}

.daily-challenge-hero p,
.mode-hub-hero p {
  max-width: 680px;
  margin: 0;
  color: #d3deed;
  line-height: 1.55;
}

.daily-challenge-hero img {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border: 2px solid rgba(201, 170, 80, 0.62);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.56);
}

.mode-hub-hero > strong {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  border: 1px solid rgba(126, 194, 255, 0.24);
  background: rgba(5, 14, 28, 0.72);
  color: #cfdae8;
  white-space: nowrap;
}

.mode-hub-hero b {
  color: var(--amber);
}

.daily-challenge-grid,
.mode-analysis-grid,
.mode-stat-strip {
  display: grid;
  gap: 16px;
}

.daily-challenge-grid {
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
}

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

.daily-challenge-card,
.daily-leaderboard-card,
.mode-stat-strip article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(17, 55, 98, 0.34), rgba(7, 20, 36, 0.92) 48%),
    #071421;
  box-shadow: var(--shadow-card);
}

.daily-challenge-card,
.daily-leaderboard-card {
  padding: 18px;
}

.daily-card-head,
.daily-board-head,
.daily-objective,
.daily-submit-form,
.daily-board-columns,
.daily-board-table [data-daily-leaderboard] > div {
  display: grid;
  align-items: center;
  gap: 12px;
}

.daily-card-head {
  grid-template-columns: 1fr auto;
  margin-bottom: 16px;
}

.daily-card-head span {
  color: var(--muted);
}

.daily-card-head strong {
  color: var(--amber);
  font-size: 20px;
}

.daily-objective {
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(126, 194, 255, 0.16);
  background: rgba(3, 12, 24, 0.58);
}

.daily-objective img {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(201, 170, 80, 0.42);
  border-radius: 6px;
  object-fit: cover;
}

.daily-objective small,
.daily-submit-form small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.daily-objective b {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.2;
}

.daily-submit-form {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 16px;
}

.daily-submit-form input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(91, 202, 255, 0.3);
  border-radius: 6px;
  background: rgba(3, 12, 24, 0.78);
  color: #fff;
  outline: 0;
  padding: 0 12px;
}

.daily-submit-form button {
  display: inline-flex;
  height: 44px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(201, 170, 80, 0.58);
  border-radius: 6px;
  background: rgba(201, 170, 80, 0.14);
  color: #f3e6b3;
  cursor: pointer;
  font-weight: 900;
  padding: 0 14px;
}

.daily-submit-form button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.daily-feedback {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
}

.daily-feedback[data-state="success"] {
  color: var(--green);
}

.daily-feedback[data-state="error"] {
  color: var(--red);
}

.daily-board-head {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 12px;
}

.daily-board-head h2 {
  margin: 4px 0 0;
}

.daily-board-head svg {
  color: var(--amber);
}

.daily-board-table {
  overflow: hidden;
  border: 1px solid rgba(126, 194, 255, 0.14);
  border-radius: 8px;
}

.daily-board-columns,
.daily-board-table [data-daily-leaderboard] > div {
  grid-template-columns: 42px minmax(0, 1fr) 72px 116px;
}

.daily-board-columns {
  background: rgba(0, 0, 0, 0.34);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.daily-board-columns span,
.daily-board-table [data-daily-leaderboard] > div > * {
  padding: 10px 12px;
}

.daily-board-table [data-daily-leaderboard] > div {
  border-top: 1px solid rgba(126, 194, 255, 0.1);
  background: rgba(8, 22, 40, 0.72);
}

.daily-board-table b {
  color: var(--amber);
}

.daily-board-table strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-board-table small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.daily-board-table span {
  color: var(--green);
  font-weight: 900;
}

.daily-board-table em {
  color: var(--muted);
  font-style: normal;
}

.mode-stat-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mode-stat-strip article {
  padding: 16px;
}

.mode-stat-strip span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.mode-stat-strip strong {
  display: block;
  margin-top: 4px;
  color: var(--amber);
  font-size: 30px;
}

.mode-meta-panel {
  overflow: visible;
}

@media (max-width: 920px) {
  .daily-challenge-grid,
  .mode-analysis-grid,
  .mode-stat-strip {
    grid-template-columns: 1fr;
  }

  .daily-challenge-hero,
  .mode-hub-hero {
    display: grid;
    min-height: 220px;
    padding: 22px;
  }

  .daily-challenge-hero h1,
  .mode-hub-hero h2 {
    font-size: 34px;
  }
}

@media (max-width: 620px) {
  .daily-challenge-page,
  .mode-hub {
    padding: 14px;
  }

  .daily-submit-form {
    grid-template-columns: 1fr;
  }

  .daily-submit-form button {
    justify-content: center;
    width: 100%;
  }

  .daily-board-columns,
  .daily-board-table [data-daily-leaderboard] > div {
    grid-template-columns: 34px minmax(0, 1fr) 58px;
  }

  .daily-board-columns span:last-child,
  .daily-board-table [data-daily-leaderboard] > div em {
    display: none;
  }
}
