/* Project Hoof — /pets/ — WAR PET BUILDER.
   Layout mirrors the CoD-DB warpet page: tab bar · banner · [War Pet + Skills | Pet Stats] · [Stats | Settings].
   Palette + type are the site's own. Everything is prefixed wp- (global .kicker/.badge/.lead leak into subpages). */

:root {
  --wp-gold: #f2cc6a;
  --wp-gold-deep: #c9a24a;
  --wp-ink: #e8e2d2;
  --wp-muted: #9fb0cf;
  --wp-dim: #6f7d99;
  --wp-blue: #8bb8ff;
  --wp-teal: #3aa89a;
  --wp-red: #ff8c6a;
  --wp-green: #8fd48a;
  --wp-phys: #f0a35e;
  --wp-magic: #8bb8ff;
  --wp-card: linear-gradient(180deg, rgba(13, 19, 36, .94), rgba(7, 11, 22, .97));
  --wp-card-2: rgba(5, 9, 18, .8);
  --wp-line: rgba(201, 162, 74, .34);
  --wp-line-soft: rgba(201, 162, 74, .16);
  --wp-radius: 14px;
}

.wp {
  max-width: var(--max, 1280px);
  margin: 0 auto;
  padding: calc(var(--nav-h, 72px) + 14px) var(--pad-i, 16px) 64px;
  color: var(--wp-ink);
  display: flex; flex-direction: column; gap: 14px;
}

/* ============================ CARD PRIMITIVES ============================ */
.wp-card {
  background: var(--wp-card);
  border: 1px solid var(--wp-line);
  border-radius: var(--wp-radius);
  padding: 14px 16px 16px;
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.03);
  min-width: 0;
}
.wp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wp-card-head-split { flex-wrap: wrap; }
.wp-card-head-l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wp-card-head-r { font-family: 'EB Garamond', serif; color: var(--wp-muted); font-size: .95rem; }
.wp-card-title { margin: 0; font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; color: #f1ead4; }
.wp-card-title-serif { font-family: 'Cinzel Decorative', 'Cinzel', serif; font-weight: 900; color: var(--wp-gold); }
.wp-card-title-blue { color: var(--wp-blue); text-align: center; width: 100%; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; }
.wp-card-summary .wp-card-head { border-bottom: 1px solid var(--wp-line-soft); padding-bottom: 8px; }
.wp-badge {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--wp-teal); border: 1px solid rgba(58,168,154,.5); border-radius: 999px; padding: 3px 9px; background: rgba(58,168,154,.08);
}
.wp-sect { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp-gold-deep); margin: 14px 0 8px; }
.wp-box { background: var(--wp-card-2); border: 1px solid var(--wp-line-soft); border-radius: 12px; padding: 12px 14px; }
.wp-help { margin: 8px 0 0; font-family: 'EB Garamond', serif; font-style: italic; font-size: .86rem; color: var(--wp-dim); }
.wp-fine { margin: 12px 0 0; font-family: 'Manrope', sans-serif; font-size: .74rem; color: var(--wp-dim); line-height: 1.45; }
.wp-fine b { color: var(--wp-muted); }
.wp-icons { display: flex; align-items: center; gap: 4px; }
.wp-icon { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--wp-gold-deep); border: 1px solid transparent; }
.wp-icon:hover { color: var(--wp-gold); border-color: var(--wp-line-soft); background: rgba(242,204,106,.06); }
.wp-mini {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 7px; border: 1px solid var(--wp-line); color: var(--wp-muted); display: inline-block;
}
.wp-mini:hover { color: var(--wp-ink); border-color: var(--wp-gold); }
.wp-btn {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 11px 22px; border-radius: 9px; white-space: nowrap; transition: filter .12s, transform .12s;
}
.wp-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.wp-btn-gold { color: #1a1206; background: linear-gradient(180deg, #f5d98a, #c9a24a); border: 1px solid rgba(255,230,160,.6); box-shadow: 0 6px 18px -8px rgba(242,204,106,.6); }
.wp-btn-teal { color: #e9fffb; background: linear-gradient(180deg, #2f8f83, #1f6a61); border: 1px solid rgba(120,220,205,.45); }
.wp-btn.is-done { background: var(--wp-green); border-color: var(--wp-green); color: #10240e; }
.wp-search {
  width: 100%; background: var(--wp-card-2); border: 1px solid var(--wp-line); color: var(--wp-ink);
  padding: 8px 11px; border-radius: 9px; font-family: 'EB Garamond', serif; font-size: .98rem; outline: 0;
}
.wp-search:focus { border-color: var(--wp-gold); box-shadow: 0 0 0 3px rgba(242,204,106,.16); }
.wp-select { background: var(--wp-card-2); border: 1px solid var(--wp-line); color: var(--wp-ink); padding: 6px 8px; border-radius: 7px; font-family: 'Manrope', sans-serif; font-size: .82rem; }
.wp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.wp-chip {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--wp-line-soft); color: var(--wp-muted);
  background: rgba(255,255,255,.02); display: inline-flex; align-items: center; gap: 5px;
}
.wp-chip:hover { color: var(--wp-ink); border-color: var(--wp-line); }
.wp-chip.is-active { color: #1a1206; background: var(--wp-gold); border-color: var(--wp-gold); }
.wp-chip img { width: 14px; height: 14px; }
.wp-loading { display: flex; align-items: center; gap: 10px; padding: 30px 0; color: var(--wp-muted); font-family: 'EB Garamond', serif; font-style: italic; }
.wp-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--wp-line); border-top-color: var(--wp-gold); animation: wp-spin .9s linear infinite; }
@keyframes wp-spin { to { transform: rotate(360deg); } }

/* ============================ TAB BAR ============================ */
.wp-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--wp-card); border: 1px solid var(--wp-line); border-radius: var(--wp-radius); padding: 8px 10px;
  position: sticky; top: calc(var(--nav-h, 72px) + 6px); z-index: 6; backdrop-filter: blur(6px);
}
.wp-tabs { display: flex; gap: 6px; }
.wp-tab {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 9px; color: var(--wp-muted); border: 1px solid transparent;
}
.wp-tab:hover { color: var(--wp-ink); }
.wp-tab.is-active { color: #1a1206; background: linear-gradient(180deg, #f5d98a, #c9a24a); border-color: rgba(255,230,160,.6); box-shadow: 0 6px 16px -8px rgba(242,204,106,.7); }

/* ============================ BANNER ============================ */
.wp-banner {
  position: relative; overflow: hidden; text-align: center;
  min-height: 236px; display: flex; flex-direction: column; justify-content: center;
  padding: 30px 20px 40px;
  background:
    radial-gradient(ellipse 60% 120% at 50% 120%, rgba(242,204,106,.16), transparent 60%),
    linear-gradient(180deg, rgba(10,19,38,.35), rgba(6,10,20,.25) 55%, rgba(6,10,20,.55)),
    #070b16 url('/pets/assets/ui/banner-herd-3.webp') center bottom / cover no-repeat;
  border: 1px solid var(--wp-line); border-radius: var(--wp-radius);
  box-shadow: inset 0 -1px 0 rgba(242,204,106,.35), 0 10px 30px -18px #000;
}
.wp-banner-eyebrow, .wp-banner-title, .wp-banner-sub { position: relative; z-index: 1; }
@media (max-width: 640px) {
  .wp-banner { min-height: 200px; background-size: auto 118%, auto, auto; background-position: 22% 60%, 0 0, 0 0; background-image: linear-gradient(180deg, rgba(6,10,20,.72), rgba(6,10,20,.62) 55%, rgba(6,10,20,.82)), radial-gradient(ellipse 60% 120% at 50% 120%, rgba(242,204,106,.14), transparent 60%), url('/pets/assets/ui/banner-herd-3.webp'); background-size: auto, auto, auto 118%; background-position: 0 0, 0 0, 22% 60%; }
}
.wp-banner-eyebrow { font-family: 'IM Fell English SC', serif; font-size: .82rem; letter-spacing: .34em; color: var(--wp-gold-deep); text-transform: uppercase; }
.wp-banner-title {
  margin: 6px 0 8px; font-family: 'Cinzel Decorative', 'Cinzel', serif; font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 2.9rem); line-height: 1.05; letter-spacing: .05em;
  color: var(--wp-gold); text-shadow: 0 0 24px rgba(242,204,106,.35), 0 4px 18px rgba(0,0,0,.7);
}
.wp-banner-sub { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--wp-muted); }
.wp-banner-ember { position: absolute; bottom: 24px; width: 3px; height: 12px; border-radius: 2px; background: var(--wp-gold); box-shadow: 0 0 10px 2px rgba(242,204,106,.7); opacity: .8; animation: wp-ember 2.4s ease-in-out infinite; }
@keyframes wp-ember { 0%, 100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(-6px); opacity: 1; } }

