@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ─── Variables ─────────────────────────────────────── */
:root {
  --bg-root:    #0c0c12;
  --bg-base:    #10101a;
  --bg-card:    #14141e;
  --bg-card-hover: #1c1c28;
  --bg-surface: #18182a;
  --accent:      #c9a860;
  --accent-hover:#ddb870;
  --accent-dim:  rgba(201,168,96,0.12);
  --accent-glow: rgba(201,168,96,0.28);
  --amber:       #e6c870;
  --text-primary: #f0f0f4;
  --text-secondary: #9090b0;
  --text-muted:   #50506c;
  --border:       #1e1e2c;
  --border-light: #28283a;
  --border-accent:rgba(201,168,96,0.3);
  --font-heading: 'Rajdhani', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
}

/* ─── Reset / Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-root);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
main { flex: 1; }

/* ─── Navigation ─────────────────────────────────────── */
.wiki-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(7,7,16,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-accent);
}
.nav-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 1.5rem;
  height: 64px; display: flex; align-items: center; gap: 1.5rem;
}
.wiki-brand {
  display: flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700;
  color: var(--text-primary) !important; flex-shrink: 0;
}
.brand-icon { color: var(--accent); font-size: 1.4rem; filter: drop-shadow(0 0 8px var(--accent-glow)); }
.brand-accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 0.1rem; flex: 1; }
.nav-link-item {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 0.8rem; border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: all var(--transition);
}
.nav-link-item:hover, .nav-link-item.active {
  color: var(--text-primary); background: var(--accent-dim);
}
.nav-link-item.active { color: var(--accent); }
.nav-link-item i { font-size: 0.8rem; }
.nav-right { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.nav-search-btn {
  background: none; border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  color: var(--text-secondary); padding: 0.4rem 0.7rem; cursor: pointer;
  transition: all var(--transition); font-size: 0.85rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.nav-search-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.4rem; margin-left: auto;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-secondary); border-radius: 2px; }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  position: relative; min-height: 520px;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 90%, rgba(110,85,175,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(155,130,215,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 20% 70%, rgba(201,168,96,0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-root) 0%, #0a0814 100%);
  animation: hero-pulse 8s ease-in-out infinite alternate;
}
@keyframes hero-pulse { from { opacity: 0.8; } to { opacity: 1; } }
.hero-sparks {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-sparks::before, .hero-sparks::after {
  content: ''; position: absolute;
  width: 2px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  animation: spark-rise 5s linear infinite; opacity: 0;
}
.hero-sparks::before { left: 18%; animation-delay: 0s; }
.hero-sparks::after  { left: 72%; animation-delay: 2.5s; }
@keyframes spark-rise {
  0%   { transform: translateY(120%); opacity: 0; }
  20%  { opacity: 0.5; }
  80%  { opacity: 0.2; }
  100% { transform: translateY(-200px); opacity: 0; }
}
.hero-content { position: relative; max-width: 1440px; margin: 0 auto; padding: 5rem 1.5rem; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-heading); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.hero-eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--accent); }
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5.5rem); font-family: var(--font-heading); font-weight: 700;
  line-height: 1; letter-spacing: 0.04em; text-transform: uppercase;
}
.hero-title .fire-word {
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(201,168,96,0.12);
}
.hero-subtitle { font-size: 1.05rem; color: var(--text-secondary); margin-top: 1.2rem; max-width: 460px; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }

