/* LoL Gaming Plus: dark "gaming wiki" theme with a light variant via prefers-color-scheme. No external fonts or assets. */
:root {
  --bg: #0f131b;
  --paper: #161c27;
  --tint: #1c2432;
  --ink: #e5e9f0;
  --muted: #9ba5b7;
  --line: #2a3446;
  --accent: #4fd1c0;
  --accent-ink: #0b2a27;
  --accent2: #f0a85a;
  --blue: #5b8ff0;
  --red: #ec6a66;
  --jungle: #2d5a43;
  --river: #2b4d6b;
  --lane: #5b6578;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --radius: 14px;
  --measure: 48rem;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f5f9; --paper: #ffffff; --tint: #e8ecf3; --ink: #172030; --muted: #556074; --line: #d5dce7;
    --accent: #0b7d70; --accent-ink: #ffffff; --accent2: #a8600f; --blue: #2f63d0; --red: #c63d39;
    --jungle: #a9d3b6; --river: #a8c8e6; --lane: #b4bccb; --shadow: 0 16px 36px rgba(23, 32, 48, .14);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 var(--sans); overflow-wrap: break-word; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-weight: 750; line-height: 1.2; letter-spacing: -0.015em; }
h2 { font-size: clamp(25px, 3.2vw, 31px); margin: 0 0 16px; }
h3 { font-size: 20px; margin: 28px 0 8px; }
p, ul, ol, dl { margin: 0 0 16px; }
li { margin: 5px 0; }
strong { font-weight: 700; color: var(--ink); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.icon { width: 1.05em; height: 1.05em; vertical-align: -0.14em; color: var(--accent); flex: none; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 10px max(16px, calc((100% - 1200px) / 2)); background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent2) 70%, transparent); opacity: .55; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px/1 var(--sans); letter-spacing: -0.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand b { color: var(--accent); font-weight: 800; }
.logo { width: 30px; height: 30px; }
.logo-hex { fill: var(--tint); stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; }
.logo-plus { stroke: var(--accent); fill: none; }
.main-nav { display: flex; align-items: center; gap: 2px 4px; font-size: 15px; }
.main-nav > a, .dd > button { color: var(--muted); text-decoration: none; padding: 8px 11px; border-radius: 8px; background: none; border: 0; font: inherit; cursor: pointer; }
.main-nav > a:hover, .dd:hover > button, .dd:focus-within > button { color: var(--ink); background: var(--tint); }
.main-nav > a[aria-current="page"], .dd.active > button { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }
.dd { position: relative; }
.dd > button::after { content: ""; display: inline-block; margin-left: 7px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.dd-menu { position: absolute; left: 0; top: 100%; min-width: 240px; padding: 8px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); display: none; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.dd-menu a:hover, .dd-menu a[aria-current="page"] { background: var(--tint); }
.dd-menu a[aria-current="page"] { color: var(--accent); }
.menu-toggle, .menu-btn { display: none; }

/* page layout */
main.page { max-width: 1200px; margin: 0 auto; padding: 0 16px 48px; }
.subnav { margin: 22px 0 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.subnav span { font: 700 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-right: 4px; }
.subnav a { color: var(--muted); text-decoration: none; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; }
.subnav a:hover { color: var(--ink); border-color: var(--muted); }
.subnav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 600; }
.page-head { max-width: 56rem; }
.page-title { font-size: clamp(34px, 5.6vw, 54px); margin: 30px 0 14px; letter-spacing: -0.025em; }
.lead { font-size: 1.17em; line-height: 1.6; color: var(--muted); max-width: var(--measure); margin: 0 0 36px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.content { min-width: 0; max-width: var(--measure); counter-reset: sec; }
.content > section { padding: 40px 0 8px; border-top: 1px solid var(--line); }
.content > section > h2 { counter-increment: sec; }
.content > section > h2::before { content: counter(sec, decimal-leading-zero); display: block; font: 700 13px/1 var(--mono); color: var(--accent); letter-spacing: .1em; margin-bottom: 10px; }
.content > section > :last-child { margin-bottom: 24px; }

/* table of contents */
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 36px; }
.toc h2 { font: 700 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 12px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; columns: 2 220px; column-gap: 28px; }
.toc li { counter-increment: toc; break-inside: avoid; margin: 0; padding: 4px 0 4px 30px; position: relative; line-height: 1.4; font-size: 15px; }
.toc li::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; top: 6px; font: 600 12px/1.4 var(--mono); color: var(--accent); }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
@media (min-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 56px; align-items: start; }
  .side { order: 2; position: sticky; top: 82px; max-height: calc(100vh - 100px); overflow-y: auto; }
  .toc { margin: 0; }
  .toc ol { columns: 1; }
}

