:root {
  --honey: #ffc83d;
  --honey-2: #ff9f1a;
  --nectar: #ffa36b;
  --ink: #fff8e8;
  --muted: #e2cfa6;
  --panel: rgba(44, 27, 9, 0.86);
  --panel-2: rgba(110, 68, 20, 0.6);
  --line: rgba(255, 210, 130, 0.18);
  --good: #8af06a;
  --bad: #ff6b5a;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --side: 22rem;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: #4c8f45; color: var(--ink);
  font-family: var(--font);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
canvas#game { position: fixed; inset: 0; display: block; touch-action: none; }
#ui { position: fixed; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
button { font-family: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:disabled { cursor: default; }

/* mode visibility */
body.mode-run #menu-hud, body.mode-run #menu-center, body.mode-run #tabs-menu, body.mode-run #btn-settings { display: none !important; }
body.mode-menu #run-hud, body.mode-menu #btn-queen, body.mode-menu #btn-pause, body.mode-menu #btn-speed, body.mode-menu #boss-bar, body.mode-menu #tabs-run { display: none !important; }

/* currency icons */
.i-nectar, .i-honey { display: inline-block; flex: none; vertical-align: -0.15em; }
.i-nectar {
  width: 1.15rem; height: 1.15rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: radial-gradient(circle at 60% 40%, #fff3e0 0 14%, #ffbf8a 40%, #ff7a3d 85%);
  box-shadow: 0 0 10px rgba(255, 140, 60, 0.55);
}
.i-honey {
  width: 1.25rem; height: 1.4rem;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: radial-gradient(circle at 40% 35%, #fff4b8 0 12%, var(--honey) 45%, var(--honey-2) 90%);
}
.i-honey.sm { width: 0.75rem; height: 0.85rem; margin-right: 0.25rem; vertical-align: -0.1em; }
.i-honey.lg { width: 2rem; height: 2.25rem; }

/* ---------- HUD ---------- */
#hud { position: absolute; left: 0.9rem; top: 0.8rem; pointer-events: none; text-shadow: 0 2px 8px rgba(30, 15, 0, 0.75); width: 15rem; }
.hud-top { display: flex; align-items: center; gap: 0.5rem; }
#wave-chip {
  background: rgba(44, 27, 9, 0.8); border: 1px solid var(--line);
  padding: 0.3rem 0.75rem; border-radius: 999px; font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em;
}
#wave-chip b { font-size: 1.25rem; color: var(--honey); margin-left: 0.2rem; letter-spacing: 0; }
#meadow-chip { font-size: 0.78rem; font-weight: 700; color: var(--ink); opacity: 0.85; }
#wave-bar { height: 0.3rem; margin: 0.45rem 0 0.4rem; border-radius: 999px; background: rgba(30, 15, 0, 0.45); overflow: hidden; width: 12rem; }
#wave-bar i { display: block; height: 100%; background: linear-gradient(90deg, #fff1a8, var(--honey)); border-radius: 999px; }
#hp-bar { position: relative; height: 1.25rem; width: 12rem; border-radius: 0.5rem; background: rgba(30, 15, 0, 0.6); border: 1px solid rgba(255, 220, 160, 0.35); overflow: hidden; }
#hp-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(180deg, #a6f582, #4fc43a); transition: width 0.15s; }
#hp-bar i.low { background: linear-gradient(180deg, #ff9a7a, #e8432c); animation: lowhp 0.8s ease-in-out infinite; }
@keyframes lowhp { 50% { filter: brightness(1.35); } }
#hp-bar span { position: relative; display: block; text-align: center; font-size: 0.75rem; font-weight: 800; line-height: 1.2rem; font-variant-numeric: tabular-nums; }
.cur-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.45rem; }
.cur-row b { font-size: 2rem; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
#honey-preview { font-size: 0.75rem; font-weight: 700; color: var(--muted); margin-top: 0.1rem; }
#menu-hud .cur-row { margin-top: 0; }
#menu-hud .cur-row b { font-size: 2.3rem; }
#honey-sub { font-size: 0.78rem; font-weight: 700; color: var(--ink); opacity: 0.85; margin-top: 0.1rem; max-width: 14rem; }

/* ---------- top-right buttons ---------- */
#tr { position: absolute; top: 0.8rem; right: calc(var(--side) + 1.5rem); display: flex; gap: 0.45rem; }
.round {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--line);
  display: grid; place-items: center; color: #fff;
}
.round svg { width: 1.3rem; height: 1.3rem; }
.round.txt { font-weight: 900; font-size: 0.95rem; }
.round[hidden] { display: none; }

/* ---------- panel ---------- */
#panel {
  position: absolute; right: 0.8rem; top: 0.8rem; bottom: 0.8rem; width: var(--side);
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(20, 10, 0, 0.45); overflow: hidden;
}
.tabs { display: flex; padding: 0.4rem; gap: 0.3rem; border-bottom: 1px solid var(--line); flex: none; }
.tabs button { flex: 1; padding: 0.55rem 0.2rem; border-radius: 0.6rem; font-size: 0.9rem; font-weight: 800; color: var(--muted); position: relative; }
.tabs button.on { background: var(--panel-2); color: #fff; }
.badge {
  position: absolute; top: 0.1rem; right: 0.25rem; min-width: 1.1rem; height: 1.1rem; padding: 0 0.3rem; border-radius: 999px;
  background: var(--bad); color: #fff; font-size: 0.7rem; line-height: 1.1rem; animation: pop 1.2s ease-in-out infinite;
}
.badge[hidden] { display: none; }
@keyframes pop { 50% { transform: scale(1.15); } }
.tab-body { flex: 1; overflow-y: auto; padding: 0.5rem; scrollbar-width: thin; scrollbar-color: rgba(255, 210, 130, 0.3) transparent; }
.tab-body[hidden] { display: none; }

.up-row {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem; margin-bottom: 0.4rem; border-radius: 0.75rem;
  background: rgba(255, 230, 180, 0.05); border: 1px solid transparent; transition: border-color 0.2s, background 0.2s;
}
.up-row[hidden] { display: none; }
.up-row.glow { border-color: var(--honey); background: rgba(255, 200, 61, 0.12); animation: glow 1s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 18px rgba(255, 200, 61, 0.5); } }
.up-row.locked { opacity: 0.55; }
.up-icon {
  width: 2.4rem; height: 2.4rem; flex: none; border-radius: 0.6rem; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(255, 200, 61, 0.25), rgba(255, 120, 40, 0.18)); color: var(--honey);
}
.up-icon svg { width: 1.45rem; height: 1.45rem; }
.up-text { flex: 1; min-width: 0; }
.up-name { font-weight: 800; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-lvl { color: var(--muted); font-weight: 700; font-size: 0.78rem; margin-left: 0.2rem; }
.up-eff { color: var(--muted); font-size: 0.78rem; margin-top: 0.12rem; line-height: 1.25; }
.up-buy {
  flex: none; min-width: 5rem; padding: 0.5rem 0.55rem; border-radius: 0.65rem; font-weight: 900; font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.5); touch-action: manipulation; font-variant-numeric: tabular-nums;
  display: flex; flex-direction: column; align-items: center; line-height: 1.15;
}
.up-buy .cost::before { content: ""; display: inline-block; margin-right: 0.3rem; vertical-align: -0.08rem; }
.up-buy.nectar .cost::before { width: 0.62rem; height: 0.62rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(135deg, #ffd0a8, #ff7a3d); }
.up-buy.honey .cost::before { width: 0.62rem; height: 0.7rem; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(135deg, #fff1a8, var(--honey-2)); }
.up-buy .time { font-size: 0.68rem; font-weight: 800; opacity: 0.85; }
.up-buy.can { background: linear-gradient(180deg, #ffe48a, #ffae1f); color: #2e1a00; box-shadow: 0 3px 0 #b36a00; }
.up-buy.can:active { transform: translateY(2px); box-shadow: 0 1px 0 #b36a00; }
.up-buy.maxed { background: rgba(138, 240, 106, 0.15); color: var(--good); }
.up-buy.maxed .cost::before { display: none; }
.up-buy.busy { background: rgba(127, 200, 255, 0.16); color: #bfe6ff; }
.up-buy.busy .cost::before { display: none; }
.locked .up-buy .cost::before { display: none; }
.re-bar { height: 0.32rem; border-radius: 999px; background: rgba(255, 255, 255, 0.1); margin-top: 0.35rem; overflow: hidden; display: none; }
.re-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8fd8ff, #c9f0ff); border-radius: 999px; }
.shake { animation: shake 0.3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.note { text-align: center; color: var(--muted); font-size: 0.75rem; margin: 0.6rem 0.4rem; }

.mi-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem; margin-bottom: 0.45rem; border-radius: 0.75rem; background: rgba(255, 230, 180, 0.05); }
.mi-row.done { background: rgba(138, 240, 106, 0.1); border: 1px solid rgba(138, 240, 106, 0.35); }
.mi-text { flex: 1; min-width: 0; }
.mi-title { font-weight: 800; font-size: 0.9rem; }
.mi-bar { height: 0.4rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); margin: 0.4rem 0 0.25rem; overflow: hidden; }
.mi-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--honey), var(--good)); }
.mi-prog { font-size: 0.78rem; color: var(--muted); }
.mi-claim {
  flex: none; min-width: 5rem; padding: 0.45rem 0.5rem; border-radius: 0.65rem; font-weight: 900; font-size: 0.88rem;
  display: flex; flex-direction: column; align-items: center; background: rgba(255, 255, 255, 0.06); color: var(--muted);
}
.mi-claim span { font-size: 0.75rem; color: var(--honey); }
.mi-claim:not([disabled]) { background: linear-gradient(180deg, #b6f59a, #4fc43a); color: #0d2e06; box-shadow: 0 3px 0 #2c8a1c; animation: glow 1.2s infinite; }
.mi-claim:not([disabled]) span { color: #164a0a; }

/* ---------- queen button ---------- */
#btn-queen {
  position: absolute; left: 1rem; bottom: 1rem; display: flex; align-items: center; gap: 0.6rem;
  padding: 0.35rem 1rem 0.35rem 0.35rem; border-radius: 999px; background: var(--panel); border: 1px solid var(--line);
  touch-action: manipulation;
}
.q-ring {
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: conic-gradient(var(--honey) var(--p, 0deg), rgba(255, 255, 255, 0.12) 0);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%); mask: radial-gradient(circle, transparent 58%, #000 60%);
}
.q-icon { position: absolute; left: 0.35rem; top: 0.35rem; width: 3.4rem; height: 3.4rem; display: grid; place-items: center; color: rgba(255, 220, 140, 0.55); }
.q-icon svg { width: 1.7rem; height: 1.7rem; }
.q-text { display: flex; flex-direction: column; align-items: flex-start; font-weight: 900; font-size: 0.95rem; color: var(--muted); }
.q-text small { font-size: 0.68rem; font-weight: 700; opacity: 0.75; }
#btn-queen.ready { background: linear-gradient(180deg, #ffe48a, #ffae1f); border-color: #fff2b0; animation: qpulse 1s ease-in-out infinite; }
#btn-queen.ready .q-icon, #btn-queen.ready .q-text { color: #2e1a00; }
@keyframes qpulse { 50% { box-shadow: 0 0 30px rgba(255, 200, 61, 0.9); transform: scale(1.04); } }

/* ---------- boss bar ---------- */
#boss-bar {
  position: absolute; top: 0.9rem; left: 50%; transform: translateX(calc(-50% - var(--side) / 2 - 0.7rem));
  width: min(20rem, 40vw); text-align: center; pointer-events: none;
}
#boss-bar[hidden] { display: none; }
#boss-bar span { font-weight: 900; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; color: #ffd9d0; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); }
#boss-bar div { height: 0.75rem; margin-top: 0.25rem; border-radius: 999px; background: rgba(30, 10, 0, 0.65); border: 1px solid rgba(255, 140, 120, 0.5); overflow: hidden; }
#boss-bar i { display: block; height: 100%; background: linear-gradient(180deg, #ff8a6a, #d8301c); transition: width 0.15s; }

/* ---------- menu ---------- */
#menu-center { position: absolute; left: 0; top: 0; bottom: 0; right: calc(var(--side) + 1.6rem); pointer-events: none; }
#logo {
  position: absolute; left: 0; right: 0; top: 4.6rem; text-align: center; line-height: 0.9;
  font-weight: 900; letter-spacing: 0.04em; pointer-events: none;
  filter: drop-shadow(0 4px 0 #6b3a00) drop-shadow(0 8px 18px rgba(40, 20, 0, 0.5));
}
#logo span { display: block; font-size: 2.2rem; color: #fff6d8; letter-spacing: 0.4em; margin-left: 0.4em; }
#logo b { display: block; font-size: 4.4rem; background: linear-gradient(180deg, #fff3a0, #ffc83d 55%, #ff9f1a); -webkit-background-clip: text; background-clip: text; color: transparent; }
#defend-box { position: absolute; left: 0; right: 0; bottom: 1.2rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; pointer-events: none; }
#defend-box > * { pointer-events: auto; }
#meadow-pick { display: flex; align-items: center; gap: 0.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem; }
#meadow-pick > div { display: flex; flex-direction: column; align-items: center; min-width: 13rem; padding: 0 0.3rem; text-align: center; }
#meadow-pick b { font-size: 1rem; }
#meadow-pick small { font-size: 0.72rem; color: var(--muted); font-weight: 700; }
#meadow-pick button { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(255, 255, 255, 0.08); font-size: 1.5rem; font-weight: 900; line-height: 1; }
#meadow-pick button:disabled { opacity: 0.3; }
#btn-defend {
  padding: 0.95rem 2.6rem; border-radius: 999px; font-size: 1.35rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em;
  background: linear-gradient(180deg, #ffe48a, #ffae1f); color: #2e1a00; box-shadow: 0 5px 0 #a35f00, 0 10px 30px rgba(255, 170, 30, 0.45);
  animation: defend 1.6s ease-in-out infinite;
}
#btn-defend:active { transform: translateY(3px); box-shadow: 0 2px 0 #a35f00; }
@keyframes defend { 50% { box-shadow: 0 5px 0 #a35f00, 0 10px 40px rgba(255, 200, 61, 0.85); } }

/* ---------- banner, hint, toast ---------- */
#banner {
  position: absolute; left: 50%; top: 3.4rem; transform: translateX(calc(-50% - var(--side) / 2 - 0.7rem));
  display: flex; flex-direction: column; align-items: center; padding: 0.55rem 1.4rem; border-radius: 1rem;
  background: rgba(44, 27, 9, 0.9); border: 1px solid rgba(255, 200, 61, 0.55); box-shadow: 0 0 40px rgba(255, 180, 40, 0.3);
  pointer-events: none; white-space: nowrap;
}
#banner[hidden] { display: none; }
#banner b { font-size: 1.3rem; font-weight: 900; }
#banner span { font-size: 0.8rem; color: var(--muted); font-weight: 700; }
#banner.warn { border-color: rgba(255, 160, 90, 0.7); }
#banner.boss { border-color: rgba(255, 90, 70, 0.8); box-shadow: 0 0 40px rgba(255, 70, 40, 0.4); }
#banner.boss b { color: #ffb0a0; }
#banner.win b { color: var(--good); }
#banner.show { animation: bannerIn 2.4s ease forwards; }
@keyframes bannerIn { 0% { opacity: 0; margin-top: -14px; } 10% { opacity: 1; margin-top: 0; } 85% { opacity: 1; } 100% { opacity: 0; } }

#hint {
  position: fixed; z-index: 5; pointer-events: none; background: #fff; color: #2e1a00; font-weight: 800; font-size: 0.88rem;
  padding: 0.5rem 0.8rem; border-radius: 0.6rem; white-space: nowrap; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
#hint[hidden] { display: none; }
#hint.left { transform: translate(-100%, -50%); animation: nudgeL 0.9s ease-in-out infinite; }
#hint.left::after { content: ""; position: absolute; right: -0.45rem; top: 50%; transform: translateY(-50%); border: 0.5rem solid transparent; border-right: 0; border-left-color: #fff; }
#hint.up { transform: translate(-50%, -100%); animation: nudgeU 0.9s ease-in-out infinite; }
#hint.up::after { content: ""; position: absolute; bottom: -0.45rem; left: 50%; transform: translateX(-50%); border: 0.5rem solid transparent; border-bottom: 0; border-top-color: #fff; }
#hint.right { transform: translate(0, -50%); animation: nudgeR 0.9s ease-in-out infinite; }
#hint.right::after { content: ""; position: absolute; left: -0.45rem; top: 50%; transform: translateY(-50%); border: 0.5rem solid transparent; border-left: 0; border-right-color: #fff; }
@keyframes nudgeR { 50% { margin-left: 6px; } }
@keyframes nudgeL { 50% { margin-left: -6px; } }
@keyframes nudgeU { 50% { margin-top: -6px; } }

.toast {
  position: absolute; left: 50%; top: 38%; transform: translate(calc(-50% - var(--side) / 2), -50%);
  background: rgba(44, 27, 9, 0.94); border: 1px solid var(--line); padding: 0.7rem 1.2rem; border-radius: 0.8rem; font-weight: 800;
  pointer-events: none; animation: toast 2.6s ease forwards; white-space: nowrap;
}
@keyframes toast { 0% { opacity: 0; } 10%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- modal ---------- */
#modal { position: absolute; inset: 0; z-index: 10; background: rgba(20, 10, 0, 0.55); display: grid; place-items: center; padding: 1rem; }
#modal[hidden] { display: none; }
.modal-card {
  width: min(26rem, 100%); max-height: 100%; overflow-y: auto;
  background: linear-gradient(180deg, #4a2e0e, #2c1a07); border: 1px solid rgba(255, 210, 130, 0.35); border-radius: 1.1rem;
  padding: 1.2rem 1.3rem 1.1rem; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55); animation: modalIn 0.25s ease; text-align: center;
}
@keyframes modalIn { from { transform: scale(0.92); opacity: 0; } }
.modal-card h2 { margin: 0 0 0.5rem; font-size: 1.4rem; font-weight: 900; color: #fff3c4; }
.modal-body { font-size: 0.95rem; color: #f3e4c2; }
.modal-body p { margin: 0.4rem 0; }
.muted { color: var(--muted) !important; font-size: 0.85rem; }
.big-wave { font-size: 1.1rem; font-weight: 800; margin: 0.2rem 0 0.5rem; }
.big-wave b { font-size: 2.6rem; color: var(--honey); margin-left: 0.3rem; }
.big-reward { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 2.1rem; font-weight: 900; color: #fff; margin: 0.7rem 0; }
.msum { margin: 0.6rem 0 0.2rem; text-align: left; }
.msum small { display: block; color: var(--muted); margin-bottom: 0.25rem; }
.msum .mrow { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.3rem 0.5rem; border-radius: 0.5rem; background: rgba(255, 255, 255, 0.05); margin-top: 0.2rem; font-size: 0.85rem; }
.msum .mrow.done { background: rgba(138, 240, 106, 0.14); color: #b9f7a4; }
.unlock { background: rgba(138, 240, 106, 0.12); border: 1px solid rgba(138, 240, 106, 0.4); border-radius: 0.6rem; padding: 0.45rem; }
.modal-btns { display: flex; gap: 0.6rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.modal-btns button { min-width: 7.5rem; padding: 0.7rem 1rem; border-radius: 0.75rem; font-weight: 900; font-size: 1rem; background: rgba(255, 255, 255, 0.1); }
.modal-btns .primary { background: linear-gradient(180deg, #ffe48a, #ffae1f); color: #2e1a00; box-shadow: 0 3px 0 #a35f00; }
.modal-btns .danger { background: rgba(255, 107, 90, 0.15); color: var(--bad); }
.modal-btns .ad { background: rgba(120, 200, 255, 0.16); color: #cfeaff; box-shadow: inset 0 0 0 1px rgba(150, 210, 255, 0.35); }
.modal-btns .ad:disabled { opacity: 0.7; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; margin: 0.5rem 0; }
.day { background: rgba(255, 255, 255, 0.06); border-radius: 0.55rem; padding: 0.4rem 0.1rem; display: flex; flex-direction: column; }
.day small { font-size: 0.62rem; color: var(--muted); }
.day b { font-size: 0.82rem; }
.day.past { opacity: 0.45; }
.day.now { background: linear-gradient(180deg, rgba(255, 200, 61, 0.4), rgba(255, 159, 26, 0.2)); border: 1px solid var(--honey); }
.set-row { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0.2rem; border-bottom: 1px solid var(--line); font-weight: 700; }
.tog { width: 3rem; height: 1.7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.14); position: relative; transition: background 0.2s; }
.tog::after { content: ""; position: absolute; left: 0.2rem; top: 0.2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #fff; transition: left 0.2s; }
.tog.on { background: var(--good); }
.tog.on::after { left: 1.5rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.8rem; }
.stats div { background: rgba(255, 255, 255, 0.05); border-radius: 0.6rem; padding: 0.45rem; display: flex; flex-direction: column; }
.stats small { color: var(--muted); font-size: 0.72rem; }
.stats b { font-size: 1rem; }

/* store-video capture mode */
body.clean { --side: 0rem; }
body.clean #panel { display: none; }

/* ---------- portrait (phones) ---------- */
body.portrait { --side: 0rem; }
body.portrait #panel { left: 0.5rem; right: 0.5rem; top: auto; bottom: 0.5rem; width: auto; height: 42%; }
body.portrait #hud { left: 0.7rem; top: 0.55rem; }
body.portrait .cur-row b { font-size: 1.6rem; }
body.portrait #menu-hud .cur-row b { font-size: 1.9rem; }
body.portrait #tr { right: 0.6rem; top: 0.6rem; }
body.portrait #btn-queen { left: 0.6rem; bottom: calc(42% + 0.8rem); padding: 0.3rem; }
body.portrait .q-text { display: none; }
body.portrait .q-ring, body.portrait .q-icon { width: 3rem; height: 3rem; }
body.portrait .q-icon { left: 0.3rem; top: 0.3rem; }
body.portrait #menu-center { right: 0; bottom: 42%; }
body.portrait #logo { top: 5.6rem; }
body.portrait #logo span { font-size: 1.6rem; }
body.portrait #logo b { font-size: 3.2rem; }
body.portrait #defend-box { bottom: 1rem; }
body.portrait #boss-bar, body.portrait #banner { transform: translateX(-50%); }
body.portrait #boss-bar { top: auto; bottom: calc(42% + 1.3rem); left: calc(50% + 2rem); width: 58vw; }
body.portrait #banner { top: 11.5rem; white-space: normal; text-align: center; max-width: 90vw; }
body.portrait .toast { transform: translate(-50%, -50%); }
body.portrait #honey-preview, body.portrait #honey-sub { display: none; }
body.clean.portrait #btn-queen { bottom: 1.2rem; }
body.clean.portrait #boss-bar { bottom: 1.6rem; }
