:root {
  --bg: #050d1f;
  --panel: #0b1c36;
  --panel-soft: #08152b;
  --line: #2f4d78;
  --text: #edf3ff;
  --muted: #a9bddb;
  --gold: #f0d28f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #050d1f url('../textura.png') center/cover fixed;
  color: var(--text);
}

header[data-shared-header="true"]{
  position: sticky;
  top: 0;
  z-index: 100;
  height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 40px;
  background: linear-gradient(rgba(10,20,35,.95), rgba(5,10,20,.98));
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 5px 20px rgba(0,0,0,.5);
}
header[data-shared-header="true"] .logo img{ height:50px; }
header[data-shared-header="true"] nav{ justify-self:center; display:flex; flex-wrap:wrap; justify-content:center; gap:2px; }
header[data-shared-header="true"] nav > a,
header[data-shared-header="true"] .nav-dropdown-trigger{
  padding:10px 20px;
  font-size:14px;
  font-weight:600;
  color:#bbb;
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:1px;
}
header[data-shared-header="true"] nav > a:hover,
header[data-shared-header="true"] nav > a.is-active,
header[data-shared-header="true"] .nav-dropdown-trigger:hover{
  color:var(--gold);
}
header[data-shared-header="true"] .search-box{ display:flex; align-items:center; }
header[data-shared-header="true"] .search-box input{
  padding:8px 15px;
  border:1px solid #334;
  border-radius:4px 0 0 4px;
  background:rgba(255,255,255,.1);
  color:#fff;
}
header[data-shared-header="true"] .search-box button{
  background:#334;
  border:1px solid #334;
  border-left:none;
  border-radius:0 4px 4px 0;
  color:var(--gold);
  padding:8px 12px;
}

