/* ============================================================
   AQW DATABASE — style.css
   Paleta: fundo #0a0a12 | dourado #c8a84b | azul-gelo #7bb3d4
   Fontes: Cinzel (titulos) + Source Sans 3 (corpo)
   Mobile-first
   ============================================================ */

/* --- Reset & base -------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0a0a12;
  --bg-alt:       #0f0f1c;
  --bg-card:      #141428;
  --bg-card-hover:#1a1a33;
  --border:       #2a2a45;
  --gold:         #c8a84b;
  --gold-dim:     #7a6428;
  --blue:         #7bb3d4;
  --text:         #d4d4e8;
  --text-dim:     #7a7a9a;
  --red:          #c84b4b;
  --green:        #4bc870;

  /* raridades */
  --rare:         #e05c5c;
  --seasonal:     #e0975c;
  --awesome:      #7bb3d4;
  --legend:       #9f6fe0;
  --epic:         #c86be0;
  --weird:        #7ab87a;
  --unknown:      #555577;

  --radius:       6px;
  --radius-lg:    12px;
  --shadow:       0 2px 12px rgba(0,0,0,0.5);
  --transition:   0.18s ease;

  --glow-gold: 0 0 0 2px rgba(200,168,75,0.14), 0 0 14px rgba(200,168,75,0.12);
  --glow-blue: 0 0 0 2px rgba(123,179,212,0.14), 0 0 14px rgba(123,179,212,0.10);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: clip;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Typography --------------------------------------------*/
h1, h2, h3, .logo-title {
  font-family: "Cinzel", Georgia, serif;
  line-height: 1.2;
}

.gold { color: var(--gold); }

/* --- Buttons -----------------------------------------------*/
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter var(--transition), opacity var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.15); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }

.btn-primary {
  background: linear-gradient(135deg, #b8922e, var(--gold));
  color: #0a0a12;
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 18px rgba(200,168,75,0.35), 0 2px 8px rgba(0,0,0,0.3);
}
.btn-discord {
  background: #5865f2;
  color: #fff;
}
.btn-whatsapp {
  background: #25d366;
  color: #0a0a12;
}

/* --- Header ------------------------------------------------*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,18,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo-block { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.logo-accent { color: var(--blue); }
.logo-sub { font-size: 0.7rem; color: var(--text-dim); letter-spacing: 0.08em; }

.header-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.header-nav a { color: var(--text-dim); font-size: 0.9rem; transition: color var(--transition); }
.header-nav a:hover { color: var(--gold); text-decoration: none; }

/* --- Hero --------------------------------------------------*/
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(200,168,75,0.08) 0%, transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 8rem 1.2rem 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  position: relative;
  overflow: hidden;
}