/* ============================ COLUMNS ============================ */
.wp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.wp-colL, .wp-colR { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wp-bottom { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); gap: 14px; align-items: start; }

/* ============================ WAR PET CARD ============================ */
.wp-petpick { position: relative; margin-bottom: 12px; }
.wp-select-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  background: var(--wp-card-2); border: 1px solid var(--wp-line); border-radius: 10px; padding: 7px 10px;
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.02rem; color: #f1ead4;
}
.wp-select-btn:hover, .wp-select-btn.is-open { border-color: var(--wp-gold); }
.wp-select-btn img { width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--wp-line-soft); object-fit: cover; background: #05080f; }
.wp-select-btn span:not(.wp-select-caret) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-select-caret { color: var(--wp-gold-deep); font-size: .9rem; transition: transform .15s; }
.wp-select-btn.is-open .wp-select-caret { transform: rotate(180deg); }
.wp-petmenu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  background: var(--wp-card); border: 1px solid var(--wp-line); border-radius: 12px; padding: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,.7);
}
.wp-petsel { display: grid; grid-template-columns: 148px 1fr; gap: 16px; align-items: start; }
.wp-petsel-portrait { position: relative; width: 148px; height: 148px; border-radius: 12px; overflow: hidden; border: 1px solid var(--wp-line); background: #05080f; }
.wp-petsel-portrait img { width: 100%; height: 100%; object-fit: cover; }
.wp-petsel-tags { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; padding: 14px 4px 5px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); }
.wp-tag {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; border: 1px solid var(--wp-line-soft); color: var(--wp-muted); display: inline-flex; align-items: center; gap: 5px;
}
.wp-petsel-tags .wp-tag { padding: 2px 6px; font-size: .58rem; background: rgba(0,0,0,.55); }
.wp-tag img { width: 14px; height: 14px; }
.wp-tag.is-phys { color: var(--wp-phys); border-color: rgba(240,163,94,.4); }
.wp-tag.is-magic { color: var(--wp-magic); border-color: rgba(139,184,255,.4); }
.wp-tag.is-season { color: var(--wp-dim); }
.wp-petsel-rec { margin: 10px 0 0; padding: 8px 12px; border: 1px dashed var(--wp-line-soft); border-radius: 10px; display: flex; flex-direction: column; gap: 5px; }
.wp-rec-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.wp-rec-lab { font-family: 'IM Fell English SC', serif; font-size: .74rem; letter-spacing: .12em; color: var(--wp-gold-deep); text-transform: uppercase; margin-right: 4px; }
.wp-tag.is-rec { color: var(--wp-teal); border-color: rgba(58,168,154,.5); }
.wp-rec-hero { font-family: 'EB Garamond', serif; font-size: .95rem; color: var(--wp-ink); }
.wp-rec-hero + .wp-rec-hero::before { content: '· '; color: var(--wp-dim); }
.wp-rec-none { font-family: 'EB Garamond', serif; font-style: italic; font-size: .88rem; color: var(--wp-dim); }
.wp-tools { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.wp-pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; max-height: min(420px, 56vh); overflow-y: auto; padding: 2px; scrollbar-width: thin; scrollbar-color: rgba(201,162,74,.5) transparent; }
.wp-pet {
  position: relative; border-radius: 10px; overflow: hidden; padding: 0;
  display: flex; flex-direction: column;
  border: 1px solid var(--wp-line-soft); background: var(--wp-card-2);
  transition: transform .12s, border-color .12s, box-shadow .12s;
}
.wp-pet img.wp-pet-ic { width: 100%; aspect-ratio: 1; object-fit: cover; }
.wp-pet:hover { transform: translateY(-1px); border-color: var(--wp-line); }
.wp-pet.is-active { border-color: var(--wp-gold); box-shadow: 0 0 0 2px rgba(242,204,106,.35), 0 6px 18px rgba(0,0,0,.5); }
.wp-pet.is-active .wp-pet-name { color: var(--wp-gold); }
.wp-pet-name {
  display: flex; align-items: center; justify-content: center; min-height: 2.3em; padding: 3px 3px 4px;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .6rem; line-height: 1.1; text-align: center; color: #dfe6f3; background: rgba(0,0,0,.45);
}
.wp-pet-unit { position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; filter: drop-shadow(0 1px 2px #000); }

/* attributes: icon · name · slider · number — one line each, the pet's two strongest are gold */
.wp-attrs { display: flex; flex-direction: column; gap: 5px; padding-top: 2px; }
.wp-attr { display: grid; grid-template-columns: 22px 112px minmax(0, 1fr) 70px; gap: 8px; align-items: center; }
.wp-attr img { width: 22px; height: 22px; }
.wp-attr-name { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .8rem; color: var(--wp-ink); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-attr.is-main .wp-attr-name { color: var(--wp-gold); }
.wp-attr-usage { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: .62rem; color: var(--wp-dim); margin-left: 5px; }
.wp-attr-usage.is-full { color: var(--wp-red); }
.wp-attr input[type=number] {
  width: 70px; background: var(--wp-card-2); border: 1px solid var(--wp-line); color: var(--wp-gold);
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: .95rem; padding: 6px 8px; border-radius: 8px; text-align: right; outline: 0;
}
.wp-attr input[type=number]:focus { border-color: var(--wp-gold); box-shadow: 0 0 0 3px rgba(242,204,106,.16); }
.wp-attr-range { -webkit-appearance: none; appearance: none; width: 100%; height: 16px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; cursor: pointer; }
.wp-attr-range:disabled { opacity: .35; cursor: default; }
.wp-attr-range::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--wp-gold-deep) 0, var(--wp-gold) var(--fill, 0%), rgba(255,255,255,.08) var(--fill, 0%)); }
.wp-attr-range::-moz-range-track { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); }
.wp-attr-range::-moz-range-progress { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--wp-gold-deep), var(--wp-gold)); }
.wp-attr-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -4.5px; border-radius: 50%; background: var(--wp-gold); border: 2px solid #1a1206; box-shadow: 0 0 0 2px rgba(242,204,106,.35); }
.wp-attr-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--wp-gold); border: 2px solid #1a1206; box-shadow: 0 0 0 2px rgba(242,204,106,.35); }
.wp-attr-range:focus-visible { outline: none; }
.wp-attr-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(242,204,106,.6); }
.wp-attr-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.wp-attr-tools-lab { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: .74rem; color: var(--wp-dim); margin-right: 4px; }