.page-shell { width: min(1280px, calc(100% - 32px)); margin: 16px auto 28px; }
.breadcrumbs { display:flex; gap:10px; align-items:center; color:var(--muted); font-size:15px; margin-bottom:14px; }
.breadcrumbs a { color:#f0dba8; text-decoration:none; }
.hero { border:1px solid rgba(230,195,106,.3); border-radius:12px; background:linear-gradient(130deg, rgba(9,24,50,.95), rgba(8,18,35,.88)); padding:26px; }
.eyebrow { margin:0; color:#f2daa2; text-transform:uppercase; font-size:13px; letter-spacing:2px; font-weight:700; }
.hero h1 { margin:8px 0 10px; font-family:'Cinzel',serif; font-size:clamp(30px, 4.1vw, 52px); line-height:1.06; }
.copy { margin:0; color:#d2dcf0; font-size:clamp(15px, 1.45vw, 22px); line-height:1.35; }
.layout { margin-top:14px; display:grid; grid-template-columns: 320px 1fr; gap:12px; }
.class-list-panel,.class-detail-panel { background:linear-gradient(180deg,var(--panel),var(--panel-soft)); border:1px solid rgba(230,195,106,.2); border-radius:12px; }
.class-list-panel { padding:12px; }
.panel-head { display:grid; gap:8px; }
.panel-head h2 { margin:0; font-family:'Cinzel',serif; color:var(--gold); }
#class-search { border:1px solid rgba(230,195,106,.35); background:#0f2648; color:var(--text); border-radius:8px; padding:0 12px; height:42px; font-size:17px; }
.class-list { margin-top:10px; display:grid; gap:7px; max-height:72vh; overflow:auto; }
.class-item { border:1px solid #35527b; background:#0c203d; color:#dce8f8; border-radius:8px; padding:10px; text-align:left; cursor:pointer; font-weight:700; display:flex; align-items:center; gap:10px; min-height:50px; }
.class-item.active { border-color:var(--gold); color:#ffe5b4; box-shadow:0 0 0 1px rgba(240,210,143,.4) inset; background:#142c4f; }
.class-thumb { width:35px; height:35px; border-radius:6px; border:1px solid #4a678d; background:#091321; flex:0 0 35px; }
.breed-icon { background-image:url("./assets/breeds.jpg"); background-repeat:no-repeat; }
.class-item.active .breed-icon { box-shadow: inset 0 0 0 2px rgba(230,195,106,.45); border-color:#d2ad5f; }
.class-item-name { flex:1; text-align:left; }
.class-detail-panel { padding:12px; display:grid; gap:12px; }
.detail-card { border:1px solid rgba(230,195,106,.22); border-radius:10px; background:linear-gradient(145deg, rgba(9,26,53,.86), rgba(7,19,37,.92)); padding:14px; }
.detail-head { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.detail-head h2 { margin:0; font-family:'Cinzel',serif; color:var(--gold); font-size:clamp(24px,3vw,36px); text-transform:uppercase; }
.detail-head a { color:#9bd0ff; text-decoration:none; font-size:13px; border:1px solid rgba(65,144,198,0.24); border-radius:999px; background:rgba(12,43,67,0.68); padding:4px 9px; font-weight:700; }
.description { margin:10px 0 0; color:#d6e2f2; line-height:1.6; }
.spells-head { background:linear-gradient(180deg, #244066, #182f4c); color:#fff2dc; border:1px solid rgba(230,195,106,.3); border-radius:6px 6px 0 0; padding:8px 11px; font-family:'Cinzel',serif; text-transform:uppercase; font-size:20px; letter-spacing:.4px; }
.spell-strip { border:1px solid rgba(230,195,106,.28); border-top:0; background:rgba(8,22,44,.88); padding:8px; display:flex; flex-wrap:wrap; gap:4px; align-items:flex-start; }
.spell-chip { position:relative; border:1px solid #476792; background:#0e223f; border-radius:4px; padding:1px; cursor:pointer; width:52px; height:52px; flex:0 0 52px; }
.spell-chip img { width:100%; height:100%; object-fit:cover; border-radius:2px; display:block; }
.spell-chip.active { outline:2px solid #f0d28f; }
.spell-chip::after { content:attr(data-tooltip); position:absolute; left:50%; bottom:calc(100% + 8px); transform:translateX(-50%) translateY(4px); background:linear-gradient(180deg,#1b2b42,#0f1a2a); color:#f6dfb0; border:1px solid #8e6a35; border-radius:6px; padding:6px 8px; font-size:12px; white-space:nowrap; opacity:0; pointer-events:none; transition:opacity .12s ease, transform .12s ease; z-index:20; }
.spell-chip::before { content:''; position:absolute; left:50%; bottom:calc(100% + 2px); transform:translateX(-50%); border-left:6px solid transparent; border-right:6px solid transparent; border-top:6px solid #8e6a35; opacity:0; transition:opacity .12s ease; z-index:19; }
.spell-chip:hover::after,.spell-chip:hover::before,.spell-chip:focus-visible::after,.spell-chip:focus-visible::before { opacity:1; }
.spell-chip:hover::after,.spell-chip:focus-visible::after { transform:translateX(-50%) translateY(0); }
.spell-detail-box { border:1px solid rgba(230,195,106,.26); border-top:0; background:linear-gradient(150deg, rgba(9,24,49,.95), rgba(8,18,35,.95)); color:#e8eff9; padding:12px; }
.spell-detail-top { display:flex; gap:10px; align-items:flex-start; }
.spell-detail-top img { width:48px; height:48px; border:1px solid #486689; border-radius:4px; background:#0f1d2f; }
.spell-detail-top h4 { margin:0; color:#f0d28f; font-family:'Cinzel',serif; font-size:clamp(24px,3vw,36px); line-height:1.1; text-transform:uppercase; }
.spell-line { margin:4px 0 0; font-size:14px; }
.spell-line.muted { color:#9eb0c9; font-style:italic; }
.spell-description { margin:10px 0; line-height:1.55; white-space:pre-line; font-size:14px; }
.spell-levels { display:flex; align-items:center; gap:8px; margin:8px 0 10px; flex-wrap:wrap; font-size:14px; }
.spell-level-btn { border:1px solid rgba(230,195,106,.28); background:#10294d; color:#f4d79c; border-radius:8px; padding:4px 10px; min-width:36px; cursor:pointer; font-size:13px; font-weight:700; }
.spell-level-btn.active { background:rgba(230, 195, 106, 0.2); color:#f5ddb0; border-color:#e6c36a; }
.effects-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.effects-grid section,.other-section { border:1px solid rgba(230,195,106,.22); }
.effects-grid h5,.other-section h5 { margin:0; padding:7px 9px; font-family:'Cinzel',serif; color:#f0d28f; background:#1f3a5d; font-size:22px; letter-spacing:.2px; }
.effects-grid ul { margin:0; padding:0; list-style:none; }
.effects-grid li { padding:5px 8px; border-top:1px solid #2d4664; background:#0f1d2f; color:#d7e4f7; font-size:14px; }
.effect-line { display:inline-flex; align-items:center; gap:8px; }
.effect-element {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.34);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.2), 0 0 4px rgba(0,0,0,0.25);
  flex: 0 0 14px;
}
.effect-element.element-water { background: radial-gradient(circle at 35% 35%, #b7e8ff, #2b8fd6 65%, #1a4f8a); }
.effect-element.element-fire { background: radial-gradient(circle at 35% 35%, #ffd0a1, #ff7a2f 65%, #8f2611); }
.effect-element.element-air { background: radial-gradient(circle at 35% 35%, #ccffd0, #66c477 65%, #24653a); }
.effect-element.element-earth { background: radial-gradient(circle at 35% 35%, #ffe9ba, #cc9c52 65%, #6f4e2a); }
.effect-element.element-neutral { background: radial-gradient(circle at 35% 35%, #f2f2f2, #9da6b3 65%, #545f70); }
.other-section { margin-top:12px; }
.other-section table { width:100%; border-collapse:collapse; }
.other-section td { border-top:1px solid #2d4664; padding:6px 8px; }
.other-section td:last-child { text-align:right; color:#f0ddb2; font-weight:700; }
.empty-text { color:#6f5d48; }

@media (max-width:1050px){ .layout{grid-template-columns:1fr;} .class-list{max-height:260px;} header[data-shared-header="true"]{grid-template-columns:1fr; height:auto; padding:10px; gap:10px;} }
@media (max-width:720px){ .spell-strip{grid-template-columns:repeat(6,minmax(0,1fr));} .effects-grid{grid-template-columns:1fr;} }