/* Guerreiro decorativo na hero section */
.hero-char {
  display: none;
  position: absolute;
  bottom: 0;
  left: 60px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-char.swf-ready {
  opacity: 1;
}
/* Baby dragon — lado direito, espelhado */
.hero-char--dragon {
  left: auto;
  right: 400px;
  bottom: auto;
  top: calc(22% + 90px);
  transform: scaleX(-1) translateY(-50%);
}
@media (min-width: 900px) {
  .hero-char { display: block; }
}
/* Mobile: só o dragão, pequeno no canto inferior direito */
@media (max-width: 899px) {
  .hero-char--dragon {
    display: block;
    width: 195px !important;
    height: 117px !important;
    right: 0;
    top: auto;
    bottom: 8px;
    transform: scaleX(-1);
    opacity: 1; /* bypass swf-ready no mobile */
  }
}

/* Banner SWF via Ruffle */
.swf-banner-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
  position: relative;
}
.swf-banner-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 33%;
  background: linear-gradient(to bottom, #0a0a12 0%, #0a0a12 25%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.swf-banner-wrap object,
.swf-banner-wrap ruffle-embed {
  display: block;
  width: 100%;
  max-width: 760px;
  height: 137px;
  border: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.swf-banner-wrap.swf-ready object,
.swf-banner-wrap.swf-ready ruffle-embed {
  opacity: 1;
}

.hero-inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }
.hero-title { font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: 1rem; color: #e8e8f4; text-shadow: 0 2px 16px rgba(0,0,0,0.8); }
.hero-sub { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 2rem; text-shadow: 0 1px 8px rgba(0,0,0,0.9); }
.hero-stats { margin-top: 2rem; position: relative; z-index: 1; }
.stat-pill {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --- Sections ----------------------------------------------*/
.section { padding: 3.5rem 1.2rem; }
#lookup { padding-top: 5rem; padding-bottom: 5rem; min-height: 720px; position: relative; overflow: visible; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: 1100px; margin: 0 auto; }

/* Personagens decorativos na seção de lead gate */
.gate-char {
  display: none;
  position: absolute;
  top: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.gate-char.swf-ready {
  opacity: 1;
}
.gate-char--left  { left: 0; top: 200px; }
/* Arqueira: top compensado para alinhar os pés com o mago.
   Delta = (altura_mago - altura_arqueira) = 636 - 604 = 32px */
.gate-char--right { right: 0; top: 291px; }
.gate-char--flip  { transform: scaleX(-1); }
@media (min-width: 900px) {
  .gate-char { display: block; }
}

/* Garante que o conteudo do gate fique na frente dos personagens */
.gate-pitch,
.lead-gate {
  position: relative;
  z-index: 1;
}

.section-heading {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--gold);
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 0.65rem;
}
.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  border-radius: 2px;
}
.section-desc { color: var(--text-dim); margin-bottom: 1.8rem; }
.section-title {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  color: var(--blue);
  margin: 1.5rem 0 0.8rem;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.inv-stats {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 400;
}
.highlight-rare { color: var(--rare); font-weight: 600; }

/* --- Lead gate ---------------------------------------------*/
@keyframes gate-glow-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

.gate-section-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
@media (min-width: 800px) {
  .gate-section-wrap { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* Left: pitch copy */
.gate-pitch {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.gate-pitch-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.gate-pitch-title {
  font-family: "Cinzel", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #e8e8f4;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9), 0 0 4px rgba(0,0,0,0.8);
}
.gate-pitch-title span { color: var(--gold); }
.gate-pitch-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,0.95), 0 0 3px rgba(0,0,0,0.8);
}
.gate-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.gate-perks li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
  text-shadow: 0 1px 8px rgba(0,0,0,0.95);
}
.gate-perks li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(75,200,112,0.12);
  border: 1px solid rgba(75,200,112,0.3);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Right: form card */
.lead-gate {
  position: relative;
  background: rgba(20, 20, 40, 0.10);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(200,168,75,0.25);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(200,168,75,0.06), 0 8px 32px rgba(0,0,0,0.4);
}
/* Animated corner glow */
.lead-gate::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,168,75,0.14) 0%, transparent 70%);
  animation: gate-glow-pulse 3.5s ease-in-out infinite;
  pointer-events: none;
}
.lead-gate::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,179,212,0.10) 0%, transparent 70%);
  animation: gate-glow-pulse 4.5s ease-in-out infinite reverse;
  pointer-events: none;
}

.gate-form-title {
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.gate-label { margin-bottom: 1.4rem; color: var(--text-dim); font-size: 0.88rem; }

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}
.lead-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.gate-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.gate-field-label {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.gate-field-hint {
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--blue);
  opacity: 0.75;
  font-style: italic;
}
.lead-form input {
  width: 100%;
  background: rgba(10,10,18,0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.lead-form input:focus { border-color: var(--gold); box-shadow: var(--glow-gold); }
.lead-form input::placeholder { color: #44445a; }

.lead-form .btn-primary {
  width: 100%;
  padding: 0.8rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

.gate-security-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--blue);
  background: rgba(123, 179, 212, 0.08);
  border: 1px solid rgba(123, 179, 212, 0.25);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  line-height: 1.5;
}

.gate-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  position: relative;
  z-index: 1;
}
.gate-note a { color: var(--blue); }
.gate-note a:hover { color: var(--gold); }

/* --- Lookup bar --------------------------------------------*/
.lookup-bar {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.lookup-bar input {
  flex: 1 1 220px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.6rem 1rem;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
}
.lookup-bar input:focus { border-color: var(--gold); box-shadow: var(--glow-gold); }
.lookup-note { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 1.5rem; }

/* --- Search bar --------------------------------------------*/
.search-bar { margin-bottom: 1.5rem; }
.search-bar input {
  width: 100%;
  max-width: 560px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.65rem 1rem;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
}
.search-bar input:focus { border-color: var(--gold); box-shadow: var(--glow-gold); }

/* --- Search filters panel ----------------------------------*/
.search-filters { margin-bottom: 1.5rem; }
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 130px;
}
.filter-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.filter-select,
.filter-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.4rem 0.6rem;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
  max-width: 200px;
}
.filter-select:focus,
.filter-input:focus { border-color: var(--gold); box-shadow: var(--glow-gold); }
.filter-select:disabled,
.filter-input:disabled { opacity: 0.45; cursor: not-allowed; }

