/* /wiki/tips (temp/wiki_tips.php, owner 04.12 20:04): numbered tips with topic icons, filters, tip of the day.
   Same dark parchment and brass as wiki.css; each topic has a muted tint (--tc) for its icon. */
.kb-tc-sailing{--tc:#7fb9cf}.kb-tc-battle{--tc:#e08e6d}.kb-tc-boarding{--tc:#d6ab68}.kb-tc-melee{--tc:#dc7f7c}
.kb-tc-ships{--tc:#9cb0d8}.kb-tc-crew{--tc:#c4a0d6}.kb-tc-gear{--tc:#b9c1c8}.kb-tc-trade{--tc:#e6c35a}
.kb-tc-explore{--tc:#a9c972}.kb-tc-towns{--tc:#ddb08a}.kb-tc-health{--tc:#86cfa2}.kb-tc-controls{--tc:#b2a99c}
.kb .kb-ti{width:20px;height:20px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.kb .kb-ti-s{width:14px;height:14px;stroke-width:1.8}
.kb-vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* tip of the day, over a loading screen of the game */
.kb-tipday{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:18px;min-height:236px;margin:4px 0 22px;
  padding:22px 26px;border-radius:14px;overflow:hidden;background:#0d0a08;border:1px solid var(--line-2);box-shadow:0 16px 36px rgba(0,0,0,.45)}
.kb .kb-tipday-bg{position:absolute;z-index:0;inset:0;width:100%;height:100%;object-fit:cover;max-width:none}
.kb-tipday::before{content:'';position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,rgba(12,9,6,.94) 0%,rgba(12,9,6,.82) 48%,rgba(12,9,6,.25) 100%)}
.kb-tipday-in{position:relative;z-index:2;max-width:62ch}
.kb-tipday-k{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0 0 4px;font-size:13px;color:var(--brass-2)}
.kb-tipday-cat{display:inline-flex;align-items:center;gap:6px;color:var(--tc,var(--brass))}
.kb-tipday-cat .kb-ti{width:17px;height:17px}
.kb .kb-tipday h2{margin:0 0 6px;font-size:30px}
.kb .kb-tipday h2 a{color:#fff6e6}
.kb-tipday-t{margin:0;font-family:var(--serif);font-size:19px;line-height:1.5;color:#efe3cc}
.kb-tipbtn{position:relative;z-index:2;flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border:0;border-radius:8px;background:var(--brass);
  color:#24180c;font:600 14px var(--sans);cursor:pointer;box-shadow:0 6px 16px rgba(0,0,0,.4)}
.kb-tipbtn:hover{background:#ffe6bf}
.kb-tipbtn:focus-visible{outline:2px solid #fff6e6;outline-offset:3px}
.kb-tipbtn .kb-ti{width:18px;height:18px}
.kb-ti-dice path:not(:first-child){stroke-width:2.8}
.kb-tipday.kb-roll .kb-tipday-in{animation:kb-tipin .32s ease-out}
@keyframes kb-tipin{from{opacity:.15;transform:translateY(6px)}to{opacity:1;transform:none}}

/* topics */
.kb-tipbar{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:6px 16px;margin:0 0 12px}
.kb-tipcats{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.kb .kb-tipcats a{display:inline-flex;align-items:center;gap:7px;padding:5px 12px 5px 10px;border:1px solid var(--line-2);border-radius:999px;
  font-size:13.5px;line-height:1.35;color:var(--text);white-space:nowrap}
.kb-tipcats a .kb-ti{width:17px;height:17px;color:var(--tc,var(--brass))}
.kb-tipcats a small{color:var(--muted);font-size:12px}
.kb .kb-tipcats a:hover{border-color:var(--brass);color:var(--brass);text-decoration:none}
.kb .kb-tipcats a.on{background:var(--brass);border-color:var(--brass);color:#24180c}
.kb-tipcats a.on .kb-ti,.kb-tipcats a.on small{color:#24180c}
.kb-tipcount{margin:0;font-size:13px;color:var(--muted);white-space:nowrap}

/* the tips: permanent number, topic, text, where the game shows it */
.kb-tiplist{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:12px}
.kb-tipc{display:grid;grid-template-columns:38px minmax(0,1fr);gap:14px;padding:13px 16px 14px 13px;background:var(--hull);border:1px solid var(--line);
  border-radius:12px;scroll-margin-top:96px}
.kb-tipc[hidden]{display:none}
.kb-tipc:target,.kb-tipc.kb-hit{box-shadow:0 0 0 2px var(--brass);animation:kb-tiphit 1.6s ease-out}
.kb-tipc:focus{outline:none}
@keyframes kb-tiphit{from{background:#3a2c1d}to{background:var(--hull)}}
.kb-tipi{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;color:var(--tc,var(--brass));
  background:var(--hull-2);background:color-mix(in srgb,var(--tc,#ffd8a0) 13%,#16110d);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tc,#ffd8a0) 35%,transparent)}
.kb-tipb{min-width:0}
.kb-tipm{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;margin:0 0 3px}
.kb .kb-tipn{font-weight:600;font-size:13.5px;white-space:nowrap}
.kb-tipcat{font-size:12.5px;color:var(--muted)}
.kb-tipt{margin:0;color:var(--text);font-size:15px;line-height:1.55;overflow-wrap:anywhere}
.kb-tipw{display:inline-flex;align-items:center;gap:4px;margin-left:auto;font-size:12px;color:var(--muted);white-space:nowrap}

@media (max-width:640px){
  .kb-tipday{flex-direction:column;align-items:stretch;min-height:0;padding:96px 16px 16px}
  .kb-tipday::before{background:linear-gradient(0deg,rgba(12,9,6,.96) 0%,rgba(12,9,6,.86) 62%,rgba(12,9,6,.2) 100%)}
  .kb .kb-tipday h2{font-size:25px}
  .kb-tipday-t{font-size:17px}
  .kb-tipbtn{align-self:flex-start}
  .kb-tipcats{flex-wrap:nowrap;overflow-x:auto;margin:0 -14px;padding:2px 14px 6px;scrollbar-width:thin}
  .kb-tiplist{grid-template-columns:minmax(0,1fr)}
  .kb-tipc{grid-template-columns:32px minmax(0,1fr);gap:11px;padding:12px 12px 11px 10px}
  .kb-tipi{width:32px;height:32px}
  .kb-tipi .kb-ti{width:18px;height:18px}
  .kb-tipm{gap:0 9px}
  .kb-tipw{margin-left:0}
}
@media (prefers-reduced-motion:reduce){.kb-tipc,.kb-tipday-in{animation:none!important}}
