/* REUSE: none - the look follows beastmaster.io/forever/all (Phil, 21 Nov 2026: "same layout/design"). */
:root {
  /* the site's own first look (Phil, 21 Nov 2026: "I want the left screenshot colors in gray, not in brown"): these grey
     values are the design. Newer parts (the Hunter page) use the extra tokens, all in the same grey set. */
  --bg: #0e1517; --panel: #171614; --card: #22201d; --art: #2a2723; --line: #34302a; --line2: #3d3a33;
  --text: #ece7de; --dim: #a9a39a; --dim2: #8d877e;
  --gold: #f6c24b; --gold-bg: #3b2f10; --blue: #6fb8ea; --blue-line: #2f5d7a; --blue-bg: #14222b; --link: #4aa3df;
  --deep: #121110; --card2: #2a2824; --text2: #d8d2c8; --input: #121a1c; --blue-soft: #8fcdf2; --blue-line2: #4f8db5;
  --shadow: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 520px at 50% -8%, #1d3a44 0%, rgba(14,21,23,0) 62%), var(--bg);
  color: var(--text); font: 15px/1.45 Inter, system-ui, sans-serif; min-height: 100vh;
}
a { color: var(--link); text-decoration: none; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1520px; margin: 0 auto; padding: 0 16px; }

