@import url('https://fonts.googleapis.com/css2?family=Beaufort+for+LOL:wght@400;700&display=swap');

:root {
  --gold:        #c89b3c;
  --gold-light:  #f0e6d3;
  --gold-dark:   #785a28;
  --gold-bright: #f0b429;
  --blue-bg:     #010a13;
  --panel-bg:    #0a1628;
  --panel2:      #091428;
  --panel3:      #0d1b2e;
  --panel4:      #0f2032;
  --border:      #1e3a5f;
  --border-gold: #463714;
  --text:        #a3b0bf;
  --text-bright: #ccd3da;
  --text-dim:    #5b7296;
  --easy:        #00b875;
  --medium:      #e0a000;
  --hard:        #ff6b35;
  --extreme:     #e84057;
  --hover-blue:  #1e3a5f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.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;
}

body {
  font-family: 'Beaufort for LOL', 'Segoe UI', Arial, sans-serif;
  background-color: var(--blue-bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(0, 100, 200, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 50, 120, 0.06) 0%, transparent 60%);
  color: var(--text);
  min-height: 100vh;
}

/* ======= SCROLLBAR ======= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--panel-bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ======= HEADER ======= */
header {
  background: linear-gradient(180deg, #010d1a 0%, #020f1e 80%, transparent);
  border-bottom: 1px solid var(--gold-dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Gold top strip */
header::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.btn-coaching {
  margin-left: auto;
  display: inline-block;
  padding: 10px 24px;
  background: rgba(200, 155, 60, .15);
  border: 2px solid var(--gold);
  border-radius: 4px;
  color: var(--gold-l);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  font-family: inherit;
  transition: all .2s;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(200, 155, 60, .2);
}
.btn-coaching:hover {
  background: rgba(200, 155, 60, .35);
  border-color: var(--gold-l);
  color: #fff;
  box-shadow: 0 0 20px rgba(200, 155, 60, .4);
}

.jax-icon {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  border: 2px solid var(--gold-dark);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(200,155,60,0.25);
}

.header-text h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.1;
  text-shadow: 0 0 24px rgba(200,155,60,0.4);
}

.header-text h1 span { color: var(--gold); }

.header-text .subtitle {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Horizontal gold divider */
.header-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold) 20%, var(--border-gold) 80%, transparent);
  margin: 12px 0;
}

.header-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Search */
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 340px;
}

.search-wrap input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  background: rgba(0, 20, 50, 0.8);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-bright);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
}

.search-wrap input::placeholder { color: var(--text-dim); }

.search-wrap input:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 8px rgba(200,155,60,0.15);
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.85rem;
  pointer-events: none;
}

/* Filter buttons — LoL tab style */
.filter-group {
  display: flex;
  gap: 4px;
  align-items: center;
}

.filter-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 4px;
  white-space: nowrap;
}

.filter-btn {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--gold-dark);
  color: var(--gold);
  background: rgba(200,155,60,0.05);
}

.filter-btn.active {
  background: rgba(200,155,60,0.12);
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: inset 0 -2px 0 var(--gold-dark);
}

.count-badge {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: rgba(0,20,50,0.5);
  white-space: nowrap;
}

/* ======= MAIN ======= */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* ======= GRID ======= */
.champion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

/* ======= CARD ======= */
.champion-card {
  background: linear-gradient(160deg, var(--panel3) 0%, var(--panel2) 100%);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

/* Corner decorations */
.champion-card::before,
.champion-card::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--border-gold);
  border-style: solid;
  z-index: 1;
}

.champion-card::before {
  top: 0; left: 0;
  border-width: 1px 0 0 1px;
}

.champion-card::after {
  bottom: 0; right: 0;
  border-width: 0 1px 1px 0;
}

.champion-card:hover {
  border-color: var(--gold-dark);
  box-shadow: 0 0 16px rgba(200,155,60,0.12), inset 0 0 32px rgba(0,100,200,0.04);
}

.champion-card.open {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(200,155,60,0.2);
  grid-column: 1 / -1;
}

.champion-card.open::before,
.champion-card.open::after {
  border-color: var(--gold);
}