/* ============================ SKILLS CARD ============================ */
.wp-slot-usage { font-family: 'Manrope', sans-serif; font-size: .78rem; color: var(--wp-muted); margin-right: 6px; }
.wp-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 18px; padding: 6px 10px; }
.wp-slot {
  position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer;
  border: 0; background: var(--wp-card-2);
  clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 10%);
  transition: border-color .12s, filter .12s;
}
.wp-slot::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1.5px var(--wp-line); clip-path: inherit; }
.wp-slot:not(.is-filled)::before { content: '+'; position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Cinzel', serif; font-weight: 700; font-size: 2rem; color: rgba(201,162,74,.45); pointer-events: none; }
.wp-slot:not(.is-filled):hover::before { color: var(--wp-gold); }
.wp-slot.is-noted::after { box-shadow: inset 0 0 0 1.5px rgba(139,184,255,.7); }
.wp-slot:hover::after { box-shadow: inset 0 0 0 2px var(--wp-gold); }
.wp-slot.is-filled { background: #05080f; }
.wp-slot.is-filled img.wp-slot-ic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wp-slot.is-inactive img.wp-slot-ic { filter: grayscale(1) brightness(.5); }
.wp-slot-attr { position: absolute; top: 5px; left: 5px; width: 22px; height: 22px; filter: drop-shadow(0 1px 2px #000); }
.wp-slot-x { position: absolute; top: 4px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: .8rem; line-height: 22px; text-align: center; opacity: 0; }
.wp-slot.is-inactive .wp-slot-x, .wp-slot.is-noted .wp-slot-x { right: 30px; }
.wp-slot-swap { position: absolute; top: 30px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: .85rem; line-height: 22px; text-align: center; opacity: 0; }
.wp-slot:hover .wp-slot-swap, .wp-slot:focus-within .wp-slot-swap, .wp-slot:hover .wp-slot-x, .wp-slot:focus-within .wp-slot-x { opacity: 1; }
.wp-slot.is-dragging { opacity: .45; }
.wp-slot.is-dropzone::after { box-shadow: inset 0 0 0 3px var(--wp-gold); }
.wp-slot:focus-visible::after { box-shadow: inset 0 0 0 2px var(--wp-gold); }
.wp-slot:hover .wp-slot-x { opacity: 1; }
.wp-stars { position: absolute; left: 0; right: 0; bottom: 3px; display: flex; justify-content: center; gap: 1px; padding-top: 12px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.7)); }
.wp-star { width: 18px; height: 18px; border-radius: 50%; padding: 0; background: url('/pets/assets/ui/petdevelopmainskillstar1.webp') center / contain no-repeat; opacity: .4; filter: drop-shadow(0 1px 1px #000); }
.wp-star.is-on { opacity: 1; background-image: url('/pets/assets/ui/petdevelopmainskillstar2.webp'); }
.wp-star:hover { transform: scale(1.15); }
.wp-slot-warn { position: absolute; top: 5px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--wp-red); color: #1a0a06; font-weight: 800; font-size: .72rem; line-height: 20px; text-align: center; font-family: 'Manrope', sans-serif; cursor: help; }
.wp-slot-warn.is-note { background: var(--wp-blue); color: #08142a; font-family: 'EB Garamond', serif; font-style: italic; font-weight: 700; }

/* ============================ SCORE CARD ============================ */

.wp-combat { padding: 10px 12px 12px; }
.wp-combat-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.wp-combat-lab { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp-muted); }
.wp-combat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.wp-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wp-field > span { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .72rem; color: var(--wp-ink); }
.wp-field .wp-select { width: 100%; padding: 8px 9px; font-size: .84rem; }
.wp-combat .wp-help { margin-top: 8px; }
.wp-lvbtn i { font-style: normal; font-size: .62rem; letter-spacing: -1px; margin-left: 2px; }
.wp-skillcard-empty { font-family: 'EB Garamond', serif; font-style: italic; color: var(--wp-dim); padding: 18px 6px; text-align: center; }
.wp-skillcard-head { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; margin-bottom: 10px; }
.wp-skillcard-ic { width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--wp-line); object-fit: cover; background: #05080f; }
.wp-skillcard-name { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.05rem; color: #f1ead4; margin: 0; }
.wp-skillcard-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.wp-skillcard-levels { display: flex; gap: 4px; margin: 0 0 10px; }
.wp-lvbtn { flex: 1; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .72rem; padding: 6px 0; border-radius: 6px; border: 1px solid var(--wp-line-soft); color: var(--wp-muted); }
.wp-lvbtn.is-on { color: #1a1206; background: var(--wp-gold); border-color: var(--wp-gold); }
.wp-skillcard-desc { font-family: 'EB Garamond', serif; font-size: 1rem; line-height: 1.45; color: var(--wp-ink); }
.wp-skillcard-desc b { color: var(--wp-gold); font-weight: 700; }
.wp-skillcard-desc .wp-num { color: var(--wp-gold); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .92em; }
.wp-skillcard-desc .wp-num small { color: var(--wp-dim); font-weight: 500; }
.wp-skillcard-desc abbr { text-decoration: underline dotted rgba(242,204,106,.6); cursor: help; }
.wp-skillcard-desc .wp-attr-ic { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 2px; background-size: contain; background-repeat: no-repeat; }
.wp-skillcard-foot { margin-top: 8px; font-family: 'Manrope', sans-serif; font-size: .74rem; color: var(--wp-dim); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.wp-skillcard-lvls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--wp-line-soft); }
.wp-skillcard-lvls-h { font-family: 'IM Fell English SC', serif; font-size: .74rem; letter-spacing: .12em; color: var(--wp-gold-deep); text-transform: uppercase; margin-right: 4px; }
.wp-lvl { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .78rem; color: var(--wp-muted); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--wp-line-soft); }
.wp-lvl i { color: var(--wp-gold-deep); font-style: normal; font-size: .62rem; margin-right: 5px; letter-spacing: -1px; }
.wp-lvl.is-on { color: var(--wp-gold); border-color: var(--wp-line); }
.wp-skillcard-warn { margin-top: 8px; font-family: 'EB Garamond', serif; font-size: .92rem; color: var(--wp-red); }
.wp-skillcard-note { margin-top: 8px; font-family: 'EB Garamond', serif; font-size: .92rem; color: var(--wp-blue); }

.wp-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.wp-actions-note { flex: 1 1 180px; font-family: 'Manrope', sans-serif; font-size: .72rem; color: var(--wp-dim); line-height: 1.35; }

/* ============================ SCORE ============================ */
.wp-score { background: linear-gradient(135deg, rgba(20,16,8,.85), rgba(9,14,28,.85)); border: 1px solid var(--wp-line); border-radius: 12px; padding: 14px 16px; }
.wp-score-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.wp-score-num { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 2rem; color: var(--wp-gold); letter-spacing: -.01em; line-height: 1; }
.wp-score-num.is-def { color: var(--wp-green); margin-left: 10px; }
.wp-score-lab { font-family: 'EB Garamond', serif; font-size: .95rem; color: var(--wp-muted); }
.wp-score-q { margin-left: auto; align-self: center; }
.wp-score-sub { margin-top: 6px; font-family: 'Manrope', sans-serif; font-size: .74rem; color: var(--wp-dim); }
.wp-cost { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--wp-line-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-family: 'Manrope', sans-serif; font-size: .82rem; color: var(--wp-muted); }
.wp-cost-lab { font-weight: 800; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp-gold-deep); }
.wp-cost-item b { color: var(--wp-ink); font-weight: 800; }
.wp-cost-item small { color: var(--wp-dim); font-size: .72rem; }
.wp-cost .wp-q { margin-left: 2px; }
.wp-skillrow-cost { margin-top: 2px; }
.wp-td-score b { color: var(--wp-gold); }
.wp-td-score small { display: block; font-size: .68rem; color: var(--wp-dim); font-weight: 500; }

/* ============================ COLLAPSIBLE SECTIONS ============================ */
.wp-details { margin-top: 12px; border: 1px solid var(--wp-line-soft); border-radius: 12px; background: var(--wp-card-2); }
.wp-details > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 14px; user-select: none;
  font-family: 'Manrope', sans-serif;
}
.wp-details > summary::-webkit-details-marker { display: none; }
.wp-details > summary::before { content: '▸'; color: var(--wp-gold-deep); font-size: .85rem; width: 12px; flex: 0 0 auto; transition: transform .15s; }
.wp-details[open] > summary::before { transform: rotate(90deg); }
.wp-details > summary:hover .wp-details-t { color: var(--wp-gold); }
.wp-details-t { font-weight: 800; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp-gold-deep); flex: 0 0 auto; }
.wp-details-sum { color: var(--wp-dim); font-size: .78rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: auto; }
.wp-details[open] > summary { border-bottom: 1px dashed var(--wp-line-soft); }
.wp-details-body { padding: 12px 14px 14px; }
.wp-details-body .wp-fine { margin-top: 10px; }
.wp-card.wp-details { margin-top: 0; background: var(--wp-card); border-color: var(--wp-line); padding: 0; }
.wp-card.wp-details > summary { padding: 14px 16px; }
.wp-card.wp-details .wp-details-t { font-family: 'Cinzel', serif; font-size: .95rem; letter-spacing: .08em; color: #f1ead4; text-transform: none; font-weight: 700; }
.wp-card.wp-details > summary:hover .wp-details-t { color: var(--wp-gold); }
.wp-card.wp-details .wp-details-body { padding: 12px 16px 16px; }

/* ============================ STATS + SETTINGS ============================ */
.wp-stats { font-family: 'Manrope', sans-serif; font-size: .88rem; }
.wp-stats-top { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding-bottom: 6px; }
.wp-stats-top .wp-summary-attrs { margin: 0; gap: 8px; }
.wp-stats-counts { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 600; color: var(--wp-muted); }
.wp-stats-counts b { color: var(--wp-gold); font-weight: 800; }
.wp-stats-counts b.is-warn { color: var(--wp-red); }
.wp-stats-crit { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; padding: 8px 0; border-top: 1px solid var(--wp-line-soft); border-bottom: 1px solid var(--wp-line-soft); font-weight: 700; }
.wp-stats-crit .wp-stat-val { color: var(--wp-blue); text-align: left; }
.wp-stats-crit small { color: var(--wp-dim); font-weight: 500; }
.wp-stats-h { text-align: center; font-weight: 700; font-size: .92rem; color: var(--wp-blue); margin: 12px 0 6px; position: relative; }
.wp-stats-h::before, .wp-stats-h::after { content: ''; position: absolute; top: 50%; width: calc(50% - 60px); border-top: 1px solid var(--wp-line-soft); }
.wp-stats-h::before { left: 0; } .wp-stats-h::after { right: 0; }
.wp-stats-h.is-red { color: var(--wp-red); }
.wp-stat-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0 2px; font-weight: 700; }
.wp-stat-name { color: var(--wp-ink); display: inline-flex; align-items: center; gap: 8px; }
.wp-stat-ic { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--wp-line-soft); object-fit: cover; }
.wp-stat-val { color: var(--wp-gold); white-space: nowrap; text-align: right; }
.wp-stat-val small { color: var(--wp-dim); font-weight: 500; font-size: .74rem; }
.wp-stat-val .is-def { color: var(--wp-green); }
.wp-stat-row.is-dmg .wp-stat-val b { color: var(--wp-red); font-weight: 800; }
.wp-stat-sub { display: flex; flex-direction: column; gap: 2px; padding: 0 0 6px 32px; font-size: .8rem; font-weight: 500; color: var(--wp-muted); }
.wp-stat-sub b { color: var(--wp-gold); font-weight: 700; }
.wp-stat-sub i { color: var(--wp-dim); }
.wp-stat-sub small { color: var(--wp-dim); }
.wp-stat-sub .wp-tag { align-self: flex-start; }
.wp-stats-total { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; padding: 6px 0 0; font-weight: 600; color: var(--wp-muted); }
.wp-stats-total > div:last-child { grid-column: 1 / -1; }
.wp-stats-total b { color: var(--wp-ink); font-weight: 800; font-size: 1.05rem; }
.wp-stats-total b.is-red { color: var(--wp-red); }
.wp-stats-total b.is-gold { color: var(--wp-gold); }
.wp-stats-total b.is-def { color: var(--wp-green); }
.wp-stats-total small { color: var(--wp-dim); font-weight: 500; margin-left: 4px; }
.wp-summary-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 28px; }
.wp-summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--wp-line-soft); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .88rem; }
.wp-summary-row:last-child { border-bottom: 0; }
.wp-summary-row b { color: var(--wp-gold); font-weight: 800; white-space: nowrap; }
.wp-summary-row .wp-sub { color: var(--wp-dim); font-weight: 500; font-size: .78rem; }
.wp-summary-row.is-hero b { color: var(--wp-red); font-size: 1rem; }
.wp-summary-row.is-muted { opacity: .6; }
.wp-summary-h { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: .68rem; letter-spacing: .14em; color: var(--wp-gold-deep); text-transform: uppercase; margin: 8px 0 4px; }
.wp-summary-attrs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: 6px; }
.wp-summary-attr { display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .72rem; color: var(--wp-muted); }
.wp-summary-attr img { width: 24px; height: 24px; }
.wp-summary-attr.is-full { color: var(--wp-red); }
.wp-summary-empty { font-family: 'EB Garamond', serif; font-style: italic; color: var(--wp-dim); padding: 8px 0; }
.wp-setting { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--wp-line-soft); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .88rem; }
.wp-setting:last-child { border-bottom: 0; }
.wp-setting > span:nth-child(2) { flex: 1; }
.wp-setting-march { flex-wrap: wrap; }
.wp-march { flex: 0 0 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.wp-march label { display: flex; flex-direction: column; gap: 3px; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--wp-dim); }
.wp-march select { width: 100%; }
.wp-setting input[type=checkbox] { accent-color: var(--wp-gold-deep); width: 16px; height: 16px; }
.wp-q { width: 20px; height: 20px; border-radius: 5px; background: rgba(201,162,74,.22); border: 1px solid var(--wp-line); color: var(--wp-gold); font-size: .72rem; font-weight: 800; display: grid; place-items: center; cursor: help; flex: 0 0 auto; }

