/* Guia de Rengar — identidade editorial, não template SaaS */

@import url('fonts.css');

:root {
  --bg: #0c0c0b;
  --bg-elevated: #131312;
  --surface: #161615;
  --surface-2: #1c1c1a;
  --surface-3: #242422;

  --text: #eceae4;
  --text-secondary: #9c9890;
  --text-muted: #6b6760;
  --text-faint: #4a4742;

  --accent: #c8953c;
  --accent-bright: #dbad5a;
  --accent-dim: #9a7030;
  --accent-muted: rgba(200, 149, 60, 0.14);
  --accent-ring: rgba(200, 149, 60, 0.4);

  --tier-easy: #6b9e68;
  --tier-easy-bg: rgba(107, 158, 104, 0.12);
  --tier-normal: #8a8680;
  --tier-normal-bg: rgba(138, 134, 128, 0.1);
  --tier-medium: #c8953c;
  --tier-medium-bg: rgba(200, 149, 60, 0.12);
  --tier-hard: #b85c4a;
  --tier-hard-bg: rgba(184, 92, 74, 0.12);

  --border: rgba(236, 234, 228, 0.07);
  --border-strong: rgba(236, 234, 228, 0.14);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.4);

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Sora', system-ui, sans-serif;
  --font-display-alt: 'Bebas Neue', var(--font-display);
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  --bg-deep: #050504;
  --blood: rgba(184, 92, 74, 0.14);
  --blood-border: rgba(184, 92, 74, 0.4);

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;

  /* Tamanho do ícone/emblema de elo nos cards de conta — muda aqui em um só lugar */
  --emblem-size: 110px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