/* boxes */
.note { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 16px 20px; margin: 24px 0; }
.note h3 { margin: 0 0 6px; font-size: 17px; }
.note h3::before { content: "Tip"; display: inline-block; margin-right: 10px; padding: 2px 8px; border-radius: 6px; font: 700 11px/1.5 var(--sans);
  text-transform: uppercase; letter-spacing: .08em; background: var(--accent); color: var(--accent-ink); vertical-align: 2px; }
.note.warn { border-left-color: var(--accent2); }
.note.warn h3::before { content: "Watch out"; background: var(--accent2); color: var(--bg); }
.note p:last-child, .note ul:last-child { margin: 0; }
blockquote { margin: 28px 0; padding: 18px 22px 18px 54px; position: relative; background: var(--tint); border-radius: 12px; font-size: 1.08em; font-style: italic; }
blockquote::before { content: "\201C"; position: absolute; left: 16px; top: 4px; font: 700 52px/1 Georgia, serif; color: var(--accent); }
blockquote p:last-child { margin: 0; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 24px 0; }
.card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: var(--ink); text-decoration: none; }
.card h3 { margin: 0 0 4px; font-size: 18px; display: flex; gap: 8px; align-items: center; }
.card .meta { color: var(--accent2); font-size: 13px; font-weight: 600; margin: 0 0 8px; line-height: 1.45; }
.card p { font-size: 15px; line-height: 1.6; }
.card p:last-child { margin: 0; }
a.card { transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
a.card h3 { color: var(--ink); }
a.card p { color: var(--muted); }

/* key facts */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 24px 0; }
.stats > div { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 10px; padding: 14px 16px; }
.stats b { display: block; font-size: 26px; line-height: 1.15; color: var(--accent); font-weight: 800; letter-spacing: -0.02em; }
.stats span { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 4px; }

/* do and don't */
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.dodont > div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.dodont h3 { margin: 0 0 8px; font-size: 16px; text-transform: uppercase; letter-spacing: .08em; }
.dodont .do h3 { color: var(--accent); }
.dodont .dont h3 { color: var(--red); }
.dodont ul { margin: 0; padding-left: 1.2em; font-size: 15px; }
.dodont .do li::marker { content: "+  "; color: var(--accent); font-weight: 700; }
.dodont .dont li::marker { content: "x  "; color: var(--red); font-weight: 700; }

/* lists */
ol.steps { list-style: none; padding: 0; counter-reset: step; margin: 20px 0; }
ol.steps > li { counter-increment: step; position: relative; padding: 2px 0 10px 46px; margin: 0 0 6px; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 8px;
  background: var(--tint); border: 1px solid var(--line); color: var(--accent); font: 700 14px/28px var(--mono); text-align: center; }