/* --- Character result block --------------------------------*/
.char-results { margin-top: 1rem; }
.char-header { margin-bottom: 1.2rem; }

/* --- Character viewer SWF (Ruffle) -------------------------*/
.char-viewer-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  background: transparent;
  border-radius: 8px;
  overflow: visible;
  border: 1px solid var(--border);
}
.sc-ov-viewer-slot {
  width: 100%;
  height: 500px;
}
.char-viewer-slot {
  width: 100%;
  height: 455px;
}
.char-viewer-slot object,
.char-viewer-slot ruffle-player,
.char-viewer-slot ruffle-object {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.char-viewer-slot.swf-ready object,
.char-viewer-slot.swf-ready ruffle-player,
.char-viewer-slot.swf-ready ruffle-object {
  opacity: 1;
}
.viewer-unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-dim);
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
}
.viewer-play-btn {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #1a1008;
  border: none;
  cursor: pointer;
  color: #f5e6b4;
  font-family: inherit;
  transition: background 0.15s;
}
.viewer-play-btn:hover { background: #261810; }
.viewer-play-btn::before {
  content: '\25B6';
  font-size: 2.5rem;
  opacity: 0.85;
  line-height: 1;
}
.viewer-play-btn span {
  font-size: 0.85rem;
  opacity: 0.65;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.viewer-play-btn:hover::before { opacity: 1; }
.viewer-play-btn:hover span    { opacity: 0.9; }

/* --- Outfit Builder ----------------------------------------*/
.outfit-builder { margin-bottom: 1.5rem; }
.outfit-builder-hint {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-left: 0.5rem;
}
.outfit-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.outfit-slot-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.outfit-slot-label {
  width: 56px;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: right;
}
.outfit-select {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.3rem 0.5rem;
  max-width: 100%;
}
.outfit-preview-btn {
  display: inline-block;
  background: var(--gold);
  color: #1a1408;
  border: none;
  border-radius: 5px;
  padding: 0.45rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.outfit-preview-btn:hover { opacity: 0.85; }
.char-name {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.char-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* --- Equipped table ----------------------------------------*/
.equipped-table {
  width: 100%;
  max-width: 640px;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.equipped-table th {
  text-align: left;
  padding: 0.4rem 0.8rem;
  border-bottom: 1px solid var(--border);
  font-family: "Cinzel", serif;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.equipped-table td { padding: 0.5rem 0.8rem; border-bottom: 1px solid var(--border); }
.slot-label { color: var(--text-dim); font-size: 0.85rem; width: 80px; }

/* --- Item cards --------------------------------------------*/
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--unknown);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.item-card:hover { background: var(--bg-card-hover); box-shadow: 0 0 0 1px rgba(200,168,75,0.10), 0 6px 20px rgba(0,0,0,0.45); }
.item-card:focus { outline: 2px solid var(--gold-dim); outline-offset: 2px; }

/* Linha compacta (sempre visivel) */
.card-compact { display: flex; align-items: baseline; gap: 0.5rem; }
.item-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #e8e8f4;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-rarity { font-size: 0.72rem; white-space: nowrap; font-family: "Cinzel", serif; flex-shrink: 0; }
.item-category-badge {
  font-size: 0.68rem;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 0.3em;
}
.item-event-badge {
  font-size: 0.68rem;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 3px;
  padding: 0 0.3em;
  opacity: 0.8;
}
.card-compact .meta-year { font-size: 0.72rem; color: var(--text-dim); flex-shrink: 0; }

/* card-tip: conteúdo para tooltip flutuante (não exibido inline) */
.card-tip { display: none; }
.meta-parent { font-size: 0.78rem; color: var(--text-dim); }
.item-tags { font-size: 0.72rem; color: var(--text-dim); }
.tag-icons { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; margin-top: 2px; }
.tag-icon  { height: 18px; width: auto; display: inline-block; vertical-align: middle; opacity: 0.9; border-radius: 2px; }
.tag-icon:hover { opacity: 1; transform: scale(1.15); transition: transform 0.1s; }
.wiki-link { font-size: 0.78rem; color: var(--blue); align-self: flex-start; }
.wiki-link:hover { color: var(--gold); text-decoration: none; }

/* --- Access type: cor do nome pelo tipo de acesso (lógica wiki) ---*/
/* legend/member required → nome dourado; AC/free/outros → padrão   */
.access-legend .item-title,
.access-member .item-title { color: var(--gold); }

/* --- Floating item tooltip ----------------------------------*/
#item-tooltip {
  position: fixed;
  z-index: 9999;
  background: #1e1e38;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  min-width: 150px;
  max-width: 220px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  font-size: 0.82rem;
}
#item-tooltip.visible { opacity: 1; }
.tip-parent { color: var(--text-dim); }
.tip-event  { color: var(--blue); border: 1px solid var(--blue); border-radius: 3px; padding: 0 0.3em; display: inline-block; width: fit-content; font-size: 0.72rem; }
.tip-item-img {
  display: block;
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 0.3rem;
  background: rgba(0,0,0,0.3);
}

/* Cores por raridade */
.rarity-rare          { border-left-color: var(--rare);     }
.rarity-seasonal-rare { border-left-color: var(--rare);     }
.rarity-seasonal      { border-left-color: var(--seasonal); }
.rarity-awesome       { border-left-color: var(--awesome);  }
.rarity-legend        { border-left-color: var(--legend);   }
.rarity-epic          { border-left-color: var(--epic);     }
.rarity-artifact      { border-left-color: var(--gold-dim); }
.rarity-weird         { border-left-color: var(--weird);    }
.rarity-common        { border-left-color: var(--border);   }
.rarity-unknown       { border-left-color: var(--unknown);  }

.item-card.rarity-rare:hover,
.item-card.rarity-seasonal-rare:hover { box-shadow: 0 0 12px rgba(224,92,92,0.18),  0 6px 20px rgba(0,0,0,0.45); }
.item-card.rarity-seasonal:hover      { box-shadow: 0 0 12px rgba(224,151,92,0.18), 0 6px 20px rgba(0,0,0,0.45); }
.item-card.rarity-awesome:hover       { box-shadow: 0 0 12px rgba(123,179,212,0.18),0 6px 20px rgba(0,0,0,0.45); }
.item-card.rarity-legend:hover        { box-shadow: 0 0 12px rgba(159,111,224,0.20),0 6px 20px rgba(0,0,0,0.45); }
.item-card.rarity-epic:hover          { box-shadow: 0 0 12px rgba(200,107,224,0.20),0 6px 20px rgba(0,0,0,0.45); }

.rarity-rare          .item-rarity { color: var(--rare);     }
.rarity-seasonal-rare .item-rarity { color: var(--rare);     }
.rarity-seasonal      .item-rarity { color: var(--seasonal); }
.rarity-awesome       .item-rarity { color: var(--awesome);  }
.rarity-legend        .item-rarity { color: var(--legend);   }
.rarity-epic          .item-rarity { color: var(--epic);     }
.rarity-artifact      .item-rarity { color: var(--gold-dim); }
.rarity-weird         .item-rarity { color: var(--weird);    }

/* Inline card (na tabela de equipados) */
.inline-card {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border-left: 3px solid var(--unknown);
  border-radius: var(--radius);
  padding: 0.3rem 0.7rem;
  font-size: 0.9rem;
}
.small { font-size: 0.75rem; }

/* --- Inventory section -------------------------------------*/
.inventory-section { margin-top: 1.5rem; }
.inventory-notice {
  background: var(--bg-card);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  max-width: 560px;
}

.unmatched-block {
  margin-top: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
}
.unmatched-block summary {
  cursor: pointer;
  color: var(--text-dim);
  list-style: none;
}
.unmatched-block summary:hover { color: var(--text); }
.unmatched-wiki-link { color: var(--text-dim); text-decoration: none; }
.unmatched-wiki-link:hover { color: var(--gold); text-decoration: underline; }

/* --- Section divider (inventory → badges) ------------------*/
.section-divider {
  border: none;
  border-top: 2px solid var(--border);
  margin: 2rem 0 1.5rem;
}

/* --- Badges section ----------------------------------------*/
.badges-section { margin-top: 0; }

.badge-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-bottom: .5rem;
}
.badge-filter-bar--rarity { margin-bottom: 1rem; }
.badge-filter-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-dim);
  margin-right: .15rem;
}
.badge-filter-btn {
  padding: .25rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: .8rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.badge-filter-btn:hover { background: var(--bg-card); color: var(--text); }
.badge-filter-btn.active { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.badge-filter-btn--rarity.active { background: var(--blue); border-color: var(--blue); color: var(--bg); }
.badge-filter-count { opacity: .7; font-size: .75em; }

.badge-categories-wrap { display: flex; flex-direction: column; gap: 0.8rem; }
.badge-category.hidden { display: none; }
.badge-card.hidden { display: none; }

/* Rarity pills e year dentro do badge-card */
.badge-rarity {
  font-size: .58rem;
  padding: .1rem .3rem;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: .1rem;
}
.badge-rarity-rare        { background: rgba(224,92,92,.18);  color: var(--rare); }
.badge-rarity-seasonal    { background: rgba(224,151,92,.18); color: var(--seasonal); }
.badge-rarity-pseudo-rare { background: rgba(200,120,80,.12); color: #c88060; }
.badge-year {
  font-size: .6rem;
  color: var(--text-dim);
  margin-top: .05rem;
}

.badge-highlight-block { display: flex; flex-direction: column; gap: 0.8rem; }

.badge-category {}
.badge-cat-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin: 0.6rem 0 0.4rem;
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 84px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.3rem;
  cursor: pointer;
  transition: border-color var(--transition);
}
.badge-card:hover { border-color: var(--gold); box-shadow: 0 0 10px rgba(200,168,75,0.18); }
.badge-card img { width: 64px; height: 58px; object-fit: contain; }
.badge-title {
  font-size: 0.62rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
}

.badge-others {
  margin-top: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
}
.badge-others summary {
  cursor: pointer;
  color: var(--text-dim);
  font-size: 0.88rem;
  list-style: none;
}
.badge-others summary:hover { color: var(--text); }
.badge-others[open] .badge-highlight-block { margin-top: 0.8rem; }

/* --- Not found / misc states -------------------------------*/
.not-found-list { list-style: none; padding: 0.5rem 0; }
.not-found-list li { color: var(--text-dim); font-size: 0.85rem; padding: 0.15rem 0; }
.not-in-db { color: var(--text-dim); font-size: 0.88rem; }
.no-results { color: var(--text-dim); font-size: 0.9rem; padding: 0.5rem 0; }
.error { color: var(--red); font-size: 0.9rem; padding: 0.5rem 0; }
.loading { color: var(--text-dim); font-size: 0.9rem; padding: 0.5rem 0; }

/* Eval summary */
.eval-summary {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}
.stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.9rem; }
.stat.found { border-color: var(--green); color: var(--green); }
.stat.missed { border-color: var(--red); color: var(--red); }
.stat.total { color: var(--text-dim); }
.not-found-title { color: var(--red); }

/* --- Community section -------------------------------------*/
.community-block { text-align: center; }
.community-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Footer ------------------------------------------------*/
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --- Showcase sticky bar ---------------------------------- */
.showcase-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: .75rem 1.5rem;
  background: rgba(10, 10, 18, 0.94);
  border-top: 1px solid var(--gold);
  backdrop-filter: blur(6px);
  transition: transform .3s ease, opacity .3s ease;
}
.showcase-bar.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.showcase-bar-label {
  font-family: "Cinzel", serif;
  font-size: .85rem;
  color: var(--gold);
  letter-spacing: .04em;
}
.showcase-bar-btn {
  padding: .4rem 1.1rem;
  font-size: .85rem;
}

/* --- Evaluator section (visivel apos o lead) --------------*/
#evaluator-section {
  position: relative;
  z-index: 1;
  background: rgba(20, 20, 40, 0.10);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(200,168,75,0.25);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: 0 0 60px rgba(200,168,75,0.06), 0 8px 32px rgba(0,0,0,0.4);
}
#evaluator-section .section-title,
#evaluator-section .section-desc,
#evaluator-section .lookup-note,
#evaluator-section .eval-tab-hint {
  text-shadow: 0 1px 8px rgba(0,0,0,0.95), 0 0 3px rgba(0,0,0,0.8);
}