/* ============================ ACCOUNT BUILDS ============================ */
.wp-btabs { display: flex; gap: 4px; }
.wp-btab { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; color: var(--wp-muted); border: 1px solid var(--wp-line-soft); }
.wp-btab.is-active { color: #1a1206; background: var(--wp-gold); border-color: var(--wp-gold); }
.wp-builds-actions { display: flex; align-items: center; gap: 8px; }
.wp-builds-msg { font-family: 'Manrope', sans-serif; font-size: .78rem; color: var(--wp-green); }
.wp-builds { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 8px; }
.wp-build { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; background: var(--wp-card-2); border: 1px solid var(--wp-line-soft); border-radius: 10px; padding: 8px 10px; }
.wp-build.is-active { border-color: rgba(58,168,154,.6); }
.wp-build.is-loaded { box-shadow: inset 0 0 0 1px var(--wp-gold); }
.wp-build.is-empty { opacity: .6; }
.wp-build-ic { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--wp-line-soft); object-fit: cover; }
.wp-build-name { font-family: 'EB Garamond', serif; font-weight: 500; font-size: 1rem; color: var(--wp-ink); }
.wp-build-sub { font-family: 'Manrope', sans-serif; font-size: .74rem; color: var(--wp-dim); margin-top: 2px; }
.wp-build-sub b { color: var(--wp-gold); }
.wp-build-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.wp-build-actions .wp-mini { padding: 4px 8px; }
.wp-mini.is-gold { color: var(--wp-gold); border-color: var(--wp-line); }
.wp-mini.is-danger:hover { color: var(--wp-red); border-color: var(--wp-red); }
.wp-builds .wp-summary-h { grid-column: 1 / -1; }
@media (max-width: 640px) { .wp-builds { grid-template-columns: 1fr; } .wp-builds-actions { width: 100%; justify-content: flex-end; } }