::selection {
  background: var(--accent-muted);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Dividers ===== */
.section-divider {
  height: 1px;
  border: none;
  margin: 0;
  background: var(--border);
}

/* ===== Nav ===== */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 12, 11, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topnav .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 var(--space-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.navlinks a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.navlinks a:hover { color: var(--text-secondary); }

.navlinks a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ===== Hero ===== */
.hero {
  padding: var(--space-xl) 0 var(--space-lg);
}

.hero-compact {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-copy { max-width: 520px; }

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-display);
  margin: 0 0 var(--space-md);
}

.hero-line {
  display: block;
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-line--muted {
  font-weight: 500;
  color: var(--text-secondary);
}

.hero p.lede {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 var(--space-lg);
  max-width: 460px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
}

.hero-art-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  /* canto cortado — detalhe artesanal, não card genérico */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.hero-art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  filter: contrast(1.04) brightness(0.92);
}

.hero-art::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28px;
  height: 28px;
  background: var(--accent);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

.hero-art .tag {
  position: absolute;
  left: 0;
  bottom: -28px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn svg { width: 15px; height: 15px; }

.btn-primary {
  background: var(--accent);
  color: #0c0c0b;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

.btn-ghost {
  background: none;
  color: var(--text-secondary);
  border: none;
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover { color: var(--accent-bright); }

/* ===== Sections ===== */
/* ===== Credibilidade (rank, horas, win rate etc.) ===== */
.credibility {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.credibility-row {
  display: flex;
  flex-wrap: wrap;
}

.credibility-stat {
  flex: 1 1 160px;
  padding: var(--space-md) var(--space-md);
  border-right: 1px solid var(--border);
}

.credibility-stat:last-child { border-right: none; }

.credibility-stat .value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  color: var(--accent-bright);
  letter-spacing: -0.01em;
}

.credibility-stat .label {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .credibility-stat { flex: 1 1 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .credibility-stat:nth-child(2n) { border-right: none; }
  .credibility-stat:last-child { border-bottom: none; }
  .credibility-stat:nth-last-child(1):nth-child(odd) { flex-basis: 100%; }
}

/* ===== Contas ranqueadas (OP.GG) ===== */
.accounts-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}

.credibility .accounts-row:not(:empty) {
  border-top: 1px solid var(--border);
}

.account-card {
  display: grid;
  grid-template-columns: var(--emblem-size) 1fr auto;
  align-items: center;
  gap: 12px;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg);
  transition: background 0.2s ease;
}

a.account-card:hover { background: var(--surface); }

.account-emblem-wrap {
  width: var(--emblem-size);
  height: var(--emblem-size);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.account-emblem {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* A imagem do Community Dragon tem margem transparente grande em volta do
     símbolo; damos um zoom pra cortar essa margem e o ícone preencher a caixa. */
  transform: scale(1.45);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}
.account-emblem-fallback {
  width: var(--emblem-size);
  height: var(--emblem-size);
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
}

.account-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.account-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.account-name:hover { color: var(--accent-bright); }

.account-elo {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.account-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  flex-wrap: wrap;
}

.account-wr { color: var(--tier-easy); font-weight: 500; }
.account-wr small { color: var(--text-faint); font-family: var(--font-body); font-weight: 400; }
.account-record-sep { color: var(--text-faint); }

.account-lp-box {
  text-align: right;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}
.account-lp-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}
.account-lp-label {
  display: block;
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}


.section { padding: var(--space-xl) 0; }

.matchups-section {
  padding-top: var(--space-lg);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  gap: var(--space-md);
  flex-wrap: wrap;
}

.section-head--stacked { margin-bottom: var(--space-sm); }

.section-head .index {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dim);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

.section-head p {
  color: var(--text-secondary);
  margin: 10px 0 0;
  font-size: 15px;
  max-width: 460px;
}

/* ===== Toolbar (filtros de tier + busca) ===== */
.matchup-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.matchup-search {
  position: relative;
  flex-shrink: 0;
  width: 260px;
  max-width: 100%;
  margin-bottom: var(--space-lg);
}

.matchup-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.matchup-search input[type="text"] {
  padding-left: 36px;
  padding-right: 32px;
}

.matchup-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}

.matchup-search-clear:hover {
  color: var(--text);
  background: var(--border);
}

@media (max-width: 640px) {
  .matchup-toolbar { flex-direction: column; align-items: stretch; }
  .matchup-search { width: 100%; }
}

/* ===== Filters — tab bar, não pills ===== */
.filters {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar { display: none; }

.guide-toc { margin-top: var(--space-md); }

.chip {
  flex-shrink: 0;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.chip:hover { color: var(--text-secondary); }

.chip.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ===== Skeletons (loading placeholders) =====
   Sistema genérico de "esqueleto" pulsante — usado em qualquer lugar que
   espera dado assíncrono (Firestore/Data Dragon) enquanto ele ainda não
   chegou. .skel é o bloco base; os outros são atalhos de forma/tamanho. */
@keyframes skel-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.skel {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  animation: skel-pulse 1.4s ease-in-out infinite;
}

.skel-text {
  height: 12px;
  margin: 6px 0;
}
.skel-text.lg { height: 16px; }
.skel-text.w-25 { width: 25%; }
.skel-text.w-40 { width: 40%; }
.skel-text.w-60 { width: 60%; }
.skel-text.w-80 { width: 80%; }
.skel-text.w-100 { width: 100%; }

.skel-circle {
  border-radius: 50%;
}

.skel-card {
  padding: var(--space-md);
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  .skel { animation: none; opacity: 0.6; }
}

/* Skeleton dos cards de matchup (grid da home) */
.trophy-card.skel-trophy {
  cursor: default;
  pointer-events: none;
}
.trophy-card.skel-trophy .icon-wrap { background: none; border: none; }
.trophy-card.skel-trophy .icon-wrap .skel { width: 100%; height: 100%; }

/* Skeleton da página de matchup individual */
.m-skel-row { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.m-skel-pill { width: 90px; height: 90px; border-radius: var(--radius-sm); flex-shrink: 0; }

/* ===== Matchup cards ===== */
.trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.trophy-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding: var(--space-md);
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}

.trophy-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--tier-color, var(--text-faint));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.trophy-card:hover {
  background: var(--surface);
}

.trophy-card:hover::before { opacity: 1; }

.trophy-card:hover .icon-wrap { border-color: var(--border-strong); }

.trophy-card[data-tier="facil"] { --tier-color: var(--tier-easy); }
.trophy-card[data-tier="normal"] { --tier-color: var(--tier-normal); }
.trophy-card[data-tier="medio"] { --tier-color: var(--tier-medium); }
.trophy-card[data-tier="dificil"] { --tier-color: var(--tier-hard); }

.trophy-card .icon-wrap {
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.trophy-card .icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trophy-card .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

/* Dificuldade sempre ancorada embaixo do card, com uma régua fina separando
   identidade (ícone/nome/runas) de metadado — evita que a badge "flutue"
   colada no conteúdo quando o card não tem runas. */
.trophy-card .tier-badge {
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

.tier-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tier-badge.facil { color: var(--tier-easy); }
.tier-badge.normal { color: var(--tier-normal); }
.tier-badge.medio { color: var(--tier-medium); }
.tier-badge.dificil { color: var(--tier-hard); }

.card-runes {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.card-rune {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.card-rune img { width: 100%; height: 100%; object-fit: cover; }

.card-rune.keystone {
  width: 22px;
  height: 22px;
  border-color: var(--accent-dim);
}

.card-rune.small { width: 16px; height: 16px; }

.empty-note {
  grid-column: 1 / -1;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  padding: var(--space-lg) var(--space-md);
  border-left: 2px solid var(--border-strong);
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

/* ===== Clips ===== */
.clip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.clip-card:hover { border-color: var(--border-strong); }

.clip-frame {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}

.clip-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.clip-card .clip-body { padding: var(--space-sm) var(--space-md) var(--space-md); }

.clip-card h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.clip-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== Matchup page ===== */
#matchup-root { display: flex; flex-direction: column; }

.m-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.m-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.4;
}

.m-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 5, 4, 0.6), rgba(12, 12, 11, 0.7) 55%, var(--bg));
}

.m-hero-content {
  position: relative;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-md) var(--space-lg);
}

.m-hero-icon {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}

.m-hero-icon img { width: 100%; height: 100%; object-fit: cover; }

.m-tier-badge {
  display: inline-block;
  padding: 2px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid var(--accent-ring);
  background: var(--surface-3);
  color: var(--accent-bright);
}

.m-tier-badge.tier-facil { border-color: rgba(107, 158, 104, 0.5); color: var(--tier-easy); background: var(--tier-easy-bg); }
.m-tier-badge.tier-normal { border-color: rgba(138, 134, 128, 0.5); color: var(--tier-normal); background: var(--tier-normal-bg); }
.m-tier-badge.tier-medio { border-color: var(--accent-ring); color: var(--accent-bright); background: var(--tier-medium-bg); }
.m-tier-badge.tier-dificil { border-color: rgba(184, 92, 74, 0.5); color: var(--tier-hard); background: var(--tier-hard-bg); }

.m-title {
  font-family: var(--font-display-alt);
  font-weight: 400;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 8px 0 0;
}

.m-title .m-vs { color: var(--accent-bright); padding: 0 6px; }
.m-title .m-enemy { color: var(--accent-bright); }

.m-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
}

/* Evita que o menu de âncoras (Resumo/Runas/Build/Dicas) role o conteúdo
   pra baixo do topnav fixo — mesmo valor usado em .g-section (guide.html). */
#resumo,
#runas,
#build,
#dicas {
  scroll-margin-top: 76px;
}

.m-h2 {
  font-family: var(--font-display-alt);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-sm);
}