/* --- Manual inventory textarea ----------------------------*/
.manual-inventory { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.eval-textarea {
  width: 100%;
  max-width: 640px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.8rem 1rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.9rem;
  resize: vertical;
  outline: none;
  display: block;
  margin-bottom: 0.8rem;
  transition: border-color var(--transition);
}
.eval-textarea:focus { border-color: var(--gold); box-shadow: var(--glow-gold); }
.eval-results { margin-top: 1rem; }

/* =============================================================
   LANDING PAGE UPGRADES
   ============================================================= */

/* --- Hero animated orbs & grid ---------------------------- */
@keyframes orb-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-24px, -32px) scale(1.08); }
  66%       { transform: translate(18px, -14px) scale(0.94); }
}
@keyframes orb-float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(28px, 22px) scale(1.1); }
  70%       { transform: translate(-16px, 10px) scale(0.93); }
}
@keyframes orb-float-c {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%       { transform: translateX(-50%) scale(1.07) translateY(-18px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.4); }
}

.hero { position: relative; overflow: hidden; }

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero-orb-a {
  width: 520px; height: 520px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(200,168,75,0.13) 0%, transparent 70%);
  animation: orb-float-a 14s ease-in-out infinite;
}
.hero-orb-b {
  width: 420px; height: 420px;
  top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(123,179,212,0.10) 0%, transparent 70%);
  animation: orb-float-b 17s ease-in-out infinite;
}
.hero-orb-c {
  width: 280px; height: 280px;
  bottom: -60px; left: 50%;
  background: radial-gradient(circle, rgba(200,168,75,0.07) 0%, transparent 70%);
  animation: orb-float-c 11s ease-in-out infinite;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,168,75,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,168,75,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, black 20%, transparent 90%);
}

