/* Queen Bee Garden */
:root {
  --qb-honey: #f2a900; --qb-amber: #b86e00; --qb-amber-dk: #9a5b00; --qb-cream: #fff7e6; --qb-wax: #ffe9b8;
  --qb-ink: #3a2e1f; --qb-mute: #7a6a55; --qb-line: #efdcb4; --qb-leaf: #4f9a5c; --qb-red: #d0543c;
  --qb-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M2 6l5 4 5-8 5 8 5-4-2 11H4z'/%3E%3Ccircle cx='2' cy='5' r='2'/%3E%3Ccircle cx='12' cy='2' r='2'/%3E%3Ccircle cx='22' cy='5' r='2'/%3E%3Crect x='4' y='17' width='16' height='3' rx='1'/%3E%3C/svg%3E");
}
.qb-box { color: var(--qb-ink); background: #fff; border: 1px solid var(--qb-line); border-radius: 20px; margin: 22px 0; overflow: hidden; font-size: 15px; line-height: 1.5;
  box-shadow: 0 2px 0 var(--qb-wax); }
.qb-box *, .qb-box *::before, .qb-box *::after { box-sizing: border-box; }
.qb-box button, .qb-box input, .qb-box select { font: inherit; color: inherit; }
.qb-box button { cursor: pointer; }
.qb-box [hidden] { display: none !important; }
.qb-box__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 700; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, var(--qb-amber), #d98c0c); }
.qb-box__head .qb-crown { background: #ffe38a; width: 26px; height: 22px; }
.qb-box__body { padding: 14px 16px 16px; background-image: radial-gradient(circle at 100% 0, #fff7e6 0, transparent 160px); }
.qb-wait { color: var(--qb-mute); margin: 0; }
.qb-crown { display: inline-block; width: 20px; height: 17px; background: #e6d7bb; -webkit-mask: var(--qb-crown) center / contain no-repeat; mask: var(--qb-crown) center / contain no-repeat; flex: none; }
.qb-crown.is-gold { background: linear-gradient(180deg, #ffd34d, #e39a00); }
.qb-crowns { display: inline-flex; gap: 4px; }
.qb-crowns .qb-crown { width: 30px; height: 25px; }

.qb-muted { color: var(--qb-mute); font-size: 13px; margin: 8px 0; }
.qb-big { font-size: 17px; margin: 10px 0; }
.qb-big b { font-size: 26px; color: var(--qb-amber); }
.qb-sub { font-size: 16px; margin: 16px 0 8px; color: var(--qb-ink); }
.qb-in { border: 1px solid var(--qb-line); background: #fff; border-radius: 12px; padding: 9px 12px; min-width: 0; flex: 1; }
.qb-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.qb-row > span { font-weight: 600; font-size: 14px; }
.qb-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; padding: 10px 16px; background: var(--qb-amber); color: #fff !important; font-weight: 700; margin-top: 8px; transition: background .15s, transform .1s; }
.qb-btn:hover { background: var(--qb-amber-dk); }
.qb-btn:active { transform: scale(.97); }
.qb-btn--ghost { background: transparent; color: var(--qb-amber) !important; box-shadow: inset 0 0 0 1.5px var(--qb-amber); }
.qb-btn--ghost:hover { background: var(--qb-cream); }
.qb-link { background: none; border: 0; padding: 0; color: var(--qb-amber); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.qb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.qb-tip { background: var(--qb-cream); border-left: 4px solid var(--qb-honey); border-radius: 0 12px 12px 0; padding: 10px 12px; margin: 12px 0 0; font-size: 14px; }
.qb-tip.is-good { border-color: var(--qb-leaf); background: #eef7ec; }

.qb-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--qb-cream); border: 1px solid var(--qb-line); border-radius: 12px; padding: 3px; margin: 0 0 10px; }
.qb-seg button { border: 0; background: none; border-radius: 9px; padding: 6px 12px; font-weight: 600; font-size: 13px; color: var(--qb-mute); }
.qb-seg button.is-on { background: #fff; color: var(--qb-amber); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

.qb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qb-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--qb-cream); border: 1px solid var(--qb-line); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.qb-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); flex: none; }

/* calendar */
.qb-months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.qb-months button { border: 1px solid var(--qb-line); background: #fff; border-radius: 10px; padding: 6px 0; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.qb-months button small { font-size: 11px; color: var(--qb-mute); }
.qb-months button.is-now { border-color: var(--qb-honey); }
.qb-months button.is-on { background: var(--qb-amber); border-color: var(--qb-amber); color: #fff; }
.qb-months button.is-on small { color: #ffe9b8; }
.qb-plants { list-style: none; margin: 0; padding: 0; }
.qb-plants li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--qb-line); }
.qb-plants li::before { display: none; }
.qb-plants li > span { flex: 1; min-width: 0; }
.qb-plants b { display: block; font-size: 14px; }
.qb-plants small { color: var(--qb-mute); font-size: 12px; }
.qb-bar12 { display: grid; grid-template-columns: repeat(12, 7px); gap: 2px; flex: none; }
.qb-bar12 i { height: 14px; border-radius: 2px; background: #f3ead8; }
.qb-bar12 i.on { background: var(--qb-honey); }
.qb-bar12 i.now { outline: 1.5px solid var(--qb-ink); outline-offset: 0; }

/* planner */
.qb-pickinfo { display: flex; align-items: center; gap: 6px; }
.qb-bed { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 4px; padding: 8px; border-radius: 14px; background: #7a5a3c; box-shadow: inset 0 0 0 4px #5e432b; }
.qb-bed button { aspect-ratio: 1; border: 0; border-radius: 8px; background: #8e6a48; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; overflow: hidden; }
.qb-bed button:hover { background: #9c774f; }
.qb-bed button.has { background: #5f8f4e; }
.qb-bed button i { width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--pc); box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.qb-bed button small { font-size: 9px; color: #fff; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.qb-cover { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin: 12px 0 6px; }
.qb-cover span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.qb-cover span::before { content: ''; display: none; }
.qb-cover i { display: block; width: 100%; height: 40px; background: #f3ead8; border-radius: 4px; position: relative; overflow: hidden; }
.qb-cover span i { background: linear-gradient(to top, var(--qb-honey) var(--h, 0), #f3ead8 0); }
.qb-cover span.gap i { background: #fbe2dc; }
.qb-cover small { font-size: 11px; color: var(--qb-mute); }
.qb-score { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 0; font-weight: 600; font-size: 14px; }

/* quiz */
.qb-progress { height: 6px; border-radius: 6px; background: #f3ead8; overflow: hidden; }
.qb-progress i { display: block; height: 100%; background: var(--qb-honey); transition: width .3s; }
.qb-q { font-size: 17px; font-weight: 600; margin: 8px 0 12px; }
.qb-answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qb-ans { border: 1.5px solid var(--qb-line); background: #fff; border-radius: 14px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.qb-ans i { width: 44px; height: 30px; border-radius: 50%; }
.qb-ans--bee i { background: repeating-linear-gradient(90deg, #f2b705 0 8px, #3a2e1f 8px 14px); border-radius: 50% / 60%; box-shadow: 0 -6px 0 -2px rgba(160, 200, 230, .8); }
.qb-ans--wasp i { background: repeating-linear-gradient(90deg, #ffd400 0 6px, #111 6px 10px); height: 22px; border-radius: 40% 60% 60% 40% / 50%; }
.qb-ans--hoverfly i { background: repeating-linear-gradient(90deg, #f6c445 0 5px, #4a3a20 5px 12px); height: 20px; border-radius: 50%; box-shadow: 0 -5px 0 -1px rgba(180, 210, 230, .7); }
.qb-ans.is-right { border-color: var(--qb-leaf); background: #eef7ec; }
.qb-ans.is-wrong { border-color: var(--qb-red); background: #fdeeea; }
.qb-ans:disabled { cursor: default; }
.qb-explain { margin-top: 12px; background: var(--qb-cream); border-radius: 12px; padding: 12px; font-size: 14px; }
.qb-explain .qb-btn { display: flex; width: 100%; margin-top: 10px; }
.qb-done { text-align: center; padding: 6px 0; }

/* honey maths */
.qb-presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.qb-presets button { border: 1px solid var(--qb-line); background: #fff; border-radius: 10px; padding: 6px 2px; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.qb-presets small { font-size: 10px; color: var(--qb-mute); }
.qb-presets button.is-on { background: var(--qb-amber); color: #fff; border-color: var(--qb-amber); }
.qb-presets button.is-on small { color: #ffe9b8; }
.qb-slider { display: block; margin: 14px 0 6px; }
.qb-slider > span { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.qb-slider input { width: 100%; accent-color: var(--qb-amber); }
.qb-jar { width: 80px; height: 96px; margin: 8px auto; border: 4px solid #d8c7a4; border-top-width: 14px; border-radius: 12px 12px 18px 18px; position: relative; overflow: hidden; background: #fffdf6; }
.qb-jar i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, #ffc93c, #e08e00); transition: height .3s; }
.qb-stats { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.qb-stats li { background: var(--qb-cream); border-radius: 12px; padding: 10px 12px; }
.qb-stats li::before { display: none; }
.qb-stats em { display: block; font-style: normal; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--qb-mute); }
.qb-stats b { font-size: 22px; color: var(--qb-amber); }
.qb-stats small { display: block; color: var(--qb-mute); font-size: 12px; }

/* hive roles */
.qb-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qb-role { border: 1.5px solid var(--qb-line); background: #fff; border-radius: 14px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.qb-role small { color: var(--qb-mute); font-size: 12px; }
.qb-role i { width: 46px; height: 30px; border-radius: 50% / 60%; background: repeating-linear-gradient(90deg, #f2b705 0 8px, #3a2e1f 8px 14px); margin-bottom: 4px; position: relative; }
.qb-role--queen i { width: 60px; }
.qb-role--queen i::after { content: ''; position: absolute; left: 4px; top: -14px; width: 20px; height: 16px; background: #e9a400; -webkit-mask: var(--qb-crown) center / contain no-repeat; mask: var(--qb-crown) center / contain no-repeat; }
.qb-role--drone i { width: 50px; height: 34px; border-radius: 50%; }
.qb-role.is-on { border-color: var(--qb-amber); background: var(--qb-cream); }
.qb-facts { margin: 12px 0 0; padding-left: 18px; font-size: 14px; }
.qb-facts li { margin: 4px 0; }
.qb-dev { display: grid; gap: 8px; }
.qb-dev__row { display: grid; grid-template-columns: 56px 1fr; gap: 4px 10px; align-items: center; font-size: 13px; font-weight: 600; }
.qb-dev__row em { grid-column: 2; font-style: normal; font-size: 12px; color: var(--qb-mute); }
.qb-dev__bar { position: relative; display: flex; height: 14px; border-radius: 7px; overflow: visible; background: #f3ead8; }
.qb-dev__bar i:first-child { border-radius: 7px 0 0 7px; }
.qb-dev__bar i.egg { background: #fff1c9; }
.qb-dev__bar i.larva { background: #ffd680; }
.qb-dev__bar i.pupa { background: #e2a33a; border-radius: 0 7px 7px 0; }
.qb-dev__bar b { position: absolute; top: -4px; width: 3px; height: 22px; background: var(--qb-ink); border-radius: 2px; transform: translateX(-1px); }
.st-adult { color: var(--qb-leaf) !important; font-weight: 700; }

/* waggle dance */
.qb-dance { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qb-dance figure { margin: 0; text-align: center; }
.qb-dance svg { width: 100%; height: auto; display: block; }
.qb-dance figcaption { font-size: 12px; color: var(--qb-mute); }
.qb-dance text { font-size: 12px; fill: var(--qb-mute); }
.qb-map { fill: #e9f3dc; stroke: #c9ddb0; stroke-width: 2; }
.qb-sun { fill: #ffc93c; }
.qb-ray { stroke: #ffc93c; stroke-width: 3; stroke-dasharray: 5 5; }
.qb-path { stroke: var(--qb-amber); stroke-width: 3; stroke-dasharray: 6 4; }
.qb-hivebox { fill: #c98a2b; }
.qb-flower { fill: #e57fb0; }
.qb-flower__c { fill: #ffd34d; }
.qb-comb { fill: #f6c75a; stroke: #e0a530; stroke-width: 3; }
.qb-up { stroke: #8a5a10; stroke-width: 2; marker-end: none; }
.qb-loop { fill: none; stroke: rgba(122, 74, 6, .45); stroke-width: 3; stroke-dasharray: 4 4; }
.qb-run { stroke: #7a3f00; stroke-width: 4; }
.qb-dancer ellipse { fill: #3a2e1f; stroke: #ffd34d; stroke-width: 3; }
.qb-dancer line { stroke: #3a2e1f; stroke-width: 3; }

/* who is flying */
.qb-fly { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 8px; }
.qb-fly li { display: flex; gap: 12px; align-items: center; border-radius: 12px; padding: 10px; border: 1px solid var(--qb-line); }
.qb-fly li::before { display: none; }
.qb-fly li b { display: block; }
.qb-fly li small { color: var(--qb-mute); font-size: 12px; }
.qb-fly li.yes { background: #eef7ec; border-color: #cbe6c4; }
.qb-fly li.maybe { background: #fff6dc; }
.qb-fly li.no { opacity: .65; }
.qb-bee { flex: none; width: 46px; height: 32px; border-radius: 50% / 60%; background: repeating-linear-gradient(90deg, #f2b705 0 8px, #3a2e1f 8px 14px); }
.qb-bee--bumble { width: 50px; height: 38px; border-radius: 50%; background: linear-gradient(90deg, #f5f0e6 0 22%, #3a2e1f 22% 45%, #f2b705 45% 65%, #3a2e1f 65%); }
.qb-bee--solitary { width: 38px; height: 22px; background: linear-gradient(90deg, #c46a2b, #8a4a1e); }
.qb-fly li.yes .qb-bee { animation: qb-hover 1.2s ease-in-out infinite; }
@keyframes qb-hover { 50% { transform: translateY(-4px) rotate(-3deg); } }
.qb-buzz { position: relative; height: 0; transition: height .2s; }
.qb-buzz.is-on { height: 110px; }
.qb-tomato { position: absolute; left: 50%; top: 30px; width: 60px; height: 60px; margin-left: -30px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #ffe066 0 18%, #f7c844 19% 30%, #fff 31% 100%); box-shadow: 0 0 0 4px #e8eedb; }
.qb-buzz.is-on .qb-tomato { animation: qb-shake .08s linear 10; }
.qb-buzz b { position: absolute; left: 50%; top: 58px; width: 6px; height: 6px; border-radius: 50%; background: #f5b400; animation: qb-puff 1s ease-out forwards; }
@keyframes qb-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes qb-puff { to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }

/* bee hotel */
.qb-check { list-style: none; padding: 0; margin: 0; }
.qb-check li { border-bottom: 1px dashed var(--qb-line); }
.qb-check li::before { display: none; }
.qb-check label { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; cursor: pointer; font-size: 14px; }
.qb-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--qb-amber); flex: none; }

/* flower shapes */
.qb-shapes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.qb-shapes button { border: 1.5px solid var(--qb-line); background: #fff; border-radius: 12px; padding: 6px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.qb-shapes svg { width: 100%; max-width: 52px; height: auto; }
.qb-shapes small { font-size: 10px; line-height: 1.1; text-align: center; }
.qb-shapes .pe { fill: #f2a3c6; }
.qb-shapes .ce { fill: #ffcf3f; }
.qb-shapes button.is-on { border-color: var(--qb-amber); background: var(--qb-cream); }
.qb-match { background: var(--qb-cream); border-radius: 12px; padding: 4px 12px; margin-top: 10px; font-size: 14px; }
.qb-match p { margin: 6px 0; }

/* tool cards + next */
.qb-cards { display: grid; gap: 12px; margin: 18px 0; }
.qb-card { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--qb-line); border-radius: 18px; padding: 8px; color: var(--qb-ink) !important; text-decoration: none !important; transition: transform .15s, border-color .15s; }
.qb-card:hover { transform: translateY(-2px); border-color: var(--qb-honey); }
.qb-card img { width: 110px; height: 76px; object-fit: cover; border-radius: 12px; flex: none; margin: 0 !important; }
.qb-card b { display: block; font-size: 16px; }
.qb-card small { color: var(--qb-mute); }
.qb-next { display: grid; gap: 10px; margin: 26px 0 8px; }
.qb-next a { display: block; border-radius: 16px; padding: 14px 16px; text-decoration: none !important; font-weight: 700; }
.qb-next__plan { background: var(--qb-amber); color: #fff !important; text-align: center; }
.qb-next__go { background: #fff; border: 1px solid var(--qb-line); color: var(--qb-ink) !important; }
.qb-next__go small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--qb-mute); }

/* content pictures and fact list */
.qb-pic { margin: 18px 0; }
.qb-pic img { width: 100%; height: auto; display: block; border-radius: 20px; }
.qb-pic figcaption { font-size: 13px; color: var(--qb-mute); text-align: center; margin-top: 6px; }
.qb-facts-box { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.qb-facts-box li { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--qb-line); border-radius: 14px; padding: 10px 12px; }
.qb-facts-box li::before { display: none; }
.qb-facts-box li .qb-crown { margin-top: 3px; background: var(--qb-honey); }
.qb-facts-box em { display: block; font-style: normal; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--qb-amber); }

.qb-toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--qb-ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 9999; max-width: calc(100% - 32px); text-align: center; }
.qb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 640px) {
  .qb-months { grid-template-columns: repeat(12, 1fr); }
  .qb-cards { grid-template-columns: 1fr 1fr; }
  .qb-card { flex-direction: column; align-items: stretch; }
  .qb-card img { width: 100%; height: auto; aspect-ratio: 768 / 530; }
  .qb-card span { padding: 2px 6px 8px; }
  .qb-next { grid-template-columns: 1fr 1fr; }
  .qb-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 360px) {
  .qb-presets { grid-template-columns: repeat(3, 1fr); }
  .qb-dance { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .qb-box *, .qb-toast { animation: none !important; transition: none !important; } }