.top { border-bottom: 1px solid #23302f; background: rgba(10,16,18,.85); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(6px); }
.top-in { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { color: var(--text); font-family: Cinzel, serif; font-size: 18px; letter-spacing: 1px; white-space: nowrap; }
.brand b { font-weight: 700; } .brand span { color: var(--dim); font-size: 13px; margin-left: 6px; }
.top-search { display: flex; align-items: center; gap: 8px; background: #121a1c; border: 1px solid #263234; border-radius: 8px; padding: 0 12px; height: 36px; width: min(420px, 100%); color: var(--dim); }
.top-search input { background: none; border: 0; outline: 0; color: var(--text); width: 100%; font: inherit; }
/* seven top bar links (Hunter added 21 Nov 2026): the search box shrinks instead of pushing past the screen edge */
@media (max-width: 900px) { .top-in { gap: 12px; } .topnav a { padding: 6px 6px; } .top-search { min-width: 0; flex: 1 1 110px; } }

.hero { padding: 34px 0 30px; border-bottom: 1px solid #1f2b2c; }
.crumbs { color: var(--dim); font-size: 13px; margin-bottom: 14px; } .crumbs a { color: var(--dim); } .crumbs b { color: var(--text); font-weight: 500; }
h1 { font-family: Cinzel, serif; font-weight: 600; font-size: clamp(30px, 4vw, 44px); letter-spacing: 1.5px; margin: 0;
  background: linear-gradient(180deg, #f3efe6 30%, #b9c9cc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--dim); margin: 6px 0 0; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0 18px; padding: 8px;
  background: rgba(22,21,19,.82); border: 1px solid #2a2824; border-radius: 10px; }
.grow { flex: 1; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; background: #1a1917; border: 1px solid var(--line2);
  border-radius: 8px; color: var(--text); font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #57524a; } .btn i { font-style: normal; color: var(--dim); font-size: 13px; }
.btn.on { border-color: #5b8db0; background: #172430; }
.newbtn { color: var(--gold); }
.newbtn.on { background: var(--gold-bg); border-color: #d7a326; box-shadow: 0 0 0 2px #38bdf8; }
.pill { background: #4d3d15; color: var(--gold); border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 600; }
.btn .n { background: #2b4a60; color: #cfe7f7; border-radius: 999px; font-size: 11px; padding: 0 6px; }
.search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; background: #1a1917; border: 1px solid var(--line2); border-radius: 8px; color: var(--dim); }
.search input { background: none; border: 0; outline: 0; color: var(--text); font: inherit; width: 150px; }

.dd { position: relative; }
.pop { position: absolute; top: 48px; left: 0; z-index: 30; min-width: 240px; max-height: 380px; overflow: auto; background: #1b1a18;
  border: 1px solid #45413a; border-radius: 10px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.55); }
.pop label { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.pop label:hover { background: #26241f; }
.pop label small { margin-left: auto; color: var(--dim2); padding-left: 14px; }
.pop label.zero { opacity: .4; }
.pop label[hidden] { display: none; }  /* the Find box hides labels; display:flex above would show them again */
.pop label.first { background: #26241f; outline: 1px solid var(--blue-line); }
.pop input[type=checkbox] { accent-color: #4aa3df; }
.pop .lv { display: flex; gap: 10px; align-items: center; padding: 10px; }
.pop .lv input { width: 70px; background: #121110; border: 1px solid var(--line2); color: var(--text); border-radius: 6px; padding: 6px; font: inherit; }
.pop .filter { width: 100%; background: #121110; border: 1px solid var(--line2); color: var(--text); border-radius: 6px; padding: 7px 9px; margin: 2px 0 6px; font: inherit; }

.bar { display: flex; align-items: center; justify-content: space-between; color: var(--dim); margin: 4px 2px 10px; }
.bar b { color: var(--text); }
.sort { display: flex; align-items: center; gap: 10px; }
.sort select { height: 44px; background: #1a1917; color: var(--text); border: 1px solid var(--line2); border-radius: 8px; padding: 0 12px; font: inherit; font-weight: 500; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.chips-row button { background: #3a3020; border: 1px solid #6b5626; color: #f3dca0; border-radius: 6px; font-size: 12px; padding: 3px 9px; cursor: pointer; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid { grid-template-columns: 1fr; } .search input { width: 100%; } .search { flex: 1; } .grow { display: none; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.art { position: relative; height: 360px; background: radial-gradient(70% 60% at 50% 55%, #312d28, var(--art)); }
.model { position: absolute; inset: 0; }
.model canvas { display: block; }
.ph { position: absolute; inset: 0; display: grid; place-items: center; color: #4b463e; font-family: Cinzel, serif; font-size: 22px; letter-spacing: 2px; pointer-events: none; }
.art.ready .ph { display: none; }
.badge-new { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--gold); color: #2a1f05; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 3px 8px; letter-spacing: .5px; }
.tags { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; gap: 6px; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; border: 1px solid; }
.role-offense { color: #f07b45; border-color: #8a3a1e; background: #2c1a12; }
.role-defense { color: #5aa8e6; border-color: #24506f; background: #13212c; }
.role-general { color: #c48ef0; border-color: #6a3f8f; background: #2a1c36; }
/* Rarity in the game's own colours (Phil, 21 Nov 2026): normal = Common white #ffffff, rare = Rare blue #0070dd (the
   item quality colour players read as "rare"), elite = the gold of the elite dragon around a target's portrait #ffd100. */
:root { --q-normal: #ffffff; --q-rare: #0070dd; --q-elite: #ffd100; }
.rar-normal { color: var(--q-normal); border-color: #6b675f; background: #1c1b19; }
.rar-rare { color: #4da3ff; border-color: var(--q-rare); background: #0c1a2b; }
.rar-elite { color: var(--q-elite); border-color: #a88a10; background: #2a2208; }
.card.r-normal { border-color: #57534b; }
.card.r-rare { border-color: var(--q-rare); box-shadow: 0 0 16px -6px var(--q-rare); }
.card.r-elite { border-color: var(--q-elite); box-shadow: 0 0 16px -6px var(--q-elite); }
.r-rare .art { background: radial-gradient(70% 60% at 50% 55%, #1c2c40, #161f2a); }
.r-elite .art { background: radial-gradient(70% 60% at 50% 55%, #3b3215, #262011); }
.r-normal .art-name h3, .detail.r-normal h2 { color: var(--q-normal); }
.r-rare .art-name h3, .detail.r-rare h2 { color: #4da3ff; }
.r-elite .art-name h3, .detail.r-elite h2 { color: var(--q-elite); }
.r-rare .lvtag { border-color: var(--q-rare); } .r-elite .lvtag { border-color: var(--q-elite); }

/* the card picture holds the tags, level, name, family and credit (Phil, 21 Nov 2026: "the pet card gets a bit cluttered") */
.tl { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; gap: 6px; align-items: center; }
.tl .badge-new { position: static; }
.tl .expand { position: static; width: 30px; height: 30px; }
.tag.lvtag { color: #f1ece3; border-color: #6b675f; background: #1c1b19; text-transform: none; letter-spacing: .3px; }
.art-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  padding: 34px 12px 10px; background: linear-gradient(rgba(10,9,8,0), rgba(10,9,8,.88)); pointer-events: none; }
.art-name { min-width: 0; }
.art-name h3 { margin: 0; font-family: Cinzel, serif; font-variant: small-caps; font-weight: 700; font-size: 22px; letter-spacing: .6px; text-shadow: 0 2px 8px #000; line-height: 1.15; }
.art-name .sub { margin-top: 3px; font-size: 13px; color: #d8d2c8; text-shadow: 0 1px 4px #000; }
.art-name a { pointer-events: auto; }
.art-foot .copy { position: static; flex: none; white-space: nowrap; color: #a9a39a; font-size: 10px; }

/* passive skills: a round icon and the word Passive, as in the game's spellbook */
.gi.round, .chip.passive .ico { border-radius: 50% !important; }
.pas { font-size: 9px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #d8d2c8; background: #2b2823; border: 1px solid #5a554c; border-radius: 3px; padding: 0 4px; margin-left: 5px; line-height: 1.5; }
.sk .pas { margin: 0; }

/* a family as its own page with a gallery */
.page { padding: 26px 0 0; }
.fhero { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 20px; }
.fhero .crumbs { margin-bottom: 4px; }
.fhero h1 { font-size: clamp(30px, 4vw, 44px); margin: 2px 0 2px; }   /* same title as every page (21 Nov 2026) */
.stat4 b.role-t { background: none; border: 0; font-size: 20px; padding: 0; }
.fcols { display: grid; grid-template-columns: minmax(200px, 1fr) 3fr; gap: 12px; margin-bottom: 24px; }
.ffood { display: flex; flex-wrap: wrap; gap: 6px; }
.ph2 small { margin-left: auto; }
.fskills { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fsk { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 6px 10px; border-radius: 10px; background: #201e1b; border: 1px solid var(--line); color: var(--text); }
.fsk:hover { border-color: #4f8db5; }
.fsk b { font-size: 14px; } .fsk small { color: var(--dim); font-size: 11px; }
.fsk .pas { position: absolute; top: 6px; right: 6px; margin: 0; }
.galh { font-family: Cinzel, serif; font-variant: small-caps; font-size: 26px; margin: 4px 0 14px; }
.galh small { font-family: Inter, system-ui, sans-serif; font-variant: normal; font-size: 13px; font-weight: 400; color: var(--dim); margin-left: 10px; }
@media (max-width: 760px) { .fhero { flex-direction: column; gap: 10px; } .fcols { grid-template-columns: 1fr; } .fhero h1 { font-size: 30px; } }
.expand { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 32px; height: 32px; border-radius: 6px; background: #1b1a18; border: 1px solid #45413a; cursor: pointer; color: var(--text); }

.body { padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.title h3 { margin: 0; font-family: Cinzel, serif; font-variant: small-caps; font-weight: 700; font-size: 22px; letter-spacing: .6px; color: #f1ece3; }
/* the card body: name and level, family and look, then one aligned list of facts (Phil, 21 Nov 2026: "a bit all over the place") */
.lvl { flex: none; color: #f1ece3; font-size: 15px; font-weight: 700; white-space: nowrap; background: #2b2823; border: 1px solid var(--line2); border-radius: 6px; padding: 2px 10px; }
.sub { color: var(--dim); font-size: 14px; margin-top: -4px; }
.stats { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 9px 14px; align-items: center; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.stats dt { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--dim2); font-weight: 600; }
.stats dd { margin: 0; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-width: 0; color: #d8d2c8; font-size: 14px; }
.stats .zone { max-width: 100%; }
.stats dd.dimtext { color: var(--dim2); }
.stats .zone .zn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .model { cursor: grab; } .model.turning { cursor: grabbing; }
.copy { position: absolute; left: 10px; bottom: 8px; z-index: 2; font-size: 10px; color: #8d877e; pointer-events: none; }
.art.ready .ph { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--blue-line); background: var(--blue-bg); color: #8fcdf2; border-radius: 4px; padding: 1px 7px; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: #4f8db5; }
.chip .ico { width: 16px; height: 16px; border-radius: 3px; margin-left: -3px; border: 1px solid #0006; }
.chip.grey { border-color: #4a463f; background: #1c1b19; color: #bdb6aa; cursor: default; }
.skin { color: #c9c3b8; font-size: 14px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zone { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--blue-line); background: var(--blue-bg); border-radius: 4px; padding: 2px 8px; font-size: 14px; color: var(--blue); }
.zone { cursor: pointer; font: inherit; font-size: 14px; }
.zone:hover { border-color: #4f8db5; background: #192b36; }
.zone .zn { text-decoration: underline; }
.zone .mapb { font-size: 10px; font-weight: 700; letter-spacing: .6px; color: #9ccff0; }
.zone[disabled] { cursor: default; opacity: .55; }
.spd { color: #d8d2c8; font-size: 14px; white-space: nowrap; }
.knows { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.knows .lbl { font-size: 11px; letter-spacing: 1px; color: var(--dim2); font-weight: 600; }
.view { margin-top: auto; align-self: flex-end; font-size: 16px; cursor: pointer; background: none; border: 0; color: var(--link); padding: 0; }
.view:hover { text-decoration: underline; }
.empty { color: var(--dim); text-align: center; padding: 60px 0; }
.foot { color: var(--dim2); font-size: 12px; text-align: center; padding: 40px 0 30px; }

.modal { position: fixed; inset: 0; z-index: 50; background: rgba(5,8,9,.78); display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(1180px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #1b1a18; border: 1px solid #45413a; border-radius: 12px; }
.x { position: absolute; top: 10px; right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 8px; background: #26241f; border: 1px solid #45413a; cursor: pointer; font-size: 18px; color: var(--text); }
.detail { display: grid; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.detail .art { height: 560px; }
/* the bar under the big model: pause, turn back, animation list, full screen */
.detail .model { bottom: 46px; touch-action: none; }
.detail .art-foot { bottom: 46px; }
@media (max-width: 900px) {   /* on a phone the close button sits over the picture: keep the tags clear of it */
  #modal .detail .art .tags { right: 54px; gap: 4px; } #modal .detail .art .tag { font-size: 11px; padding: 2px 6px; letter-spacing: .6px; } }   /* the name over the picture, above the control bar, as on the pet card (21 Nov 2026) */
.mctl { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 0 10px;
  border-top: 1px solid var(--line); background: #1d1b18; opacity: .5; pointer-events: none; }
.mctl.on { opacity: 1; pointer-events: auto; }
.mbtn { flex: none; width: 34px; height: 32px; border-radius: 6px; background: none; border: 1px solid transparent; color: var(--text); cursor: pointer; font-size: 15px; }
.mbtn:hover { background: #2a2824; border-color: var(--line2); }
.msel { height: 32px; max-width: 13rem; min-width: 0; background: #121110; color: var(--text); border: 1px solid var(--line2); border-radius: 6px; padding: 0 8px; font: inherit; font-size: 13px; }
.mhint { margin-left: auto; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--dim2); text-align: right; }
.detail .art.big { position: fixed; inset: 0; z-index: 200; height: auto; border-radius: 0; }
.detail .art:fullscreen { height: 100vh; }
@media (max-width: 600px) { .mhint { display: none; } .mctl [data-m="full"] { margin-left: auto; } }
.detail .tags { right: 56px; }
@media (max-width: 900px) { .detail .art { height: 380px; } }
.info { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.info h2 { margin: 0; font-family: Cinzel, serif; font-variant: small-caps; font-size: 30px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.facts div { background: #22201d; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.facts small { display: block; color: var(--dim2); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.sec h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim2); }
.ab { border-left: 2px solid var(--blue-line); padding: 2px 0 2px 10px; margin: 6px 0; }
.ab b { color: #cfe7f7; } .ab p { margin: 2px 0 0; color: var(--dim); font-size: 13px; }
.mapbox { padding: 20px; }
.mapbox h3 { margin: 0 0 4px; font-family: Cinzel, serif; font-size: 22px; } .mapbox p { margin: 0 0 12px; color: var(--dim); }
/* the map window: a fixed frame the size of the window, no scroll bar (Phil, 21 Nov 2026) */
.modal-box.fit { height: calc(100vh - 40px); overflow: hidden; display: flex; flex-direction: column;
  width: min(100%, calc((100vh - 150px) * 1.5 + 42px)); min-width: min(100%, 640px); }
.modal-box.fit .mapbox { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.mapbox h3, .mapbox > p { padding-right: 44px; }
.mapview { position: relative; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: #11100e; user-select: none; }
.mapbox .mapview { flex: 1; min-height: 0; }
.zonemap { height: min(64vh, 640px); flex: none; }
.mapview.zoomed { cursor: grab; touch-action: none; }
.mapview.dragging { cursor: grabbing; }
.mapimg { position: absolute; left: 0; top: 0; }
.mapimg img, .mapimg .grid-map { display: block; width: 100%; height: 100%; -webkit-user-drag: none; }
/* the logo: the paw mark (favicon.svg) and the name, stacked (Phil, 21 Nov 2026) */
.brand { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.logo-t { display: flex; flex-direction: column; line-height: 1.05; margin: 0 !important; }
.logo-t small { font-family: Inter, system-ui, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 3.5px; text-transform: uppercase; color: var(--gold); }
.logo-t b { font-family: Cinzel, serif; font-size: 19px; font-weight: 700; color: #f1ece3; letter-spacing: .5px; }

/* every scroll bar in the site's own dark look (Phil, 21 Nov 2026) */
* { scrollbar-width: thin; scrollbar-color: #4a463f #171614; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #171614; border-radius: 8px; }
::-webkit-scrollbar-thumb { background: #4a463f; border-radius: 8px; border: 2px solid #171614; }
::-webkit-scrollbar-thumb:hover { background: #6b665c; }
::-webkit-scrollbar-corner { background: #171614; }

/* game icons */
.gi { width: 22px; height: 22px; border-radius: 4px; border: 1px solid #000a; vertical-align: middle; flex: none; }
.gi.xs { width: 16px; height: 16px; border-radius: 3px; vertical-align: -3px; }
.gi.md { width: 40px; height: 40px; border-radius: 7px; }
.gi.lg { width: 56px; height: 56px; border-radius: 9px; }
.gi.hero { width: 84px; height: 84px; border-radius: 14px; border: 2px solid var(--sc, var(--gold)); box-shadow: 0 0 28px -6px var(--sc, var(--gold)); }

/* the skill window as pictures (Phil, 21 Nov 2026: "more digestible ... pictures say more than words") */
.abx h4 { font-size: 13px; }
.abhero { display: flex; gap: 20px; align-items: flex-start; padding-right: 44px; }
.abhero-t { min-width: 0; flex: 1; }
.abhero h2 { margin: 0; font-family: Cinzel, serif; font-variant: small-caps; font-size: 32px; color: var(--sc); }
.lead { margin: 6px 0 14px; font-size: 17px; color: #ece7de; line-height: 1.5; }
.stat4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stat4 div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; text-align: center; }
.stat4 b { display: block; font-size: 24px; line-height: 1.1; color: #f1ece3; }
.stat4 span { font-size: 11px; color: var(--dim2); text-transform: uppercase; letter-spacing: .8px; }
.note { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--card); border: 1px solid #6b5626; color: #f3dca0; }
.famrow { display: flex; flex-wrap: wrap; gap: 8px; }
.famtile { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-weight: 600; }
.famtile:hover { border-color: #4f8db5; }
.ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.rk { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.rk.none { opacity: .55; border-top-color: var(--line2); }
.rk-top { display: flex; align-items: center; justify-content: space-between; }
.rk-n { font-family: Cinzel, serif; font-weight: 700; font-size: 22px; color: var(--sc); }
.rk-lv { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--art); border: 1px solid var(--line2); color: #e8e2d6; }
.rk-big { font-size: 26px; font-weight: 700; color: #f6f1e7; line-height: 1.1; }
.rk-big small { display: block; font-size: 12px; font-weight: 500; color: var(--dim); margin-top: 2px; line-height: 1.35; }
.rk-meta { font-size: 12px; color: var(--dim2); }
.rk-from { display: flex; flex-direction: column; gap: 6px; margin-top: auto; color: var(--text); font-size: 13px; }
.rk-from b { color: #8fcdf2; } .rk-from em { color: var(--dim2); font-style: normal; }
.rk-from.none { font-size: 12px; color: var(--dim2); padding: 18px 0; text-align: center; border: 1px dashed var(--line2); border-radius: 8px; }
.pbars { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding: 10px 12px 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.pb { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.pb i { display: block; width: 100%; max-width: 48px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--sc), color-mix(in srgb, var(--sc) 35%, #000)); }
.pv { font-size: 11px; color: #e8e2d6; white-space: nowrap; }
.pr { font-family: Cinzel, serif; font-weight: 700; color: var(--sc); padding-bottom: 6px; }
.mmap { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px; border: 1px solid #000a; background: #11100e; }
.mmap.empty { aspect-ratio: 3 / 1; }
.mmin { position: absolute; inset: 0; }
.mmin img, .mmin .grid-map { display: block; width: 100%; height: 100%; }
.mmin i { position: absolute; width: calc(7px / var(--s)); height: calc(7px / var(--s)); margin: calc(-3.5px / var(--s)) 0 0 calc(-3.5px / var(--s)); border-radius: 50%; background: #ff4d3d; box-shadow: 0 0 0 calc(1.5px / var(--s)) #000a; }
.mzone { position: absolute; left: 6px; bottom: 5px; font-size: 11px; color: #f1ece3; background: #000b; padding: 1px 6px; border-radius: 4px; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.bt { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--text); }
.bt:hover { border-color: #4f8db5; transform: translateY(-1px); }
.bt .mmap { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.bt-b { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px 10px; position: relative; }
.bt-b b { font-size: 15px; padding-right: 58px; }
.bt.r-rare .bt-b b { color: #4da3ff; } .bt.r-elite .bt-b b { color: var(--q-elite); } .bt.r-rare { border-color: #0070dd88; } .bt.r-elite { border-color: #ffd10088; }
.bt-b small { color: var(--dim); font-size: 12px; }
.bt-rk { position: absolute; right: 8px; top: 8px; font-size: 11px; font-weight: 700; color: var(--sc, var(--gold)); background: var(--art); border: 1px solid var(--line2); border-radius: 999px; padding: 1px 8px; }
.howto { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #14222b; border: 1px solid var(--blue-line); border-radius: 12px; color: var(--text); }
.howto:hover { border-color: #4f8db5; }
.howto b { display: block; color: #8fcdf2; } .howto small { color: var(--dim); }
@media (max-width: 700px) { .abhero { flex-direction: column; gap: 10px; } .stat4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .abhero h2 { font-size: 26px; } }

/* the Training page as a page, and where each fact comes from (Phil, 21 Nov 2026: game files are the truth) */
.trainpage { padding: 0 0 20px; }
.trainpage h1 { font-size: clamp(30px, 4vw, 44px); margin: 2px 0 2px; }   /* same title as every page (21 Nov 2026) */
.srcb { display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; padding: 1px 6px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.srcb.gf { background: #14361f; color: #6ee7a0; border: 1px solid #2f9e5a; }
.srcb.seen { background: #14222b; color: #8fcdf2; border: 1px solid var(--blue-line); }
.srcb.cl { background: var(--art); color: #bdb6aa; border: 1px solid #5a554c; }
/* the Training page tabs (Phil, 21 Nov 2026: subcategories for each part) */
.ttabs { position: sticky; top: 58px; z-index: 5; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 8px 0; background: var(--bg); }
.ttab { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; text-align: center; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 14px; }
.ttab:hover { border-color: #4f8db5; }
.ttab.on { border-color: var(--gold); background: var(--card); color: var(--gold); box-shadow: 0 0 16px -6px var(--gold); }
@media (max-width: 760px) { .ttabs { grid-template-columns: repeat(3, minmax(0, 1fr)); top: 52px; } .ttab { font-size: 12px; padding: 8px 4px; } .ttab .gi.md { width: 28px; height: 28px; } }
.srclegend { margin: 4px 0 0; font-size: 12px; color: var(--dim); line-height: 2; }
.rule .srcb { align-self: flex-start; }
@media (max-width: 760px) { .trainpage h1 { font-size: 28px; } }

/* Level up your pet: Phil's Pet tab picture, three cards and an XP-per-kill chart in the game's mob colours */
.lvlup { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 12px; align-items: start; }
.shot { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.shot img { display: block; width: 100%; }
.shot figcaption { padding: 8px 10px; font-size: 12px; color: var(--dim); }
.lvl-cards { display: flex; flex-direction: column; gap: 10px; }
.fcard .srcb { margin-top: 6px; }
.subh { margin: 16px 0 8px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--dim2); }
.xpbars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 10px 12px 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.xpb { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.xpb span { font-size: 11px; color: #e8e2d6; white-space: nowrap; } .xpb b { font-size: 11px; padding-bottom: 6px; white-space: nowrap; }
@media (max-width: 760px) { .xpb span, .xpb b { font-size: 9px; } .xpbars { gap: 3px; padding: 8px 6px 0; } }
.xpb i { display: block; width: 100%; max-width: 34px; border-radius: 5px 5px 0 0; }
.xpb.grey i { background: #808080; } .xpb.grey b { color: #9d9d9d; }
.xpb.green i { background: #40bf40; } .xpb.green b { color: #40bf40; }
.xpb.yellow i { background: #ffff00; } .xpb.yellow b { color: #ffff00; }
.xpb.orange i { background: #ff8040; } .xpb.orange b { color: #ff8040; }
.xpb.red i { background: #ff2020; } .xpb.red b { color: #ff2020; }
@media (max-width: 760px) { .lvlup { grid-template-columns: 1fr; } }
.xplv { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 8px; font-size: 13px; color: var(--dim); }
.xplv .chip { font-weight: 700; } .xplv .chip.on { border-color: var(--gold); color: var(--gold); background: var(--card); }
.xptbl { margin-top: 10px; max-height: none; }
.xpaxis { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--dim2); margin: 0 4px 4px; }
.xpnote { margin: 8px 0 0; font-size: 14px; color: #f1ece3; }
.c-yellow { color: #ffff00; } .c-orange { color: #ff8040; } .c-green { color: #40bf40; } .c-grey { color: #9d9d9d; }
/* the family's own damage, armor and health change (Tamed Pet Passive spells in the game files) */
.fmods { display: flex; flex-wrap: wrap; gap: 4px; }
.fm { font-size: 12px; font-weight: 700; padding: 0 6px; border-radius: 4px; border: 1px solid #4a463f; background: #1c1b19; color: #bdb6aa; white-space: nowrap; }
.famstats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--dim2); }
.fm.up { color: #4ade80; border-color: #2f9e5a; background: #14361f; } .fm.down { color: #ff8a9a; border-color: #b8324a; background: #2b1418; }

/* the three rank rules on the Training page */
.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 12px; }
.rule { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.rule b { font-size: 15px; color: #f1ece3; } .rule p { margin: 0; font-size: 13px; color: #cfc8bb; line-height: 1.45; }
.rule-pic { display: flex; align-items: center; gap: 6px; min-height: 44px; position: relative; }
.ra { color: var(--gold); font-size: 26px; line-height: 1; padding: 0 2px; }
.rbadge { margin-left: -14px; margin-top: 24px; z-index: 1; font-family: Cinzel, serif; font-weight: 700; font-size: 12px; color: #2a1f05; background: var(--gold); border-radius: 4px; padding: 0 4px; }
.rcost { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--art); border: 1px solid #a88a10; color: var(--q-elite); font-weight: 800; }
.rcost.big { width: 42px; height: 42px; font-size: 18px; }
.diff + .diff { margin-top: 6px; }

/* beginner steps on the Training page (from the hunter guide video Phil sent, 21 Nov 2026) */
.fcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.fcard { display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.fcard b { display: block; font-size: 15px; color: #f1ece3; margin-bottom: 3px; } .fcard p { margin: 0; font-size: 13px; color: #cfc8bb; line-height: 1.45; }
.hbars { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.hbar { display: grid; grid-template-columns: 86px 1fr 44px; align-items: center; gap: 8px; font-size: 12px; color: #d8d2c8; }
.hbar > div { height: 10px; background: var(--art); border-radius: 5px; overflow: hidden; }
.hbar i { display: block; height: 100%; border-radius: 5px; }
.hbar i.good { background: linear-gradient(90deg, #2f9e5a, #4ade80); } .hbar i.bad { background: linear-gradient(90deg, #b8324a, #ff7a8a); } .hbar i.mid { background: linear-gradient(90deg, #a07a00, #ffd100); }
.hbar b { text-align: right; color: #f1ece3; }
.walk { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; counter-reset: wk; }
.wk { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.wk p { margin: 0; font-size: 13px; color: #d8d2c8; line-height: 1.35; }
.famsk { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.fs { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--text); }
.fs:hover { border-color: #4f8db5; }
.fs-plus { color: var(--dim2); font-weight: 700; }
.fs div { margin-left: 4px; min-width: 0; } .fs b { display: block; font-size: 14px; } .fs small { color: #8fcdf2; font-size: 12px; }

/* How pet training works, as pictures */
.train { --sc: var(--gold); }
.small { font-size: 13px; margin: 8px 0 0; }
.tflow { display: flex; align-items: stretch; gap: 6px; }
.tstep { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 12px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.tstep b { font-size: 15px; color: #f1ece3; } .tstep p { margin: 0; font-size: 13px; color: var(--dim); }
.tnum { position: absolute; top: 8px; left: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #2a1f05; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.tarrow { align-self: center; font-size: 34px; color: var(--gold); line-height: 1; }
.tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tip { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.tip-i { display: flex; gap: 4px; flex: none; } .tip p { margin: 0; font-size: 14px; color: #d8d2c8; }
.ladder { display: flex; align-items: flex-end; gap: 8px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.lad { flex: 1; min-width: 74px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lad-n { font-family: Cinzel, serif; font-weight: 700; font-size: 20px; color: var(--gold); }
.lad-bar { width: 34px; height: 90px; display: flex; align-items: flex-end; background: var(--art); border-radius: 6px; overflow: hidden; }
.lad-bar i { display: block; width: 100%; background: linear-gradient(180deg, #ffd100, #a07a00); }
.lad b { font-size: 15px; color: #f1ece3; } .lad small { font-size: 11px; color: var(--dim2); }
.lad-arrow { align-self: center; font-size: 28px; color: var(--dim2); padding-bottom: 40px; }
.diff { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; }
.d-l, .d-r { white-space: nowrap; color: #d8d2c8; font-weight: 600; }
.d-bar { flex: 1; display: flex; height: 28px; border-radius: 7px; overflow: hidden; border: 1px solid var(--line2); }
.d-bar span { display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.d-bar .paid { background: #3a362f; color: #cfc8bb; } .d-bar .new { background: #ffd100; color: #2a1f05; }
.formula { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.formula > div { min-width: 110px; text-align: center; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.formula b { display: block; font-size: 30px; color: #f1ece3; line-height: 1.1; } .formula small { color: var(--dim2); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; }
.formula > span { font-size: 30px; color: var(--gold); font-weight: 700; }
.formula .res { border-color: #a88a10; background: var(--card); } .formula .res b { color: var(--q-elite); }
.loyrow { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.loy { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.loy-v { font-size: 12px; color: #e8e2d6; font-weight: 600; }
.loy-bar { width: 100%; max-width: 42px; height: 80px; display: flex; align-items: flex-end; background: var(--art); border-radius: 6px; overflow: hidden; }
.loy-bar i { display: block; width: 100%; background: linear-gradient(180deg, #ff7a8a, #b8324a); }
.loy b { font-size: 15px; color: #ff9aa8; } .loy small { font-size: 11px; color: var(--dim2); line-height: 1.2; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel { padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.ph2 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .ph2 b { font-size: 15px; }
.sks { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.sk { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; padding: 8px 4px; border-radius: 10px; color: var(--text); font-size: 12px; line-height: 1.25; }
a.sk:hover { background: var(--art); }
.speedbox { padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }
.spd-h { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; } .spd-h p { margin: 0; color: #d8d2c8; }
.spd-row { display: grid; grid-template-columns: 74px 1fr 52px; align-items: center; gap: 10px; font-size: 13px; }
.spd-r { color: var(--gold); font-weight: 700; } .spd-row.base .spd-r { color: var(--dim2); }
.spd-bar { height: 14px; background: var(--art); border-radius: 7px; overflow: hidden; }
.spd-bar i { display: block; height: 100%; background: linear-gradient(90deg, #4f8db5, #7dd3fc); border-radius: 7px; }
.spd-row.base .spd-bar i { background: #5a554c; }
.spd-row b { text-align: right; color: #f1ece3; }
.tpcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tpc { padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.tpc-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .tpc-h b { font-size: 14px; }
.tpc-bars { display: flex; align-items: flex-end; gap: 4px; height: 92px; }
.tpb { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; }
.tpb span { font-size: 10px; color: #e8e2d6; } .tpb i { display: block; width: 100%; max-width: 20px; background: linear-gradient(180deg, #ffd100, #a07a00); border-radius: 3px 3px 0 0; }
.tpb b { font-size: 10px; color: var(--gold); } .tpb small { font-size: 9px; color: var(--dim2); }
.tile .gi.lg { margin-bottom: 4px; } .tdiet .gi { margin-right: 2px; }
@media (max-width: 760px) {
  .tflow { flex-direction: column; } .tarrow { transform: rotate(90deg); font-size: 26px; }
  .two { grid-template-columns: 1fr; }
  .lad-arrow { display: none; }
}

/* (older training list styles, still used by the cost chips) */
.train q { color: #f1ece3; }
.src { font-size: 12px; color: var(--dim2); margin-left: 4px; white-space: nowrap; } .src:hover { color: var(--link); }
.tps { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.tp { font-size: 12px; color: #d8d2c8; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.tp b { color: var(--gold); margin-right: 3px; }
.mapcopy { position: absolute; right: 10px; bottom: 8px; z-index: 3; font-size: 11px; color: #e8e2d6; background: #000b; padding: 3px 8px; border-radius: 6px; pointer-events: none; }
.maphint { position: absolute; left: 10px; bottom: 8px; z-index: 3; font-size: 12px; color: #e8e2d6; background: #000b; padding: 3px 8px; border-radius: 6px; pointer-events: none; }
.dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #ff4d3d; border: 2px solid #fff3; box-shadow: 0 0 0 2px #0008; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tabs .chip.on { border-color: var(--gold); color: var(--gold); }

/* info windows: ability, food, family, zone, index pages */
.topnav { display: flex; gap: 4px; }
.topnav a { color: var(--dim); padding: 6px 10px; border-radius: 6px; font-weight: 500; }
.topnav a:hover { color: var(--text); background: #1a2427; }
/* one Pets menu with its pages under it (Phil, 22 Nov 2026): a list that opens on pointing, and a row of tabs on the pet pages */
.topnav { align-items: center; } .topnav a.on { color: var(--gold); }
.topnav a i { font-style: normal; font-size: 11px; opacity: .7; }
.navgrp { position: relative; }
.navsub { display: none; position: absolute; top: 100%; left: 0; min-width: 160px; padding: 6px; flex-direction: column; gap: 2px;
  background: #0e1517; border: 1px solid #23302f; border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.45); z-index: 30; }
.navgrp:hover .navsub, .navgrp:focus-within .navsub { display: flex; }
.navsub a { padding: 7px 10px; white-space: nowrap; }
.subnav { border-bottom: 1px solid #23302f; background: rgba(10,16,18,.7); position: sticky; top: 56px; z-index: 19; backdrop-filter: blur(6px); }
.subnav[hidden] { display: none; }
.subnav .wrap { display: flex; align-items: center; gap: 4px; height: 42px; overflow-x: auto; scrollbar-width: none; }
.subnav a { color: var(--dim); padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.subnav a:hover { color: var(--text); background: #1a2427; }
.subnav a.on { color: var(--gold); background: #1a2427; }
@media (max-width: 700px) { .topnav { display: none; } }
a.chip { text-decoration: none; }
.chip a { color: inherit; }
.ibox { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 16px; }
.ibox > p { margin: 0; color: #d8d2c8; }
.dim { color: var(--dim); }
.ihead { display: flex; align-items: center; gap: 14px; padding-right: 44px; }
.ihead h2 { margin: 0; font-family: Cinzel, serif; font-variant: small-caps; font-size: 30px; }
.ihead p { margin: 2px 0 0; color: var(--dim); }
.bigico { width: 52px; height: 52px; border-radius: 8px; border: 1px solid #000a; }
.bigemoji { font-size: 40px; line-height: 1; }
.tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; max-height: 520px; overflow-y: auto; }
table.mini { width: 100%; border-collapse: collapse; font-size: 14px; }
table.mini th { position: sticky; top: 0; background: #23211d; text-align: left; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--dim2); padding: 8px 10px; font-weight: 600; }
table.mini td { padding: 7px 10px; border-top: 1px solid #2c2925; vertical-align: top; }
table.mini tr:hover td { background: #22201c; }
table.mini small { color: var(--dim); }
table.mini .chip { margin: 1px 2px 1px 0; }
.mini-new { background: var(--gold); color: #2a1f05; font-size: 9px; font-weight: 700; border-radius: 3px; padding: 0 4px; vertical-align: middle; }
.zone.sm { font-size: 12px; padding: 1px 6px; white-space: nowrap; }
.btn.showlist { align-self: flex-start; color: var(--link); border-color: var(--blue-line); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.tile:hover { border-color: #4f8db5; }
.tile small { color: var(--dim); }
.legend .chip { cursor: default; }
.dot.sm { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-width: 1px; box-shadow: 0 0 0 1px #0007; }
.mapimg.focus .dot { opacity: .12; }
.mapimg.focus .dot.hi { opacity: 1; width: 10px; height: 10px; margin: -5px 0 0 -5px; z-index: 2; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.grid-map { aspect-ratio: 1002 / 668; background-color: #1c2226;
  background-image: linear-gradient(#2c363c 1px, transparent 1px), linear-gradient(90deg, #2c363c 1px, transparent 1px); background-size: 10% 10%; }

/* ---------- the Zones page, a bit like Google Maps (Phil, 21 Nov 2026): zone list and level range left, the map right ---------- */
/* the Zones page fills the window with no page scroll (Phil, 21 Nov 2026, 1920x1080 with a bookmarks bar): 57px top bar,
   12px above and below; the footer's Blizzard line moves into the side panel on this page */
.zpage { display: grid; grid-template-columns: 290px 1fr; gap: 16px; height: calc(100dvh - 82px); min-height: 480px; margin-bottom: 12px; }
.page:has(.zpage) { padding-top: 12px; } main:has(.zpage) .foot { display: none; }
.zcopy { margin: 0; font-size: 11px; line-height: 1.35; color: var(--dim2); }
.zside { display: flex; flex-direction: column; gap: 10px; min-height: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.zside .crumbs { margin: 0; }
.zlvbox { display: flex; flex-direction: column; gap: 8px; } .zlvbox > b { font-size: 13px; color: var(--dim); text-transform: uppercase; letter-spacing: .6px; }
/* the level slider (look from Phil's picture, 21 Nov 2026): two handles on one bar, the blue part between them is the
   chosen range, "Min: 7" under the left end and "Max: 35" under the right end */
.zlvhead { display: flex; align-items: center; gap: 8px; }
.zlvhead b { font-size: 13px; color: var(--dim); text-transform: uppercase; letter-spacing: .6px; }
.zreset { margin-left: auto; border: 1px solid var(--line2); background: var(--art); color: var(--dim); border-radius: 6px; padding: 3px 9px; font-size: 12px; cursor: pointer; }
.zreset:hover { color: var(--text); border-color: var(--blue-line); }
/* the whole bar is the grab area (app.js moves the nearest handle), so the inputs only draw the handles and take the keys */
.zslider { position: relative; height: 26px; margin: 2px 10px 0; --a: 0%; --b: 100%; cursor: pointer; touch-action: none; }
.zslider.drag { cursor: grabbing; }
/* the site's own colours (Phil, 21 Nov 2026: fit the site): the bar is the find box's dark blue-grey, the chosen part is
   the link blue, the handles are card-coloured with the light chip blue round them */
.zslider::before { content: ""; position: absolute; left: -10px; right: -10px; top: 10px; height: 6px; border-radius: 3px; background: #121a1c; box-shadow: inset 0 0 0 1px #263234; }
.zs-fill { position: absolute; top: 10px; height: 6px; background: var(--link); left: var(--a); right: calc(100% - var(--b)); }
.zslider input { position: absolute; left: -10px; width: calc(100% + 20px); top: 0; height: 26px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.zslider input.top { z-index: 2; } .zslider input:focus { outline: none; }
.zslider input::-webkit-slider-runnable-track { background: none; height: 26px; }
.zslider input::-moz-range-track { background: none; }
.zslider input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--card); border: 2px solid #8fcdf2; box-shadow: 0 1px 4px #000c; transition: transform .1s, border-color .1s; }
.zslider input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 2px solid #8fcdf2; }
.zslider:hover input::-webkit-slider-thumb { border-color: #cfe7f7; }
.zslider.drag input:focus::-webkit-slider-thumb { transform: scale(1.12); border-color: var(--gold); }
.zslider input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--blue); outline-offset: 2px; }
.zs-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); margin-top: -2px; font-variant-numeric: tabular-nums; }
.zfind { background: #121a1c; border: 1px solid #263234; border-radius: 6px; color: var(--text); font: inherit; padding: 5px 8px; width: 100%; outline: 0; }
.zfind:focus { border-color: var(--blue-line); }
.zhit { grid-column: 1 / -1; font-style: normal; font-size: 12px; color: var(--gold); margin-top: 1px; } .zhit:empty { display: none; }
.zb.hit { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.zlist { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -10px; padding: 0; }  /* zone names start on the same line as the slider and the find box */
.zrow { display: grid; grid-template-columns: 1fr auto; align-items: start; column-gap: 8px; padding: 7px 10px; border-radius: 6px; color: var(--text); font-size: 14px; }
.zrow:hover { background: var(--art); }
.zrow.on { background: var(--blue-bg); color: #8fcdf2; box-shadow: inset 3px 0 0 var(--blue); }
.zrow small { color: var(--dim); font-weight: 600; } .zrow.none:not(.on) { display: none; }  /* a zone with no beast in the level range leaves the list (Phil, 21 Nov 2026); the open zone stays */
.zrow[hidden] { display: none; }
.zmain { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.zhead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; } .zhead h1 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; }
.zcount { color: var(--dim); font-size: 14px; }
.zbig { flex: 1; min-height: 300px; }
.zctl { position: absolute; right: 10px; top: 10px; z-index: 4; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px #0009; }
.zctl button { width: 36px; height: 36px; border: 0; border-bottom: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.zctl button:last-child { border-bottom: 0; font-size: 17px; } .zctl button:hover { background: var(--art); color: var(--gold); }
.zbeasts { display: flex; flex-wrap: wrap; gap: 6px; max-height: 62px; overflow-y: auto; flex: none; }
.zb { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--line2); background: var(--card); border-radius: 6px; color: var(--text); font-size: 13px; }
.zb:hover { border-color: var(--blue); } .zb i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.zb small { color: var(--dim); } .zb.r-rare b { color: #4da3ff; } .zb.r-elite b { color: var(--q-elite); }
.zb[hidden], .mapimg [hidden] { display: none; }
/* a pin: a teardrop in the beast's colour with its family icon; the name tip shows when you point at it */
.pin { position: absolute; z-index: 2; width: 0; height: 0; }
.pin-head { position: absolute; left: -14px; top: -36px; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--c); border: 2px solid #fff; box-shadow: 0 2px 5px #000a; display: grid; place-items: center; transition: transform .12s; }
.pin-head .gi { width: 18px; height: 18px; border-radius: 50%; border: 0; transform: rotate(45deg); }
.pin.r-rare .pin-head { border-color: #4da3ff; } .pin.r-elite .pin-head { border-color: var(--q-elite); }
.pin-tip { position: absolute; left: 50%; bottom: 42px; transform: translateX(-50%); white-space: nowrap; background: #0d1214f0; color: var(--text);
  border: 1px solid var(--line2); border-radius: 7px; padding: 6px 10px; font-size: 13px; pointer-events: none; opacity: 0; transition: opacity .12s; box-shadow: 0 4px 12px #000b; }
.pin-tip b { color: var(--text); } .pin.r-rare .pin-tip b { color: #4da3ff; } .pin.r-elite .pin-tip b { color: var(--q-elite); }
.pin-tip small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }
.pin:hover, .pin:focus-visible { z-index: 6; outline: 0; } .pin:hover .pin-tip, .pin:focus-visible .pin-tip { opacity: 1; }
.pin:hover .pin-head, .pin:focus-visible .pin-head { transform: rotate(-45deg) scale(1.18); }
.mapimg.focus .pin { opacity: .15; } .mapimg.focus .pin.hi { opacity: 1; z-index: 5; }
.zbig .maphint { max-width: calc(100% - 180px); }
@media (max-width: 820px) {
  .zpage { grid-template-columns: 1fr; height: auto; }
  .zside { max-height: none; } .zlist { max-height: 180px; flex: none; }
  .zbig { flex: none; height: 62vh; } .zbig .maphint { display: none; }
  .zbeasts { max-height: none; }
}
.pin.off { display: none; } .mapimg.focus .pin.hi.off { display: block; }
/* on a phone the level slider and the find box sit on top, like the search bar in Google Maps; the zone list stays short */
@media (max-width: 820px) { .zbig { height: 56vh; } .zlist { max-height: 150px; } }
/* training point costs seen at the WoW Forever trainer (21 Nov 2026) are green; the rest are the Classic numbers */
.tpb.seen span, .tpb.seen b { color: #4ade80; } .tpb.seen i { background: linear-gradient(180deg, #4ade80, #1f7a3d); }
/* the trainer screenshot with its reading next to it */
.tpshot { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 16px; align-items: start; margin-top: 12px; }
.tpsteps p { margin: 0 0 8px; font-size: 14px; } .tpsteps b { color: var(--text); }
@media (max-width: 700px) { .tpshot { grid-template-columns: 1fr; } .tpshot .shot { max-width: 320px; } }

/* ---------- the world map (Phil, 21 Nov 2026): world picture, both continents and the zone in the middle, all from his
   own game files; dots for every spawn on a canvas, pins that shrink when far out ---------- */
.worldmap .mapimg > img { position: absolute; display: block; -webkit-user-drag: none; user-select: none; }
.worldmap .wm-world { left: 0; top: 0; width: 100%; height: 100%; }
.worldmap .wm-cont { opacity: 0; transition: opacity .35s; pointer-events: none; }
.worldmap .mapimg.near .wm-cont { opacity: 1; }
.worldmap .wm-zone { pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.worldmap .wm-hl { pointer-events: none; mix-blend-mode: screen; }
.worldmap .wm-dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.worldmap .pin { z-index: 2; }
.worldmap.far .pin { transform: scale(.62); }
.worldmap .mapimg.focus .pin.hi.off { display: none; }
.worldmap .mapimg.focus .pin:not(.hi) { opacity: .25; }
.wm-tip { position: absolute; z-index: 7; opacity: 1; transform: translate(-50%, calc(-100% - 44px)); bottom: auto; pointer-events: none; }
.worldmap.far .wm-tip { transform: translate(-50%, calc(-100% - 28px)); }
.wm-tip[hidden] { display: none; }
.wm-zname { position: absolute; left: 10px; top: 10px; z-index: 5; background: #000b; color: var(--gold); font-family: Cinzel, serif; font-weight: 600; padding: 4px 12px; border-radius: 6px; pointer-events: none; }
.wm-zname[hidden] { display: none; }
.worldmap:not(.zoomed) { cursor: pointer; }
.zrow.hov { background: var(--art); box-shadow: inset 3px 0 0 var(--gold); }
.znomap { color: var(--dim2); font-size: 11px; font-weight: 400; }
#wmbeasts[hidden] { display: none; }

/* ---------- the pet window, cleaned up (Phil, 21 Nov 2026): model and where it lives on the left; name, the first
   numbers in one row, what taming teaches you and what else it can learn on the right; small print last ---------- */
.detail .dleft { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); }
.detail .dleft .art { height: 430px; }
.dwhere { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.dwhere h4, .info .sec h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim2); }
.dwhere h4 { margin: 0; }
.dmap { position: relative; display: block; width: 100%; aspect-ratio: 1002 / 668; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #11100e; cursor: pointer; }
.dmap img, .dmap .grid-map { display: block; width: 100%; height: 100%; }
.dmap i { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #ff4d3d; border: 1px solid #fff8; box-shadow: 0 0 0 1px #0009; }
.dmap-z { position: absolute; left: 8px; top: 8px; background: #000b; color: var(--gold); font-family: Cinzel, serif; font-weight: 600; font-size: 13px; padding: 2px 9px; border-radius: 5px; }
.dmap-open { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; background: #000b; color: #e8e2d6; font-size: 12px; padding: 3px 9px; border-radius: 5px; }
.dmap:hover { border-color: var(--blue-line); } .dmap:hover .dmap-open { color: var(--gold); }
.drow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.info { padding: 22px 24px; gap: 18px; }
.dhead h2 { margin: 0 44px 4px 0; line-height: 1.1; }
.dsub { display: flex; align-items: center; gap: 7px; color: var(--dim); font-size: 15px; flex-wrap: wrap; }
.dsub .gi { width: 22px; height: 22px; }
.dot-sep { color: var(--dim2); } .rar-t { text-transform: capitalize; }
.r-rare .rar-t { color: #4da3ff; } .r-elite .rar-t { color: var(--q-elite); }
.dstats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.dstats > div { grid-column: span 2; background: #22201d; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; min-width: 0; }
.dstats > .ds-w { grid-column: span 3; }
.dstats small { display: block; color: var(--dim2); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }
.dstats b { font-size: 18px; font-weight: 600; color: var(--text); }
.dstats .ds-lv b { font-size: 24px; color: var(--gold); line-height: 1.1; }
.dstats .chips { gap: 5px; }
.tcards { display: flex; flex-direction: column; gap: 8px; }
.tcard { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; background: #22201d; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.tcard:hover { border-color: var(--blue-line); }
.tcard .gi.lg { width: 40px; height: 40px; flex: none; }
.tcard b { color: #cfe7f7; font-size: 15px; } .tcard .pas { margin-left: 8px; vertical-align: 2px; }
.tcard p { margin: 3px 0 0; color: var(--dim); font-size: 13px; line-height: 1.4; }
.dnote { margin: 8px 0 0; font-size: 13px; } .dnone { margin: 0; }
.dmeta { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--dim2); font-size: 12px; }
@media (max-width: 900px) { .detail .dleft { border-right: 0; } .detail .dleft .art { height: 340px; } .dstats > div, .dstats > .ds-w { grid-column: span 3; } }
/* the map and its words side by side, so the left side is as tall as the right side */
.dwhere { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.dwhere-t { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dwhere-t .drow { flex-direction: column; align-items: flex-start; gap: 4px; }
.dwhere-t .spd { white-space: normal; font-size: 13px; color: var(--dim); }
.dwhere-t .zone { max-width: 100%; } .dwhere-t .zn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail .dleft .art { height: 440px; }
@media (max-width: 600px) { .dwhere { grid-template-columns: 1fr; } }

/* ---------- pet window, second pass (Phil, 21 Nov 2026): a smaller 3D model with the facts under it on the left, the
   zone map with the Zones page's zoom on the right; the window fits the screen and only the left side scrolls ---------- */
.detail.dnew { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); height: min(900px, calc(100vh - 40px)); }
.dnew .dleft { overflow-y: auto; border-right: 1px solid var(--line); }
.dnew .dleft .art { height: 320px; flex: none; }
.dnew .tags { right: 10px; }
.dnew .info { padding: 18px 20px 20px; gap: 16px; }
.dnew .dhead h2 { margin-right: 0; }
.dnew .dright { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; min-width: 0; min-height: 0; }
.dwhere-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding-right: 46px; min-height: 34px; }
.dwhere-h h4 { margin: 0; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim2); }
.dzones { display: flex; flex-wrap: wrap; gap: 6px; }
.dzt { border: 1px solid var(--line2); background: var(--card); color: var(--text); border-radius: 6px; padding: 3px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.dzt small { color: var(--dim); margin-left: 3px; } .dzt:hover { border-color: var(--blue-line); }
.dzt.on { border-color: var(--gold); color: var(--gold); background: var(--art); }
.dzone1 { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-family: Cinzel, serif; font-weight: 600; }
.dzcount { color: var(--dim); font-size: 13px; width: 100%; }
.dmapv { flex: 1; min-height: 260px; }
@media (max-width: 900px) {
  .detail.dnew { height: auto; grid-template-columns: minmax(0, 1fr); }
  .dnew .dleft { overflow: visible; border-right: 0; } .dnew .dleft .art { height: 300px; }
  .dmapv { flex: none; height: 60vh; }
}
/* no scroll bars in the pet window (Phil, 21 Nov 2026: "Can you do a rework so that we don't have scrolls?"): the window
   is exactly the screen's height minus its 20px margins and 1px borders; the 3D model takes the room the facts leave,
   and the map takes the room the extra skills leave */
.modal-box:has(.dnew) { overflow: hidden; }
.detail.dnew { height: min(900px, calc(100vh - 42px)); }
.dnew .dleft { display: flex; flex-direction: column; overflow: hidden; }
.dnew .dleft .art { flex: 1 1 0; height: auto; min-height: 190px; max-height: 340px; }
.dnew .info { flex: none; padding: 14px 20px 16px; gap: 12px; }
.dnew .info h2 { font-size: 27px; }
.dnew .dstats > div { padding: 6px 12px; }
.dnew .dstats b { font-size: 17px; } .dnew .dstats .ds-lv b { font-size: 22px; }
.dnew .tcards { gap: 6px; } .dnew .tcard { padding: 8px 12px; } .dnew .tcard .gi.lg { width: 36px; height: 36px; }
.dnew .info .sec h4 { margin-bottom: 6px; }
.dnew .dright { min-height: 0; }
.dmapv { min-height: 200px; }
.dmore { flex: none; display: flex; flex-direction: column; gap: 8px; }
.dmore > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dmore h4 { margin: 0; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim2); }
.dmore .dmeta { border-top: 0; padding-top: 0; }
@media (max-width: 900px) {
  .modal-box:has(.dnew) { overflow: auto; }
  .detail.dnew { height: auto; } .dnew .dleft { overflow: visible; } .dnew .dleft .art { flex: none; height: 300px; max-height: none; }
}
/* skill cards two side by side, so four skills still fit on a 720px high screen; only a very small screen scrolls */
.dnew .tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.dnew .tcard p { font-size: 12.5px; }
.dnew .dleft { overflow-y: auto; }
.dnew .dleft .art { min-height: 150px; }
.dnew .dleft .art { max-height: 390px; }
/* the pet window's map on the whole world map: the zone's own picture fades in when you are close to it */
.dmapv.worldmap .wm-zone { opacity: 0; transition: opacity .3s; }
.dmapv.worldmap .mapimg.deep .wm-zone { opacity: 1; }
.dmapv.worldmap:not(.zoomed) { cursor: grab; }
.zctl button svg { display: block; margin: 0 auto; }
/* the zone maps at full detail (the OpenMap add-on's baked tiles): fade in when you zoom close */
.worldmap .wm-zt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; pointer-events: none; }
.worldmap .wm-zt.on { opacity: 1; }
.worldmap .wm-zt img { position: absolute; display: block; max-width: none; -webkit-user-drag: none; user-select: none; }
.worldmap .wm-zt img:not([src]) { visibility: hidden; }

/* ---------- own 3D models (Phil, 22 Nov 2026: the site runs on its own game files): model-viewer fills the picture box ---------- */
.model > model-viewer { display: block; width: 100%; height: 100%; background: transparent; --poster-color: transparent; outline: none; }
.card .model > model-viewer { cursor: grab; } .card .model > model-viewer:active { cursor: grabbing; }