/* Make sure content inside hero sits above bg */
.swf-banner-wrap,
.hero-inner,
.hero-stats { position: relative; z-index: 1; }

/* Eyebrow badge above hero title */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200,168,75,0.08);
  border: 1px solid rgba(200,168,75,0.22);
  border-radius: 999px;
  padding: 0.28rem 1rem;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero-eyebrow-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* --- Stats strip ------------------------------------------ */
.stats-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.8rem 1.2rem;
}
.stats-strip-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-block { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.stat-number {
  font-family: "Cinzel", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.stat-divider {
  display: none;
}
@media (min-width: 600px) {
  .stats-strip-inner { gap: 0; }
  .stat-block { padding: 0 1.5rem; }
  .stat-block + .stat-block { border-left: 1px solid var(--border); }
}

/* --- Features section ------------------------------------- */
.features-section {
  padding: 5rem 1.2rem;
  background: var(--bg);
}
.features-section .section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.features-eyebrow {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}
.features-heading {
  font-family: "Cinzel", serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: #e8e8f4;
  text-align: center;
  margin-bottom: 0.6rem;
}
.features-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 3rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--transition), transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease;
}
.feature-card:hover {
  border-color: rgba(200,168,75,0.35);
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.45), 0 0 0 1px rgba(200,168,75,0.08);
}
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: rgba(200,168,75,0.08);
  border: 1px solid rgba(200,168,75,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.feature-card h3 {
  font-family: "Cinzel", serif;
  font-size: 0.98rem;
  color: var(--gold);
  margin: 0;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0;
}
.feature-tag {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  background: rgba(123,179,212,0.09);
  border: 1px solid rgba(123,179,212,0.22);
  color: var(--blue);
  align-self: flex-start;
  margin-top: auto;
}
.feature-tag.gold {
  background: rgba(200,168,75,0.09);
  border-color: rgba(200,168,75,0.22);
  color: var(--gold);
}

/* --- Scroll reveal ---------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity  0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }

/* --- Eval tabs (Bank & Buyback Analysis) -------------------*/
.eval-tabs { display: flex; gap: 0.4rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.eval-tab {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.eval-tab.active,
.eval-tab:hover { border-color: var(--gold); color: var(--gold); }
.eval-tab-hint { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 0.6rem; }
.stat.source { border-color: var(--blue); color: var(--blue); }

/* --- Results controls (sort + print) ----------------------*/
.results-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.view-label { font-size: 0.82rem; color: var(--text-dim); }
.view-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.view-select:focus { border-color: var(--gold); }
.result-group { margin-bottom: 1.2rem; }
.group-header {
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: capitalize;
}
.group-count {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 400;
}
.btn-print {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.btn-print:hover { border-color: var(--gold); color: var(--gold); }

/* --- Pagination -------------------------------------------*/
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}
.page-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.page-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.page-btn:disabled { opacity: 0.4; cursor: default; }
.page-info { font-size: 0.85rem; color: var(--text-dim); }

/* --- Utility ----------------------------------------------*/
.hidden { display: none !important; }

/* --- Char inventory list (CharPage) -----------------------*/
.equipped-section { margin-bottom: 1.2rem; }

.char-inv-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem 1.2rem;
  margin-top: 0.6rem;
}
.char-inv-parent {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.char-inv-count {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 400;
}
.char-inv-list {
  list-style: none;
  padding: 0;
}
.char-inv-item {
  font-size: 0.82rem;
  line-height: 1.45;
  padding: 0.05rem 0;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.char-inv-item:hover { opacity: 0.75; }
.char-inv-rarity {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-style: italic;
  flex-shrink: 0;
}
.char-inv-year {
  font-size: 0.65rem;
  color: var(--text-dim);
  flex-shrink: 0;
}
.char-inv-variant {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-style: italic;
  flex-shrink: 0;
}

/* --- CharPage layout --------------------------------------*/
/* Replica fiel do layout de account.aq.com/CharPage adaptado ao tema escuro */

/* Card wrapper: header dourado + body — mesma hierarquia do original */
.cp-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}
.cp-card-header {
  background: linear-gradient(135deg, #1e1a08, #2a220a);
  border-bottom: 1px solid var(--gold-dim);
  padding: 0.5rem 1rem;
  text-align: center;
}
.cp-name {
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  color: var(--gold);
  margin: 0;
  letter-spacing: 0.04em;
}
.cp-section-title {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  color: var(--gold);
  margin: 0;
  cursor: default;
}
.cp-section-count {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 400;
}
.cp-card-body {
  background: var(--bg-alt);
  padding: 0.8rem 1rem;
}

/* Equipados em duas colunas lado a lado, sem cabeçalho de tabela */
.cp-equip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
  max-width: 720px;
}
.cp-equip-col {
  display: flex;
  flex-direction: column;
}
.cp-equip-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.2rem 0;
  font-size: 0.9rem;
}
.cp-equip-label {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  min-width: 0;
}
.cp-equip-value {
  color: var(--text);
  word-break: break-word;
}

/* Achievements: envolto em cp-card — margem gerida pelo próprio cp-card */
.badges-section { margin-bottom: 0; }

.badge-categories-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.badge-category .badge-cat-title {
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
  margin: 0 0 0.5rem;
}
.badge-category .badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.badge-category .badge-card {
  width: 84px;
  padding: 0.25rem 0.3rem 0.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.badge-category .badge-card img { width: 64px; height: 58px; object-fit: contain; }
.badge-category .badge-card[data-rarity="rare"]        { border-color: rgba(224,92,92,.55); }
.badge-category .badge-card[data-rarity="seasonal"]    { border-color: rgba(224,151,92,.55); }
.badge-category .badge-card[data-rarity="pseudo-rare"] { border-color: rgba(200,128,96,.5); }
.badge-category .badge-card .badge-rarity { display: none; }
.badge-category .badge-card:hover .badge-rarity { display: inline-block; }

/* Filtros do inventário */
.inv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.inv-filter-bar {
  display: flex;
  gap: 0.4rem;
}
.inv-filter-btn {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.inv-filter-btn:hover {
  border-color: var(--gold-dim);
  color: var(--text);
}
.inv-filter-btn.active {
  background: rgba(200,168,75,.15);
  border-color: var(--gold-dim);
  color: var(--gold);
}

/* Inventory dentro do cp-card */
.inventory-section .char-inv-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 1rem;
  align-items: start;
}
.inventory-section .char-inv-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.inventory-section .char-inv-group {
  min-width: 0;
}
.inventory-section .char-inv-parent {
  font-family: "Cinzel", serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--blue);
  margin: 0 0 0.3rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.inventory-section .char-inv-count {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.62rem;
  color: var(--text-dim);
  font-weight: 400;
}
.inventory-section .char-inv-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.inventory-section .char-inv-item {
  font-size: 0.82rem;
  line-height: 1.35;
  padding: 0.04rem 0;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: nowrap;
  color: var(--text);
}

/* ===========================================================
   PAYWALL — Bank / Buyback (75% bloqueado)
   =========================================================== */

.paywall-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 120px;
}

.paywall-overlay {
  position: absolute;
  top: 25%;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(10,10,18,0.75) 8%,
    rgba(10,10,18,0.98) 22%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  z-index: 5;
  padding-top: 10%;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1.5rem;
}

.paywall-lock-icon {
  font-size: 2.25rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(200,168,75,.35));
}

.paywall-msg {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  color: var(--text);
  text-align: center;
  max-width: 300px;
  line-height: 1.4;
}

.paywall-msg small {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
  font-style: italic;
}

.paywall-sub {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.82rem;
  color: var(--gold);
  text-align: center;
  opacity: 0.85;
}

.paywall-cta-btn {
  font-family: "Cinzel", serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 1.5rem;
  border-radius: 4px;
  border: 1.5px solid var(--gold);
  background: rgba(200,168,75,0.12);
  color: var(--gold);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background var(--transition);
}

.paywall-cta-btn:hover {
  background: rgba(200,168,75,0.22);
}

/* ===========================================================
   SHOWCASE — 3 paineis lado a lado
   =========================================================== */

.showcase-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 900px) {
  .showcase-panels { grid-template-columns: 1fr; }
}

