
.bee-app, .bee-app * { box-sizing: border-box; }
.bee-app { --bee-cut: 8px; --gs-ink: #fff7e6; --gs-muted: #b8a587; --gs-line: #4a3412; --gs-accent: #fbbf24; --gs-accent-ink: #2a1503;
  --gs-panel: #140c05; --gs-bg: #0c0703; --gs-chip: rgba(20, 10, 2, .92);
  position: relative; display: flex; flex-direction: column; color: #fff7e6; font: 16px/1.4 "Segoe UI", system-ui, Arial, sans-serif;
  overflow: clip; -webkit-tap-highlight-color: transparent; }
.bee-app.bee-embedded { height: clamp(460px, calc(100svh - 110px), 900px); border: 1px solid #4a3412; background: #0c0703;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.bee-app.gs-fs { background: #0c0703; }
.bee-app .gs-stage, .bee-app .gs-main { min-height: 0; }
.bee-app.gs-wide .gs-stage { align-items: stretch; grid-template-rows: minmax(0, 1fr); }
.bee-app .gs-side { min-height: 0; overflow: auto; }
.bee-app .gs-main { display: flex; flex-direction: column; }
.bee-cut { clip-path: polygon(var(--bee-cut) 0, 100% 0, 100% calc(100% - var(--bee-cut)), calc(100% - var(--bee-cut)) 100%, 0 100%, 0 var(--bee-cut)); }
.bee-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding-bottom: env(safe-area-inset-bottom, 0); }
.bee-stage { position: relative; flex: 1 1 40%; min-height: 150px; --bee-cut: 12px; overflow: hidden; border: 1px solid #3a2a10;
  background: radial-gradient(ellipse at 50% 40%, #3b2208 0%, #1c1006 55%, #0c0703 100%); user-select: none; -webkit-user-select: none; }
.bee-scene { position: absolute; inset: 0; isolation: isolate; }
.bee-scene::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 75% 85% at 50% 50%, rgba(10, 5, 1, 0) 55%, rgba(10, 5, 1, 0.55) 100%); }
.bee-scene .bh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.8s ease; }
.bee-scene.bh-ready .bh-canvas { opacity: 1; }
.bee-comb { position: absolute; inset: 34px 0 0; display: flex; align-items: center; justify-content: center; }
.bee-comb svg { width: 100%; height: 100%; display: block; }
.bee-scene.bh-ready .bee-comb { visibility: hidden; transition: visibility 0s linear 0.8s; }
.bee-scene.bh-ready .bee-comb, .bee-scene.bh-ready .bee-comb * { animation: none; }   
.bee-wax { fill: #2a1806; stroke: #c98a2b; stroke-width: 2.4; }
.bee-cell.queen .bee-wax { stroke: #ffd36b; stroke-width: 3.2; }
.bee-cell.filled .bee-wax { fill: url(#beHoneyGrad); stroke: #f6c453; }
.bee-cell.royal.filled .bee-wax { fill: url(#beRoyalGrad); stroke: #fff1b0; }
.bee-cell.now .bee-wax { stroke: #fff4c2; stroke-width: 3.4; animation: beeNow 1.6s ease-in-out infinite; }
.bee-cell text { font: bold 11px "Segoe UI", Arial, sans-serif; fill: #3a1f02; text-anchor: middle; pointer-events: none; }
.bee-cell .bee-crown { font-size: 18px; fill: #ffd36b; }
.bee-cell.filled .bee-crown { fill: #7a4a00; }
.bee-cell.pop { animation: beePop 0.6s ease; transform-box: fill-box; transform-origin: center; }
@keyframes beeNow { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: 0.35; } }
@keyframes beePop { 0% { transform: scale(0.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.bee-hud { position: absolute; left: 8px; right: 8px; top: 8px; display: flex; gap: 5px; flex-wrap: wrap; pointer-events: none; z-index: 3; }
.bee-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 9px; background: rgba(20, 10, 2, .74); border: 1px solid rgba(251, 191, 36, .28); --bee-cut: 6px; }
.bee-chip[hidden] { display: none; }
.bee-chip small { font: 700 9.5px/1 monospace; letter-spacing: 1.5px; color: #b8a587; }
.bee-chip b { font: 800 14px/1 monospace; color: #fff; white-space: nowrap; }
.bee-lives b span { margin-right: 1px; }
.bee-lives b span.on { color: #fb7185; }
.bee-lives b span.lost { color: #6b5a3e; }
.bee-lives.hit { animation: beeHit 0.5s ease; }
.bee-streak b { color: #fcd34d; }
@keyframes beeHit { 0%, 100% { transform: none; } 30% { transform: scale(1.18); } 60% { transform: scale(0.95); } }
.bee-toast { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; pointer-events: none; opacity: 0;
  font: 800 22px system-ui, sans-serif; color: #fde68a; text-shadow: 0 2px 16px rgba(0,0,0,0.9); white-space: nowrap; }
.bee-toast.loss { color: #fda4af; font-size: 17px; }
.bee-toast.show { animation: beeToast 1.3s ease-out forwards; }
.bee-toast.big { font-size: 26px; }
@keyframes beeToast { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.85); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } 100% { opacity: 0; transform: translate(-50%, -100%) scale(1); } }
.bee-tag { position: absolute; z-index: 4; transform: translate(-50%, calc(-100% - 10px)); background: rgba(20, 10, 2, 0.92); color: #fff; border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 3px 9px; font: 12px "Segoe UI", Arial, sans-serif; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.15s; --bee-cut: 5px; }
.bee-tag.on { opacity: 1; }
.bee-tag b { color: #fcd34d; }
.bee-wtoast { position: absolute; left: 50%; bottom: 10px; z-index: 4; transform: translateX(-50%); background: rgba(20, 10, 2, 0.88); color: #fff; border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 4px 12px; font: bold 12px "Segoe UI", Arial, sans-serif; max-width: 92%; text-align: center; pointer-events: none; animation: beeWToast 5s ease forwards; --bee-cut: 6px; }
@keyframes beeWToast { 0% { opacity: 0; } 10%, 80% { opacity: 1; } 100% { opacity: 0; } }
.bee-mid { flex: 1 1 36%; min-height: 96px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 6px; }
.bee-card { padding: 10px 12px; background: rgba(20, 13, 5, 0.92); border: 1px solid #4a3412; transition: border-color 0.4s, box-shadow 0.4s; }
.bee-card[hidden] { display: none; }
.bee-card.queen { border-color: rgba(255, 215, 0, 0.6); background: linear-gradient(160deg, rgba(60, 40, 6, 0.75), rgba(20, 13, 5, 0.95) 55%); }
.bee-card.review { border-color: rgba(34, 211, 238, 0.5); }
.bee-note { margin-bottom: 8px; font-size: 13px; padding: 6px 10px; --bee-cut: 6px; }
.bee-note[hidden] { display: none; }
.bee-note b { color: #fff; letter-spacing: 1px; }
.bee-note.queen { color: #fde68a; background: rgba(255, 215, 0, 0.1); border: 1px dashed rgba(255, 215, 0, 0.45); }
.bee-note.review { color: #a5f3fc; background: rgba(34, 211, 238, 0.08); border: 1px dashed rgba(34, 211, 238, 0.45); }
.bee-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; margin-bottom: 2px; }
.bee-meta i { color: #fcd34d; font-weight: bold; }
.bee-meta span { color: #b8a587; font: bold 12px monospace; letter-spacing: 1px; text-transform: uppercase; }
.bee-def { color: #fff7e6; font-size: 16px; line-height: 1.45; }
.bee-blank { color: #e2d4bc; font: italic 15px/1.5 Georgia, 'Times New Roman', serif; margin-top: 4px; }
.bee-gap { display: inline-block; min-width: 70px; border-bottom: 2px dashed #fbbf24; margin: 0 3px; height: 1em; }
.bee-listen { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.bee-play { flex: 1 1 140px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; min-height: 46px; padding: 6px 16px; cursor: pointer;
  font: 800 16px system-ui, sans-serif; color: #2a1503; background: linear-gradient(180deg, #fde68a, #f59e0b 65%, #d97706); --bee-cut: 10px; }
.bee-play:hover { filter: brightness(1.07); }
.bee-play.playing { animation: beePlay 1.1s ease-in-out infinite; }
@keyframes beePlay { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }
.bee-tool { flex: 0 1 auto; min-height: 46px; padding: 6px 12px; background: rgba(40, 26, 8, 0.85); color: #fde68a; border: 1px solid #5a3a12; cursor: pointer;
  font: bold 13.5px system-ui, sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.bee-tool:hover:not(:disabled) { border-color: #fbbf24; }
.bee-tool:disabled { opacity: 0.45; cursor: default; }
.bee-tool[hidden] { display: none; }
.bee-worth { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.bee-bar { flex: 1; height: 10px; background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.3); --bee-cut: 4px; overflow: hidden; }
.bee-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #f59e0b, #fde047); transition: width 0.4s ease; }
.bee-bar i.low { background: linear-gradient(90deg, #b45309, #f59e0b); }
.bee-worth b { font: bold 13px monospace; color: #fde68a; white-space: nowrap; }
.bee-worth b.hit { animation: beeHit 0.5s ease; color: #fda4af; }
.bee-small { margin-top: 5px; min-height: 15px; font-size: 12px; color: #b8a587; }
.bee-feedback:empty { display: none; }
.bee-fb { font-size: 14px; padding: 7px 10px; line-height: 1.45; background: rgba(40, 26, 8, 0.7); border-left: 3px solid #b8a587; }
.bee-fb + .bee-fb, .bee-fb + .bee-tip { margin-top: 6px; }
.bee-fb.bad { color: #fecdd3; border-left-color: #fb7185; background: rgba(80, 18, 28, 0.45); }
.bee-fb.info { color: #fde68a; border-left-color: #fbbf24; }
.bee-fb b { color: #fff; }
.bee-tip { font-size: 14px; line-height: 1.5; color: #fde68a; background: rgba(251, 191, 36, 0.08); border-left: 3px solid #fbbf24; padding: 7px 10px; }
.bee-solved { text-align: center; padding: 10px 10px 8px; background: rgba(20, 13, 5, 0.94); border: 1px solid rgba(52, 211, 153, 0.45); --bee-cut: 12px; animation: beeIn 0.35s ease; }
.bee-solved[hidden] { display: none; }
.bee-solved.shown { border-color: rgba(251, 113, 133, 0.5); }
.bee-solved.royal { border-color: #ffd700; background: linear-gradient(160deg, rgba(70, 48, 6, 0.85), rgba(20, 13, 5, 0.95) 60%); }
.bee-solved-head { font-size: 15px; font-weight: 800; color: #86efac; }
.bee-solved.shown .bee-solved-head { color: #fda4af; }
.bee-solved.royal .bee-solved-head { color: #ffd700; }
.bee-word { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 8px 0 6px; }
.bee-word span { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 36px; padding: 0 2px; --bee-cut: 5px;
  clip-path: polygon(var(--bee-cut) 0, 100% 0, 100% calc(100% - var(--bee-cut)), calc(100% - var(--bee-cut)) 100%, 0 100%, 0 var(--bee-cut));
  font: bold 21px "Courier New", monospace; text-transform: uppercase; color: #2a1503; background: linear-gradient(180deg, #fde68a, #f59e0b);
  animation: beeIn 0.4s ease both; animation-delay: calc(var(--i, 0) * 40ms); }
.bee-solved.royal .bee-word span { background: linear-gradient(180deg, #fff7c2, #ffd700 55%, #e0a800); }
.bee-solved.shown .bee-word span { background: linear-gradient(180deg, #e2e8f0, #94a3b8); }
.bee-solved-def { font-size: 13px; color: #e2d4bc; }
.bee-solved-sent { font: 15.5px/1.5 Georgia, 'Times New Roman', serif; color: #fff; margin: 4px 0; }
.bee-solved-sent mark { background: rgba(251, 191, 36, 0.25); color: #fde68a; padding: 0 2px; }
.bee-solved-tip { font-size: 12.5px; color: #fde68a; margin-top: 4px; }
.bee-solved-meta { font-size: 12.5px; color: #b8a587; margin-top: 6px; }
.bee-solved-meta b { color: #ffd166; }
.bee-uk { font-size: 12.5px; color: #a7f3d0; margin-top: 4px; }
.bee-review-line { margin-top: 6px; font-size: 13px; color: #a5f3fc; }
.bee-review-line.done { color: #6ee7b7; font-weight: bold; }
@keyframes beeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bee-dock { flex: none; display: flex; flex-direction: column; gap: 5px; }
.bee-marks { display: flex; justify-content: center; flex-wrap: wrap; gap: 3px; }
.bee-marks:empty { display: none; }
.bee-m { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 34px; font: bold 18px "Courier New", monospace; text-transform: uppercase;
  border: 2px solid transparent; --bee-cut: 5px; clip-path: polygon(var(--bee-cut) 0, 100% 0, 100% calc(100% - var(--bee-cut)), calc(100% - var(--bee-cut)) 100%, 0 100%, 0 var(--bee-cut));
  animation: beeIn 0.35s ease both; animation-delay: calc(var(--i, 0) * 30ms); }
.bee-m.ok { background: rgba(52, 211, 153, 0.16); color: #a7f3d0; border-color: rgba(52, 211, 153, 0.6); }
.bee-m.wrong { background: rgba(251, 113, 133, 0.2); color: #fecdd3; border-color: rgba(251, 113, 133, 0.75); }
.bee-m.extra { background: rgba(148, 163, 184, 0.1); color: #94a3b8; border-color: #475569; text-decoration: line-through; }
.bee-m.missing { border: 2px dashed #fbbf24; color: #fbbf24; background: rgba(251, 191, 36, 0.06); font-size: 14px; }
.bee-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; font-size: 11px; color: #b8a587; }
.bee-legend[hidden] { display: none; }
.bee-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; border: 1px solid; }
.bee-legend .l-ok { background: rgba(52, 211, 153, 0.3); border-color: #34d399; }
.bee-legend .l-wrong { background: rgba(251, 113, 133, 0.3); border-color: #fb7185; }
.bee-legend .l-missing { border: 1px dashed #fbbf24; }
.bee-legend .l-extra { background: rgba(148, 163, 184, 0.2); border-color: #64748b; }
.bee-slots { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; min-height: 0; }
.bee-slots:empty { display: none; }
.bee-slots i { width: 9px; height: 9px; background: rgba(251, 191, 36, 0.16); border: 1px solid rgba(251, 191, 36, 0.35); transform: rotate(45deg); transition: background 0.15s; }
.bee-slots i.on { background: #fbbf24; }
.bee-slots i.over { background: #fb7185; border-color: #fb7185; }
.bee-form { display: flex; gap: 6px; }
.bee-form[hidden] { display: none; }
.bee-input { flex: 1 1 auto; min-width: 0; min-height: 50px; background: #0b0703; color: #fff7e0; border: 2px solid #4a3412; padding: 8px 10px; outline: none;
  font: bold 24px/1.2 "Courier New", monospace; letter-spacing: 0.12em; text-align: center; text-transform: uppercase; transition: border-color 0.2s; }
.bee-input::placeholder { text-transform: none; letter-spacing: 0; font: 16px "Segoe UI", Arial, sans-serif; color: #7a6745; }
.bee-input:focus { border-color: #fbbf24; }
.bee-input:disabled { opacity: 0.75; }
.bee-input.shake { animation: beeShake 0.4s; border-color: #fb7185; }
.bee-input.good { border-color: #34d399; }
@keyframes beeShake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.bee-btn { flex: none; min-height: 50px; min-width: 92px; padding: 0 18px; border: 0; cursor: pointer; font: 800 16px system-ui, sans-serif; color: #2a1503;
  background: linear-gradient(180deg, #fcd34d, #f59e0b); --bee-cut: 10px; }
.bee-btn:disabled { opacity: 0.55; cursor: default; }
.bee-btn:focus-visible, .bee-tool:focus-visible, .bee-play:focus-visible, .bee-go:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.bee-nextrow { display: flex; gap: 6px; }
.bee-nextrow[hidden] { display: none; }
.bee-nextrow .bee-btn { flex: 1 1 auto; }
.bee-app .gs-shade.bee-over { display: flex; align-items: center; justify-content: center; padding: 12px; z-index: 30;
  background: radial-gradient(ellipse at center, rgba(12, 7, 3, 0.55), rgba(12, 7, 3, 0.94)); }
.bee-ocard { width: min(470px, 100%); max-height: calc(100% - 8px); overflow-y: auto; text-align: center; padding: 16px; color: #fff7e6;
  background: rgba(24, 14, 4, 0.96); border: 1px solid rgba(251, 191, 36, 0.4); --bee-cut: 14px; }
.bee-ostars { font-size: 34px; letter-spacing: 6px; color: #5a3a12; }
.bee-ostars .on { color: #fcd34d; text-shadow: 0 0 14px rgba(251, 191, 36, 0.7); }
.bee-otitle { font: 800 21px system-ui, sans-serif; margin: 4px 0; }
.bee-ocard.fail .bee-otitle { color: #fda4af; }
.bee-osp { font: 800 30px monospace; color: #fde68a; margin: 2px 0; }
.bee-osp small { font: 700 12px system-ui, sans-serif; color: #b8a587; letter-spacing: 0.5px; }
.bee-osub { font-size: 13.5px; color: #e2d4bc; }
.bee-owords { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin: 10px 0; }
.bee-owords span { background: rgba(251, 191, 36, 0.14); color: #fde68a; border: 1px solid rgba(251, 191, 36, 0.3); padding: 2px 8px; font-size: 12.5px; font-weight: bold; --bee-cut: 4px; }
.bee-owords span.q { background: rgba(255, 215, 0, 0.25); color: #fff3b0; border-color: #ffd700; }
.bee-oband { color: #fcd34d; font-size: 13.5px; margin: 6px 0 12px; }
.bee-go { min-height: 48px; min-width: 170px; border: 0; padding: 0 24px; cursor: pointer; font: 800 16px system-ui, sans-serif; color: #2a1503;
  background: linear-gradient(180deg, #fcd34d, #f59e0b); --bee-cut: 10px; }
.bee-credits-h { margin: 14px 0 6px; font-size: 14px; color: #fbbf24; }
.bee-credits { font-size: 12.5px; line-height: 1.5; color: #cbd5e1; }
.bee-credits p { margin: 0 0 8px; }
.bee-credits a { color: #93c5fd; }
@media (max-width: 640px) {
  .bee-chip { padding: 3px 7px; gap: 4px; }
  .bee-chip small { font-size: 8.5px; letter-spacing: 1px; }
  .bee-chip b { font-size: 13px; }
  .bee-card { padding: 8px 10px; }
  .bee-def { font-size: 15px; }
  .bee-blank { font-size: 14px; }
  .bee-listen .bee-tool { flex: 1 1 0; padding: 6px 8px; font-size: 12.5px; }
  .bee-play { flex: 1 1 100%; }
  .bee-m { width: 24px; height: 30px; font-size: 15px; }
  .bee-word span { min-width: 23px; height: 31px; font-size: 17px; }
  .bee-input { font-size: 21px; letter-spacing: 0.08em; }
  .bee-btn { min-width: 80px; padding: 0 12px; }
}
@media (max-height: 560px) {
  .bee-stage { min-height: 96px; flex-basis: 26%; }
  .bee-play, .bee-tool, .bee-input, .bee-btn { min-height: 40px; }
  .bee-listen { margin-top: 6px; }
  .bee-play { flex: 1 1 0; }
}