/* ============================ TOP PETS ============================ */
.wp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.wp-toolbar .wp-search { width: min(320px, 100%); }
.wp-sortlab { display: flex; align-items: center; gap: 8px; font-family: 'EB Garamond', serif; color: var(--wp-muted); }
.wp-table-wrap { overflow-x: auto; border: 1px solid var(--wp-line-soft); border-radius: 12px; background: var(--wp-card-2); }
.wp-table { width: 100%; border-collapse: collapse; font-family: 'Manrope', sans-serif; font-size: .84rem; }
.wp-table th { text-align: left; font-family: 'IM Fell English SC', serif; font-weight: 400; letter-spacing: .1em; color: var(--wp-gold-deep); padding: 10px; border-bottom: 1px solid var(--wp-line); white-space: nowrap; cursor: pointer; user-select: none; }
.wp-table th.is-sorted { color: var(--wp-gold); }
.wp-table td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.04); white-space: nowrap; }
.wp-table tr:hover td { background: rgba(242,204,106,.05); }
.wp-table td.wp-td-num { text-align: right; font-variant-numeric: tabular-nums; }
.wp-table td.is-top { color: var(--wp-gold); font-weight: 700; }
.wp-table td.is-low { color: var(--wp-dim); }
.wp-table .wp-td-pet { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.wp-table .wp-td-pet img { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--wp-line-soft); }
.wp-table .wp-td-pet b { font-family: 'EB Garamond', serif; font-weight: 500; font-size: 1rem; color: var(--wp-ink); }
.wp-table th img { width: 18px; height: 18px; display: inline-block; vertical-align: -4px; margin-right: 4px; }