/* ─── Buttons ────────────────────────────────────────── */
.btn-wiki {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.5rem; border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer; border: none; transition: all var(--transition);
}
.btn-primary-wiki { background: var(--accent); color: #fff; }
.btn-primary-wiki:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.btn-secondary-wiki { background: transparent; border: 1px solid var(--border-light); color: var(--text-secondary); }
.btn-secondary-wiki:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ─── Stat Strip ──────────────────────────────────────── */
.stat-strip { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-strip-inner { max-width: 1440px; margin: 0 auto; padding: 0 1.5rem; display: flex; }
.stat-item { flex: 1; text-align: center; padding: 1.4rem 1rem; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-value { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.25rem; }

/* ─── Sections ───────────────────────────────────────── */
.wiki-section { padding: 3.5rem 0; }
.section-inner { max-width: 1440px; margin: 0 auto; padding: 0 1.5rem; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.75rem; gap: 1rem; }
.section-title {
  font-family: var(--font-heading); font-size: 1.55rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-title i { color: var(--accent); font-size: 1rem; }
.section-title::after {
  content: ''; display: block; width: 36px; height: 3px;
  background: linear-gradient(to right, var(--accent), transparent);
  border-radius: 2px; margin-left: 0.5rem; align-self: flex-end; margin-bottom: 0.2rem;
}
.section-link {
  font-family: var(--font-heading); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary);
  display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0; transition: color var(--transition);
}
.section-link:hover { color: var(--accent); }

/* ─── Page Layout ────────────────────────────────────── */
.page-container { max-width: 1440px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.page-header { margin-bottom: 2rem; }
.page-title { font-size: 2.1rem; font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.02em; }
.page-subtitle { color: var(--text-secondary); margin-top: 0.4rem; font-size: 0.95rem; }

/* ─── Character Cards ─────────────────────────────────── */
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 1rem; }
.char-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: all 0.25s ease;
  text-decoration: none; display: block; color: inherit;
}
.char-card:hover {
  transform: translateY(-4px); border-color: var(--border-accent); color: inherit;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 24px rgba(201,168,96,0.12);
}
.char-card-art {
  height: 220px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.el-fire   .char-card-art { background: linear-gradient(160deg,#1a0400 0%,#6b2200 40%,#e8721a 80%,#f5c060 100%); }
.el-wind   .char-card-art { background: linear-gradient(160deg,#001008 0%,#004d1a 40%,#4fc94f 80%,#a8f0a0 100%); }
.el-ice    .char-card-art { background: linear-gradient(160deg,#000d1a 0%,#002860 40%,#50c8f0 80%,#d0f5ff 100%); }
.el-dark    .char-card-art { background: linear-gradient(160deg,#060010 0%,#280055 40%,#8b5cf6 80%,#d4b0ff 100%); }
.el-thunder .char-card-art { background: linear-gradient(160deg,#1a1200 0%,#8b6000 40%,#d29805 80%,#f8e060 100%); }
.char-card-art-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; z-index: 1;
}
.char-card-art-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(0,0,0,0.6) 0%, transparent 70%),
    repeating-linear-gradient(45deg,rgba(255,255,255,0.018) 0px,rgba(255,255,255,0.018) 1px,transparent 1px,transparent 12px);
}
.char-card-art-icon {
  position: relative; z-index: 0; font-size: 6.5rem;
  color: rgba(255,255,255,0.15); padding-bottom: 0.5rem; line-height: 1;
}
.char-card-badges { position: absolute; top: 0.6rem; left: 0.6rem; right: 0.6rem; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; }
.char-card-info { padding: 0.8rem; background: var(--bg-card); }
.char-name { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.char-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 0.3rem; }
.char-class { font-size: 0.73rem; color: var(--text-secondary); }
.char-stars { display: flex; gap: 1px; font-size: 0.62rem; }

/* ─── Badges ──────────────────────────────────────────── */
.badge-pill {
  display: inline-flex; align-items: center; gap: 0.2rem;
  padding: 0.18rem 0.5rem; border-radius: 99px;
  font-family: var(--font-heading); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; line-height: 1;
}
.badge-fire   { background: rgba(232,114,26,0.2);  color: #f09040; border: 1px solid rgba(232,114,26,0.35); }
.badge-wind   { background: rgba(79,201,79,0.2);   color: #70d870; border: 1px solid rgba(79,201,79,0.35); }
.badge-ice    { background: rgba(80,200,240,0.2);  color: #70d8f8; border: 1px solid rgba(80,200,240,0.35); }
.badge-dark    { background: rgba(144,96,232,0.2);  color: #b090f8; border: 1px solid rgba(144,96,232,0.35); }
.badge-thunder { background: rgba(240,208,80,0.2);  color: #f8e060; border: 1px solid rgba(240,208,80,0.35); }
.badge-rar-3  { background: rgba(74,158,106,0.2);   color: #60c080; border: 1px solid rgba(74,158,106,0.42); }
.badge-rar-4  { background: rgba(58,127,213,0.2);   color: #60a0e8; border: 1px solid rgba(58,127,213,0.42); }
.badge-rar-5  { background: rgba(139,92,246,0.2);   color: #b080ff; border: 1px solid rgba(139,92,246,0.42); }
.badge-rar-6  { background: rgba(201,168,96,0.2);   color: #e6c870; border: 1px solid rgba(201,168,96,0.42); }
.badge-active   { background: rgba(74,158,106,0.2);  color: #60c080; border: 1px solid rgba(74,158,106,0.4); }
.badge-upcoming { background: rgba(58,127,213,0.2);  color: #60a0e8; border: 1px solid rgba(58,127,213,0.4); }
.badge-ended    { background: rgba(100,100,130,0.2); color: #9090b0; border: 1px solid rgba(100,100,130,0.4); }
.badge-limited  { background: rgba(232,114,26,0.2);  color: #f09040; border: 1px solid rgba(232,114,26,0.4); }
.badge-standard { background: rgba(58,127,213,0.2);  color: #60a0e8; border: 1px solid rgba(58,127,213,0.4); }
.badge-normal   { background: rgba(100,100,130,0.2); color: #9090b0; border: 1px solid rgba(100,100,130,0.4); }
.badge-heavy    { background: rgba(214,93,14,0.2);   color: #f07030; border: 1px solid rgba(214,93,14,0.4); }
.badge-ultimate { background: rgba(232,114,26,0.25); color: #f09040; border: 1px solid rgba(232,114,26,0.5); }
.badge-qte      { background: rgba(58,127,213,0.2);  color: #60a0e8; border: 1px solid rgba(58,127,213,0.4); }
.badge-finisher { background: rgba(201,168,96,0.2);  color: #e6c870; border: 1px solid rgba(201,168,96,0.45); }
.star { color: var(--text-muted); }
.star.filled.rar-3 { color: #60c080; }
.star.filled.rar-4 { color: #60a0e8; }
.star.filled.rar-5 { color: #b080ff; }
.star.filled.rar-6 { color: var(--accent); }

/* ─── Filter Bar ──────────────────────────────────────── */
.filter-bar {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.9rem 1.2rem; margin-bottom: 1.75rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center;
}
.filter-group { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.filter-label { font-family: var(--font-heading); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-right: 0.15rem; }
.filter-btn {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-secondary); font-family: var(--font-heading); font-size: 0.78rem; font-weight: 600;
  padding: 0.28rem 0.65rem; cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--border-light); color: var(--text-primary); }
.filter-btn.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* ─── Items Page ──────────────────────────────────────── */
.search-bar { position: relative; margin-bottom: 1rem; }
.search-bar input {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-primary); padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-family: var(--font-body); font-size: 0.92rem; transition: border-color var(--transition); outline: none;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar input:focus { border-color: var(--accent); }
.search-icon { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.item-controls { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-select {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-secondary); padding: 0.5rem 0.75rem;
  font-family: var(--font-body); font-size: 0.83rem; cursor: pointer; outline: none; transition: border-color var(--transition);
}
.filter-select:focus { border-color: var(--accent); }
.filter-select option { background: var(--bg-card); }
.items-count { font-size: 0.82rem; color: var(--text-muted); margin-left: auto; }
.items-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
.items-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.items-table thead th {
  background: var(--bg-surface); padding: 0.8rem 1rem; text-align: left;
  font-family: var(--font-heading); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.items-table tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
.items-table tbody tr:last-child { border-bottom: none; }
.items-table tbody tr:hover { background: var(--bg-card-hover); }
.items-table td { padding: 0.85rem 1rem; vertical-align: middle; }
.item-icon-cell {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
  background: rgba(255,255,255,0.05); overflow: hidden;
}
.item-icon-img { width: 100%; height: 100%; object-fit: contain; }
.item-icon-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.item-name-cell { font-weight: 500; color: var(--text-primary); }
.item-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.1rem; }
.item-desc-text { font-size: 0.8rem; color: var(--text-secondary); max-width: 420px; }
.no-results { text-align: center; padding: 3rem; color: var(--text-muted); }
.no-results i { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }

/* ─── Event Cards ─────────────────────────────────────── */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.event-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.25s ease; }
.event-card:hover { transform: translateY(-3px); border-color: var(--border-accent); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.event-card-banner {
  height: 110px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.event-card-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, var(--bg-card) 100%); }
.event-type-seasonal { background: linear-gradient(135deg,#2a0a00,#8b3a00,#e8721a); }
.event-type-raid     { background: linear-gradient(135deg,#100020,#4a0060,#9060e8); }
.event-type-story    { background: linear-gradient(135deg,#001520,#005080,#50c8f0); }
.event-type-login    { background: linear-gradient(135deg,#1a1200,#806000,#f0d050); }
.event-type-icon { font-size: 2.8rem; color: rgba(255,255,255,0.28); position: relative; z-index: 1; }
.event-card-body { padding: 1.1rem; }
.event-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.6rem; }
.event-card-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.event-dates { display: flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.event-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 0.85rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.event-rewards { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.reward-tag { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.18rem 0.45rem; font-size: 0.7rem; color: var(--text-secondary); }

/* ─── Banner Cards ────────────────────────────────────── */
.banners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; }
.banner-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.25s ease; display: flex; flex-direction: column;
}
.banner-card:hover { transform: translateY(-3px); border-color: var(--border-accent); box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 28px rgba(201,168,96,0.15); }
.banner-art {
  height: 170px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.banner-type-limited  { background: linear-gradient(135deg,#1a0400 0%,#6b2200 40%,#e8721a 70%,#f5c060 100%); }
.banner-type-standard { background: linear-gradient(135deg,#000d20 0%,#003060 40%,#3a80d5 70%,#80c0ff 100%); }
.banner-type-weapon   { background: linear-gradient(135deg,#100020 0%,#3a0060 40%,#8b5cf6 70%,#c0a0ff 100%); }
.banner-char-silhouette { font-size: 5.5rem; color: rgba(255,255,255,0.15); position: relative; z-index: 1; }
.banner-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, var(--bg-card) 100%); }
.banner-spark {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.07) 0%, transparent 50%),
    repeating-linear-gradient(60deg,rgba(255,255,255,0.025) 0px,rgba(255,255,255,0.025) 1px,transparent 1px,transparent 16px);
}
.banner-featured-chars { position: absolute; top: 0.6rem; left: 0.6rem; display: flex; gap: 0.3rem; flex-wrap: wrap; z-index: 2; }
.banner-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.banner-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.5rem; }
.banner-title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; }
.banner-desc { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 0.85rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.banner-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-muted); padding-top: 0.75rem; border-top: 1px solid var(--border); }
.banner-meta-item { display: flex; align-items: center; gap: 0.3rem; }
.banner-meta-item strong { color: var(--amber); font-family: var(--font-heading); font-size: 0.9rem; }

/* ─── Character Detail ────────────────────────────────── */
.char-detail-hero { position: relative; overflow: hidden; background: var(--bg-base); border-bottom: 1px solid var(--border); }
.char-detail-hero-bg { position: absolute; inset: 0; opacity: 0.7; }
.el-fire   .char-detail-hero-bg { background: radial-gradient(ellipse 80% 100% at 25% 50%, rgba(232,114,26,0.22) 0%, transparent 70%); }
.el-wind   .char-detail-hero-bg { background: radial-gradient(ellipse 80% 100% at 25% 50%, rgba(79,201,79,0.18) 0%, transparent 70%); }
.el-ice    .char-detail-hero-bg { background: radial-gradient(ellipse 80% 100% at 25% 50%, rgba(80,200,240,0.18) 0%, transparent 70%); }
.el-dark    .char-detail-hero-bg { background: radial-gradient(ellipse 80% 100% at 25% 50%, rgba(144,96,232,0.18) 0%, transparent 70%); }
.el-thunder .char-detail-hero-bg { background: radial-gradient(ellipse 80% 100% at 25% 50%, rgba(210,152,5,0.18) 0%, transparent 70%); }
.char-detail-layout { max-width: 1440px; margin: 0 auto; padding: 2.5rem 1.5rem; display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; position: relative; }
.char-portrait {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3/4; display: flex; align-items: flex-end; justify-content: center; position: relative;
}
.el-fire   .char-portrait { background: linear-gradient(160deg,#1a0400 0%,#6b2200 40%,#e8721a 80%,#f5c060 100%); }
.el-wind   .char-portrait { background: linear-gradient(160deg,#001008 0%,#004d1a 40%,#4fc94f 80%,#a8f0a0 100%); }
.el-ice    .char-portrait { background: linear-gradient(160deg,#000d1a 0%,#002860 40%,#50c8f0 80%,#d0f5ff 100%); }
.el-dark    .char-portrait { background: linear-gradient(160deg,#060010 0%,#280055 40%,#8b5cf6 80%,#d4b0ff 100%); }
.el-thunder .char-portrait { background: linear-gradient(160deg,#1a1200 0%,#8b6000 40%,#d29805 80%,#f8e060 100%); }
.char-portrait-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; z-index: 1;
}
.char-portrait-pattern {
  position: absolute; inset: 0; z-index: 2;
  background: repeating-linear-gradient(45deg,rgba(255,255,255,0.022) 0px,rgba(255,255,255,0.022) 1px,transparent 1px,transparent 14px);
}
.char-portrait-icon { position: relative; font-size: 9rem; color: rgba(255,255,255,0.18); z-index: 0; padding-bottom: 1rem; line-height: 1; }
.char-info-panel { display: flex; flex-direction: column; justify-content: center; }
.char-breadcrumb { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.4rem; }
.char-detail-name { font-family: var(--font-heading); font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 700; line-height: 1; letter-spacing: 0.02em; margin-bottom: 0.6rem; }
.char-detail-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }
.char-detail-desc { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 1.4rem; }
.char-stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.45rem; margin-bottom: 1.4rem; }
.stat-box { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.65rem; text-align: center; }
.stat-box-value { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; }
.stat-box-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.1rem; }
.char-quick-info { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.char-quick-info-row { display: flex; align-items: center; padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); gap: 1rem; }
.char-quick-info-row:last-child { border-bottom: none; }
.char-quick-info-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; width: 85px; flex-shrink: 0; }
.char-quick-info-value { font-size: 0.88rem; color: var(--text-primary); font-weight: 500; }

/* ─── Tabs ───────────────────────────────────────────── */
.char-detail-tabs-section { max-width: 1440px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.wiki-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 2rem; overflow-x: auto; scrollbar-width: none; }
.wiki-tabs::-webkit-scrollbar { display: none; }
.wiki-tab {
  padding: 0.8rem 1.3rem; font-family: var(--font-heading); font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted);
  border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all var(--transition); white-space: nowrap;
  display: flex; align-items: center; gap: 0.35rem;
}
.wiki-tab:hover { color: var(--text-secondary); }
.wiki-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.wiki-tab-panel { display: none; }
.wiki-tab-panel.active { display: block; }

/* ─── Skills ──────────────────────────────────────────── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1rem; }
.skill-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; transition: border-color var(--transition); }
.skill-card:hover { border-color: var(--border-light); }
.skill-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.55rem; gap: 0.5rem; }
.skill-name { font-family: var(--font-heading); font-size: 0.98rem; font-weight: 700; }
.skill-cooldown { font-size: 0.73rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.2rem; }
.skill-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55; }

/* ─── Gallery ─────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 0.75rem; }
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; cursor: pointer; position: relative; transition: transform 0.2s ease; }
.gallery-item:hover { transform: scale(1.025); }
.gallery-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: rgba(255,255,255,0.25); }
.gallery-item:nth-child(1) .gallery-placeholder { background: linear-gradient(135deg,#1a0800,#8b3a00); }
.gallery-item:nth-child(2) .gallery-placeholder { background: linear-gradient(135deg,#0a001a,#400080); }
.gallery-item:nth-child(3) .gallery-placeholder { background: linear-gradient(135deg,#001020,#005080); }
.gallery-item:nth-child(4) .gallery-placeholder { background: linear-gradient(135deg,#1a1200,#806000); }
.gallery-item:nth-child(5) .gallery-placeholder { background: linear-gradient(135deg,#001508,#006030); }
.gallery-item:nth-child(6) .gallery-placeholder { background: linear-gradient(135deg,#0a0014,#380060); }
.gallery-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.7) 100%); display: flex; align-items: flex-end; padding: 0.65rem; opacity: 0; transition: opacity 0.2s ease; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.gallery-item[data-lightbox-src] { cursor: zoom-in; }

/* ─── Lightbox ────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.88); }
.lightbox-img { position: relative; max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); box-shadow: 0 0 60px rgba(0,0,0,0.8); }

/* ─── Lore ────────────────────────────────────────────── */
.lore-content { max-width: 680px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.lore-content p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.85; margin-bottom: 1.2rem; }
.lore-content p:last-child { margin-bottom: 0; }

/* ─── Footer ─────────────────────────────────────────── */
.wiki-footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 2rem 0 1.2rem; margin-top: auto; }
.footer-inner { max-width: 1440px; margin: 0 auto; padding: 0 1.5rem; }
.footer-brand { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.4rem; }
.footer-brand i { color: var(--accent); }
.footer-text { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--border); }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }

/* ─── Utilities ──────────────────────────────────────── */
.text-accent { color: var(--accent); }
.hidden { display: none !important; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .char-detail-layout { grid-template-columns: 1fr; }
  .char-portrait { max-width: 260px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(7,7,16,0.98); border-bottom: 1px solid var(--border-accent);
    padding: 0.75rem; gap: 0.2rem;
  }
  .nav-toggle { display: flex; }
  .events-grid, .banners-grid { grid-template-columns: 1fr; }
  .char-stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-strip-inner { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .page-container { padding: 1.5rem 1rem; }
}
