/* Kinara — Tibia site theme
   (base inherited from the Perfect World International portal theme.)
   Site theme: near-black gothic, violet arcane glow, ornate gold.
   Self-contained (system fonts only) so it works offline on XAMPP and on shared hosting. */

:root{
  --bg:#0a0710;
  --bg2:#0d0a16;
  --panel:rgba(22,17,33,.72);
  --panel-solid:#161122;
  --line:rgba(139,92,246,.28);
  --line-soft:rgba(139,92,246,.16);
  --violet:#a855f7;
  --violet-2:#c4a2ff;
  --violet-glow:rgba(168,85,247,.35);
  --gold:#c8a24a;
  --gold-2:#e7c878;
  --gold-3:#f2dd9a;
  --text:#e9e4f2;
  --muted:#c3bcd7;
  --muted-2:#7d7495;
  --err:#ff6b6b;
  --ok:#5fd38a;
  --serif:"Cinzel","Trajan Pro",Georgia,"Times New Roman",serif;
  --sans:"Segoe UI",system-ui,-apple-system,Roboto,sans-serif;
  --maxw:1080px;
  --nav-h:60px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;min-height:100vh;color:var(--text);
  font-family:var(--sans);font-size:15px;line-height:1.5;
  background:var(--bg);
}
/* fixed dim scene behind everything — starts below the navbar so her head shows */
body::before{
  content:"";position:fixed;left:0;right:0;bottom:0;top:var(--nav-h);z-index:-2;
  background:url("bg-site.jpg") center top/cover no-repeat;
  opacity:.5;
}
body::after{
  content:"";position:fixed;inset:0;z-index:-1;
  background:
    radial-gradient(1200px 700px at 50% -15%, rgba(80,40,140,.27), transparent 60%),
    linear-gradient(180deg, rgba(8,6,14,.66), rgba(8,6,14,.85) 60%, var(--bg));
}

a{color:var(--gold-2);text-decoration:none}
a:hover{color:var(--gold-3)}
img{max-width:100%;display:block}
h1,h2,h3{font-family:var(--serif);font-weight:600;letter-spacing:.5px;line-height:1.2;margin:0}

/* ---------------------------------------------------------------- nav */
.nav{
  position:sticky;top:0;z-index:50;
  background:linear-gradient(180deg, rgba(10,7,16,.94), rgba(10,7,16,.72));
  border-bottom:1px solid var(--line-soft);
  backdrop-filter:blur(10px);
}
.nav-in{
  max-width:var(--maxw);margin:0 auto;padding:10px 20px;
  display:flex;align-items:center;gap:22px;flex-wrap:wrap;
}
.brand{display:flex;align-items:center;gap:11px;margin-right:auto}
.brand img{width:38px;height:38px;border-radius:8px;
  box-shadow:0 0 16px var(--violet-glow);border:1px solid var(--line)}
.brand b{font-family:var(--serif);font-size:18px;letter-spacing:1px;
  background:linear-gradient(180deg,var(--gold-3),var(--gold));
  -webkit-background-clip:text;background-clip:text;color:transparent}
.brand span{display:block;font-family:var(--sans);font-size:10px;letter-spacing:3px;
  text-transform:uppercase;color:var(--violet-2);opacity:.85}
.nav a.link{
  color:var(--muted);font-size:14.5px;letter-spacing:.4px;padding:6px 2px;
  position:relative;text-transform:uppercase;font-weight:600;
}
.nav a.link:hover{color:var(--text)}
.nav a.link.active{color:var(--gold-2)}
.nav a.link.active::after{
  content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;
  background:linear-gradient(90deg,transparent,var(--violet),transparent)}
.nav .spacer{flex:1}

/* ---------------------------------------------------------------- buttons */
.btn{
  display:inline-block;padding:7px 14px;border-radius:8px;border:0;cursor:pointer;
  font-family:var(--sans);font-size:12.5px;font-weight:700;letter-spacing:.4px;
  color:#1a1405;background:linear-gradient(180deg,var(--gold-2),var(--gold));
  box-shadow:0 6px 20px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25);
  text-transform:uppercase;transition:filter .15s, transform .15s;
}
.btn:hover{filter:brightness(1.08);transform:translateY(-1px);color:#1a1405}
.btn.ghost{
  background:rgba(168,85,247,.08);color:var(--violet-2);
  border:1px solid var(--line);box-shadow:none;text-shadow:0 0 10px var(--violet-glow)}
.btn.ghost:hover{background:rgba(168,85,247,.16);color:#e7dcff}
.btn.sm{padding:4px 9px;font-size:11.5px}
.btn.block{display:block;width:100%;text-align:center}

/* plain <button> in auth forms gets the gold look too */
.card button{
  padding:7px 14px;border-radius:8px;border:0;cursor:pointer;
  font-family:var(--sans);font-size:12.5px;font-weight:700;letter-spacing:.4px;
  color:#1a1405;background:linear-gradient(180deg,var(--gold-2),var(--gold));
  box-shadow:0 6px 20px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25);
  text-transform:uppercase;transition:filter .15s, transform .15s;
}
.card button:hover{filter:brightness(1.08);transform:translateY(-1px)}
.card .btn.ghost{background:rgba(168,85,247,.08);color:var(--violet-2);
  border:1px solid var(--line);box-shadow:none}

/* ---------------------------------------------------------------- layout */
.wrap{max-width:var(--maxw);margin:0 auto;padding:20px 16px 28px}
.section{margin-top:24px}
.section:first-child{margin-top:0}

.eyebrow{font-family:var(--sans);text-transform:uppercase;letter-spacing:4px;
  font-size:10px;font-weight:700;color:var(--violet-2);margin:0 0 5px}
.h-title{font-size:22px;
  background:linear-gradient(180deg,var(--gold-3),var(--gold));
  -webkit-background-clip:text;background-clip:text;color:transparent}
.rule{height:1px;margin:9px 0 0;
  background:linear-gradient(90deg,var(--line),transparent)}
.lead{color:var(--muted);font-size:14.5px;max-width:70ch}

/* ---------------------------------------------------------------- hero */
.hero{
  position:relative;border-radius:18px;overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 24px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.4);
}
.hero img{width:100%;height:auto;display:block}
.hero-grad{position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 40%,rgba(8,6,14,.55) 72%,var(--bg2) 100%)}
.hero-cta{
  position:absolute;left:0;top:50%;bottom:0;width:50%;padding:16px 24px;
  display:flex;gap:9px;flex-wrap:wrap;
  align-items:center;justify-content:center;align-content:center}
.hero-tag{width:100%;text-align:center;margin-bottom:4px;
  font-family:var(--serif);font-size:14px;letter-spacing:3px;color:var(--violet-2);
  text-transform:uppercase;text-shadow:0 2px 18px rgba(0,0,0,.9)}

/* ---------------------------------------------------------------- panels */
.panel{
  background:var(--panel);border:1px solid var(--line);border-radius:14px;
  padding:13px 15px;backdrop-filter:blur(6px);
  box-shadow:0 12px 40px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.03);
}
.grid{display:grid;gap:12px}
.grid.cols-2{grid-template-columns:repeat(2,1fr)}
.grid.cols-3{grid-template-columns:repeat(3,1fr)}

/* feature card */
.feat h3{font-size:14.5px;color:var(--gold-2);margin-bottom:4px;
  display:flex;align-items:center;gap:9px}
.feat h3 .dot{width:7px;height:7px;border-radius:50%;flex:none;
  background:var(--violet);box-shadow:0 0 10px var(--violet)}
.feat p{margin:0;color:var(--muted);font-size:13px}

/* ---------------------------------------------------------------- news */
.news{display:flex;flex-direction:column;gap:10px}
.post{
  background:var(--panel);border:1px solid var(--line-soft);border-radius:14px;
  padding:12px 14px;transition:border-color .18s, transform .18s;
}
.post:hover{border-color:var(--line);transform:translateY(-2px)}
.post-meta{display:flex;align-items:center;gap:7px;margin-bottom:6px;flex-wrap:wrap}
.chip{font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;
  padding:2px 7px;border-radius:999px;
  background:rgba(168,85,247,.14);color:var(--violet-2);border:1px solid var(--line)}
.post-date{font-size:12.5px;color:var(--muted-2);letter-spacing:.5px}
.post h3{font-size:17px;color:var(--gold-2);margin-bottom:4px}
.post p{margin:0;color:var(--muted);font-size:13.5px}