/* ============================ LIBRARY / PICKER ============================ */
.wp-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.wp-skillrow {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center;
  background: var(--wp-card-2); border: 1px solid var(--wp-line-soft); border-radius: 10px; padding: 8px 10px; text-align: left; width: 100%;
  transition: border-color .12s, background .12s;
}
.wp-skillrow:hover { border-color: var(--wp-gold); background: rgba(242,204,106,.05); }
.wp-skillrow.is-disabled { opacity: .45; }
.wp-skillrow img.wp-skillrow-ic { width: 48px; height: 48px; border-radius: 8px; border: 1px solid var(--wp-line-soft); object-fit: cover; background: #05080f; }
.wp-skillrow-name { font-family: 'EB Garamond', serif; font-weight: 500; font-size: 1rem; color: var(--wp-ink); }
.wp-skillrow-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.wp-skillrow-en { font-family: 'Manrope', sans-serif; font-size: .68rem; color: var(--wp-dim); margin-left: 4px; }
.wp-skillrow-why { font-family: 'Manrope', sans-serif; font-size: .7rem; color: var(--wp-red); margin-top: 3px; }
.wp-skillrow-val { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .84rem; color: var(--wp-gold); text-align: right; }
.wp-skillrow-val small { display: block; color: var(--wp-dim); font-weight: 500; font-size: .68rem; }
.wp-lib-detail { margin-top: 6px; }
.wp-picker-group { grid-column: 1 / -1; font-family: 'IM Fell English SC', serif; font-size: .8rem; letter-spacing: .16em; color: var(--wp-gold-deep); text-transform: uppercase; margin: 8px 0 0; }

.wp-picker { margin: auto; padding: 0; border: 0; background: transparent; max-width: min(760px, 96vw); width: 100%; }
.wp-picker::backdrop { background: rgba(3, 6, 12, .78); backdrop-filter: blur(2px); }
.wp-picker-card { background: var(--wp-card); border: 1px solid var(--wp-line); border-radius: var(--wp-radius); padding: 14px; max-height: 86vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.7); }
.wp-picker-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.wp-picker-title { margin: 0; font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.05rem; color: var(--wp-gold); }
.wp-picker-close { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--wp-line); color: var(--wp-muted); }
.wp-picker-close:hover { color: var(--wp-ink); border-color: var(--wp-gold); }
.wp-picker-tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 8px; }
.wp-picker-tools .wp-search { width: min(260px, 100%); }
.wp-picker-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow-y: auto; min-height: 0; padding-right: 2px; scrollbar-width: thin; scrollbar-color: rgba(201,162,74,.5) transparent; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1000px) {
  .wp-cols, .wp-bottom { grid-template-columns: 1fr; }
  .wp-summary-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wp-bar { flex-direction: column; align-items: stretch; }
  .wp-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .wp-tab { padding: 9px 6px; font-size: .68rem; letter-spacing: .06em; }
  .wp-attr { grid-template-columns: 20px 92px minmax(0, 1fr) 62px; gap: 6px; }
  .wp-attr-name { font-size: .72rem; }
  .wp-slots { grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 4px 0; }
  .wp-star { width: 14px; height: 14px; }
  .wp-combat-grid { grid-template-columns: 1fr; }
  .wp-details-sum { display: none; }
  .wp-stats-total { grid-template-columns: 1fr; }
  .wp-stat-sub { padding-left: 0; }
  .wp-bar { position: static; }
  .wp-skillrow { grid-template-columns: 40px 1fr auto; padding: 6px 8px; }
  .wp-skillrow img.wp-skillrow-ic { width: 40px; height: 40px; }
  .wp-skillrow-meta .wp-tag:nth-child(n+3) { display: none; }
  .wp-skillrow-val { font-size: .78rem; }
  .wp-picker-list { grid-template-columns: 1fr; }
  .wp-picker-tools .wp-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .wp-picker-tools .wp-chips::-webkit-scrollbar { display: none; }
  .wp-picker-tools .wp-chip { flex: 0 0 auto; }
  .wp-skillrow-val small { display: none; }
  .wp-skillrow-why { font-size: .66rem; }
  /* Top Pets: unit/damage columns are already visible as crests — hide them so the score sits next to the name */
  .wp-table th:nth-child(2), .wp-table td:nth-child(2), .wp-table th:nth-child(3), .wp-table td:nth-child(3) { display: none; }
  .wp-table .wp-td-pet b { white-space: normal; line-height: 1.1; font-size: .92rem; }
  .wp-table td { padding: 6px 8px; }
  .wp-petsel { grid-template-columns: 1fr; }
  .wp-petsel-portrait { width: 112px; height: 112px; margin: 0 auto; }
  .wp-pet-grid { max-height: 300px; }
}

