
:root {
  color-scheme: dark;
  --bg: #17130f;
  --bg-2: #2b2119;
  --panel: #221b15;
  --panel-2: #2c241c;
  --line: #4b3c2c;
  --accent: #d7b66f;
  --accent-2: #f08c45;
  --text: #f0e6cf;
  --muted: #b9aa8e;
  --green: #8fd694;
  --red: #e28f83;
  --shadow: rgba(0, 0, 0, .28);
  --glow: rgba(215, 182, 111, .34);
  --input-bg: #120f0c;
}
body[data-theme="ember-gold"] {
  --bg: #17130f; --bg-2: #2b2119; --panel: #221b15; --panel-2: #2c241c; --line: #4b3c2c; --accent: #d7b66f; --accent-2: #f08c45; --text: #f0e6cf; --muted: #b9aa8e; --glow: rgba(215, 182, 111, .34); --input-bg: #120f0c;
}
body[data-theme="arcane-violet"] {
  --bg: #141024; --bg-2: #312358; --panel: #211936; --panel-2: #30254b; --line: #63518d; --accent: #c6a6ff; --accent-2: #8ad7ff; --text: #f0eaff; --muted: #bfb0dc; --glow: rgba(198, 166, 255, .36); --input-bg: #110d1d;
}
body[data-theme="emerald-twilight"] {
  --bg: #0e1713; --bg-2: #17372b; --panel: #14241d; --panel-2: #1d3329; --line: #3e6f5a; --accent: #9be7b1; --accent-2: #d6c276; --text: #e7f6e9; --muted: #a9c6b3; --glow: rgba(155, 231, 177, .32); --input-bg: #0b120f;
}
body[data-theme="crimson-dusk"] {
  --bg: #1b0f12; --bg-2: #3b151d; --panel: #251318; --panel-2: #351a21; --line: #743748; --accent: #ff9b8d; --accent-2: #ffd07a; --text: #ffece6; --muted: #d3aaa3; --glow: rgba(255, 155, 141, .31); --input-bg: #120a0d;
}
body[data-theme="ocean-sapphire"] {
  --bg: #0c1620; --bg-2: #123556; --panel: #111f2d; --panel-2: #1a2d40; --line: #3d678b; --accent: #8ed7ff; --accent-2: #a8f0d0; --text: #e5f4ff; --muted: #a7bfd1; --glow: rgba(142, 215, 255, .33); --input-bg: #091019;
}
body[data-theme="frost-silver"] {
  --bg: #11161a; --bg-2: #2c3944; --panel: #1a2228; --panel-2: #26313a; --line: #657581; --accent: #d8e7ef; --accent-2: #9fd7ff; --text: #f1f7fa; --muted: #b5c2c9; --glow: rgba(216, 231, 239, .28); --input-bg: #0d1216;
}
body[data-theme="obsidian-rose"] {
  --bg: #130f14; --bg-2: #30202c; --panel: #1f1820; --panel-2: #2d222c; --line: #68455e; --accent: #f0a5c7; --accent-2: #d8b46f; --text: #f8edf4; --muted: #c7aebc; --glow: rgba(240, 165, 199, .32); --input-bg: #0f0b10;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 22% 0%, var(--bg-2) 0, var(--bg) 46rem), linear-gradient(160deg, var(--bg), #090806);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, Segoe UI, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
.topbar {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 88%, black 12%);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 10px 28px var(--shadow);
}
.brand { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
nav { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.site-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.theme-control, .raw-control { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.raw-control { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 10px; }
.raw-control input { width: auto; accent-color: var(--accent); }
main { max-width: 1220px; margin: 0 auto; padding: 28px 18px 48px; }
.page-head { margin-bottom: 18px; }
h1 { margin: 0 0 8px; font-size: 34px; }
.page-head p { margin: 0 0 6px; color: var(--muted); }
.page-head span { color: color-mix(in srgb, var(--muted) 70%, black 30%); font-size: 13px; }
.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 18px 0; }
input, select {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  padding: 10px 11px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 14px; }
.wide-grid { display: grid; gap: 14px; }
.card {
  background: linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--panel) 78%, black 22%));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 12px 30px var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 16px 36px var(--shadow), 0 0 22px color-mix(in srgb, var(--glow) 65%, transparent); }
.card h2, .card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { color: var(--muted); }
.meta { color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pill, .effect-chip, .item, .raw-control, .icon-chip, .option-mini {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.pill {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--muted);
}
.pill:hover, .effect-chip:hover, .item:hover, .raw-control:hover, .icon-chip:hover, .option-mini:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--glow);
}
.icon-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-2) 88%, var(--accent) 12%);
  border-radius: 8px;
  padding: 5px 8px;
  color: var(--text);
}
.icon-chip img, .effect-title-icon, .skill-icon { width: 22px; height: 22px; object-fit: contain; }
.item-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: color-mix(in srgb, var(--panel) 70%, black 30%);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 8px;
  min-height: 36px;
}
.item img, .mob-img { width: 28px; height: 28px; object-fit: contain; image-rendering: auto; }
.mob-img { width: 56px; height: 56px; vertical-align: middle; margin-right: 8px; }
.item-kind {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 999px;
  padding: 1px 5px;
}
.effect-groups { display: grid; gap: 9px; margin-top: 10px; }
.effect-group h4 { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 6px; color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.effect-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.effect-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--panel-2) 82%, var(--accent) 18%);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--text);
  font-size: 13px;
}
.effect-chip.raw-effect { color: var(--muted); background: color-mix(in srgb, var(--panel) 85%, black 15%); }
.pet-card[data-category="Offensive"] { border-color: color-mix(in srgb, #ffad70 48%, var(--line)); }
.pet-card[data-category="Defensive"] { border-color: color-mix(in srgb, #a8d7ff 48%, var(--line)); }
.pet-card[data-category="Support"] { border-color: color-mix(in srgb, #a7e7a8 48%, var(--line)); }
.tier-low { color: #d99b63; }
.tier-mid { color: #b9d3ef; }
.tier-high { color: #e9c76f; }
.skill-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 10px; margin-top: 10px; }
.option-mini {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: color-mix(in srgb, var(--panel) 78%, black 22%);
}
.option-mini h3 { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.option-values { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 7px; }
details.raw-block { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
body:not(.show-raw) .raw-block { display: none; }
summary { cursor: pointer; color: var(--accent); }
pre { overflow: auto; background: var(--input-bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px; white-space: pre-wrap; color: var(--text); }
.status-on { color: var(--green); }
.status-off { color: var(--red); }
.checklist { display: grid; gap: 8px; }
.check { display: flex; align-items: center; gap: 8px; }
.box { width: 15px; height: 15px; border: 1px solid var(--accent); background: var(--panel-2); border-radius: 3px; flex: 0 0 auto; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--accent); background: color-mix(in srgb, var(--panel) 78%, black 22%); }
@media (max-width: 860px) {
  .topbar { grid-template-columns: 1fr; align-items: flex-start; }
  nav, .site-tools { justify-content: flex-start; }
}
@media (max-width: 720px) { h1 { font-size: 28px; } }
@media (hover: none) { .card:hover, .pill:hover, .effect-chip:hover, .item:hover, .raw-control:hover, .icon-chip:hover, .option-mini:hover { transform: none; } }