.sc-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem 1rem;
  min-width: 0;
}

.sc-panel-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .6rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .4rem;
}

.sc-placeholder {
  color: var(--text-dim);
  font-size: .85rem;
  font-style: italic;
  padding: .5rem 0;
}

.sc-groups { display: flex; flex-direction: column; gap: .25rem; }

/* Source badges (cross-source indicators) */
.sc-source-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  padding: 0 .3em;
  border-radius: 3px;
  line-height: 1.4;
  margin-left: .25em;
  vertical-align: middle;
}
.sc-badge-inventory { background: #3a7bd5; color: #fff; }
.sc-badge-bank      { background: #2e9b6e; color: #fff; }
.sc-badge-buyback   { background: #b85c00; color: #fff; }
.inventory-section .char-inv-item:hover { opacity: 0.78; }
.inventory-section .char-inv-rarity {
  font-size: 0.62rem;
  color: var(--text-dim);
  font-style: italic;
  display: none;
}
.inventory-section .char-inv-item:hover .char-inv-rarity {
  display: inline;
}
.inventory-section .char-inv-year {
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-left: auto;
}

@media (max-width: 900px) {
  .inventory-section .char-inv-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cp-equip-grid { grid-template-columns: 1fr; gap: 0; }
  .cp-name { font-size: 1.3rem; }
  .inventory-section .char-inv-cols { grid-template-columns: 1fr; }
}

/* --- Responsive -------------------------------------------*/
@media (max-width: 600px) {
  .header-nav { gap: 0.8rem; }
  .card-grid { grid-template-columns: 1fr; }
  .lead-form .form-row { flex-direction: column; }
  .lookup-bar { flex-direction: column; }
  .lookup-bar input { width: 100%; }
  #lookup { padding-top: 3rem; padding-left: 1rem; padding-right: 1rem; }
  .lead-gate { padding: 1.5rem 1.2rem; }
  .gate-pitch-title { font-size: 1.3rem; }
  .gate-section-wrap { gap: 2rem; }
  .hero { padding: 3.5rem 1.2rem 3rem; min-height: 50vh; }
}

/* --- Print ------------------------------------------------*/
@media print {
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }

  .site-header, .hero, #lookup .lead-gate, .lookup-bar, .lookup-note,
  .eval-tabs, .eval-tab-hint, .eval-textarea, #eval-btn, #char-btn,
  #char-input, .results-controls, #community, .site-footer,
  .swf-banner-wrap, .char-viewer-wrap, .btn-print,
  .unmatched-block, .char-meta { display: none !important; }

  body { background: #fff; color: #111; }
  .section, .section-alt { background: #fff; padding: 0.5rem 0; }
  .section-heading, .section-title { color: #333; }

  /* Mostrar conteúdo do card-tip inline no papel */
  .card-tip { display: flex !important; flex-direction: column; gap: 0.2rem; margin-top: 0.3rem; }
  .item-card {
    background: #fff;
    border: 1px solid #ccc;
    page-break-inside: avoid;
    break-inside: avoid;
    cursor: default;
  }
  .item-card:focus { outline: none; }
  .item-title { color: #111; }
  .meta-parent, .item-tags { color: #555; }
  .wiki-link { color: #0070c0; }
  .rarity-rare .item-rarity          { color: var(--rare);     }
  .rarity-seasonal-rare .item-rarity { color: var(--rare);     }
  .rarity-seasonal .item-rarity      { color: var(--seasonal); }
  .rarity-legend .item-rarity        { color: var(--legend);   }
  .rarity-epic .item-rarity          { color: var(--epic);     }

  .eval-summary { margin-bottom: 0.5rem; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .result-group { page-break-inside: avoid; break-inside: avoid; }
}