/* ---------------------------------------------------------------- quick facts */
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:9px}
.fact{background:var(--panel);border:1px solid var(--line-soft);border-radius:12px;
  padding:10px;text-align:center}
.fact b{display:block;font-family:var(--serif);font-size:17px;color:var(--gold-2)}
.fact span{display:block;font-size:10.5px;text-transform:uppercase;letter-spacing:1.5px;
  color:var(--muted-2);margin-top:4px}

/* ---------------------------------------------------------------- steps */
.steps{counter-reset:step;display:grid;gap:9px}
.step{display:flex;gap:11px;align-items:flex-start;
  background:var(--panel);border:1px solid var(--line-soft);border-radius:12px;padding:10px 12px}
.step::before{counter-increment:step;content:counter(step);
  font-family:var(--serif);font-size:15px;font-weight:700;color:#1a1405;
  width:27px;height:27px;flex:none;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(180deg,var(--gold-2),var(--gold));box-shadow:0 0 14px var(--violet-glow)}
.step h3{font-size:14px;color:var(--gold-2);margin-bottom:3px}
.step p{margin:0;color:var(--muted);font-size:13px}

/* ---------------------------------------------------------------- auth card */
.card-wrap{display:flex;justify-content:center;padding-top:4px}
.card{
  width:100%;max-width:440px;background:var(--panel-solid);
  border:1px solid var(--line);border-radius:16px;padding:18px 20px;
  box-shadow:0 24px 70px rgba(0,0,0,.6);
  position:relative;
}
.card::before{content:"";position:absolute;inset:0;border-radius:16px;pointer-events:none;
  box-shadow:inset 0 0 40px rgba(168,85,247,.06)}
.card .who{font-size:11px;color:var(--muted);text-align:right;margin:-6px 0 8px}
.card .who b{color:var(--violet-2)}
.card h1{font-size:20px;margin-bottom:3px;
  background:linear-gradient(180deg,var(--gold-3),var(--gold));
  -webkit-background-clip:text;background-clip:text;color:transparent}
.card p.sub{margin:0 0 11px;color:var(--muted);font-size:13px}
label{display:block;font-size:11.5px;color:var(--muted);margin:8px 0 4px;
  text-transform:uppercase;letter-spacing:1px}
input{width:100%;padding:7px 10px;border-radius:8px;border:1px solid #33254d;
  background:#120d1f;color:var(--text);font-size:13.5px;outline:none;transition:border-color .15s}
input:focus{border-color:var(--violet)}
.card button,.card .btn{width:100%;margin-top:12px}
.hint{margin-top:10px;font-size:11.5px;color:var(--muted-2);line-height:1.6;text-align:center}
.card .nav-links{margin-top:12px;padding-top:10px;border-top:1px solid var(--line-soft);
  text-align:center;font-size:13px}
.card .nav-links a{color:var(--violet-2);margin:0 6px}
code{background:#120d1f;padding:1px 5px;border-radius:5px;color:var(--gold-2)}

/* messages */
.msg{padding:6px 10px;border-radius:7px;font-size:13px;margin-bottom:6px}
.msg.err{background:rgba(255,107,107,.10);border:1px solid rgba(255,107,107,.4);color:var(--err)}
.msg.ok{background:rgba(95,211,138,.10);border:1px solid rgba(95,211,138,.4);color:var(--ok)}

/* ------------------------------------------------- live character-name checklist
   Every reason a character name can be refused, re-answered on each keystroke
   (assets/namecheck.js). ⛔ LAYOUT ONLY, and the colours are the shared tokens --
   --ok / --err / --muted are all redefined by board.css for the parchment skin and
   again for its light variant, so this control follows the board without board.css
   needing to restate a single rule about it. Hard-coding a green here is what would
   make it the one element that ignores the theme. */
.namechk-list{list-style:none;margin:-2px 0 8px;padding:0;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:1px 12px}
.namechk-row{display:flex;align-items:baseline;gap:6px;font-size:12px;line-height:1.55;
  color:var(--muted);transition:color .12s ease}
.namechk-mark{flex:none;width:11px;text-align:center;font-style:normal;font-weight:700}
.namechk-mark::before{content:"\2022"}                      /* idle: a bullet, not a verdict */
.namechk-row.is-ok{color:var(--ok)}
.namechk-row.is-ok .namechk-mark::before{content:"\2713"}
.namechk-row.is-bad{color:var(--err);font-weight:600}
.namechk-row.is-bad .namechk-mark::before{content:"\2715"}
/* The uniqueness row is neither passed nor failed until the form is submitted: it is the one
   rule that is a database query, and it is deliberately not asked per keystroke. */
.namechk-row.is-pending{color:var(--muted);opacity:.72}
.namechk-row.is-pending .namechk-mark::before{content:"\22EF"}
/* A failing row may name the exact character it objects to, so it gets the full width. */
.namechk-row.is-bad{grid-column:1/-1}

/* ---------------------------------------------------------------- auth modal */
.modal-overlay{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(6,4,12,.80);backdrop-filter:blur(7px);animation:fade .18s ease}
.modal-overlay[hidden]{display:none}
.modal{position:relative;width:100%;max-width:440px;animation:pop .2s ease}
.modal .modal-panel{margin:0}
.modal .modal-panel[hidden]{display:none}
.modal h1{font-size:22px}
.modal .modal-close{position:absolute;top:8px;right:9px;z-index:2;width:26px;height:26px;
  display:flex;align-items:center;justify-content:center;line-height:1;
  border-radius:9px;border:1px solid var(--line-soft);background:rgba(168,85,247,.08);
  color:var(--muted);font-size:19px;font-weight:400;cursor:pointer;padding:0 0 2px;margin:0;
  text-transform:none;letter-spacing:0;box-shadow:none}
.modal .modal-close:hover{color:var(--text);background:rgba(168,85,247,.16);transform:none;filter:none}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes pop{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}

/* download bricks (inside the download modal) */
.dl-list{display:flex;flex-direction:column;gap:6px;margin-top:4px}
.dl-item{display:flex;flex-direction:column;gap:2px;padding:8px 11px;border-radius:8px;
  border:1px solid var(--line-soft);background:rgba(168,85,247,.06);
  transition:border-color .16s, background .16s, transform .16s}
.dl-item:hover{border-color:var(--line);background:rgba(168,85,247,.13);transform:translateY(-1px)}
.dl-item b{color:var(--gold-2);font-size:13.5px}
.dl-item b::after{content:" ↗";color:var(--violet-2);font-size:12px;font-weight:400}
.dl-item span{color:var(--muted);font-size:11.5px}
.dl-item.disabled{background:transparent;border-style:dashed;border-color:var(--line-soft);
  opacity:.5;cursor:not-allowed}
.dl-item.disabled:hover{transform:none;background:transparent;border-color:var(--line-soft)}
.dl-item.disabled b{color:var(--muted-2)}
.dl-item.disabled b::after{content:""}

/* account rows */
.acct-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:5px}
.acct-row form{flex:1;min-width:180px;margin:0}
.acct-row form .btn{margin-top:0}

/* ---------------------------------------------------------------- footer */
.footer{border-top:1px solid var(--line-soft);
  background:linear-gradient(180deg,transparent,rgba(8,6,14,.6))}
.footer-in{max-width:var(--maxw);margin:0 auto;padding:14px 16px;
  display:flex;gap:18px;flex-wrap:wrap;align-items:center;justify-content:space-between;
  color:var(--muted-2);font-size:13px}
.footer-in a{color:var(--muted);margin:0 8px}
.footer-in a:hover{color:var(--gold-2)}

/* ---------------------------------------------------------------- responsive */
@media (max-width:760px){
  .grid.cols-2,.grid.cols-3{grid-template-columns:1fr}
  .h-title{font-size:19px}
  .nav a.link{font-size:13px}
  .brand span{display:none}
  .wrap{padding:14px 12px 20px}
}

/* ---- Players dropdown (nav) ---- */
.dropdown{position:relative;display:inline-block}
.dropdown > .link{display:inline-flex;align-items:center;gap:5px;cursor:pointer}
.dropdown .caret{font-size:10px;opacity:.8;transition:transform .15s}
.dropdown:hover .caret,.dropdown:focus-within .caret{transform:translateY(1px)}
.dropdown-menu{
  position:absolute;top:100%;left:0;margin-top:5px;min-width:150px;z-index:60;
  background:var(--panel-solid);border:1px solid var(--line);border-radius:12px;
  box-shadow:0 18px 44px rgba(0,0,0,.55);padding:4px;
  opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .15s,transform .15s,visibility .15s}
.dropdown:hover .dropdown-menu,.dropdown:focus-within .dropdown-menu{opacity:1;visibility:visible;transform:translateY(0)}
.dropdown-menu a{
  display:block;padding:5px 9px;border-radius:6px;color:var(--muted);font-size:13px;
  font-family:var(--sans);text-decoration:none}
.dropdown-menu a:hover{background:rgba(168,85,247,.14);color:var(--text)}

/* ---- Data tables (Highscores / Deaths) ---- */
.tbl-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin:0 0 11px}
.tbl-tools .fld{display:flex;flex-direction:column;gap:3px}
.tbl-tools label{font-family:var(--sans);text-transform:uppercase;letter-spacing:1.2px;
  font-size:10px;color:var(--muted-2)}