/* CARD HEADER */
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(0, 15, 35, 0.6);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.card-splash {
  width: 64px;
  height: 64px;
  border-radius: 2px;
  object-fit: cover;
  object-position: center center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.card-info { flex: 1; }

.card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.diff-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.diff-pips {
  display: flex;
  gap: 1px;
}

.diff-pip {
  width: 5px;
  height: 7px;
  border-radius: 1px;
  background: var(--panel4);
  border: 1px solid var(--border);
  transition: all 0.1s;
}

.diff-text {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.card-chevron {
  color: var(--text-dim);
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: transform 0.25s;
  width: 16px;
  text-align: center;
}

.champion-card.open .card-chevron { transform: rotate(180deg); color: var(--gold); }

/* CARD BODY */
.card-body {
  display: none;
  padding: 0;
  gap: 0;
  border-top: 1px solid var(--border-gold);
  overflow: hidden;
}

.champion-card.open .card-body {
  display: flex;
  align-items: stretch;
  animation: cardSlideOpen 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes cardSlideOpen {
  0%   { opacity: 0; max-height: 0; transform: translateY(-12px); }
  40%  { opacity: 0.6; }
  100% { opacity: 1; max-height: 1200px; transform: translateY(0); }
}

/* Bordure dorée qui s'illumine à l'ouverture */
.champion-card.open {
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

/* Loading screen portrait (308×560) — pleine hauteur */
.splash-full {
  width: 220px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center top;
  align-self: stretch;
  display: block;
  border-right: 1px solid var(--border-gold);
  box-shadow: 4px 0 20px rgba(0,0,0,0.6);
}

/* RIGHT CONTENT — 2 colonnes : builds | conseils */
.card-right {
  flex: 1;
  min-width: 240px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 24px;
  padding: 20px;
  align-items: start;
}
.card-col-builds {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.card-col-tips {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  border-left: 1px solid var(--border);
  padding-left: 24px;
}

/* Section */
.section {}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-gold), transparent);
}

/* ITEMS */
.items-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.item-icon {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  border: 1px solid var(--gold-dark);
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: border-color 0.15s, transform 0.15s;
}

.item-icon:hover {
  border-color: var(--gold);
  transform: scale(1.1);
  z-index: 1;
  position: relative;
}

.item-sep {
  color: var(--gold-dark);
  font-size: 0.9rem;
  font-weight: bold;
}

/* RUNES */
.runes-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* RUNES STRUCTURE */
.rune-path-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.rune-path-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-dark);
}
.rune-path-name {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
}
.rune-row-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.rune-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-dark);
  box-shadow: 0 0 6px rgba(200,155,60,0.3);
  flex-shrink: 0;
}
.rune-icon.keystone {
  width: 48px;
  height: 48px;
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(200,155,60,0.5);
}
.rune-icon.secondary {
  width: 32px;
  height: 32px;
  border-color: var(--border);
  box-shadow: none;
  opacity: 0.85;
}
.rune-sep {
  color: var(--text-dim);
  font-size: 0.8rem;
}
.runes-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.rune-icons-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.rune-sections {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.rune-primary, .rune-secondary {
  flex: 1;
  min-width: 160px;
}
.rune-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-right: 4px;
}

/* RUNE TREE */
.rune-tree-wrap {
  display: inline-flex;
  gap: 14px;
  align-items: flex-start;
}
.rune-tree-panel { flex: none; }

/* Path selector row */
.rtp-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.rtp-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.25);
  border: 2px solid transparent;
  flex-shrink: 0;
}
.rtp-icon.active {
  width: 34px; height: 34px;
  filter: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 10px rgba(200,155,60,0.55);
}
.rtp-label {
  font-size: 0.52rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 5px;
}

/* Slot rows with vertical line */
.rts-slots {
  position: relative;
  padding-left: 14px;
}
.rts-slots::before {
  content: '';
  position: absolute;
  left: 4px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(200,155,60,0.55), rgba(120,90,40,0.1));
  border-radius: 1px;
}
.rts-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  position: relative;
}
.rts-row::before {
  content: '';
  position: absolute;
  left: -11px; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  border: 1px solid rgba(200,155,60,0.45);
  background: var(--panel2);
}

/* Rune icons */
.rts-rune {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.28);
  border: 2px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  transition: filter 0.12s;
}
.rts-rune.keystone { width: 44px; height: 44px; }
.rts-rune.selected {
  filter: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 10px rgba(200,155,60,0.45);
}
.rts-rune.keystone.selected {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(200,155,60,0.65);
}
.rts-rune:hover { filter: brightness(1); border-color: rgba(200,155,60,0.5); }