.m-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.m-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.m-summary-text,
.m-tips-text {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  white-space: pre-wrap;
}

.m-note {
  margin-top: var(--space-sm);
  font-size: 14px;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.m-note-inline {
  margin-top: var(--space-md);
  font-size: 13px;
  color: var(--text-muted);
  white-space: pre-wrap;
}

.m-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.m-span-2 { grid-column: span 2; }

@media (max-width: 860px) {
  .m-grid-3 { grid-template-columns: 1fr; }
  .m-span-2 { grid-column: span 1; }
}

.m-tips {
  border-color: var(--blood-border);
  background: var(--blood);
}

.m-tips-label { color: var(--accent-bright); }

/* ===== Runes ===== */
.rune-tree-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-sm);
}

.rune-tree-icon { width: 30px; height: 30px; object-fit: contain; }

.rune-choice-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rune-choice-row:last-of-type { margin-bottom: 0; }

.rune-choice {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  filter: grayscale(1);
  opacity: 0.25;
  transition: filter 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.rune-choice img { width: 100%; height: 100%; object-fit: cover; }

.rune-choice-row.keystones .rune-choice { width: 46px; height: 46px; }

.rune-choice.active {
  filter: none;
  opacity: 1;
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px var(--bg);
}

.rune-tree.secondary .rune-choice { width: 32px; height: 32px; }

.shard-board { display: flex; flex-direction: column; gap: 12px; }

.rune-choice-row.shards { margin-bottom: 0; gap: 14px; }
.rune-choice.shard { width: 32px; height: 32px; }

.rune-choice.shard.active {
  filter: none;
  opacity: 1;
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px var(--bg);
}

/* ===== Feitiços de invocador ===== */
.m-spells-row {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.m-spell-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.m-spell-slot img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  object-fit: cover;
}

.m-spell-slot span {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ===== Ordem de habilidades ===== */
.m-ability-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-sm);
}

.m-ability-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.m-ability-pill img {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  object-fit: cover;
}