.tbl-tools select{
  background:var(--panel-solid);color:var(--text);border:1px solid var(--line);
  border-radius:7px;padding:5px 9px;font-size:12.5px;font-family:var(--sans);min-width:120px;outline:none}
.tbl-tools select:focus{border-color:var(--violet)}
.tbl-tools .count{margin-left:auto;color:var(--muted-2);font-size:12px;align-self:center}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;
  border:1px solid var(--line-soft);border-radius:14px;background:var(--panel)}
.panel .table-wrap{margin-bottom:10px}
.panel .table-wrap:last-child,.sp-panel .table-wrap,.dash-grid .table-wrap{margin-bottom:0}
table.data{width:100%;border-collapse:collapse;font-size:13px;font-family:var(--sans)}
table.data th,table.data td{padding:12px 14px;text-align:left;white-space:nowrap;
  border-bottom:1px solid var(--line-soft)}
table.data tbody tr:last-child td{border-bottom:0}
table.data th{font-size:10px;text-transform:uppercase;letter-spacing:1px;
  color:var(--muted-2);font-weight:700}
table.data:where(:not(.otf-table), .mnt-table) tbody tr:hover{background:rgba(168,85,247,.05)}
table.data td.name{color:var(--gold-2);font-weight:700;font-family:var(--serif)}
table.data td.num,table.data th.num{text-align:right;font-variant-numeric:tabular-nums}
table.data td.center,table.data th.center{text-align:center}
.yn{display:inline-block;padding:1px 7px;border-radius:999px;font-size:10px;font-weight:700;
  letter-spacing:.5px;text-transform:uppercase}
.yn.no{color:var(--ok);background:rgba(95,211,138,.12);border:1px solid rgba(95,211,138,.35)}
.yn.yes{color:var(--err);background:rgba(255,107,107,.12);border:1px solid rgba(255,107,107,.35)}
.pill{display:inline-block;padding:1px 6px;border-radius:999px;font-size:10px;
  border:1px solid var(--line);color:var(--muted)}
.pill.pvp{color:var(--err);border-color:rgba(255,107,107,.4);background:rgba(255,107,107,.10)}
.pill.pve{color:var(--gold-2);border-color:rgba(231,200,120,.35);background:rgba(231,200,120,.08)}
.tbl-empty{padding:14px;text-align:center;color:var(--muted)}

/* ---- Pagination ---- */
.pager{display:flex;gap:7px;align-items:center;justify-content:center;margin-top:11px;
  font-family:var(--sans)}
.pager button{background:var(--panel-solid);color:var(--text);border:1px solid var(--line);
  border-radius:7px;padding:4px 10px;font-size:12.5px;cursor:pointer;transition:filter .12s}
.pager button:hover:not(:disabled){background:rgba(168,85,247,.14)}
.pager button:disabled{opacity:.38;cursor:default}
.pager .pinfo{color:var(--muted);font-size:12px;min-width:104px;text-align:center}

/* ============================================================= *
 *  Kinara Tibia — additions on top of the PWI base              *
 * ============================================================= */

/* rarity pills (creatures loot) */
.pill.always{background:rgba(95,211,138,.16);color:#8ff0b6;border:1px solid rgba(95,211,138,.5)}
.pill.common{background:rgba(200,162,74,.16);color:var(--gold-3);border:1px solid rgba(200,162,74,.5)}
.pill.uncommon{background:rgba(96,165,250,.16);color:#bcd6ff;border:1px solid rgba(96,165,250,.5)}
.pill.rare{background:rgba(168,85,247,.18);color:var(--violet-2);border:1px solid var(--line)}
.pill.very-rare{background:rgba(255,107,107,.16);color:#ffb3b3;border:1px solid rgba(255,107,107,.5)}
.pill{display:inline-block;padding:1px 7px;border-radius:999px;font-size:10px;font-weight:700;
  letter-spacing:.02em;text-transform:capitalize;white-space:nowrap}

/* quest status badges */
.qs{display:inline-block;padding:1px 7px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}
.qs.done{background:rgba(95,211,138,.16);color:#8ff0b6;border:1px solid rgba(95,211,138,.5)}
.qs.prog{background:rgba(200,162,74,.16);color:var(--gold-3);border:1px solid rgba(200,162,74,.5)}
.qs.none{background:rgba(125,116,149,.14);color:var(--muted);border:1px solid var(--line-soft)}

/* clickable chip (character switcher + quest toggle) */
.chip{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border-radius:999px;
  background:rgba(168,85,247,.08);border:1px solid var(--line);color:var(--text);
  font-weight:600;font-size:11.5px;text-decoration:none;transition:all .15s}
.chip small{color:var(--muted);font-weight:600}
.chip:hover{border-color:var(--violet);color:#fff}
.chip.on{background:linear-gradient(180deg,var(--gold-2),var(--gold));color:#1a1405;border-color:var(--gold)}
.chip.on small{color:#4a3a12}
.char-switch,.qlog-toggle{display:flex;gap:5px;flex-wrap:wrap}

/* character header + outfit */
.char-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.char-outfit{width:96px;height:96px;display:flex;align-items:center;justify-content:center;
  background:var(--panel-solid);border:1px solid var(--line);border-radius:14px}
.char-outfit img{transform:scale(1.7);image-rendering:pixelated}
.outfit-current{display:flex;gap:16px;align-items:flex-start}
.outfit-current>img{width:72px;height:72px;flex:0 0 auto;image-rendering:pixelated;transform:scale(1.4);
  transform-origin:top left}

/* stat grid */
.stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:7px}
.stat{background:var(--panel);border:1px solid var(--line-soft);border-radius:12px;padding:6px 9px}
.stat b{display:block;color:var(--gold-2);font-size:16px;font-family:var(--serif)}
.stat span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted-2)}

/* quest log head */
.qlog-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}

/* death list */
.death-list{list-style:none;margin:0;padding:0}
.death-list li{padding:4px 0;border-bottom:1px solid var(--line-soft);font-size:13px;color:var(--muted)}
.death-list li span{color:var(--text);font-variant-numeric:tabular-nums}

/* outfit library */
.outfit-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:9px}
.outfit-card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:10px 8px;text-align:center}
.outfit-imgs{display:flex;justify-content:center;gap:7px;min-height:58px;align-items:flex-end}
.outfit-imgs img{image-rendering:pixelated;transform:scale(1.25)}
.outfit-name{margin-top:8px;font-family:var(--serif);color:var(--gold-2);font-weight:700;font-size:14.5px}
.obadge{display:inline-block;margin-top:5px;padding:1px 7px;border-radius:999px;font-size:10px;font-weight:700}
.obadge.free{background:rgba(95,211,138,.16);color:#8ff0b6;border:1px solid rgba(95,211,138,.5)}
.obadge.prem{background:rgba(200,162,74,.16);color:var(--gold-3);border:1px solid rgba(200,162,74,.5)}
.obadge.quest{background:rgba(168,85,247,.18);color:var(--violet-2);border:1px solid var(--line)}
.outfit-obtain{color:var(--muted);font-size:12px;margin:6px 0 0}

/* vertical form fields (login/register/account) */
form.panel .fld{display:block;margin-bottom:7px}
form.panel .fld>span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted-2);margin-bottom:3px}
form.panel input,form.panel select{width:100%;padding:6px 9px;border-radius:8px;
  background:var(--panel-solid);border:1px solid var(--line);color:var(--text);font-size:12.5px;font-family:var(--sans)}
form.panel input:focus,form.panel select:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(200,162,74,.16)}

