/* /wiki (Classes/Wiki.php, temp/wiki.php). The site's own type (Alegreya, Montserrat) and gold; the game's own
   pictures do the rest: inventory icons as slots, the game's parchment maps with their labels, loading screens. */
.kb{
  --abyss:#16110d; --hull:#211a14; --hull-2:#2a2119; --line:rgba(255,216,160,.13); --line-2:rgba(255,216,160,.26);
  --text:#ece2cf; --muted:#a8998a; --brass:#ffd8a0; --brass-2:#dbb989; --rust:#d58a6f; --ink:#2c1a10; --paper:#e9d8b6;
  --serif:Alegreya,Georgia,serif; --sans:Montserrat,'Open Sans',Arial,sans-serif;
  display:grid;grid-template-columns:236px minmax(0,1fr);gap:16px;max-width:1400px;margin:96px auto 48px;padding:0 12px;   /* tighter edges and gap, more room for the content (owner 04.12 22:33) */
  
  color:var(--text);font-family:var(--sans);font-size:15px;line-height:1.6;text-align:left;font-variant-numeric:tabular-nums}
.kb *,.kb *::before,.kb *::after{box-sizing:border-box}
.kb a{color:var(--brass);text-decoration:none}
.kb a:hover{text-decoration:underline;text-underline-offset:3px}
.kb a:focus-visible,.kb summary:focus-visible,.kb input:focus-visible{outline:2px solid var(--brass);outline-offset:2px;border-radius:4px}
.kb h1,.kb h2,.kb h3{font-family:var(--serif);color:#fff6e6;text-transform:none;letter-spacing:0;font-weight:500}
.kb h1{font-size:42px;line-height:1.1;margin:4px 0 10px}
.kb h2{font-size:26px;line-height:1.2;margin:34px 0 12px}
.kb h3{font-size:19px;margin:22px 0 10px}
.kb h2 small,.kb h3 small{font-family:var(--sans);font-size:13px;color:var(--muted);font-weight:500;margin-left:6px}
.kb p{margin:0 0 12px}
.kb img{max-width:100%;height:auto}

/* side: search and sections, each with a picture from the game */
.kb-side{position:sticky;top:88px;align-self:start}
.kb-search{position:relative;margin-bottom:14px}
.kb-search input{width:100%;padding:11px 14px;border-radius:8px;border:1px solid var(--line-2);background:var(--abyss);color:var(--text);font:inherit;font-size:14px}
.kb-search input::placeholder{color:var(--muted)}
.kb-suggest{position:absolute;z-index:30;left:0;right:0;top:48px;background:var(--abyss);border:1px solid var(--line-2);border-radius:8px;max-height:62vh;overflow:auto;box-shadow:0 14px 34px rgba(0,0,0,.55)}
.kb-suggest a{display:grid;grid-template-columns:32px 1fr;gap:2px 10px;align-items:center;padding:7px 10px;color:var(--text);border-bottom:1px solid var(--line)}
.kb-suggest a img,.kb-suggest a i{grid-row:span 2;width:32px;height:32px;border-radius:4px}
.kb-suggest a i{background:var(--hull-2)}
.kb-suggest a span{font-size:12px;color:var(--muted);line-height:1.2}
.kb-suggest a.sel,.kb-suggest a:hover{background:var(--hull-2);text-decoration:none}
.kb-nav{display:flex;flex-direction:column;padding:6px;background:var(--abyss);border:1px solid var(--line);border-radius:10px}
.kb-nav a{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:10px;padding:7px 8px;border-radius:7px;color:var(--text)}
.kb-nav a img,.kb-nav a i{width:28px;height:28px;border-radius:5px;object-fit:cover}
.kb-nav a small{color:var(--muted);font-size:12px}
.kb-nav a:hover{background:var(--hull);text-decoration:none}
.kb-nav a.on{background:var(--hull-2);color:var(--brass)}
.kb-nav .kb-nav-home{display:block;font-family:var(--serif);font-size:18px;padding:8px 10px 10px;color:#fff6e6}

/* main panel */
.kb-main{min-width:0;background:var(--abyss);border:1px solid var(--line);border-radius:14px;padding:20px 24px 24px}
.kb-crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;color:var(--muted)}
.kb-crumbs span{opacity:.6}
.kb-lead{font-family:var(--serif);font-size:21px;line-height:1.45;color:#e6d6bb;max-width:62ch}
.kb-lead-sm{font-size:18px;margin-bottom:18px}
.kb-sub{margin:0;color:var(--muted)}
.kb-muted{color:var(--muted);font-size:14px}
.kb-small{font-size:13px;color:var(--muted);line-height:1.45}
.kb-strong{font-weight:600;color:#fff6e6}
.kb-text{font-size:16px;max-width:68ch}
.kb-effect{color:#c9e3b4;max-width:68ch}

/* the game's maps: the picture, and its labels in the page language */
.kb-chart{position:relative;margin:6px 0 10px;container-type:inline-size}
.kb-chart img{display:block;width:100%;height:auto;filter:drop-shadow(0 18px 30px rgba(0,0,0,.55))}
.kb-label{position:absolute;transform:translate(-50%,-50%) rotate(var(--rot,0deg));font-family:var(--serif);font-style:italic;font-weight:500;
  font-size:calc(var(--fs,1.6) * 1cqw);line-height:1.05;text-align:center;text-shadow:0 0 3px rgba(244,229,198,.9),0 0 1px rgba(244,229,198,.9);pointer-events:auto;overflow-wrap:break-word}
.kb a.kb-label{color:inherit}
.kb a.kb-label:hover{text-decoration:underline;text-decoration-thickness:1px}
.kb-label-t{font-style:normal;font-weight:700}
.kb-label.on{background:rgba(255,238,200,.82);border-radius:999px;padding:.08em .5em;box-shadow:0 0 0 .14em currentColor;width:auto!important;white-space:nowrap}
.kb-atlas{margin:14px -6px 8px}
.kb-chart-hero{margin:0}
.kb-chart-wide{max-width:1040px;margin:8px auto 22px}
.kb-caption{margin:6px 0 0;text-align:center;font-family:var(--serif);font-style:italic;color:var(--muted);font-size:16px}

/* home: shelves of real content */
.kb-intro h1{font-size:52px;margin-top:10px}
.kb-shelf{margin-top:34px}
.kb-shelf-h{display:flex;align-items:baseline;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding-bottom:6px;margin-bottom:14px}
.kb-shelf-h h2{margin:0}
.kb-shelf-h h2 a{color:#fff6e6}
.kb-more{font-size:13px;white-space:nowrap}
.kb-pair{display:grid;grid-template-columns:1fr 1fr;gap:28px}

/* items as inventory slots (the icons carry the game's own backdrop) */
.kb-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:14px 12px;margin:8px 0 6px}
.kb-tile{display:flex;flex-direction:column;gap:6px;color:var(--text)!important;min-width:0}
.kb-tile:hover{text-decoration:none!important}
.kb-slot{display:block;aspect-ratio:1;border-radius:8px;overflow:hidden;background:var(--hull);box-shadow:inset 0 0 0 1px var(--line-2)}
.kb-slot img{display:block;width:100%;height:100%;object-fit:cover}
.kb-tile:hover .kb-slot{box-shadow:inset 0 0 0 2px var(--brass)}
.kb-tile-n{font-family:var(--serif);font-size:15px;line-height:1.2;color:#f1e6d2}
.kb-tile-p{font-size:12px;color:var(--muted);margin-top:-3px}
.kb-slot-lg{width:128px;flex:0 0 128px;border-radius:10px}
.kb-head{display:flex;gap:22px;align-items:center;margin:10px 0 18px}
.kb-head h1{margin:0 0 4px}
.kb-group{border-bottom:1px solid var(--line);padding-bottom:6px}
.kb-cat{color:var(--brass-2)}

/* chips, switches, lists */
.kb-bar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:center;margin:6px 0 8px}
.kb-chips{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 14px}
.kb-chips a{padding:5px 12px;border:1px solid var(--line-2);border-radius:999px;font-size:13.5px;color:var(--text)}
.kb-chips a small{color:var(--muted);margin-left:2px}
.kb-chips a:hover{border-color:var(--brass);color:var(--brass);text-decoration:none}
.kb-chips a.on{background:var(--brass);border-color:var(--brass);color:#24180c}
.kb-chips-quiet a{border-color:var(--line)}
.kb-switch{display:inline-flex;border:1px solid var(--line-2);border-radius:8px;overflow:hidden}
.kb-switch a{padding:5px 12px;font-size:13px;color:var(--muted)}
.kb-switch a.on{background:var(--hull-2);color:var(--brass)}
.kb-switch a:hover{text-decoration:none;color:var(--brass)}
.kb-rows{list-style:none;margin:4px 0 10px;padding:0;columns:2 300px;column-gap:28px}
.kb-rows li{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--line);break-inside:avoid}
.kb-row-note{font-family:var(--serif);font-style:italic;font-size:14.5px;color:var(--brass-2)!important}
.kb-counts{list-style:none;margin:0;padding:0}
.kb-counts li{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid var(--line)}
.kb-counts span{color:var(--muted)}
.kb-list{padding-left:18px}
.kb-lock{display:inline-block;padding:1px 9px;border-radius:999px;font-size:12px;line-height:1.6;border:1px solid var(--line-2);color:var(--muted)}
.kb-lock-2{border-color:rgba(213,138,111,.55);color:var(--rust)}
.kb-lock-4{border-color:rgba(255,216,160,.55);color:var(--brass)}

/* tables */
.kb-scroll{overflow-x:auto;margin:8px 0 16px}
.kb-table{width:100%;border-collapse:collapse;font-size:14.5px;table-layout:auto}
.kb-table tr{display:table-row;height:auto;width:auto;table-layout:auto;background:none}
.kb-table thead{display:table-header-group;width:auto}
.kb-table tbody{display:table-row-group;max-height:none;overflow:visible;padding:0}
.kb-table th,.kb-table td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;color:inherit;line-height:1.5}
.kb-table thead th{color:var(--muted);font-weight:600;font-size:12.5px;border-bottom-color:var(--line-2)}
.kb-table tbody th{color:var(--muted);font-weight:500}
.kb-table .r{text-align:right;white-space:nowrap}
.kb-table-tight th,.kb-table-tight td{padding:7px 6px}
.kb-sort thead th{cursor:pointer;user-select:none}
.kb-sort thead th:hover{color:var(--brass)}
.kb-row-i{display:inline-flex;align-items:center;gap:10px}
.kb-row-i img,.kb-row-i i{width:36px;height:36px;border-radius:5px;flex:0 0 36px}
.kb-row-i i{background:var(--hull-2)}
.kb tr:target{background:rgba(255,216,160,.09)}

/* two columns with an infobox */
.kb-two{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start}
.kb-body>:first-child{margin-top:0}
.kb-box{background:var(--hull);border:1px solid var(--line);border-radius:12px;padding:14px 16px}
.kb-box h3{font-size:17px;margin:16px 0 8px}
.kb-pic{display:block;width:100%;height:auto;border-radius:8px;margin:0 0 12px;background:linear-gradient(#2d2620,#16130f)}
.kb-facts{display:grid;grid-template-columns:auto 1fr;gap:0;margin:0}
.kb-facts dt{color:var(--muted);font-size:13.5px;padding:7px 0;border-bottom:1px solid var(--line)}
.kb-facts dd{margin:0;text-align:right;padding:7px 0 7px 14px;border-bottom:1px solid var(--line);font-weight:600;color:#fff6e6}
.kb-services{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.kb-services li{padding:3px 10px;border-radius:6px;background:var(--hull-2);font-size:13px}

/* paper: notes and letters, the way the game shows them */
.kb-paper{position:relative;max-width:70ch;margin:8px 0 18px;padding:30px 36px 32px;color:var(--ink);border-radius:3px;
  background:radial-gradient(120% 90% at 50% 40%,#efe0c2 0%,#e5d0a8 70%,#d7bd8d 100%);box-shadow:0 16px 40px rgba(0,0,0,.5),inset 0 0 40px rgba(120,80,30,.25)}
.kb-paper p{font-family:var(--serif);font-style:italic;font-size:19px;line-height:1.7;margin:0}
.kb .kb-paper h1,.kb .kb-paper h3{color:#3a2112;font-style:normal}
.kb-paper h3{margin:0 0 10px}
.kb .kb-paper a{color:#7a251a}
.kb-paper-lg{margin-top:14px}
.kb-paper-lg h1{font-size:34px;margin:0 0 16px}
.kb-letters{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:4px 26px}
.kb-letter{display:flex;flex-direction:column;gap:3px;padding:12px 0 14px;border-bottom:1px solid var(--line);color:var(--text)!important}
.kb-letter:hover{text-decoration:none!important}
.kb-letter b{font-family:var(--serif);font-weight:500;font-size:19px;color:#fff6e6;line-height:1.25}
.kb-letter:hover b{color:var(--brass)}
.kb-letter span{font-family:var(--serif);font-style:italic;color:#cdbda4;font-size:15.5px;line-height:1.5}
.kb-letter em{font-style:normal;font-size:12.5px;color:var(--brass-2)}
.kb-letters-sm{grid-template-columns:1fr}
.kb-code{margin:8px 0 18px}
.kb-code summary{display:inline-block;cursor:pointer;padding:9px 16px;border-radius:8px;background:var(--brass);color:#24180c;font-weight:600;list-style:none}
.kb-code summary::-webkit-details-marker{display:none}
.kb-code b{display:inline-block;margin-left:16px;font-family:var(--serif);font-size:34px;letter-spacing:.3em;color:#fff6e6;vertical-align:middle}

/* places and islands: loading screens of the game */
.kb-art{margin:8px 0 22px}
.kb-art img{display:block;width:100%;aspect-ratio:21/9;object-fit:cover;border-radius:12px}
.kb-place-h h1{margin-bottom:2px}
.kb-isles{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.kb-isles a{position:relative;display:block;border-radius:10px;overflow:hidden;color:#fff6e6!important}
.kb-isles img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.kb-isles span{position:absolute;left:0;right:0;bottom:0;padding:22px 12px 9px;font-family:var(--serif);font-size:20px;background:linear-gradient(transparent,rgba(10,7,5,.85))}
.kb-isles a:hover{text-decoration:none!important}
.kb-isles a:hover img{filter:brightness(1.08)}
.kb-island{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;padding:18px 0;border-bottom:1px solid var(--line)}
.kb-island h2{margin:0 0 8px}
.kb-island-pic img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px}
.kb-mapset{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}
.kb-mapset a,.kb-mapset>span{display:flex;flex-direction:column;gap:6px;color:var(--text)!important;font-size:13.5px;line-height:1.3}
.kb-mapset img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain}

/* ships: the shipyard pictures */
.kb-fleet{display:flex;flex-wrap:wrap;gap:12px 10px}
.kb-fleet a{flex:0 0 96px;display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--text)!important;font-size:13px;text-align:center;line-height:1.2}
.kb-fleet img{width:96px;height:96px;border-radius:8px}
.kb-fleet a:hover{text-decoration:none!important;color:var(--brass)!important}
.kb-ships{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:18px 14px;margin:10px 0 26px}
.kb-ship{display:flex;flex-direction:column;color:var(--text)!important}
.kb-ship img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px}
.kb-ship-n{font-family:var(--serif);font-size:20px;color:#fff6e6;margin-top:8px;line-height:1.2}
.kb-ship-m{font-size:12.5px;color:var(--muted)}
.kb-ship:hover{text-decoration:none!important}
.kb-ship:hover .kb-ship-n{color:var(--brass)}
.kb-two-ship{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center}
.kb-shipfig{margin:0 0 16px}
.kb-shipfig img{display:block;width:100%;max-width:560px;border-radius:12px}

/* search page and footer */
.kb-results{list-style:none;padding:0;margin:0}
.kb-results li{display:flex;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid var(--line)}
.kb-results li a{display:inline-flex;align-items:center;gap:10px}
.kb-results img,.kb-results i{width:32px;height:32px;border-radius:4px}
.kb-results i{background:var(--hull-2)}
.kb-results span{color:var(--muted);font-size:13px}
.kb-foot{display:flex;justify-content:space-between;gap:12px;margin-top:36px;padding-top:12px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}

@media (max-width:1000px){
  .kb{grid-template-columns:minmax(0,1fr);gap:14px;margin-top:92px}
  .kb-side{position:static;min-width:0}
  .kb-nav{flex-direction:row;overflow-x:auto;gap:4px}
  .kb-nav a{flex:0 0 auto;grid-template-columns:24px auto;gap:6px}
  .kb-nav a small{display:none}
  .kb-nav a img,.kb-nav a i{width:24px;height:24px}
  .kb-nav .kb-nav-home{display:none}
  .kb-two,.kb-two-ship{grid-template-columns:minmax(0,1fr)}
  .kb-two>.kb-box{order:-1}
}
@media (max-width:640px){
  .kb{padding:0 10px;margin-top:84px}
  .kb-main{padding:16px 14px}
  .kb h1{font-size:32px}
  .kb-intro h1{font-size:36px}
  .kb-lead{font-size:18px}
  .kb-pair{grid-template-columns:1fr}
  .kb-island{grid-template-columns:1fr}
  .kb-head{gap:14px}
  .kb-slot-lg{width:88px;flex-basis:88px}
  .kb-tiles{grid-template-columns:repeat(auto-fill,minmax(92px,1fr))}
  .kb-paper{padding:22px 20px}
  .kb-paper p{font-size:17px}
  .kb-label.on{box-shadow:0 0 0 .1em currentColor}
}
@media (prefers-reduced-motion:reduce){.kb *{transition:none!important;animation:none!important}}
.kb-shipicon{display:block;width:128px;height:128px;border-radius:10px;margin-top:8px}
/* achievements and tips: text from the game */
.kb-achievements{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}
.kb-achievements .kb-letter b{font-size:18px}
.kb .kb-ach{font-family:var(--sans);font-style:normal;font-size:14.5px;color:#cdbda4}
.kb-tips{list-style:none;margin:6px 0 10px;padding:0;columns:2 360px;column-gap:30px}
.kb-tips li{break-inside:avoid;padding:9px 0 9px 14px;border-left:2px solid var(--line-2);margin-bottom:8px;max-width:68ch}

/* v3 (owner 04.12 17:55): averages with the game's range on hover, ship subtypes, weapon classes, trade, achievements, guide */
.kb-tip{position:relative;cursor:help;border-bottom:1px dotted rgba(255,216,160,.45)}
.kb-tip::after{content:attr(data-tip);position:absolute;z-index:40;left:50%;bottom:calc(100% + 8px);transform:translate(-50%,4px);width:max-content;max-width:280px;
  padding:8px 11px;border-radius:8px;background:#0e0a07;border:1px solid var(--line-2);box-shadow:0 10px 26px rgba(0,0,0,.6);color:var(--text);
  font:500 12.5px/1.45 var(--sans);text-align:left;white-space:normal;letter-spacing:0;text-transform:none;pointer-events:none;display:none;transform:translate(-50%,0)}
.kb-tip:hover::after,.kb-tip:focus::after{display:block}
.kb-tip:focus{outline:none}
.kb-tip:focus-visible{outline:2px solid var(--brass);outline-offset:2px;border-radius:3px}
th .kb-tip::after,.kb-facts .kb-tip::after,.kb-rank .kb-tip::after{max-width:320px}
.kb-table td:last-child .kb-tip::after,.kb-table th:last-child .kb-tip::after,.kb-facts dd .kb-tip::after,.kb-facts dt .kb-tip::after{left:auto;right:-6px;transform:none}
.kb-facts dt .kb-tip::after{left:-6px;right:auto}
.kb-v{font-variant-numeric:tabular-nums}
.kb-note{margin:14px 0 18px;padding:12px 16px;border-left:3px solid var(--brass-2);background:var(--hull);border-radius:0 10px 10px 0;max-width:76ch}
.kb-note b{display:block;font-family:var(--serif);font-weight:500;font-size:17px;color:#fff6e6;margin-bottom:2px}
.kb-note p{margin:0;color:#d9ccb6}
.kb-rank{font-size:22px;margin:28px 0 10px;padding-bottom:6px;border-bottom:1px solid var(--line)}
.kb-rank .kb-tip{border-bottom:0}
.kb-seg{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0 10px;font-size:13px;color:var(--muted)}
.kb-seg button{font:600 13px var(--sans);padding:6px 14px;border-radius:999px;border:1px solid var(--line-2);background:none;color:var(--text);cursor:pointer}
.kb-seg button[aria-selected=true]{background:var(--brass);border-color:var(--brass);color:#24180c}
.kb-seg button:focus-visible{outline:2px solid var(--brass);outline-offset:2px}
.kb-fit{overflow-x:auto}
.kb-shiptable{font-size:13.5px}
.kb-shiptable th,.kb-shiptable td{padding:7px 7px}
.kb-shiptable thead th{white-space:normal;line-height:1.25;vertical-align:bottom}
.kb-shiptable .kb-row-i img{width:32px;height:32px;flex-basis:32px}
.kb-shiptable td:first-child{white-space:nowrap}
.kb-s{display:none}
.kb-shiptable[data-sub=merchant] .kb-s-merchant,.kb-shiptable[data-sub=common] .kb-s-common,.kb-shiptable[data-sub=war] .kb-s-war{display:inline}
/* ship page */
.kb-shiphead{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:26px;align-items:start;margin:8px 0 10px}
.kb-keyfacts{list-style:none;margin:18px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.kb-keyfacts li{padding:10px 12px;border-radius:10px;background:var(--hull);border:1px solid var(--line);display:flex;flex-direction:column;gap:2px}
.kb-keyfacts b{font-family:var(--serif);font-weight:500;font-size:24px;color:#fff6e6;line-height:1.1}
.kb-keyfacts span{font-size:12.5px;color:var(--muted)}
.kb-shiphead h1{margin-bottom:2px}
.kb-shiphead .kb-text{margin-top:12px}
.kb-hold{margin:0;border-radius:14px;overflow:hidden;background:#0d0a08;box-shadow:0 18px 40px rgba(0,0,0,.5),inset 0 0 0 1px var(--line)}
.kb-hold video,.kb-hold img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
.kb-subs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0 6px}
.kb-subt{background:var(--hull);border:1px solid var(--line);border-radius:12px;padding:12px 14px 6px;border-top:3px solid var(--line-2)}
.kb-subt-merchant{border-top-color:#b98a4e}.kb-subt-common{border-top-color:#9aa3a8}.kb-subt-war{border-top-color:#b5523d}
.kb .kb-subt h2{font-size:21px;margin:0 0 2px;line-height:1.2}
.kb-subt h2 small{display:block;margin:0 0 2px;font-size:11.5px;letter-spacing:.02em;color:var(--muted)}
.kb-use{font-size:13px;color:var(--muted);margin:0 0 6px}
.kb-use b{color:var(--text);font-weight:600}
.kb-subt .kb-facts dt{font-size:13px}
.kb-best{color:#c9e3b4!important}
.kb-best::before{content:'▲';font-size:9px;margin-right:6px;vertical-align:2px;color:#9ccf7c}
.kb-two-even{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
.kb-guns{position:relative;width:260px;height:350px;margin:6px auto 4px}
.kb-guns svg{position:absolute;left:70px;top:26px;width:120px;height:300px}
.kb-guns path{fill:#3a2b1e;stroke:var(--brass-2);stroke-width:2}
.kb-guns line{stroke:rgba(255,216,160,.25);stroke-dasharray:4 5}
.kb-g{position:absolute;display:flex;flex-direction:column;align-items:center;font-size:11.5px;color:var(--muted);line-height:1.2;text-align:center;width:80px}
.kb-g b{font-family:var(--serif);font-size:28px;color:#fff6e6;font-weight:500;line-height:1}
.kb-g-bow{left:90px;top:-14px}.kb-g-stern{left:90px;bottom:-10px}.kb-g-left{left:-6px;top:156px}.kb-g-right{right:-6px;top:156px}
.kb-guns-t{text-align:center;color:var(--muted)}
.kb-guns-t b{color:#fff6e6}
.kb-achlink{display:inline-flex;align-items:center;gap:6px;vertical-align:middle}
.kb-achlink img{border-radius:5px}
.kb-fleet a.on{color:var(--brass)!important}
.kb-fleet a.on img{box-shadow:0 0 0 2px var(--brass)}
/* weapons */
.kb-wc{position:absolute;right:6px;bottom:6px;display:inline-flex;align-items:center;justify-content:center;padding:2px;border-radius:5px;background:rgba(14,10,7,.82);color:var(--brass);line-height:0}
.kb-wc svg{display:block;fill:currentColor}
.kb-slot{position:relative}
.kb-cat .kb-wc,.kb-class .kb-wc{position:static;margin-right:8px;vertical-align:1px;background:none;padding:0}
.kb-class{display:inline-flex;align-items:center;margin-left:10px;padding:2px 10px;border-radius:999px;border:1px solid var(--line-2);font-size:13px;color:var(--text)}
.kb-buffs{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:8px 0 4px}
.kb .kb-buffs h2{font-size:17px;margin:0 0 6px;font-family:var(--sans);font-weight:600}
.kb-buffs ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.kb-buffs li{padding:6px 10px 6px 30px;border-radius:8px;font-size:14px;line-height:1.4;position:relative}
.kb-plus li{background:rgba(120,170,90,.12);color:#d4ebc3}
.kb-minus li{background:rgba(190,80,60,.13);color:#f0c7b9}
.kb-plus li::before,.kb-minus li::before{position:absolute;left:10px;top:6px;font-weight:700}
.kb-plus li::before{content:'+';color:#9ccf7c}
.kb-minus li::before{content:'−';color:#e0806a}
.kb-plus h2{color:#b9dd9f!important}.kb-minus h2{color:#eea793!important}
.kb-attacks{max-width:560px}
.kb-attacks th{width:45%}
.kb kbd{display:inline-block;min-width:26px;padding:1px 7px;border-radius:6px;border:1px solid var(--line-2);border-bottom-width:3px;background:#251c15;color:#fff6e6;
  font:600 12.5px/1.6 var(--sans);text-align:center;vertical-align:1px;white-space:nowrap}
.kb kbd.kb-mouse{border-radius:10px}
.kb-quality{max-width:560px}
.kb-q .kb-row-i img{width:40px;height:40px;flex-basis:40px}
.kb-q.on td{background:rgba(255,216,160,.07)}
.kb-q0 td:first-child{color:#e0806a}.kb-q1 td:first-child{color:#d6a676}.kb-q3 td:first-child{color:#a6d98a}.kb-q4 td:first-child{color:#8cc3ef}.kb-q5 td:first-child{color:#e2b9ff}
.kb-compare{margin:4px 0 18px}
.kb-compare summary{cursor:pointer;display:inline-flex;align-items:center;gap:8px;padding:5px 12px;border-radius:8px;border:1px solid var(--line-2);font-size:13px;color:var(--brass);list-style:none}
.kb-compare summary::before{content:'▸';transition:transform .15s}
.kb-compare[open] summary::before{transform:rotate(90deg)}
.kb-compare summary::-webkit-details-marker{display:none}
/* trade */
.kb-trade-isles{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.kb-tisle{background:var(--hull);border:1px solid var(--line);border-radius:12px;overflow:hidden;padding-bottom:10px}
.kb-tisle img{display:block;width:100%;aspect-ratio:21/9;object-fit:cover}
.kb .kb-tisle h3{margin:10px 14px 6px;font-size:20px}
.kb .kb-tl{margin:6px 14px 4px;font-size:12px;color:var(--muted);font-weight:600}
.kb-gchips{display:flex;flex-wrap:wrap;gap:6px;margin:0 14px 2px}
.kb-shelf .kb-gchips{margin:0}
.kb-gchips a{display:inline-flex;align-items:center;gap:6px;padding:2px 10px 2px 3px;border-radius:999px;background:var(--hull-2);font-size:13px;color:var(--text)}
.kb-gchips a:hover{color:var(--brass);text-decoration:none}
.kb-gchips img{width:26px;height:26px;border-radius:50%;background:#14100c}
.kb-goods .kb-row-i img{width:40px;height:40px;flex-basis:40px;border-radius:50%;background:#14100c}
.kb-where small{display:block;font-size:12px;color:var(--muted);line-height:1.3}
.kb-where b{display:block;color:#fff6e6;font-weight:600}
.kb-gd summary{cursor:pointer;color:var(--brass);font-size:13px}
.kb-gd[open]{min-width:420px}
.kb-mini{font-size:13px;margin-top:6px}
.kb-mini td,.kb-mini th{padding:5px 6px}
.kb-mini .kb-where b{display:inline}
/* achievements */
.kb-achs{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:12px}
.kb-achg{grid-column:1/-1;margin:22px 0 2px;padding-bottom:6px;border-bottom:1px solid var(--line)}
.kb-achs.rare .kb-achg{display:none}
.kb-ach{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px;padding:12px;background:var(--hull);border:1px solid var(--line);border-radius:12px;position:relative}
.kb-ach:target{box-shadow:0 0 0 2px var(--brass)}
.kb-achi img,.kb-achi i{display:block;width:64px;height:64px;border-radius:8px;box-shadow:0 0 0 1px var(--line-2)}
.kb-achi i{background:var(--hull-2)}
.kb .kb-ach h3{margin:0 0 2px;font-size:18px;line-height:1.2}
.kb-achd{font-size:14px;color:#d9ccb6;margin:0 0 6px}
.kb-how{font-size:13.5px;margin:0 0 6px;color:var(--text);line-height:1.5}
.kb-how b{color:var(--brass-2);font-weight:600}
.kb-achm{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0;font-size:12px}
.kb-pct{position:relative;padding:1px 8px;border-radius:999px;background:linear-gradient(90deg,rgba(255,216,160,.28) var(--p),rgba(255,216,160,.07) var(--p));color:#fff6e6}
.kb-flag{padding:1px 8px;border-radius:999px;border:1px solid rgba(213,138,111,.55);color:var(--rust)}
.kb-spoil .kb-achd,.kb-spoil .kb-how{filter:blur(5px);user-select:none}
.kb-spoilbtn{position:absolute;right:10px;top:10px;font:600 11.5px var(--sans);padding:3px 9px;border-radius:999px;border:1px solid var(--line-2);background:#1b140f;color:var(--brass);cursor:pointer}
.kb-achsort button{font:500 13px var(--sans);padding:5px 12px;border:0;background:none;color:var(--muted);cursor:pointer}
.kb-achsort button.on{background:var(--hull-2);color:var(--brass)}
.kb-achstrip{display:flex;flex-wrap:wrap;gap:10px}
.kb-achstrip a{display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--muted)!important;font-size:12px}
.kb-achstrip img{border-radius:8px;box-shadow:0 0 0 1px var(--line-2)}
.kb-guideteaser{position:relative;display:block;border-radius:12px;overflow:hidden;color:#fff6e6!important}
.kb-guideteaser img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.kb-guideteaser span{position:absolute;left:0;right:0;bottom:0;padding:30px 14px 10px;font-size:13.5px;line-height:1.4;background:linear-gradient(transparent,rgba(10,7,5,.92))}
/* guide */
.kb-guide{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.kb-gcard{background:var(--hull);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.kb-gcard video{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#0d0a08}
.kb-gcard>div{padding:10px 14px 4px}
.kb .kb-gcard h3{margin:0 0 6px;font-size:18px}
.kb-gcard p{font-size:14px;color:#d9ccb6;line-height:1.55}
.kb-gcard-text{grid-column:span 1}
/* chests */
.kb-chestisle{margin-top:8px}
.kb-chestrows{list-style:none;margin:4px 0 12px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:0 24px}
.kb-chestrows li{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:7px 0;border-bottom:1px solid var(--line)}
.kb-cr{display:inline-flex;align-items:center;gap:8px;min-width:84px}
.kb-cr img{border-radius:5px}
.kb-loot{display:inline-flex;gap:4px;margin-left:auto}
.kb-loot img{width:32px;height:32px;border-radius:5px;box-shadow:inset 0 0 0 1px var(--line-2)}
@media (max-width:1000px){
  .kb-shiphead{grid-template-columns:1fr}
  .kb-hold{max-width:520px}
  .kb-subs{grid-template-columns:1fr}
  .kb-two-even{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
  .kb-buffs{grid-template-columns:1fr}
  .kb-achs{grid-template-columns:1fr}
  .kb-chestrows{grid-template-columns:1fr}
  .kb-gd[open]{min-width:0}
  .kb-tip::after{max-width:220px}
}
/* the site's global css places every <video> absolutely over its parent (home hero): undo it inside the wiki */
.kb video{position:static;top:auto;left:auto;height:auto}
.kb-hold video{aspect-ratio:1;height:auto}
.kb-gcard video{aspect-ratio:16/9;height:auto}
.kb-keyfacts b .kb-v,.kb-keyfacts b span{font:inherit;color:inherit}
.kb-shiptable td{vertical-align:middle}
.kb-quality td,.kb-attacks td,.kb-attacks th{vertical-align:middle}

.kb-goods td{vertical-align:middle}
.kb-goods .kb-where{min-width:180px}
.kb-goods .kb-where b{display:inline;margin-right:6px}
.kb-gbtn{font:600 12.5px var(--sans);padding:4px 11px;border-radius:999px;border:1px solid var(--line-2);background:none;color:var(--brass);cursor:pointer;white-space:nowrap}
.kb-gbtn[aria-expanded=true]{background:var(--hull-2)}
.kb-gdrow>td{background:rgba(0,0,0,.18);padding:4px 12px 12px!important}
.kb-gdin{max-width:760px}
.kb-nosort{cursor:default!important}
.kb-table tr[hidden]{display:none}
.kb-achi i{background:var(--hull-2) url(/public/kb/img/art/chest_icon.webp) center/70% no-repeat;filter:grayscale(1);opacity:.45}

.kb-hold-v{position:relative}
.kb-hold-v video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* characters */
.kb-people{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.kb-person{position:relative;padding:12px 14px;background:var(--hull);border:1px solid var(--line);border-radius:12px}
.kb .kb-person h3{margin:0 0 2px;font-size:19px}
.kb .kb-role{margin:0;color:var(--brass-2);font-size:13.5px;font-weight:600}
.kb .kb-pplace{margin:0 0 6px;font-size:13px}
.kb .kb-lore{margin:6px 0 4px;font-family:var(--serif);font-size:16px;line-height:1.5;color:#e2d5bd}
.kb-person-s{padding-bottom:8px}
.kb-spoil .kb-role,.kb-spoil .kb-lore{filter:blur(5px);user-select:none}
.kb-chips a small{font-size:11.5px}

/* trade routes and markets (04.12) */
.kb .kb-rlead{max-width:72ch}
.kb-routes{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:14px;margin-bottom:10px}
.kb-route{background:var(--hull);border:1px solid var(--line);border-radius:12px;padding:12px 0 10px}
.kb .kb-route h3{margin:0 14px 2px;font-size:18px;line-height:1.35}
.kb-arr{color:var(--muted);margin:0 6px;font-weight:400}
.kb .kb-rprofit{margin:0 14px 8px;font-size:22px;color:var(--brass);font-weight:700}
.kb-leg{border-top:1px solid var(--line);padding:8px 0 4px}
.kb .kb-leg-h{margin:0 14px 6px;font-size:14px;font-weight:600}
.kb-leg-p{color:var(--brass);font-weight:600;white-space:nowrap}
.kb .kb-leg-c{margin:4px 14px 0;font-size:12px;color:var(--muted)}
.kb-gchips a b{font-weight:700;margin-left:2px}
.kb-mk{display:inline-block;font-size:11px;line-height:1.5;padding:0 6px;border-radius:999px;margin-left:4px;vertical-align:1px;white-space:nowrap}
.kb-mk-c{background:rgba(110,170,110,.18);color:#9fd09a}
.kb-mk-d{background:rgba(214,170,90,.18);color:var(--brass)}
.kb-market td:first-child a{color:var(--text)}
@media (max-width:520px){.kb-routes{grid-template-columns:1fr}}
.kb-market td{vertical-align:middle;padding-top:6px;padding-bottom:6px}
.kb-market .kb-row-i img{width:30px;height:30px}
.kb-route h3 small,.kb-leg-h small{color:var(--muted);font-family:inherit;font-size:.78em}
/* profit map and trip calculator (04.12 19:52) */
.kb-trade-tool{margin:8px 0 18px}
.kb-calc-f{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 14px;margin:6px 0 12px}
.kb-calc-f label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted);font-weight:600;min-width:0;flex:1 1 220px;max-width:360px}
.kb-calc-f select{background:var(--hull-2);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-size:14px;width:100%;min-width:0}
.kb-calc-f select:focus-visible,.kb-swap:focus-visible,.kb-calc-best button:focus-visible{outline:2px solid var(--brass);outline-offset:2px}
.kb-swap{background:var(--hull-2);color:var(--brass);border:1px solid var(--line);border-radius:8px;width:40px;height:38px;font-size:18px;cursor:pointer;flex:0 0 auto}
.kb-pmap{position:relative;border-radius:12px;border:1px solid var(--line);background:#1b140d;max-width:1100px}
.kb-pmap>img{display:block;width:100%;height:auto;border-radius:12px}
.kb-pcard img{width:22px;height:22px;flex:0 0 22px}
.kb-pmap svg{position:absolute;inset:0;width:100%;height:100%}
.kb .kb-pmap video{position:static}
.kb-pm-glow{fill:none;stroke:#f3c25e;stroke-linecap:round}
.kb-pm-line{fill:none;stroke:#7a1f12;stroke-linecap:round}
.kb-pm-line.kb-pm-top{stroke:#a3261a}
.kb-pm-hit{fill:none;stroke:transparent;stroke-width:28;cursor:pointer;pointer-events:stroke}
.kb-pm-hit:focus{outline:none}
.kb-pm-hit:focus-visible{stroke:rgba(243,194,94,.35)}
.kb-pm-isl circle{fill:#3a1408;stroke:#f3d9a0;stroke-width:3}
.kb-pm-isl text{font:700 26px/1 Georgia,serif;fill:#3a1408;paint-order:stroke;stroke:#e8d2a2;stroke-width:6px}
.kb-pm-tag{pointer-events:none}
.kb-pm-tag rect{fill:#2a1a0e;stroke:#c9973f;stroke-width:1.5}
.kb-pm-tag text{font:700 17px/1 system-ui,sans-serif;fill:#f3d9a0}
.kb-pcard{position:absolute;z-index:3;width:min(340px,calc(100% - 16px));background:var(--hull);border:1px solid var(--brass);border-radius:10px;padding:10px 12px;box-shadow:0 8px 24px rgba(0,0,0,.5);font-size:13px;pointer-events:none}
.kb .kb-pcard p{margin:0 0 4px}
.kb .kb-pc-h{font-weight:700;color:var(--text)}
.kb .kb-pc-p{font-size:18px;font-weight:700;color:var(--brass)}
.kb .kb-pc-l{margin-top:6px;color:var(--muted)}
.kb-pc-l b{color:var(--brass);font-weight:600}
.kb-pc-c{display:flex;flex-wrap:wrap;gap:4px}
.kb-pc-g{display:inline-flex;align-items:center;gap:4px;background:var(--hull-2);border-radius:999px;padding:1px 8px 1px 2px}
.kb-pc-g img{border-radius:50%}
.kb-calc-sum{display:flex;align-items:baseline;gap:12px;margin:4px 0 10px;flex-wrap:wrap}
.kb-calc-sum span{color:var(--muted);font-weight:600}
.kb-calc-sum b{font-size:24px;color:var(--brass)}
.kb-calc-legs{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px}
.kb-calc-legs section{background:var(--hull);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.kb .kb-calc-legs h3{font-size:15px;margin:0 0 8px;line-height:1.4}
.kb-calc-t td{vertical-align:middle}
.kb-calc-t .kb-row-i img{width:28px;height:28px}
.kb-c-p{color:var(--brass);font-weight:600}
.kb .kb-calc-bh{font-size:16px;margin:16px 0 6px}
.kb-calc-best{margin:0;padding-left:22px;max-width:640px}
.kb-calc-best li{display:flex;justify-content:space-between;gap:12px;padding:4px 0;border-bottom:1px solid var(--line)}
.kb-calc-best button{background:none;border:0;padding:0;color:var(--text);font:inherit;cursor:pointer;text-align:left}
.kb-calc-best button:hover{color:var(--brass)}
.kb-calc-best b{color:var(--brass);white-space:nowrap}
@media (max-width:520px){.kb-pm-isl text{font-size:34px}.kb-pm-tag text{font-size:22px}.kb-calc-legs{grid-template-columns:1fr}.kb-calc-f label{flex-basis:100%;max-width:none}}
.kb-calc-legs section,.kb-calc-legs .kb-scroll{min-width:0}
.kb-calc-legs .kb-scroll{overflow-x:auto}
/* route planner (04.12 20:15) */
.kb-btn{display:inline-flex;align-items:center;gap:6px;background:var(--hull-2);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:7px 14px;font:inherit;font-size:14px;cursor:pointer;text-decoration:none}
.kb-btn:hover{border-color:var(--brass);color:var(--brass);text-decoration:none}
.kb-btn:disabled{opacity:.45;cursor:default}
.kb-btn:focus-visible,.kb-n:focus-visible,.kb-stops select:focus-visible,.kb-leg-tools select:focus-visible,#kb-purse:focus-visible{outline:2px solid var(--brass);outline-offset:2px}
.kb-btn-q{padding:4px 10px;font-size:16px;line-height:1}
.kb-calc-f .kb-narrow{flex:0 1 170px}
.kb-calc-f input[type=number]{background:var(--hull-2);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-size:14px;width:100%;min-width:0}
.kb-calc-f .kb-chk{flex-direction:row;align-items:center;gap:8px;font-size:14px;color:var(--text);flex:0 1 auto;padding-bottom:9px}
.kb-stops{margin:0 0 8px;padding-left:26px;max-width:640px}
.kb-stops li{display:flex;gap:8px;align-items:center;margin:0 0 8px}
.kb-stops li::marker{color:var(--brass);font-weight:700}
.kb-stops select,.kb-leg-tools select{flex:1;min-width:0;background:var(--hull-2);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-size:14px}
.kb-plan-map{margin:12px 0}
.kb-pl-line{fill:none;stroke:#8f2216;stroke-linecap:round}
.kb-pl-arrow{fill:#8f2216}
.kb-pl-stop circle{fill:#2a1a0e;stroke:#f3c25e;stroke-width:3}
.kb-pl-stop text{font:700 18px/1 system-ui,sans-serif;fill:#f3d9a0}
.kb-pl-stop .kb-pl-name{font:700 24px/1 Georgia,serif;fill:#3a1408;paint-order:stroke;stroke:#e8d2a2;stroke-width:6px}
.kb-plan-tot{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin:6px 0 10px}
.kb-plan-tot span{color:var(--muted);font-weight:600}
.kb-plan-tot b{font-size:28px;color:var(--brass)}
.kb-plan-tot small{color:var(--muted);flex-basis:100%;font-size:13px}
.kb-legbars{max-width:640px;margin:0 0 14px}
.kb-lb{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:10px;align-items:center;margin:4px 0;font-size:13px}
.kb-lb-n{color:var(--muted);font-weight:700;text-align:right}
.kb-lb-t{height:12px;background:var(--hull-2);border-radius:6px;overflow:hidden}
.kb-lb-t i{display:block;height:100%;background:#c9973f;border-radius:6px}
.kb-lb-t i.kb-neg{background:#9b3a2c}
.kb-lb b{color:var(--brass);min-width:70px;text-align:right}
.kb-legc{background:var(--hull);border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:0 0 12px;min-width:0}
.kb .kb-legc h3{font-size:16px;margin:0 0 8px;line-height:1.4}
.kb-holdbar{height:8px;background:var(--hull-2);border-radius:4px;overflow:hidden;max-width:420px}
.kb-holdbar span{display:block;height:100%;background:#6f8f5a}
.kb-holdbar.kb-over span{background:#b0412f}
.kb .kb-legc .kb-small{margin:4px 0 6px}
.kb-warn{color:#f0a58f;font-size:13px;margin:4px 0 8px}
.kb-n{width:84px;background:var(--hull-2);color:var(--text);border:1px solid var(--line);border-radius:6px;padding:4px 6px;font:inherit;font-size:14px;text-align:right}
.kb-c-n{color:#f0a58f;font-weight:600}
.kb-mk-x{background:rgba(176,65,47,.2);color:#f0a58f}
.kb-leg-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;max-width:640px}
@media (max-width:520px){.kb-pl-stop text{font-size:26px}.kb-pl-stop .kb-pl-name{font-size:34px}.kb-n{width:64px}}
.kb .kb-chk input[type=checkbox]{-webkit-appearance:checkbox;appearance:auto;width:18px;height:18px;margin:0;accent-color:#c9973f;position:relative;opacity:1;z-index:1;flex:0 0 18px}
/* money: the game's coins after every sum (04.12 20:32) */
.kb-money{white-space:nowrap}
.kb-coin{width:.78em;height:.78em;vertical-align:-.04em;width:1.1cap;height:1.1cap;vertical-align:-.05cap;margin-left:.32em;display:inline-block;flex:none}   /* sized by the digits' cap height (1.1cap, em fallback) and centred on them, with air before it (owner 04.12 22:12) */
.kb-tile-p .kb-coin{width:14px;height:14px}
.kb-pviews{display:flex;width:max-content;max-width:100%;margin:0 0 8px auto;flex-wrap:wrap}   /* planner views (owner 04.12 22:47) */

/* character portraits rendered in the game (04.12) */
.kb-person-pp{display:grid;grid-template-columns:112px minmax(0,1fr);gap:0 14px;align-items:start}
.kb-pp{display:block;width:112px;height:112px;border-radius:10px;border:1px solid var(--line-2);background:var(--abyss);object-fit:cover;box-shadow:0 6px 18px rgba(0,0,0,.35)}
.kb-pp-none{background:var(--abyss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 112'%3E%3Cpath fill='%23ffd8a0' fill-opacity='.10' d='M56 24c11 0 19 9 19 21s-8 22-19 22-19-10-19-22 8-21 19-21zm-34 88c2-21 15-35 34-35s32 14 34 35z'/%3E%3C/svg%3E") center/100% no-repeat;border-color:var(--line)}
.kb-person-pp .kb-pbody{min-width:0}
.kb-person-pp .kb-spoilbtn{position:static;margin-left:auto}
.kb-chips a.kb-chip-pp{display:inline-flex;align-items:center;gap:7px;padding:3px 12px 3px 3px}
.kb-chips a.kb-chip-pp img{width:28px;height:28px;border-radius:50%;object-fit:cover;border:1px solid var(--line-2)}
@media (max-width:520px){.kb-person-pp{grid-template-columns:84px minmax(0,1fr);gap:0 12px}.kb-pp{width:84px;height:84px;border-radius:8px}.kb-person-pp{grid-template-rows:auto auto 1fr}.kb-person-pp .kb-pbody{display:contents}.kb-person-pp .kb-pp{grid-row:1/span 3}.kb-person-pp h3,.kb-person-pp .kb-role,.kb-person-pp .kb-pplace{grid-column:2}.kb-person-pp .kb-lore,.kb-person-pp .kb-achm{grid-column:1/-1}.kb-person-pp .kb-lore{margin-top:10px}}