/* ============================ COMPARE (two builds side by side) ============================ */
.wp-cmp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 16px; }
.wp-cmp-bar-l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wp-cmp-bar-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wp-cmp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 14px; }
.wp-cmp-side { border-top-width: 3px; }
.wp-cmp-side[data-side="a"] { border-top-color: rgba(139, 184, 255, .75); }
.wp-cmp-side[data-side="b"] { border-top-color: rgba(242, 204, 106, .85); }
.wp-cmp-tag { display: inline-flex; align-items: center; gap: 8px; }
.wp-cmp-tag i {
  font-style: normal; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: .82rem;
}
.wp-cmp-side[data-side="a"] .wp-cmp-tag i { background: rgba(139, 184, 255, .18); color: var(--wp-blue); border: 1px solid rgba(139, 184, 255, .4); }
.wp-cmp-side[data-side="b"] .wp-cmp-tag i { background: rgba(242, 204, 106, .18); color: var(--wp-gold); border: 1px solid var(--wp-line); }
.wp-cmp-tools { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.wp-cmp-tools .wp-mini { padding: 4px 9px; }
.wp-cmp-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 38%); gap: 8px; align-items: center; }
.wp-cmp-pick .wp-petpick { margin-bottom: 0; }
.wp-cmp-load { max-width: 100%; }
.wp-cmp-score {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; margin: 12px 0 2px; padding: 10px 13px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(20, 16, 8, .85), rgba(9, 14, 28, .85)); border: 1px solid var(--wp-line);
}
.wp-cmp-num { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.7rem; line-height: 1; color: var(--wp-gold); }
.wp-cmp-lab { font-family: 'EB Garamond', serif; font-size: .92rem; color: var(--wp-muted); }
.wp-cmp-chip { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: .72rem; padding: 2px 8px; border-radius: 999px; }
.wp-cmp-chip.is-up { color: #0f2a12; background: var(--wp-green); }
.wp-cmp-chip.is-down { color: #2a0f0a; background: var(--wp-red); }
.wp-cmp-sub { width: 100%; font-family: 'Manrope', sans-serif; font-size: .74rem; color: var(--wp-dim); }
.wp-cmp-score-empty { font-family: 'EB Garamond', serif; font-style: italic; color: var(--wp-dim); }
.wp-cmp-slots { padding: 8px 0 2px; gap: 10px; }
.wp-cmp-side .wp-details { margin-top: 10px; }

/* verdict */
.wp-cmp-verdict-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 4px; }
.wp-cmp-win { font-family: 'Cinzel Decorative', 'Cinzel', serif; font-weight: 900; font-size: 1.2rem; color: var(--wp-ink); }
.wp-cmp-win.is-a { color: var(--wp-blue); }
.wp-cmp-win.is-b { color: var(--wp-gold); }
.wp-cmp-win-d { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--wp-ink); }
.wp-cmp-win-sub { font-family: 'Manrope', sans-serif; font-size: .76rem; color: var(--wp-dim); }
.wp-cmp-extra { font-family: 'Manrope', sans-serif; font-size: .8rem; color: var(--wp-muted); margin-bottom: 10px; }
.wp-cmp-verdict .wp-help { margin-top: 8px; }
.wp-cmp-table { width: 100%; border-collapse: collapse; font-family: 'Manrope', sans-serif; font-size: .84rem; }
.wp-cmp-table th {
  text-align: right; padding: 7px 10px; white-space: nowrap;
  font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--wp-gold-deep);
  border-bottom: 1px solid var(--wp-line-soft);
}
.wp-cmp-table th.is-a { color: var(--wp-blue); }
.wp-cmp-table th.is-b { color: var(--wp-gold); }
.wp-cmp-table th:first-child { text-align: left; }
.wp-cmp-table td { padding: 6px 10px; text-align: right; color: var(--wp-muted); border-bottom: 1px dashed rgba(201, 162, 74, .12); white-space: nowrap; }
.wp-cmp-table tr:last-child td { border-bottom: 0; }
.wp-cmp-table td:first-child { text-align: left; color: var(--wp-ink); white-space: normal; }
.wp-cmp-table td.is-win { color: var(--wp-ink); font-weight: 800; }
.wp-cmp-table td.is-d { font-weight: 800; color: var(--wp-dim); }
.wp-cmp-table td.is-d.is-a { color: var(--wp-blue); }
.wp-cmp-table td.is-d.is-b { color: var(--wp-gold); }