.m-ability-pill.ultimate img { border-color: var(--accent); }

.m-ability-pill .key {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text);
  margin-right: 3px;
}

.m-skill-matrix {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 8px;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.skill-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.skill-step-icon { position: relative; }

.skill-step-icon img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-strong);
  object-fit: cover;
}

.skill-step.ultimate .skill-step-icon img {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(203, 159, 90, 0.35);
}

.skill-step-level {
  position: absolute;
  top: -6px;
  right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
}

.skill-step.ultimate .skill-step-level { background: var(--accent); color: var(--bg-deep); }

.skill-step-key {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text);
}

.skill-step.ultimate .skill-step-key { color: var(--accent-bright); }

@media (max-width: 640px) {
  .m-skill-matrix { gap: 6px; }
  .skill-step-icon img { width: 30px; height: 30px; }
}

/* ===== Build / itens ===== */
.m-item-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.m-item-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 68px;
}

.m-item-slot img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  object-fit: cover;
}

.m-item-slot span {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
}

/* ===== Footer ===== */
footer.container,
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  flex-shrink: 0;
}

.foot-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.foot-note strong {
  color: var(--text-secondary);
  font-weight: 500;
}

footer a { color: var(--accent); font-weight: 500; }

.social-links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.social-pill {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.social-pill:hover { color: var(--accent-bright); }

/* ===== Forms ===== */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-lg);
  max-width: 640px;
}

.form-card-wide { max-width: 100%; }

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: var(--space-md) 0 8px;
}

label:first-child { margin-top: 0; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s ease;
}

textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-dim);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

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

.hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.status-msg { font-size: 14px; margin-top: var(--space-sm); }
.status-msg.ok { color: var(--tier-easy); }
.status-msg.err { color: var(--tier-hard); }

.form-actions {
  margin-top: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.btn-full { width: 100%; justify-content: center; }

/* ===== Login ===== */
.login-section { padding: var(--space-2xl) 0; }

.login-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: var(--space-2xl);
  align-items: center;
}

.login-intro { max-width: 400px; }

.login-title {
  font-family: var(--font-display-alt);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-md);
  color: var(--text-secondary);
}

.login-title span { color: var(--text); }

.login-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-lg);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.login-card-notch {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  background: var(--accent);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.login-card label:first-of-type { margin-top: 0; }

@media (max-width: 900px) {
  .login-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .login-intro { max-width: none; }
}

@media (max-width: 640px) {
  .login-section { padding: var(--space-xl) 0; }
  .login-card { padding: var(--space-md); }
}

/* ===== Painel (dashboard) ===== */
.dash-header { padding-bottom: var(--space-lg); }

.dash-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.dash-account {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-bottom: 6px;
}

.dash-account-email {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.dash-card {
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--accent-dim);
  max-width: none;
}

.dash-card--matchup { border-left-color: var(--accent); }
.dash-card--credibility { border-left-color: var(--tier-easy); }
.dash-card--general { border-left-color: var(--accent); }
.dash-card--clips { border-left-color: var(--tier-hard); }

/* Sub-nav sticky, abaixo do topnav */
.dash-subnav {
  position: sticky;
  top: 60px;
  z-index: 40;
  background: rgba(12, 12, 11, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

.dash-subnav-row {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scrollbar-width: none;
}

.dash-subnav-row::-webkit-scrollbar { display: none; }

.dash-subnav a {
  flex-shrink: 0;
  padding: 14px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.dash-subnav a:hover { color: var(--text-secondary); }
.dash-subnav a.active { color: var(--text); border-bottom-color: var(--accent); }

#section-matchups,
#section-credibility,
#section-general,
#section-clips {
  scroll-margin-top: 108px;
}

/* Layout de duas colunas: formulário + lista existente */
.dash-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.dash-layout-side {
  position: sticky;
  top: 116px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.dash-layout-side h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text-secondary);
}

.dash-layout-side .admin-table { margin-top: var(--space-sm); }

@media (max-width: 960px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-layout-side { position: static; }
}

/* Agrupamento dos campos dentro dos formulários longos */
.dash-fieldset {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.dash-fieldset:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.dash-fieldset-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0;
}

.dash-subhead {
  margin: var(--space-lg) 0 var(--space-md);
}

.dash-subhead h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text);
}

.dash-subhead p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  max-width: 560px;
  line-height: 1.6;
}

/* ===== Item picker ===== */
.item-picker { position: relative; }

.item-picker-results {
  display: none;
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  max-height: 240px;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}

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