/* Stat shards */
.shards-wrap {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(120,90,40,0.22);
  padding-left: 14px;
  position: relative;
}
.shards-wrap::before {
  content: '';
  position: absolute;
  left: 4px; top: 7px; bottom: 5px;
  width: 2px;
  background: rgba(120,90,40,0.2);
  border-radius: 1px;
}
.shards-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  position: relative;
}
.shards-row::before {
  content: '';
  position: absolute;
  left: -11px; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  border: 1px solid rgba(120,90,40,0.35);
  background: var(--panel2);
}
.shard-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.28);
  border: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  transition: filter 0.12s;
}
.shard-icon.selected {
  filter: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 8px rgba(200,155,60,0.4);
}
.shard-icon:hover { filter: brightness(1); }

/* TOOLTIP LOL */
#lol-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  display: none;
  max-width: 290px;
  min-width: 180px;
  background: linear-gradient(170deg, #0c1a2e 0%, #060d1a 100%);
  border: 1px solid #785a28;
  border-top: 3px solid #c89b3c;
  border-radius: 2px;
  padding: 11px 13px 10px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.9), inset 0 0 0 1px rgba(200,155,60,0.07);
}
#lol-tooltip .tt-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #c8aa6e;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 7px;
  padding-bottom: 6px;
  border-bottom: 1px solid #1a2538;
}
#lol-tooltip .tt-desc {
  font-size: 0.72rem;
  color: #7a8fa8;
  line-height: 1.55;
}
#lol-tooltip .tt-desc b { color: #c8aa6e; font-weight: 600; }
#lol-tooltip .tt-passive { color: #c8aa6e; font-style: italic; font-weight: 600; }
#lol-tooltip .tt-active  { color: #4fc3f7; font-style: italic; font-weight: 600; }
#lol-tooltip .tt-stats   { color: #9ab4c8; }
#lol-tooltip .tt-rules   { color: #4a5a6a; font-style: italic; font-size: 0.67rem; }
#lol-tooltip .tt-cost {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid #1a2538;
  font-size: 0.68rem;
  color: #c8b04c;
}
#lol-tooltip .tt-arrow {
  position: absolute;
  bottom: -7px;
  left: var(--tt-arrow, 50%);
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #785a28;
}

/* TIPS */
.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.tips-list li {
  padding: 5px 10px 5px 12px;
  background: rgba(0, 15, 40, 0.6);
  border-left: 2px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
  transition: border-color 0.15s;
}

.tips-list li:hover { border-left-color: var(--gold-dark); }

.tips-list li.prio-oui { border-left-color: var(--easy); }
.tips-list li.prio-non { border-left-color: var(--extreme); }

.prio-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1px 5px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}

.prio-oui .prio-tag { background: rgba(0,184,117,0.2); color: var(--easy); border: 1px solid rgba(0,184,117,0.4); }
.prio-non .prio-tag { background: rgba(232,64,87,0.2); color: var(--extreme); border: 1px solid rgba(232,64,87,0.4); }

/* SUMMONER SPELLS */
.summoners-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.summoner-icon {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: 2px solid var(--gold-dark);
  transition: transform 0.15s;
}

.summoner-icon:hover {
  transform: scale(1.1);
}

/* SKILL ORDER */
.skill-order-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.skill-order-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--gold-dark);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s;
}

.skill-order-tag:hover {
  transform: scale(1.1);
}

.skill-order-icon {
  width: 100%;
  height: 100%;
  display: block;
}

/* VIDEO */
.video-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(196,48,43,0.15);
  border: 1px solid rgba(196,48,43,0.4);
  border-radius: 2px;
  color: #ff6b6b;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: inherit;
  transition: all 0.2s;
}

.video-link:hover {
  background: rgba(196,48,43,0.3);
  border-color: rgba(196,48,43,0.7);
  color: #ff9090;
}

/* PATCH NOTES */
.patchnotes-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.patchnotes-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 8px;
}

.patchnote-card {
  padding: 20px !important;
}

.patchnote-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.patchnote-badge {
  background: rgba(200,155,60,0.15);
  border: 1px solid var(--gold-dark);
  border-radius: 3px;
  padding: 4px 12px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.patchnote-date {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.patchnote-changes {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.patchnote-changes li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: rgba(0,20,50,0.4);
  border-left: 3px solid var(--gold-dark);
  border-radius: 0 3px 3px 0;
  font-size: 0.85rem;
  color: var(--text-bright);
  line-height: 1.4;
}

.pn-ability-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--gold-dark);
  flex-shrink: 0;
  cursor: pointer;
}