/* how-to-start steps (server page) */
.steps{display:flex;flex-direction:column;gap:8px}
.step{display:flex;gap:9px;align-items:flex-start;color:var(--muted);line-height:1.6}
.step>span{flex:0 0 auto;width:21px;height:21px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:11.5px;color:#1a1405;background:linear-gradient(180deg,var(--gold-2),var(--gold))}

/* ---- outfits table ---- */
.outfit-table td{vertical-align:top}
.ot-head{display:flex;gap:8px;align-items:center}
.ot-sprites{display:flex;gap:4px;flex:0 0 auto}
.ot-sprites img{width:40px;height:40px;image-rendering:pixelated;object-fit:contain}
.ot-name{font-family:var(--serif);color:var(--gold-2);font-weight:700;font-size:14.5px;white-space:nowrap}
.ot-req{font-size:12px;color:var(--text);line-height:1.4;white-space:normal;min-width:150px}
.ot-mini{width:32px;height:32px;image-rendering:pixelated;float:left;margin:0 8px 2px 0}
.obadge{display:inline-block;margin-top:3px;padding:1px 6px;border-radius:999px;font-size:9.5px;font-weight:700}
.obadge.free{background:rgba(95,211,138,.16);color:#8ff0b6;border:1px solid rgba(95,211,138,.5)}
.obadge.prem{background:rgba(200,162,74,.16);color:var(--gold-3);border:1px solid rgba(200,162,74,.5)}
.obadge.quest{background:rgba(168,85,247,.18);color:var(--violet-2);border:1px solid var(--line)}

/* ---- creatures table (Treasura-style loot column) ---- */
.cr-search{width:100%;max-width:520px;padding:6px 10px;border-radius:8px;background:var(--panel-solid);
  border:1px solid var(--line);color:var(--text);font-size:13px;margin-bottom:9px}
.cr-table td{vertical-align:top}
.cr-name{font-family:var(--serif);color:var(--gold-2);font-weight:700;white-space:nowrap}
.cr-name img{width:32px;height:32px;image-rendering:pixelated;vertical-align:middle;margin-right:8px}
.loot-list{display:flex;flex-wrap:wrap;gap:3px}
.loot-chip{display:inline-flex;align-items:center;gap:3px;padding:1px 7px;border-radius:6px;
  background:rgba(168,85,247,.06);border:1px solid var(--line-soft);font-size:11.5px;color:var(--muted);white-space:nowrap}
.loot-chip.r-always{border-color:rgba(95,211,138,.45)}
.loot-chip.r-rare{border-color:rgba(200,162,74,.4)}
.loot-chip.r-very-rare{border-color:rgba(255,107,107,.4)}
.cr-empty{color:var(--muted);padding:11px;text-align:center}

/* ---- server info lists ---- */
.info-list{list-style:none;margin:0;padding:0}
.info-list li{padding:5px 0;border-bottom:1px solid var(--line-soft);color:var(--muted);line-height:1.6}
.info-list li:last-child{border-bottom:0}
.info-list b{color:var(--text)}
.skill-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.skill-list li{color:var(--muted);line-height:1.5;font-size:13px;padding:9px;border:1px solid var(--line-soft);
  border-radius:12px;background:rgba(168,85,247,.04)}
.skill-list b{color:var(--gold-2);font-family:var(--serif);font-size:14.5px}
.skill-list .who{display:inline-block;margin-left:6px;font-size:9.5px;text-transform:uppercase;letter-spacing:.08em;
  color:var(--violet-2);background:rgba(168,85,247,.12);border:1px solid var(--line);border-radius:999px;padding:0 6px;vertical-align:middle}
@media (max-width:760px){.skill-list{grid-template-columns:1fr}}

/* ---- outfits table v2 (compact, per-item rows, hover tooltip) ---- */
.outfit-table{font-size:12.5px}
.outfit-table th,.outfit-table td{padding:4px 7px;vertical-align:top}
.outfit-table thead th{font-size:10.5px}
/* ⛔ TWO CELLS, NOT ONE: .ot-id is the sprite pair ONLY and .ot-meta is the name/badge/wiki
   column beside it (owner, 2026-09-04: the name had no column of its own and read as an orphan
   caption stacked under the pictures). Anything scoped `.ot-id .ot-name` no longer matches. */
.ot-id{width:158px}
.ot-id .ot-sprites{display:flex;gap:2px}
.ot-id .ot-sprites img{width:68px;height:68px;image-rendering:pixelated;object-fit:contain}
.ot-meta{width:150px}
.ot-meta .ot-name{font-family:var(--serif);color:var(--gold-2);font-weight:700;font-size:13px;line-height:1.1}
.ot-meta .obadge{margin-top:2px;padding:0 6px;font-size:9.5px}
.ot-base{width:150px;color:var(--muted);font-size:11.5px;line-height:1.45}
.ot-req{min-width:150px}
.oi{display:block;padding:1px 5px;border-radius:5px;line-height:1.35;color:var(--text);cursor:default;
  border:1px solid transparent}
.oi + .oi{margin-top:1px}
.oi:hover{background:rgba(168,85,247,.10);border-color:var(--line-soft)}
.oi .oq{color:var(--gold-2);font-weight:700;font-variant-numeric:tabular-nums}
.oi.note{color:var(--muted);cursor:default;font-style:italic}
.oi.note:hover{background:none;border-color:transparent}
/* ⛔ `.o-tip` (the Outfits page's own hover box) was DELETED on 2026-09-04 along with the handler
   that used it -- those chips open the shared item card (itemtip.php) now, like every other item
   on the site. Do not re-add a page-local tooltip class here; it is how a second, thinner
   "where does this drop" answer gets back in. */

/* ---- quest log filters ---- */
/* The quest page's completion counter: big green X/Y in the top-right of the section header.
   Y follows the Rookgaard/Mainland checkboxes, so it is set by JS, not by the markup.
   ⛔ It counts only TRACKABLE quests (data-trk="1"). Six mainland quests have no deducible
   completion key, so a denominator that included them could never be reached. */
.qhead{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
/* ⭐ Typeset as the section TITLE beside it -- same var(--serif) stack and the same .5px tracking
   h1,h2,h3 carry -- just bold and green instead of the h-title's gold. ⛔ NO hardcoded glow: the
   green is var(--ok), which board.css re-skins to a DARK leaf on the parchment, and a literal
   rgba() halo of the dark-theme green would ring dark ink with a light-theme colour. */
.qcount{font-family:var(--serif);font-weight:700;letter-spacing:.5px;font-size:27px;
  line-height:1.2;color:var(--ok);white-space:nowrap}
.qcount .qc-of{opacity:.5;font-size:21px;margin:0 1px}
@media (max-width:640px){.qcount{font-size:22px}.qcount .qc-of{font-size:17px}}

.qfilters{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 3px}
.qfilters label{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border-radius:999px;
  background:rgba(168,85,247,.06);border:1px solid var(--line);color:var(--muted);font-size:11px;
  font-weight:600;cursor:pointer;user-select:none;white-space:nowrap}
.qfilters label:hover{border-color:var(--violet);color:var(--text)}
.qfilters input{accent-color:var(--gold);cursor:pointer;margin:0}

/* --- compact quest-log controls inside the narrow dashboard column --- */
.dash-grid .panel>h3{margin:0 0 5px}
.dash-grid .qlog-head{gap:5px;margin-bottom:5px}
.dash-grid .qlog-head h3{margin:0}
.dash-grid .qlog-toggle{gap:5px}
.dash-grid .qlog-toggle .chip{padding:2px 7px;font-size:9.5px;letter-spacing:.4px}
.dash-grid .qfilters{gap:3px;margin:0 0 5px}
.dash-grid .qfilters label{padding:1px 4px;font-size:9.5px;gap:3px;letter-spacing:.2px; margin-top: 0;}
.dash-grid .qcounts{margin:0 0 5px;gap:3px}
.dash-grid .qcounts .qs{font-size:10px}

/* ---- character dashboard ---- */
/* header: full-width name row, then [sprite + info] on the left and summary stats on the right */
.main-box{margin-bottom:9px}
.mb-name{width:100%;margin:0 0 6px;word-break:break-word}
.mb-row{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.mb-body{display:flex;gap:9px;align-items:center;min-width:0}
.mb-sprite{flex:0 0 auto;width:74px;height:74px;overflow:hidden;
  background:var(--panel-solid);border:1px solid var(--line);border-radius:12px}
/* outfit.php returns the sprite auto-trimmed to its opaque bbox (character position varies
   per outfit), so plain object-fit + padding frames every outfit consistently. */
.mb-sprite img{width:100%;height:100%;object-fit:contain;padding:9px;box-sizing:border-box;image-rendering:pixelated}
.mb-info{min-width:0}
.mb-line{font-size:12.5px;color:var(--muted);margin-top:4px;line-height:1.4}
.mb-line:first-child{margin-top:0}
/* right-side quick stats — as bricks */
.mb-stats{flex:0 0 auto;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.mb-stat{background:var(--panel-solid);border:1px solid var(--line);border-radius:10px;
  padding:5px 10px;text-align:center;min-width:78px}
.mb-stat span{display:block;font-size:9.5px;text-transform:uppercase;letter-spacing:.06em;
  color:var(--muted-2);margin-bottom:2px}
.mb-stat b{display:block;font-size:14.5px;color:var(--gold-2);font-weight:700;line-height:1.25}

.klist{list-style:none;margin:0;padding:0}
.klist li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;
  padding:1px 0;border-bottom:1px solid var(--line-soft);font-size:12.5px;line-height:1.3}
.klist li:last-child{border-bottom:0}
.klist li span{color:var(--muted)}
.klist li b{color:var(--text);font-variant-numeric:tabular-nums}
.klist-2col{display:grid;grid-template-columns:1fr 1fr;column-gap:14px}
.qcounts{margin:5px 0 7px;display:flex;gap:5px;flex-wrap:wrap}

/* character.php has two of these grids (the character, then the account). Each flows 3 across
   while the width allows, then 2, then 1; a hidden private panel leaves no hole. */
/* one cell size for the whole dashboard — the grid and anything that has to line up
   with it both read these, so they can never drift apart */
:root{--dash-cell:300px;--dash-gap:10px}
.dash-grid{display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--dash-cell)),var(--dash-cell)));
  gap:var(--dash-gap);align-items:start;margin-bottom:9px}