/* skill by skill */
.wp-cmp-sk-table { table-layout: fixed; min-width: 440px; }
.wp-cmp-sk-table td:first-child, .wp-cmp-sk-table th:first-child { width: 43%; }
.wp-cmp-sk-table td:first-child { font-family: 'EB Garamond', serif; font-size: .95rem; line-height: 1.25; }
/* base.css sets `img { display: block }` — the icon has to be inline to sit next to the name */
.wp-cmp-sk-n img { display: inline-block; width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--wp-line-soft); vertical-align: -8px; margin-right: 8px; }
.wp-cmp-sk-n small { color: var(--wp-dim); font-family: 'Manrope', sans-serif; font-size: .7rem; }
.wp-cmp-sk-v b { display: block; color: var(--wp-ink); font-weight: 800; }
.wp-cmp-sk-v small { color: var(--wp-dim); font-size: .68rem; }
.wp-cmp-sk-v.is-none { color: var(--wp-dim); }
.wp-cmp-sk-v.is-off b { color: var(--wp-dim); text-decoration: line-through; }

@media (max-width: 1000px) {
  .wp-cmp-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wp-tabs { grid-template-columns: repeat(2, 1fr); }
  .wp-cmp-pick { grid-template-columns: 1fr; }
  .wp-cmp-bar-r { width: 100%; justify-content: flex-end; }
  .wp-cmp-num { font-size: 1.4rem; }
  .wp-cmp-table { font-size: .78rem; table-layout: fixed; }
  .wp-cmp-table td, .wp-cmp-table th { padding: 5px 6px; white-space: normal; }
  .wp-cmp-table th { font-size: .58rem; letter-spacing: .04em; }
  .wp-cmp-th-pet { display: none; }
  .wp-cmp-verdict .wp-cmp-table td:first-child, .wp-cmp-verdict .wp-cmp-table th:first-child { width: 37%; }
  .wp-cmp-sk-table { min-width: 0; }
  .wp-cmp-sk-table td:first-child, .wp-cmp-sk-table th:first-child { width: 40%; }
  .wp-cmp-sk-n img { width: 22px; height: 22px; vertical-align: -6px; margin-right: 5px; }
}