.pn-ability-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.pn-stats {
  background: rgba(90,160,255,0.15);
  border: 1px solid rgba(90,160,255,0.4);
  color: #5aa0ff;
}

.pn-passive {
  background: rgba(200,155,60,0.15);
  border: 1px solid var(--gold-dark);
  color: var(--gold);
}

.pn-spell {
  background: rgba(0,184,117,0.15);
  border: 1px solid rgba(0,184,117,0.4);
  color: var(--easy);
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  grid-column: 1 / -1;
}

.empty-state h2 {
  font-size: 1.2rem;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.empty-state p { color: var(--text-dim); font-size: 0.85rem; }

/* LANG FLAGS */
.lang-flags { display: flex; gap: 5px; align-items: center; flex-shrink: 0; }
.flag-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  opacity: 0.35;
  transition: opacity 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.flag-img {
  width: 22px;
  height: 15px;
  display: block;
  border-radius: 2px;
  object-fit: cover;
}
.flag-btn.active {
  border-color: var(--gold-dark);
  opacity: 1;
  box-shadow: 0 0 8px rgba(200,155,60,0.3);
}
.flag-btn:not(.active):hover { opacity: 0.65; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border-gold);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(0deg, rgba(200,155,60,0.03), transparent);
  position: relative;
}
.footer-design {
  position: absolute;
  right: 70px;
  font-size: 0.58rem;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  opacity: 0.28;
  text-transform: lowercase;
}

footer a { color: var(--gold-dark); text-decoration: none; transition: color 0.15s; }
footer a:hover { color: var(--gold); }

/* SCROLL TOP */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: rgba(0,15,35,0.9);
  border: 1px solid var(--gold-dark);
  border-radius: 2px;
  color: var(--gold);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
  z-index: 200;
}

.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: rgba(200,155,60,0.1); }

/* RESPONSIVE */
@media (max-width: 960px) {
  .card-right {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card-col-tips {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }
  .splash-full { width: 160px; }
}

@media (max-width: 640px) {
  .header-inner { padding: 10px 12px; }
  .header-top { gap: 10px; margin-bottom: 10px; }
  .jax-icon { width: 40px; height: 40px; }
  .header-text h1 { font-size: 1rem; letter-spacing: 1.5px; }
  .header-text .subtitle { font-size: 0.65rem; }
  .champion-grid { grid-template-columns: 1fr; }
  .card-body { flex-direction: column; }
  .splash-full { width: 100%; height: 180px; border-right: none; border-bottom: 1px solid var(--border-gold); }
  .card-right { padding: 14px 12px; min-width: 0; }
  .header-controls { flex-direction: column; align-items: stretch; gap: 8px; }
  .search-wrap { max-width: 100%; min-width: 0; }
  .nav-tab { padding: 6px 8px; font-size: 0.6rem; letter-spacing: 1px; margin-right: 8px; }
  .guide-page { padding: 16px 10px; gap: 14px; }
  .divers-page { padding: 16px 10px; gap: 14px; }
  .guide-card { padding: 14px 12px; }
  .tier-row { min-height: 80px; }
  .tier-skins { padding: 8px 10px; gap: 6px; }
  .skin-img { width: 56px; height: 86px; }
  .skin-name { max-width: 56px; font-size: 0.52rem; }
  .tier-badge-col { width: 36px; }
  .tier-badge { width: 28px; height: 28px; font-size: 0.8rem; }
  .item-icon { width: 32px; height: 32px; }
  .rune-tree-wrap { flex-direction: column; gap: 10px; }
  .rts-rune { width: 32px; height: 32px; }
  .rts-rune.keystone { width: 44px; height: 44px; }
  .rtp-icon { width: 24px; height: 24px; }
  .shard-icon { width: 22px; height: 22px; }
  main { padding: 12px 8px 30px; }
  footer { font-size: 0.65rem; padding: 14px 10px; }
  .footer-design { position: static; display: block; margin-top: 4px; }
}

@media (max-width: 420px) {
  .header-text h1 { font-size: 0.85rem; letter-spacing: 1px; }
  .header-text .subtitle { font-size: 0.58rem; }
  .splash-full { height: 140px; }
  .filter-group { flex-wrap: wrap; }
  .filter-btn { padding: 5px 10px; font-size: 0.65rem; }
  .count-badge { font-size: 0.65rem; padding: 3px 8px; }
  .card-header { padding: 10px; gap: 10px; }
  .card-splash { width: 48px; height: 48px; }
  .card-name { font-size: 0.85rem; }
  .card-right { padding: 12px 10px; }
  .tips-list { font-size: 0.72rem; }
  .video-link { font-size: 0.7rem; }
}

/* LOADING */
.loading {
  text-align: center;
  padding: 80px;
  grid-column: 1 / -1;
  color: var(--text-dim);
}

.loading::after {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--gold-dark);
  border-radius: 50%;
  margin: 16px auto 0;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ======= NAV TABS ======= */
.header-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nav-tabs-inline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
}
.nav-tabs-inline .lang-flags {
  margin-left: auto;
}
.nav-tab {
  padding: 8px 20px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  padding-left: 0;
  margin-right: 20px;
}
.nav-tab:hover { color: var(--gold-light); }
.nav-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ======= PAGE SECTIONS ======= */
.page { display: none; }
.page.active { display: block; }