ul.check { list-style: none; padding: 0; }
ul.check > li { position: relative; padding-left: 32px; margin: 8px 0; }
ul.check > li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 18px; height: 18px; border: 2px solid var(--accent); border-radius: 5px; }
ul.check > li::after { content: ""; position: absolute; left: 8px; top: 8px; width: 6px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
dl.terms { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 10px 20px; margin: 20px 0; }
dl.terms dt { font-weight: 700; color: var(--accent); }
dl.terms dd { margin: 0; }

/* tables */
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; background: var(--paper); }
table.data th { text-align: left; font-weight: 700; background: var(--tint); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.data th, table.data td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td:first-child { font-weight: 600; }
table.glossary td:first-child { width: 28%; color: var(--accent); }

/* diagrams */
figure { margin: 0; }
.diagram { margin: 28px 0; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.diagram svg { display: block; width: 100%; height: auto; max-height: 560px; margin: 0 auto; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
svg text { font-family: var(--sans); font-size: 13px; fill: var(--ink); }
svg .d-small { font-size: 10.5px; }
svg .d-bold { font-weight: 700; }
svg .d-muted { fill: var(--muted); }
svg .d-on { fill: #fff; }
svg .d-halo { paint-order: stroke; stroke: var(--tint); stroke-width: 4px; stroke-linejoin: round; }
svg .d-bg { fill: var(--tint); }
svg .d-grid { stroke: var(--line); fill: none; }
svg .d-line { stroke: var(--muted); fill: none; }
svg .d-lane { stroke: var(--lane); fill: none; stroke-linecap: round; stroke-linejoin: round; }
svg .d-river { stroke: var(--river); fill: none; }
svg .d-jungle { fill: var(--jungle); stroke: var(--jungle); stroke-linejoin: round; opacity: .8; }
svg .d-blue { fill: var(--blue); }
svg .d-red { fill: var(--red); }
svg .d-blue-soft { fill: var(--blue); fill-opacity: .22; }
svg .d-red-soft { fill: var(--red); fill-opacity: .22; }
svg .d-blue-line { stroke: var(--blue); fill: none; }
svg .d-red-line { stroke: var(--red); fill: none; }
svg .d-accent { fill: var(--accent); }
svg .d-accent-line { stroke: var(--accent); fill: none; }
svg .d-warn { fill: var(--accent2); }
svg .d-warn-line { stroke: var(--accent2); fill: none; }
svg .d-soft { fill: var(--accent); fill-opacity: .14; }
svg .d-soft.d-accent-line { fill: var(--accent); fill-opacity: .14; }
svg .d-bg.d-warn-line { fill: var(--tint); }
svg .d-pit { fill: var(--paper); stroke: var(--accent2); stroke-width: 3; }

/* photos */
.photo { margin: 28px 0; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius);
  background: var(--tint); border: 1px solid var(--line); }
.photo figcaption { margin-top: 8px; }
table.credits td:first-child { width: 88px; }
table.credits img { display: block; width: 72px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--tint); }
table.credits td { font-size: 14px; }
table.credits td:nth-child(2) { font-weight: 400; min-width: 180px; }
.small { font-size: 14px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* previous / next and footer */
.prevnext { display: flex; justify-content: space-between; gap: 16px; margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.prevnext a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; line-height: 1.3; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); max-width: 48%; }
.prevnext a:hover { border-color: var(--accent); }
.prevnext small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.prevnext .next { text-align: right; margin-left: auto; }
.bottom { border-top: 1px solid var(--line); background: var(--paper); padding: 40px max(16px, calc((100% - 1200px) / 2)) 30px; color: var(--muted); font-size: 14px; }
.sitemap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 28px; }
.sitemap h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 10px; }
.sitemap a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.sitemap a:hover { color: var(--ink); }
.foot-note { margin: 0 0 8px; color: var(--ink); }
.disclaimer { margin: 0; font-size: 13px; line-height: 1.6; max-width: 60rem; }

/* home and 404 */
.page-index .page-title { font-size: clamp(32px, 5vw, 48px); max-width: 22em; }
.code404 { font: 800 clamp(72px, 16vw, 140px)/1 var(--mono); color: var(--accent); margin: 40px 0 0; letter-spacing: -0.04em; }
.page-404 .content { max-width: 56rem; }

@media (max-width: 960px) {
  .menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); }
  .menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  .menu-toggle { display: block; position: absolute; right: max(16px, calc((100% - 1200px) / 2)); top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; margin: 0; opacity: 0; z-index: 2; cursor: pointer; }
  .menu-toggle:focus-visible + .menu-btn { outline: 2px solid var(--accent); outline-offset: 2px; }
  .menu-toggle:checked + .menu-btn { border-color: var(--accent); }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; max-height: calc(100vh - 64px); overflow-y: auto; box-shadow: var(--shadow); }
  .menu-toggle:checked ~ .main-nav { display: flex; }
  .main-nav > a, .dd > button { padding: 10px 4px; text-align: left; width: 100%; }
  .dd > button::after { display: none; }
  .dd > button { font-weight: 700; color: var(--accent); cursor: default; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; padding-top: 14px; }
  .dd:hover > button, .dd:focus-within > button { background: none; color: var(--accent); }
  .dd-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 6px; min-width: 0; background: none; }
  .main-nav > a[aria-current="page"], .dd.active > button { box-shadow: none; color: var(--accent); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .dodont { grid-template-columns: 1fr; }
  .sitemap { grid-template-columns: 1fr 1fr; }
  dl.terms { grid-template-columns: 1fr; gap: 2px; }
  dl.terms dd { margin-bottom: 10px; }
  .diagram { padding: 8px; }
  .prevnext a { font-size: 16px; }
  blockquote { padding-left: 46px; }
  table.data th, table.data td { padding: 9px 10px; }
}
@media (max-width: 400px) {
  .brand { font-size: 17px; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { a.card { transition: none; } a.card:hover { transform: none; } }