/* uniform 500px cells so every row lines up regardless of which panels are present */
.dash-grid > .panel, .dash-grid > .dash-col{height:430px}
.dash-grid > .panel{display:flex;flex-direction:column;max-width:300px}
/* each panel's body is the flexible part and scrolls inside the fixed cell height */
.dash-grid .panel .dash-scroll, .dash-grid .otf-wrap{
  flex:1 1 auto;min-height:0;height:auto;max-height:none;overflow-y:auto}
/* (.lvl-panel — the full-row Level progress cell — was removed 2026-08-02: the level
   timeline is staff-only now and lives on admin_levels.php. See character.php.) */
.sp-panel{display:flex;flex-direction:column;overflow:hidden}
.sp-panel .table-wrap{flex:1 1 auto;min-height:0;overflow-y:auto}
/* compact character identity panel (top of the left column) */
.fg-ident{padding:8px 11px}
.dash-grid > .dash-col > .panel:last-child{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.fg-ident .ci-name{margin:0;font-size:17px;letter-spacing:.2px;word-break:break-word}   /* smaller than .h-title 22px so a 20-char max name fits the ~268px panel */
.fg-ident .ci-sub{margin-top:2px;color:var(--muted);font-size:14px}
/* ⛔ SAME SIZE AS .ci-sub, NOT the old 12.5px. The presence line ("Online" / "Last seen 15d ago" /
   "Never logged in") is the second of two equal labelled lines under the name, so a smaller font
   read as a footnote hung off the first one. It also carries both classes, and this rule comes
   second, so whatever is set here wins — keep the two in step. */
.fg-ident .ci-status{margin-top:2px;font-size:14px}
/* Fighters Guild fills the remaining left-column height; boss table on top, scrollable task list below */
.fg-panel{flex:1 1 auto;display:flex;flex-direction:column;overflow:hidden}
.fg-tasks{flex:1 1 auto;min-height:0;overflow-y:auto;margin-top:9px}
.fg-pickup{margin:0 0 6px;font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;
  color:#6fff9f;animation:fg-pulse 2.2s ease-in-out infinite}
@keyframes fg-pulse{
  0%,100%{opacity:1;text-shadow:0 0 8px rgba(111,255,159,.7)}
  50%{opacity:.5;text-shadow:0 0 2px rgba(111,255,159,.15)}
}
.fg-locked{margin:0;font-size:12px;line-height:1.5;color:var(--muted-2)}
table.data.fg-table td, table.data.fg-table th{padding:1px 7px !important;line-height:1.3 !important;font-size:12.5px}
table.data.fg-table td.name{font-family:var(--sans);font-weight:400;color:var(--text)}
/* hidden scrollbar for the dashboard scroll areas (still scrolls via wheel/touch) */
.sp-panel .table-wrap, .dash-scroll, .dash-grid .otf-wrap{scrollbar-width:none}
.sp-panel .table-wrap::-webkit-scrollbar, .dash-scroll::-webkit-scrollbar,
.dash-grid .otf-wrap::-webkit-scrollbar{width:0;height:0;display:none}
/* quest / bestiary / outfits tables: no box, just the row separators */
.dash-grid .table-wrap, .otf-wrap, .sp-panel .table-wrap{border:0;border-radius:0;background:none}
/* outfits panel + spells panel — capped to the same 300px as every other panel */
.sp-panel{max-width:300px}

/* ---- Commands page (commands.php) ---- */
.cmd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.cmd-cat.panel{padding:11px 13px}
.cmd-cat h4{margin:0 0 4px;color:var(--gold-2);font-size:11px;font-weight:700;
  letter-spacing:2px;text-transform:uppercase;
  border-bottom:1px solid var(--line-soft);padding-bottom:5px}
.cmd-cat ul{list-style:none;margin:0;padding:0}
.cmd-cat li{display:grid;grid-template-columns:minmax(96px,auto) 1fr;gap:4px 12px;
  align-items:baseline;padding:3px 0;border-bottom:1px solid var(--line-soft)}
.cmd-cat li:last-child{border-bottom:0}
.cmd-cat li code{font-family:var(--mono,ui-monospace,"Cascadia Code",Consolas,monospace);
  font-size:12px;color:var(--violet-2);background:rgba(139,92,246,.12);
  border:1px solid var(--line-soft);border-radius:5px;padding:1px 6px;white-space:nowrap}
.cmd-cat li code.copyable:hover{border-color:var(--line);color:var(--gold-3);text-decoration:none}
.cmd-cat li span{color:var(--muted);font-size:12px;line-height:1.45}
@media (max-width:520px){.cmd-cat li{grid-template-columns:1fr;gap:3px}}

/* left column stacks the Daily Tasks panel above Skills */
.dash-col{display:flex;flex-direction:column;gap:9px}
.dt-sub{margin:8px 0 4px;color:var(--gold-2);font-size:12px}
.boss-list{list-style:none;margin:0;padding:0}
.boss-list li{display:flex;align-items:center;gap:7px;padding:3px 0;font-size:12.5px;
  border-bottom:1px solid var(--line-soft)}
.boss-list li:last-child{border-bottom:0}
.bck{display:inline-flex;width:16px;justify-content:center;color:var(--muted-2);flex:0 0 auto}
.bck.done{color:#7ee0a6;font-weight:700}

/* a capped, scrollable body for the dashboard tables/grids */
.dash-scroll{max-height:360px;overflow-y:auto}

/* === dashboard tables (Quest Log · Bestiary · Outfits · Spells) share one look === */
/* compact density + value font, matching the Skills list */
table.data.qlog-table td, table.data.qlog-table th,
table.data.bst-table  td, table.data.bst-table  th,
table.data.otf-table  td, table.data.otf-table  th,
table.data.sp-table   td, table.data.sp-table   th{
  padding:1px 7px !important; line-height:1.3 !important; font-size:12.5px;
}
/* entry names: sans (not serif) — colour comes from the row status; outfits stay muted */
table.data.qlog-table td.name, table.data.bst-table td.name,
table.data.sp-table   td.name, table.data.otf-table td.name{ font-family:var(--sans); font-weight:400; }
table.data.otf-table td.name{ color:var(--muted); }
/* uppercase column headers — shared bestiary / outfits / spells look */
table.data.bst-table th, table.data.otf-table th, table.data.sp-table th{
  font-family:var(--sans); font-weight:700; text-transform:uppercase; letter-spacing:.6px;
  font-size:10px; color:var(--muted-2);
}
.otf-table .ok{color:var(--ok)}
.otf-table .no{color:var(--muted-2)}
/* spells: 2-column layout — name | (incantation / price / required level), right-aligned */
.sp-table td.c2{text-align:right;font-variant-numeric:tabular-nums}
.otag{font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--gold-3);
  border:1px solid rgba(200,162,74,.4);border-radius:5px;padding:0 3px;margin-left:3px;vertical-align:1px}
.ok{color:var(--ok);font-weight:700}
.no{color:var(--muted-2)}
.ov{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}

/* bestiary + museum headline */
.bhead{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.bpoints{display:flex;flex-direction:column;line-height:1.1}
.bpoints b{font-size:19px;color:var(--gold-2);font-variant-numeric:tabular-nums}
.bpoints span{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}
.bcls{display:inline-block;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;
  padding:0 4px;border-radius:5px;vertical-align:1px;border:1px solid var(--line-soft);color:var(--muted)}
.bcls.c-harmless{color:#9fe6b4;border-color:rgba(95,211,138,.4)}
.bcls.c-trivial{color:#bfe3a0;border-color:rgba(150,200,90,.4)}
.bcls.c-medium{color:#e7d08a;border-color:rgba(200,162,74,.45)}
.bcls.c-hard{color:#f0b784;border-color:rgba(224,140,74,.45)}
.bcls.c-challenging{color:#f09a9a;border-color:rgba(224,90,90,.45)}
.bcls.c-nemesis{color:#d9a2ff;border-color:rgba(168,85,247,.5)}

/* museum progress bar + item grid */
.mprog{height:6px;border-radius:999px;background:var(--panel-solid);border:1px solid var(--line);overflow:hidden;margin-bottom:8px}
.mprog-bar{height:100%;background:linear-gradient(90deg,var(--gold-2),var(--gold));border-radius:999px}
.museum-grid{display:flex;flex-wrap:wrap;align-content:flex-start;justify-content:center;gap:3px}
/* the item grid is SPRITES ONLY — no tile, no frame, no owned/missing tint (owner's call
   2026-08-03). The 36px box stays: it is the grid cell, not a visible square. Owned vs
   missing is carried by the grayscale+opacity on .miss alone. */
.mi{display:flex;align-items:center;justify-content:center;width:36px;height:36px;flex:0 0 auto;
  background:none;border:0}
.mi img{max-width:32px;max-height:32px;image-rendering:pixelated}
.mi.miss{opacity:.5}
.mi.miss img{filter:grayscale(1) brightness(.6)}
.ot-wiki{display:inline-block;margin-top:3px;font-size:10.5px;font-weight:600}

/* item brick — an icon, a name, and the full item card on hover (itemtip.php). One row of them
   replaces a table wherever a reader wants to recognise items rather than compare columns:
   about.php's vocation + profession kits, runemaking.php's rune roster.
   ⛔ Geometry only. The parchment face, the border and the hover lift that make it a BRICK are
      the SKIN and live in board.css beside the other sheets. */
.vg-items{display:flex;flex-wrap:wrap;gap:5px}
.vg-item{display:flex;align-items:center;gap:6px;padding:4px 8px 4px 4px;border-radius:10px;
  border:1px solid var(--line-soft);background:rgba(255,255,255,.02)}
.vg-item img{width:32px;height:32px;object-fit:contain;image-rendering:pixelated;flex:none}
.vg-item>span{font-size:11.5px;color:var(--gold-2);text-transform:capitalize}

/* blue external "Wiki" links (look like links, not gold text) */
.wlink{color:#6fb1ff}
.wlink:hover{color:#9ccbff;text-decoration:underline}

/* themed <select> (quests "Track" picker) */
.fp-select{
  appearance:none;-webkit-appearance:none;-moz-appearance:none;
  padding:5px 26px 5px 9px;border-radius:8px;font:600 12px/1 var(--sans);
  color:var(--text);background:var(--panel-solid);border:1px solid var(--line);cursor:pointer;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23c4a2ff' stroke-width='2'/></svg>");
  background-repeat:no-repeat;background-position:right 9px center;
  max-width:280px;transition:border-color .15s,box-shadow .15s;
}
.fp-select:hover{border-color:var(--violet)}
.fp-select:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(200,162,74,.16)}
.fp-select option{background:#140f22;color:var(--text)}

/* ---- denser tables + quests: no needless internal scroll, less padding ---- */
.data th,.data td{padding:4px 7px}
/* quests table: let cells wrap so the row fits the screen instead of scrolling */
.quests-table th,.quests-table td{white-space:normal;padding:4px 7px;vertical-align:top}
.quests-table td.num{white-space:nowrap;vertical-align:top}
.quests-table .qs-rewards{line-height:1.35;font-size:12px}
.quests-table .name{line-height:1.3}
/* trim padding across the site */
.panel{padding:11px 13px}
.section{margin:12px 0}
.fp-content{padding:12px 14px}

/* ---- tighter padding pass (denser everywhere) ---- */
.fp-content{padding:10px 12px}
.section{margin:9px 0}
.section:first-child{margin-top:4px}
.panel{padding:10px 12px}
.panel h3{margin-bottom:5px}
.h-title{margin-bottom:4px}
.rule{margin:6px 0 10px}
.lead{margin:6px 0}
.data th,.data td{padding:3px 7px}
.quests-table th,.quests-table td{padding:3px 6px}
.nav-in{padding:6px 12px}
.wrap{padding-top:9px;padding-bottom:9px}
.grid{gap:9px}
.char-cols{gap:9px}
.char-col1{gap:9px}

/* ============================================================= *
 *  AUTHORITATIVE density overrides — these MUST win over the    *
 *  PWI base `table.data th,td` (specificity 0,1,2). Use equal   *
 *  specificity + !important so padding actually shrinks and     *
 *  wide cells wrap instead of overflowing.                      *
 * ============================================================= */
table.data th, table.data td{
  padding:3px 7px !important;
  white-space:normal !important;
  line-height:1.28 !important;
  vertical-align:middle !important;
}
table.data td.num, table.data th.num, table.data td.center, table.data th.center{ white-space:nowrap !important; }
table.data thead th{ padding:3px 7px !important; }

/* shrink the badges so rows aren't tall */
.qs, .pill, .obadge{ padding:1px 6px !important; }

/* reclaim the wasted page whitespace */
.wrap{ padding:8px 12px 14px !important; max-width:1360px !important; }
.section{ margin:8px 0 !important; }
.section:first-child{ margin-top:2px !important; }
.h-title{ margin:0 0 3px !important; }
.rule{ margin:4px 0 7px !important; }
.lead{ margin:4px 0 !important; }
.panel{ padding:9px 11px !important; }
.nav-in{ padding:5px 12px !important; }
.footer-in{ padding:9px 14px !important; }

/* sortable quest headers */
.quests-table th.sortable{cursor:pointer;user-select:none;white-space:nowrap !important}
.quests-table th.sortable:hover{color:var(--gold-3)}
.quests-table th.sortable .arw{color:var(--gold-2);font-size:11px}

/* generalize sortable headers to all data tables + spell incantation styling */
.data th.sortable{cursor:pointer;user-select:none;white-space:nowrap !important}
.data th.sortable:hover{color:var(--gold-3)}
.data th.sortable .arw{color:var(--gold-2);font-size:11px}
.spwords{font-family:var(--serif);color:var(--violet-2);font-style:italic}

/* spells table: don't stretch full width; cap Name + Incantation columns */
.spells-table{width:auto !important}
.spells-table td.name,.spells-table td:last-child{max-width:400px;overflow-wrap:anywhere;white-space:normal !important}

/* ⭐ spells page = a spell × VOCATION matrix (2026-08-06): Name · Level · Mana · Incantation ·
   Gold, then one narrow checkmark column per class line. Two corrections to the rule above, which
   was written when the incantation WAS the last column:
     - the last column is now "Necromancer", a single glyph, so it must not carry the 400px
       wrapping cap (that cap is what keeps a long incantation from stretching the table);
     - the incantation moved to column 4 and takes the cap instead. Positional selectors are ugly
       but the alternative is a class on a cell whose only job is holding one <span>. */
.spmatrix td:last-child{max-width:none;white-space:nowrap !important}
.spmatrix td:nth-child(4){max-width:300px;overflow-wrap:anywhere;white-space:normal !important}
/* the five class columns: tight, so ten columns still fit without a horizontal scroll */
.spmatrix td.center,.spmatrix th.center{padding-left:4px !important;padding-right:4px !important}

/* spells: container hugs the table instead of spanning full width */
.sp-wrap{width:fit-content;max-width:100%}

/* spells: Gold column — a spell nobody sells (spells.json "needlearn":0) is granted automatically
   at its level, so it reads as a muted "free" rather than a bare 0. */
.sp-free{color:var(--muted)}
/* spells: a GOLD checkmark in one of the five class columns — that class may learn the spell, but
   only from a paid promotion up (its own tier floor is >= 2; voc_line_min_tiers() in voclib.php).
   A plain green .ok check means any tier of that class may learn it. */
.sp-quest{color:var(--gold-2);font-weight:600}

/* copy-to-clipboard toast + copyable cells */
.fp-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(20px);
  background:#140f22;border:1px solid var(--gold);color:var(--gold-3);padding:6px 13px;border-radius:8px;
  font-weight:600;font-size:14px;box-shadow:0 10px 30px rgba(0,0,0,.6);opacity:0;pointer-events:none;
  transition:opacity .2s ease,transform .2s ease;z-index:300;max-width:90vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fp-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.copyable{cursor:pointer}
.copyable:hover{text-decoration:underline dotted;text-underline-offset:3px}

/* single-select vocation button group (spells) */
.vbtns{display:flex;gap:5px;flex-wrap:wrap}
.vbtn{padding:4px 10px;border-radius:999px;font:600 11.5px/1 var(--sans);cursor:pointer;
  color:var(--text);background:rgba(168,85,247,.08);border:1px solid var(--line);transition:all .15s}
.vbtn:hover{border-color:var(--violet);color:#fff}
.vbtn.on{background:linear-gradient(180deg,var(--gold-2),var(--gold));color:#1a1405;border-color:var(--gold)}

/* ============================================================= *
 *  Left-sidebar layout (classic Tibia menu-on-the-left)         *
 * ============================================================= */
body::before{ top:0 !important; }   /* no top nav now — bg covers full height */

/* ⭐⛔ THREE columns since 2026-08-21: left menu | board | right menu.
   max-width went 1360 -> 1586 = 1360 + 208 (the new right column) + 18 (its gap), so the
   BOARD KEEPS EXACTLY THE WIDTH IT HAD. The right menu is additive, not carved out of the
   content: at 1360 the board would have lost ~20% and every wide table (market, items,
   creatures) would have started scrolling that much sooner.
   ⛔ Change this and the right column together, or the board silently resizes. */
.layout{ display:flex; justify-content:center; gap:12px; max-width:1586px; margin:0 auto; padding:10px 12px 16px; align-items:flex-start; }
/* ⛔ .side-r is EMITTED BEFORE <main> (site_right_menu(), for the mobile-stacking reason in
   its header) and pushed to the right edge by order. Everything else defaults to order 0, so
   the paint order is: .side(0) .main(0) .side-r(1). */
.side-r{ order:1; }
.side{ flex:0 0 208px; width:208px; position:sticky; top:18px;
  max-height:calc(100vh - 36px); overflow-y:auto;
  background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:11px 10px;
  backdrop-filter:blur(6px); box-shadow:0 18px 50px rgba(0,0,0,.5);
  scrollbar-width:none; -ms-overflow-style:none; }
.side::-webkit-scrollbar{ display:none; width:0; height:0; }
.main{ flex:1 1 auto; min-width:0; }
.main-foot{ margin-top:14px; padding-top:9px; border-top:1px solid var(--line-soft);
  color:var(--muted-2); font-size:12px; text-align:center; }

.side-brand{ display:block; text-align:center; text-decoration:none; padding:4px 4px 10px;
  border-bottom:1px solid var(--line-soft); margin-bottom:5px; }
.side-logo{ display:block; width:100%; max-width:180px; height:auto; margin:0 auto 6px;
  filter:drop-shadow(0 4px 16px rgba(168,85,247,.4)); }
.side-brand b{ display:block; font-family:var(--serif); font-size:19px; letter-spacing:.02em;
  background:linear-gradient(180deg,var(--gold-3),var(--gold)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.side-brand span{ display:block; font-size:10px; letter-spacing:.26em; text-transform:uppercase; color:var(--muted); margin-top:3px; }

.menu-sec{ margin:8px 0; }
.menu-sec h4{ margin:0 0 4px; padding:0 7px; font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--violet-2); opacity:.85; }
.menu-link{ display:block; padding:6px 9px; border-radius:8px; color:var(--text); text-decoration:none;
  font-size:13.5px; font-weight:600; border:1px solid transparent; transition:background .12s,border-color .12s,color .12s; }
.menu-link:hover{ background:rgba(168,85,247,.10); border-color:var(--line-soft); text-decoration:none; }
.menu-link.is-active{ background:rgba(200,162,74,.08); color:var(--gold-2); }
.menu-link.menu-danger{ color:#ff9b9b; }
.menu-link.menu-danger:hover{ background:rgba(239,68,68,.12); border-color:rgba(239,68,68,.4); }

.side-status{ margin-top:10px; padding-top:8px; border-top:1px solid var(--line-soft); text-align:center; font-size:11px; color:var(--muted); }
.side-status .dot{ display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--ok); box-shadow:0 0 8px var(--ok); vertical-align:middle; margin-right:4px; }

.side-burger, .side-backdrop{ display:none; }
@media (max-width:860px){
  .layout{ display:block; padding:8px; }
  .side{ position:fixed; top:0; left:0; bottom:0; width:230px; border-radius:0 14px 14px 0; transform:translateX(-105%);
    transition:transform .22s ease; z-index:60; overflow:auto; }
  body.side-open .side{ transform:none; }
  body.side-open .side-backdrop{ display:block; position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:50; }
  .side-burger{ display:block; position:fixed; top:12px; left:12px; z-index:70; cursor:pointer;
    background:var(--panel-solid); color:var(--gold-2); border:1px solid var(--line); border-radius:9px; font-size:18px; padding:5px 10px; }
  .main{ margin-top:50px; }
  /* ⛔⛔ .side-r carries class="side" too (it shares the whole board look), so WITHOUT THIS
     IT INHERITS THE LEFT DRAWER: position:fixed, left:0, transform:translateX(-105%) --
     i.e. the account menu would vanish off the left edge on every phone, and the burger
     would open the left menu on top of it. Undo all of it: on a narrow screen it is an
     ordinary in-flow block, and `.layout` is display:block here so DOM order already puts
     it above the board (which is what site_right_menu() is positioned for).
     ⛔ It takes the burger clearance instead of .main, because it is now the FIRST thing
     in the column -- leaving both at 50px would open a dead 50px gap mid-page. */
  .side-r{ position:static; transform:none; width:auto; max-height:none; overflow:visible;
    border-radius:14px; order:0; margin:50px 0 12px; }
  body.side-open .side-r{ transform:none; }
  .side-r ~ .main, .main{ margin-top:0; }
}

/* collapsible menu section (Guides / Library / Staff -- Community was dropped 2026-08-21) */
.menu-toggle{cursor:pointer;display:flex;justify-content:space-between;align-items:center;user-select:none}
.menu-toggle:hover .caret{color:var(--gold-3)}
.menu-toggle .caret{font-size:14px;line-height:1;transition:transform .18s ease;color:var(--gold-2)}
.menu-sec.collapsed .menu-body{display:none}
.menu-sec.collapsed .menu-toggle .caret{transform:rotate(-90deg)}

/* server info: raw text blocks (no panel wrappers) */
.info-raw{line-height:1.55;color:var(--muted);margin:5px 0 3px;max-width:70ch}
.info-raw b{color:#fff;font-weight:700}
.info-rates{margin:5px 0;line-height:1.6}
.info-rates b{color:#fff;font-weight:700}

/* spells page: contextual reaction-skill note */
.spnote{margin:6px 0 4px;padding:6px 10px;border-left:3px solid var(--violet);border-radius:0 8px 8px 0;
  background:rgba(168,85,247,.07);color:var(--muted);font-size:12.5px;line-height:1.55;max-width:82ch}
.spnote b{color:var(--gold-2)}


/* introduction page: spoiler + steps + image */
.intro-spoiler{margin:9px 0;border:1px solid var(--line);border-radius:10px;background:var(--panel);overflow:hidden}
.intro-spoiler summary{cursor:pointer;padding:6px 10px;font-weight:700;color:var(--gold-2);user-select:none;list-style:none}
.intro-spoiler summary::-webkit-details-marker{display:none}
.intro-spoiler summary::before{content:"\25B8  ";color:var(--violet-2)}
.intro-spoiler[open] summary::before{content:"\25BE  "}
.intro-steps{margin:0;padding:2px 12px 9px 28px;color:var(--muted);line-height:1.7;font-size:13.5px}

/* attributes page: one collapsible sheet per equipment slot.
   ⛔ It carries `.panel` so board.css's CONTRAST PASS re-scopes the ink tokens on it -- a
   parchment surface that is NOT in that :is() list keeps the board's LIGHT tokens and renders
   light-on-light. Never restate a colour here; make the surface a sheet instead. */
.attr-slot{margin:8px 0}
.attr-slot summary{cursor:pointer;font-weight:700;user-select:none;list-style:none}
.attr-slot summary::-webkit-details-marker{display:none}
.attr-slot summary::before{content:"\25B8  ";color:var(--violet-2)}
.attr-slot[open] summary::before{content:"\25BE  "}
.attr-slot summary .muted{font-weight:400;font-size:12.5px;margin-left:8px}
.attr-cols{display:grid;grid-template-columns:1fr 1fr;gap:6px 18px;margin-top:8px}
.attr-col h4{margin:0 0 6px;font-size:13.5px}
/* the "there is more on hover" marker; it carries data-spelltip, so the shared card opens from it.
   ⛔ tokens only -- a literal would be light-on-light on the parchment sheet. */
.attr-i{display:inline-block;width:14px;height:14px;line-height:12px;margin-left:6px;
  border:1px solid var(--line);border-radius:50%;text-align:center;font-size:10px;
  font-weight:700;font-style:italic;font-family:var(--serif);color:var(--muted);
  cursor:help;vertical-align:1px;user-select:none}
.attr-i:hover,.attr-i:focus{color:var(--gold-2);border-color:var(--gold-2);outline:none}
@media (max-width:900px){ .attr-cols{grid-template-columns:1fr} }
.intro-steps li{margin:2px 0}
.intro-steps b{color:var(--text)}
.intro-steps code{background:rgba(168,85,247,.12);border:1px solid var(--line-soft);border-radius:5px;
  padding:1px 6px;color:var(--violet-2);font-family:var(--sans);font-size:13px}
.intro-img{margin-top:12px}
.intro-img img{border-radius:12px;border:1px solid var(--line);max-width:100%}

/* introduction: combat-mechanics figures (placeholder until image files exist) */
.mech-fig{margin:8px 0 4px}
.mech-fig img{width:100%;max-width:660px;border-radius:12px;border:1px solid var(--line);display:block}
.mech-fig.noimg img{display:none}
.mech-fig.noimg::before{content:"image coming soon";display:flex;align-items:center;justify-content:center;
  height:150px;max-width:660px;border:1px dashed var(--line);border-radius:12px;color:var(--muted-2);
  background:rgba(168,85,247,.05);font-size:13px;letter-spacing:.04em}
.mech-fig figcaption{color:var(--muted-2);font-size:12.5px;margin-top:6px;font-style:italic}

/* introduction: responsive YouTube embed */
.yt-embed{position:relative;width:100%;max-width:720px;aspect-ratio:16/9;margin:6px 0 4px;
  border-radius:12px;overflow:hidden;border:1px solid var(--line);background:#000}
.yt-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* home hero: "new to Tibia" button — same size as Create Account, a bit wider,
   on its own centered row above the two CTAs */
.hero-help-row{flex-basis:100%;display:flex;justify-content:center;margin-bottom:2px}
.hero-help{padding:7px 14px}
/* narrow screens: let the CTA span the full width again so it isn't cramped */
@media (max-width:720px){
  .hero-cta{width:100%;top:auto;bottom:0;
    background:linear-gradient(180deg,transparent,rgba(8,6,14,.75))}
}

/* dashboard tables (spells / quest log / bestiary) — whole-row colour by progress
   green = done/learnt/completed · yellow = in-progress/available/unlocked · gray = not-started/locked */
table.data tr.r-done td, table.data tr.r-done td.name, table.data tr.r-done .spwords{ color:#6fcf7f; }
table.data tr.r-prog td, table.data tr.r-prog td.name, table.data tr.r-prog .spwords{ color:var(--muted); }
table.data tr.r-none td, table.data tr.r-none td.name, table.data tr.r-none .spwords{ color:var(--muted-2); }
/* big green count shown in a panel header row (Quest Log / Museum) */
.hcount{font-family:var(--sans);font-size:19px;font-weight:700;color:#6fcf7f;font-variant-numeric:tabular-nums;white-space:nowrap}

/* ---------------------------------------------------------------- Fishing page */
.fish-ico{width:32px;height:32px;max-width:none;object-fit:contain;image-rendering:pixelated;
  display:inline-block;vertical-align:middle}
/* in a data table, match the item icons on items.php (.it-name img) exactly */
table.data .fish-ico{width:32px;height:32px}
/* cells holding a fish icon: never clip, give the whole sprite room */
table.data td.fish-cell{overflow:visible;padding:6px 10px}
.fish-hero{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;
  padding:10px 12px;border:1px solid var(--line-soft);border-radius:14px;background:var(--panel)}
.fish-cap{color:var(--muted-2);font-size:13px;font-style:italic;margin-left:4px}
.fish-arrow{font-size:26px;color:var(--gold-2);line-height:1}

.main {
  max-width: 994px;
}
/* the board hugs character.php's three dashboard cells: + .main padding/border 18px + .board-in padding 24px */
.main.main-dash{ max-width:calc(3 * var(--dash-cell) + 2 * var(--dash-gap) + 42px) }
/* Regulamin/Terms link in the footer (added 2026-08-31). .main-foot is muted, so an
   unstyled anchor inherits that colour and reads as plain text rather than a link. */
.main-foot .foot-link{color:inherit;text-decoration:underline;text-underline-offset:2px}
.main-foot .foot-link:hover{color:var(--gold-2,#e9c979)}

/* ---- COMPACT PASS (2026-09-04): a checkbox is sized to the label beside it ----
   Every filter row is 11px text now (owner: "make all of the buttons like this much more
   compact ... even smaller font"), and a browser-default ~13px box next to that reads as the
   loudest thing in the row. ⛔ The WIDTH has to be restated, not just a size: the auth-form
   `input{width:100%}` rule up this file matches a checkbox too, so anything relying on the
   intrinsic box would be at the mercy of that. Height goes with it or Chrome keeps the 13px. */
input[type=checkbox],input[type=radio]{width:12px;height:12px;min-width:0;padding:0;
  vertical-align:middle;flex:none}

/* ------------------------------------------------- Notice Board modal (metrics)
   The SKIN (wood, parchment, pin, shadow) is board.css's -- it owns the board, the
   notice sheet and the frame. Everything here is layout, size and type. */
.nbrd-modal{max-width:800px}
.nbrd-modal .modal-close{padding:0;line-height:1}
.nbrd-frame{padding:8px;border-radius:5px}
.nbrd-board{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;
  gap:34px;padding:48px 30px 38px;height:488px}
.nbrd-note{display:flex;flex-direction:column;min-width:0;min-height:0;padding:10px 12px 9px;border-radius:3px}
.nbrd-note h3{margin:0 0 7px;font-size:14px;letter-spacing:.03em;display:flex;align-items:center;gap:6px}
/* the one scroll container -- the boss list overflows it by design */
.nbrd-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:2px}

.nbrd-wx{display:grid;grid-template-columns:1fr 1fr;gap:10px 8px}
.nbrd-wx-row{display:grid;grid-template-columns:30px 1fr;align-items:center;gap:10px;
  font-family:var(--sans);font-size:12.5px}
.nbrd-wx-row b{font-size:13px}
.nbrd-guest{font-family:var(--sans);font-size:12.5px;line-height:1.45;margin:2px 0 0}
.nbrd-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.nbrd-sky{width:28px;height:28px;flex:none}
.nbrd-sky .rays,.nbrd-sky .haze{stroke-width:1.8;stroke-linecap:round}

.nbrd-lim{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.nbrd-lim li{display:flex;flex-direction:column;gap:1px;font-family:var(--sans);font-size:12px}
.nbrd-lim li b{font-size:13px}

.nbrd-ev{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.nbrd-ev li{position:relative;padding-left:15px;font-family:var(--sans);font-size:12.5px;line-height:1.35}
.nbrd-ev li::before{content:"";position:absolute;left:0;top:5px;width:8px;height:8px;border-radius:50%}

.nbrd-boss{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.nbrd-boss li{font-family:var(--sans);font-size:12.5px;padding:4px 2px}
/* past five names the list runs in two columns (set in PHP, not by CSS count) */
.nbrd-boss.is-2col{display:grid;grid-template-columns:1fr 1fr;column-gap:14px}

@media (max-width:820px){
  .nbrd-board{grid-template-columns:1fr;grid-template-rows:none;grid-auto-rows:minmax(150px,auto);
    height:auto;max-height:66vh;overflow-y:auto}
}