/* ======= JUNGLE PAGE ======= */
.guide-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.guide-full { grid-column: 1 / -1; }
.guide-card {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--border-gold);
  border-radius: 2px;
  padding: 20px 24px;
}
.guide-card-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.guide-runes {
  font-size: 0.8rem;
  color: var(--gold-light);
  line-height: 1.8;
}
.rune-sep { color: var(--gold-dark); margin: 0 4px; }
.build-block { margin-bottom: 14px; }
.build-name {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
  margin-bottom: 6px;
}
.build-items { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.build-item-name {
  font-size: 0.78rem;
  color: var(--text);
  background: var(--panel3);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 3px 9px;
}
.build-arrow { color: var(--border-gold); font-size: 0.7rem; }
.boots-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.boot-chip {
  font-size: 0.75rem;
  color: var(--text);
  background: var(--panel3);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 3px 9px;
}
.guide-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.guide-update {
  font-size: 0.62rem;
  color: var(--text-dim);
  text-align: right;
  margin-top: 8px;
}

/* ======= DIVERS PAGE ======= */
.divers-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.divers-full { grid-column: 1; }
.code-block {
  background: #010a13;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 12px 14px;
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  word-break: break-all;
  line-height: 1.5;
  position: relative;
  max-height: 90px;
  overflow: hidden;
}
.btn-copy {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  background: rgba(200,155,60,0.1);
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-copy:hover { background: rgba(200,155,60,0.2); }
.btn-copy.copied { color: #00b875; border-color: #00b875; background: rgba(0,184,117,0.1); }
.steps-list-old li::before {
  content: counter(steps);
  position: absolute; left: 0;
  width: 18px; height: 18px;
  background: rgba(200,155,60,0.15);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  top: 1px;
}
.tier-list { display: flex; flex-direction: column; gap: 2px; }
.tier-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  min-height: 100px;
}
.tier-row:last-child { border-bottom: none; }
.tier-badge-col {
  width: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
}
.tier-badge {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.tier-S { background: rgba(255,215,0,0.15); color: #ffd700; border: 1px solid rgba(255,215,0,0.3); }
.tier-A { background: rgba(200,155,60,0.15); color: var(--gold); border: 1px solid rgba(200,155,60,0.3); }
.tier-B { background: rgba(91,183,255,0.1); color: #5bb7ff; border: 1px solid rgba(91,183,255,0.2); }
.tier-C { background: rgba(163,176,191,0.1); color: var(--text); border: 1px solid var(--border); }
.tier-D { background: rgba(91,114,150,0.1); color: var(--text-dim); border: 1px solid var(--border); }
.tier-skins {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  align-items: flex-start;
}
.skin-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: default;
}
.skin-img {
  width: 72px;
  height: 110px;
  object-fit: cover;
  object-position: top center;
  border-radius: 2px;
  border: 1px solid var(--border);
  display: block;
  background: var(--panel3);
  transition: transform 0.15s, border-color 0.15s;
}
.skin-img:hover { transform: scale(1.06); border-color: var(--gold-dark); }
.skin-name {
  font-size: 0.58rem;
  color: var(--text-dim);
  text-align: center;
  max-width: 72px;
  line-height: 1.3;
}

@media (max-width: 700px) {
  .guide-page, .divers-page { grid-template-columns: 1fr; }
  .guide-full { grid-column: 1; }
}