.item-picker-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.item-picker-option:hover { background: var(--surface-3); }

.item-picker-option img {
  width: 26px;
  height: 26px;
  border-radius: 3px;
}

.item-picker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.item-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 8px 4px 4px;
  font-size: 13px;
}

.item-chip img {
  width: 22px;
  height: 22px;
  border-radius: 3px;
}

.item-chip-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 15px;
  padding: 0 2px;
}

.item-chip-remove:hover { color: var(--tier-hard); }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-md);
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.admin-table .row-actions a,
.admin-table .row-actions button {
  font-size: 13px;
  margin-right: 14px;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.admin-table .row-actions .danger { color: var(--tier-hard); }

.gate-panel { padding: var(--space-2xl) 0; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-art {
    order: -1;
    max-width: 360px;
  }

  .hero-art-frame {
    aspect-ratio: 16 / 10;
    clip-path: none;
  }

  .hero-art::before { display: none; }
  .hero-art .tag { position: static; margin-top: 10px; }
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-sm); }
  .topnav .row { padding: 0 var(--space-sm); }

  .hero { padding: var(--space-lg) 0; }
  .hero-line { font-size: clamp(36px, 10vw, 48px); }

  .trophy-grid {
    grid-template-columns: 1fr;
  }

  .form-row,
  .form-row-3 { grid-template-columns: 1fr; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Guia geral — hero com splash, runas em grade, combos com ícones,
   macro numerado. Layout rico igual ao protótipo, alimentado pelo Firestore. ===== */

.g-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.g-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 18%;
  opacity: 0.28;
}

.g-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 15%, rgba(12, 12, 11, 0.78) 55%, rgba(12, 12, 11, 0.45));
}

.g-hero-content {
  position: relative;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
}

.g-title {
  font-family: var(--font-display-alt);
  font-weight: 400;
  font-size: clamp(64px, 10vw, 128px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 var(--space-md);
}

.g-title-muted { color: var(--accent-bright); }

.g-lede {
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  max-width: 480px;
  margin: 0;
}

.g-section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 76px;
}

.g-section:last-of-type { border-bottom: none; }

.g-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.g-head .index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-dim);
  letter-spacing: 0.1em;
}

.g-head h2 {
  font-family: var(--font-display-alt);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}

.g-head p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: 320px;
  margin: 0 0 0 auto;
}

.g-prose {
  color: var(--text);
  font-size: 16px;
  line-height: 1.85;
  max-width: 560px;
  margin: 0;
  white-space: pre-wrap;
}

/* --- Build & runas --- */
.g-loadout-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: var(--space-lg) 0 0;
}

/* --- Combos & mecânicas --- */
.g-combos {
  margin-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.g-combo {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.g-combo h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}

.g-combo p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.g-combo-seq {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.g-combo-icon {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
}

.g-combo-icon-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: var(--surface-2);
}

.g-combo-icon-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.g-combo-sep {
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: 13px;
}

.g-combo-chip {
  flex-shrink: 0;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-bright);
  border: 1px dashed var(--accent-ring);
}

.g-dica {
  max-width: 640px;
  margin: var(--space-lg) 0 0;
  padding: var(--space-sm) var(--space-md);
  color: var(--text);
  background: var(--blood);
  border: 1px solid var(--blood-border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.7;
}

.g-dica span { color: var(--accent-bright); font-weight: 600; }

/* --- Macro & solo queue --- */
.g-macro-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.g-macro {
  background: var(--bg);
  padding: var(--space-md);
  transition: background 0.2s;
}

.g-macro:hover { background: var(--surface); }

.g-macro .num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-dim);
  letter-spacing: 0.1em;
}

.g-macro h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 10px 0 6px;
}

.g-macro p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 860px) {
  .g-macro-list { grid-template-columns: 1fr; }
  .g-combo { grid-template-columns: 1fr; gap: var(--space-sm); }
  .g-head { flex-direction: column; align-items: flex-start; }
  .g-head p { margin-left: 0; }
}

/* ===== Painel admin — listas repetíveis (combos, tópicos de macro) ===== */
.dash-repeat-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.dash-repeat-row {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md) var(--space-md);
}

.dash-repeat-row label {
  margin: var(--space-sm) 0 6px;
  font-size: 11px;
}

.dash-repeat-row label:first-child { margin-top: 0; }

.dash-repeat-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.dash-repeat-remove:hover { color: var(--tier-hard); }

.dash-repeat-add {
  align-self: flex-start;
  margin-top: var(--space-sm);
}