:root {
  --bg: #fffaf0; --panel: #ffffff; --ink: #2b2118; --muted: #6f6253; --line: #eadfca;
  --honey: #e8a317; --honey-d: #a86f00; --accent: #7a4fd1; --chip: #f6ecd6; --cell: #fbf4e4;
  --t-lesser: #6b8f3a; --t-bubba: #c47f00; --t-celestial: #6c4bc9; --t-none: #b0306b;
  --dust: #b48cff; --rod: #f2efe6; --ped: #8d8d99; --candle: #ff9b3d; --altar: #e8a317;
  --area: rgba(232, 163, 23, .10); --comb: #f0b43b; --gold: #ffd84a; --pot: #4fa34f; --pothoney: #2f7f6f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1712; --panel: #26201a; --ink: #f1e8da; --muted: #b5a690; --line: #3d342a;
    --honey: #f0b43b; --honey-d: #ffcf6b; --accent: #b79bff; --chip: #3a3026; --cell: #2f2820;
    --rod: #d8d4c8; --area: rgba(240, 180, 59, .12);
  }
}
:root[data-theme="dark"] {
  --bg: #1c1712; --panel: #26201a; --ink: #f1e8da; --muted: #b5a690; --line: #3d342a;
  --honey: #f0b43b; --honey-d: #ffcf6b; --accent: #b79bff; --chip: #3a3026; --cell: #2f2820;
  --rod: #d8d4c8; --area: rgba(240, 180, 59, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
img { image-rendering: pixelated; }
a { color: var(--honey-d); }
header { position: sticky; top: 0; z-index: 5; background: var(--panel); border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 8px 16px; }
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.brandjar { width: 28px; height: 28px; }
nav { display: flex; flex-wrap: wrap; gap: 2px 4px; }
nav a { text-decoration: none; color: var(--muted); padding: 4px 8px; border-radius: 6px; font-size: .95rem; }
nav a.on, nav a:hover { color: var(--ink); background: var(--chip); }
main { max-width: 1180px; margin: 0 auto; padding: 16px 16px 48px; }
footer { color: var(--muted); font-size: .85rem; text-align: center; padding: 24px 16px; border-top: 1px solid var(--line); }
h1 { font-size: 1.9rem; margin: .4em 0 .3em; }
h2 { margin-top: 1.8em; border-bottom: 2px solid var(--honey); padding-bottom: 4px; display: flex; align-items: center; gap: 8px; }
h3 { display: flex; align-items: center; gap: 6px; }
.lead { font-size: 1.12rem; }
.hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.herojar { width: 128px; height: 128px; }
.hero > div { flex: 1 1 300px; }
.steps li { margin: .35em 0; }
table { border-collapse: collapse; width: 100%; margin: .6em 0; background: var(--panel); }
th, td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
th { background: var(--chip); font-size: .9rem; }
td.num { text-align: right; white-space: nowrap; }
.tablewrap { overflow-x: auto; }
.ores { min-width: 900px; font-size: .92rem; }
.ico { width: 20px; height: 20px; vertical-align: -4px; margin-right: 4px; }
.jar { width: 32px; height: 32px; }
.bigjar { width: 64px; height: 64px; flex: none; }
.chip { display: inline-block; background: var(--chip); border-radius: 999px; padding: 1px 9px; font-size: .8rem; margin: 2px 2px 0 0; }
.chip.tr { background: transparent; border: 1px solid var(--line); }
.t-lesser { background: var(--t-lesser); color: #fff; } .t-bubba { background: var(--t-bubba); color: #fff; }
.t-celestial { background: var(--t-celestial); color: #fff; } .t-none { background: var(--t-none); color: #fff; }
.beelink { white-space: nowrap; text-decoration: none; margin-right: 8px; display: inline-block; }
.callout { background: var(--panel); border-left: 4px solid var(--honey); padding: 10px 14px; margin: 12px 0; border-radius: 4px; }
.card, .bee, .rcard { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.cards2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.card h3 { margin: 0 0 8px; }
.bees { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.bee { scroll-margin-top: 80px; }
.bee:target { outline: 3px solid var(--honey); }
.beehead { display: flex; gap: 12px; align-items: center; }
.beehead h3 { margin: 0; }
.bee dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 10px; margin: 10px 0; font-size: .92rem; }
.bee dt { color: var(--muted); }
.bee dd { margin: 0; }
.note { font-size: .93rem; margin: 8px 0; }
.traits { font-size: .9rem; padding-left: 18px; margin: 6px 0; }
.combs { font-size: .9rem; }
details { margin-top: 6px; } summary { cursor: pointer; color: var(--honey-d); font-weight: 600; }
#beefilter { width: 100%; max-width: 420px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); font-size: 1rem; }
.jump, .toc { line-height: 2; }
.toc a { white-space: nowrap; margin-right: 10px; text-decoration: none; }
.it { white-space: nowrap; }
.recipe { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.grid { display: grid; grid-template-columns: repeat(3, 58px); grid-auto-rows: 58px; gap: 3px; }
.cell { background: var(--cell); border: 1px solid var(--line); border-radius: 4px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; font-size: 9.5px; line-height: 1.1; padding: 2px; overflow: hidden; }
.cell.has-ico { overflow: visible; cursor: help; position: relative; }
.cell .gi { width: 36px; height: 36px; }
.slotc { display: inline-flex; align-items: center; gap: 2px; position: relative; vertical-align: middle; cursor: help; }
[data-tip]:hover::after, [data-tip]:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 4px);
  left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: .75rem; line-height: 1.3;
  padding: 3px 7px; border-radius: 4px; white-space: nowrap; z-index: 10; pointer-events: none; }
[data-tip]:focus { outline: 2px solid var(--honey); outline-offset: 1px; }
.combs td { overflow-wrap: anywhere; }
.combs .it { white-space: normal; }
.gi { width: 26px; height: 26px; }
.arrow { font-size: 1.4rem; color: var(--muted); }
.out { display: flex; align-items: center; gap: 6px; }
.rate { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.shapeless { font-size: .9rem; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.rcard h4 { margin: 0 0 4px; }
.rcard:target { outline: 3px solid var(--honey); }
.ritualbox { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.ritual { width: 100%; max-width: 420px; height: auto; background: var(--panel); border-radius: 10px; border: 1px solid var(--line); }
.legend { flex: 1 1 280px; }
.legend p { margin: 4px 0; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; border: 1px solid var(--line); }
.area { fill: var(--area); } .sw.area { background: var(--area); }
.dust { fill: var(--dust); } .sw.dust { background: var(--dust); }
.rod { fill: var(--rod); stroke: #999; } .sw.rod { background: var(--rod); }
.ped { fill: var(--ped); } .sw.ped { background: var(--ped); }
.candle { fill: var(--candle); } .sw.candle { background: var(--candle); }
.altar { fill: var(--altar); stroke: var(--ink); stroke-width: 1.5; } .sw.altar { background: var(--altar); }
.comb { fill: var(--comb); } .sw.comb { background: var(--comb); }
.gold { fill: var(--gold); } .sw.gold { background: var(--gold); }
.pot { fill: var(--pot); } .sw.pot { background: var(--pot); }
.pothoney { fill: var(--pothoney); } .sw.pothoney { background: var(--pothoney); }
@media (max-width: 520px) {
  .bees, .rgrid, .cards2 { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(3, 50px); grid-auto-rows: 50px; }
  h1 { font-size: 1.5rem; }
}
.jumpjar { width: 30px; height: 30px; }
