/* G25 · Бджолиний вулик — YAPOO Arcade (база спільна з G17/G23/G26) */
:root {
  --bg: #F3F4F8;
  --card: #FFFFFF;
  --card-2: #ECEEF5;
  --text: #1B1E2B;
  --muted: #565C72;
  --line: #D9DCE8;
  --accent: #D9691F;
  --accent-strong: #B9500C;
  --accent-soft: #FCE9DA;
  --teal: #0F7E76;
  --teal-strong: #0B655E;
  --teal-soft: #D8F0ED;
  --danger: #C62E2E;
  --good: #1E8A4C;
  --on-accent: #FFFFFF;
  --shadow: 0 6px 24px rgba(27, 30, 43, .10);
  --track: #E1E4EF;
  --font-head: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
:root[data-theme="dark"] {
  --bg: #11131D;
  --card: #1B1E2C;
  --card-2: #252940;
  --text: #EEF0F8;
  --muted: #A8AEC4;
  --line: #333852;
  --accent: #F39A55;
  --accent-strong: #F39A55;
  --accent-soft: #3A2A1D;
  --teal: #45C3B5;
  --teal-strong: #45C3B5;
  --teal-soft: #17353A;
  --danger: #FF7B7B;
  --good: #5FD08A;
  --on-accent: #1A1208;
  --shadow: 0 6px 24px rgba(0, 0, 0, .45);
  --track: #2A2F47;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #11131D; --card: #1B1E2C; --card-2: #252940; --text: #EEF0F8; --muted: #A8AEC4;
    --line: #333852; --accent: #F39A55; --accent-strong: #F39A55; --accent-soft: #3A2A1D;
    --teal: #45C3B5; --teal-strong: #45C3B5; --teal-soft: #17353A; --danger: #FF7B7B; --good: #5FD08A;
    --on-accent: #1A1208; --shadow: 0 6px 24px rgba(0, 0, 0, .45); --track: #2A2F47;
      }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; overscroll-behavior: none; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.4; -webkit-text-size-adjust: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }

/* Каркас: фіксований блок рівно у видимій області (visualViewport виставляє --vh / --vtop з JS) */
#app {
  position: fixed; left: 0; right: 0;
  top: var(--vtop, 0px);
  height: var(--vh, 100dvh);
  display: flex; flex-direction: column;
  max-width: 1280px; margin: 0 auto;
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
}
.topbar {
  flex: none; display: flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 6px 12px;
}
.brand { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-g { color: var(--accent); }
@media (max-width: 479px) { .brand-t { display: none; } }
.topbar-actions { margin-left: auto; display: flex; gap: 6px; }
.icon-btn {
  width: 44px; height: 44px; min-width: 44px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); font-size: 18px; font-weight: 800; display: grid; place-items: center; padding: 0;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.screen { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 16px calc(24px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(26px, 7vw, 40px); line-height: 1.1; }
h2 { font-size: 22px; margin: 6px 0 14px; }
.lead { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.hint { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.center { text-align: center; }
.field-label { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 8px; }
.field-label:first-child { margin-top: 0; }


/* ---------- кнопки, діалоги, тости (спільна база) */
.btn-primary, .btn-cta {
  display: block; width: 100%; min-height: 58px; border: 0; border-radius: 18px; background: var(--accent-strong); color: var(--on-accent);
  font-family: var(--font-head); font-weight: 700; font-size: 18px; padding: 12px 18px; text-align: center; text-decoration: none;
  box-shadow: 0 8px 20px rgba(185, 80, 12, .28);
}
.btn-primary:active, .btn-cta:active { transform: translateY(1px) scale(.99); }
.btn-primary:disabled { opacity: .55; box-shadow: none; }
.btn-ghost { display: block; width: 100%; min-height: 50px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); font-weight: 800; font-size: 16px; padding: 10px 14px; text-align: center; text-decoration: none; color: var(--text); margin-top: 10px; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-cta { background: var(--teal-strong); box-shadow: 0 8px 20px rgba(11, 101, 94, .28); }
:root[data-theme="dark"] .btn-cta { background: var(--teal); color: #08211E; }
.confirm-text { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.35; margin: 8px 0 18px; text-align: center; }
dialog { border: 0; border-radius: 22px; background: var(--card); color: var(--text); padding: 16px; width: min(520px, calc(100vw - 24px)); max-height: calc(var(--vh, 90vh) - 24px); box-shadow: 0 20px 60px rgba(0,0,0,.4); overflow-y: auto; }
dialog::backdrop { background: rgba(10, 12, 20, .6); }
dialog h3 { text-align: center; font-size: 20px; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dlg-head h3 { text-align: left; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.confirm-actions > * { margin: 0; width: 100%; }
.confirm-actions.one { grid-template-columns: 1fr; }
.confirm-actions:has(#storyShare[hidden]) { grid-template-columns: 1fr; }
.story-img { display: block; width: 100%; max-height: 52vh; object-fit: contain; border-radius: 14px; background: var(--card-2); }
#storyDl { display: block; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--text); color: var(--bg); border-radius: 14px; padding: 10px 16px; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 80; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
.rules-body { font-size: 15.5px; }
.rules-body ol { margin: 10px 0 0; padding-left: 22px; }
.rules-body li { margin-bottom: 8px; }
.rules-body b { color: var(--accent-strong); }
:root[data-theme="dark"] .rules-body b { color: var(--accent); }
kbd { display: inline-block; padding: 0 7px; border-radius: 7px; background: var(--card-2); font-family: var(--font-mono); font-weight: 800; font-size: .9em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hint.tight { margin-top: -6px; margin-bottom: 12px; }

/* ---------- головна */
.home-hero { display: flex; gap: 14px; align-items: center; margin: 6px 0 16px; }
.loop-canvas { width: 88px; height: 88px; image-rendering: pixelated; flex: none; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.lead b { color: var(--accent-strong); }
:root[data-theme="dark"] .lead b { color: var(--accent); }
.today-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.today-top .field-label { margin-bottom: 2px; }
.today-date { font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.streak { background: var(--accent-soft); color: var(--accent-strong); border-radius: 99px; padding: 6px 12px; font-weight: 800; font-size: 14px; white-space: nowrap; }
:root[data-theme="dark"] .streak { color: var(--accent); }
.home-hive { width: min(230px, 62%); margin: 8px auto 4px; }
.home-hive svg { display: block; width: 100%; height: auto; }
.today-state { text-align: center; font-weight: 800; margin: 6px 0 8px; min-height: 22px; }
.today-bar { height: 10px; border-radius: 99px; background: var(--track); overflow: hidden; margin: 0 0 14px; }
.today-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--teal)); border-radius: 99px; transition: width .4s; }
.mode-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 16px; }
.mode-card {
  display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px;
  text-align: left; padding: 16px; border-radius: 20px; border: 2px solid var(--line); background: var(--card);
  box-shadow: var(--shadow); transition: transform .12s, border-color .12s;
}
.mode-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.mode-card:active { transform: scale(.98); }
.mode-ico { grid-row: 1 / 3; font-size: 38px; display: grid; place-items: center; }
.mode-title { font-family: var(--font-head); font-weight: 700; font-size: 17px; align-self: end; }
.mode-desc { color: var(--muted); font-size: 14px; }

/* ---------- архів */
.archive { display: grid; gap: 8px; }
.arow {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; min-height: 64px; text-align: left; width: 100%;
  border: 2px solid var(--line); border-radius: 16px; background: var(--card); padding: 8px 14px; box-shadow: var(--shadow);
}
.arow:hover { border-color: var(--accent); }
.arow .ad { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.arow .ad small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--muted); }
.arow .as { font-weight: 800; font-size: 14px; text-align: right; color: var(--muted); }
.arow.done { border-color: color-mix(in srgb, var(--good) 55%, var(--line)); }
.arow.done .as, .arow.some .as { color: var(--text); }
.arow .ab { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--track); overflow: hidden; }
.arow .ab i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--teal)); border-radius: 99px; }

/* ---------- гра */
.screen.game { display: flex; flex-direction: column; padding: 0 14px calc(10px + env(safe-area-inset-bottom)); overflow: hidden; }
.g-main { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 560px; margin: 0 auto; }
.g-side { display: none; }

.rankbar { flex: none; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 8px 12px 10px; box-shadow: var(--shadow); }
.rank-head { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; padding: 0; text-align: left; min-height: 48px; }
.rank-head .loop-canvas { width: 48px; height: 48px; animation-duration: 1.2s; }
.rank-txt { flex: 1; min-width: 0; display: grid; }
.rank-txt small { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.rank-txt b { font-family: var(--font-head); font-size: 18px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-pts { text-align: right; display: grid; }
.rank-pts b { font-family: var(--font-mono); font-weight: 800; font-size: 26px; line-height: 1; }
.rank-pts b.bump { animation: bump .4s; }
.rank-pts small { font-size: 12px; font-weight: 700; color: var(--muted); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); color: var(--good); } 100% { transform: scale(1); } }
.ladder { display: flex; gap: 4px; margin-top: 6px; }
.ladder i { flex: 1; height: 8px; border-radius: 4px; background: var(--track); transition: background .3s, transform .3s; }
.ladder i.on { background: var(--accent); }
.ladder i.cur { background: var(--teal); transform: scaleY(1.5); }
.ladder.big { margin-top: 0; gap: 5px; }
.ladder.big i { height: 14px; border-radius: 6px; }
.ladder-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; margin-top: 6px; }
.bubble { position: absolute; top: 2px; left: 50%; transform: translate(-50%, -6px); width: max-content; max-width: 80%; background: var(--text); color: var(--bg); border-radius: 14px; padding: 6px 14px; font-size: 14px; font-weight: 800; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 5; text-align: center; }
.bubble.show { opacity: 1; transform: translate(-50%, 0); }

.found-strip { flex: none; display: flex; align-items: center; gap: 10px; min-height: 44px; width: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 6px 12px; text-align: left; }
.fs-count { font-weight: 800; font-size: 14px; white-space: nowrap; }
.fs-last { flex: 1; min-width: 0; color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-more { color: var(--muted); font-size: 18px; }

.typed-wrap { flex: none; text-align: center; padding-top: 2px; }
.typed {
  display: flex; align-items: center; justify-content: center; min-height: 48px; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(26px, 8vw, 36px); letter-spacing: .04em; text-transform: uppercase; overflow: hidden; white-space: nowrap;
}
.typed span { display: inline-block; }
.typed span.c { color: var(--accent-strong); }
:root[data-theme="dark"] .typed span.c { color: var(--accent); }
.typed::after { content: ""; width: 3px; height: 1.05em; background: var(--teal); margin-left: 3px; border-radius: 2px; animation: caret 1s steps(2) infinite; }
.typed.shake { animation: shakeb .35s; }
@keyframes caret { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes shakeb { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 50% { transform: translateX(7px); } 75% { transform: translateX(-4px); } }
.msg { min-height: 24px; font-weight: 800; font-size: 15px; color: var(--muted); transition: color .15s; }
.msg.ok { color: var(--good); }
.msg.bad { color: var(--danger); }
.msg.pang { color: var(--accent-strong); }
:root[data-theme="dark"] .msg.pang { color: var(--accent); }
.msg.pop { animation: pop .3s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { 0% { transform: scale(.9); } 100% { transform: scale(1); } }

.hive-wrap { position: relative; flex: 1; min-height: 150px; }
.hive { position: absolute; inset: 0; display: grid; place-items: center; }
.hive svg { display: block; width: 100%; height: 100%; max-width: 380px; max-height: 380px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.hive svg.shuf .hxi { opacity: 0; transform: scale(.7); }
.hx { cursor: pointer; outline: none; }
.hxi { transition: opacity .18s, transform .14s; transform-box: fill-box; transform-origin: center; }
.hx polygon { fill: var(--accent-soft); stroke: color-mix(in srgb, var(--accent) 55%, var(--line)); stroke-width: 2; stroke-linejoin: round; transition: fill .1s; }
.hx text { fill: var(--text); font-family: var(--font-head); font-weight: 800; font-size: 31px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.hx.center polygon { fill: var(--accent-strong); stroke: var(--accent-strong); }
.hx.center text { fill: var(--on-accent); }
.hx:active .hxi { transform: scale(.92); }
.hx:hover polygon { fill: color-mix(in srgb, var(--accent) 28%, var(--card)); }
.hx.center:hover polygon { fill: var(--accent); }
.home-hive .hx { cursor: default; }
.home-hive .hx text { font-size: 33px; }

.actions { flex: none; display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 8px; }
.act {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 54px; border-radius: 27px; border: 2px solid var(--line);
  background: var(--card); font-weight: 800; font-size: 15px; box-shadow: var(--shadow); padding: 4px 8px;
}
.act .ai { font-size: 19px; line-height: 1; }
.act:active { transform: scale(.96); }
.act:hover { border-color: var(--accent); }
.act.go { background: var(--teal-strong); border-color: var(--teal-strong); color: #fff; }
:root[data-theme="dark"] .act.go { background: var(--teal); border-color: var(--teal); color: #08211E; }
.tools { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tool { min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-weight: 800; font-size: 14px; }
.tool:hover { color: var(--text); background: var(--card-2); }

/* ---------- список знайдених */
.found-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 6px; align-content: start; }
.fw { background: var(--card-2); border: 2px solid transparent; border-radius: 12px; padding: 5px 10px; min-width: 0; line-height: 1.2; }
.fw b { font-weight: 800; font-size: 16px; display: block; overflow-wrap: anywhere; }
.fw small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 700; overflow-wrap: anywhere; }
.fw.pang { border-color: var(--accent); background: var(--accent-soft); }
.fw.pang b::after { content: " 🐝"; }
.fw.rare { border-style: dashed; border-color: var(--line); background: transparent; }
.fw.rare b::after { content: " ✨"; }
.fw.new { animation: newword 1.4s ease-out; }
@keyframes newword { 0% { background: var(--teal-soft); transform: scale(1.12); } 100% { transform: scale(1); } }
.found-empty { color: var(--muted); font-weight: 700; padding: 6px 2px; grid-column: 1 / -1; }
#wordsDialog { width: min(560px, calc(100vw - 24px)); }
#foundDlg { max-height: calc(var(--vh, 80vh) - 130px); overflow-y: auto; }

/* ---------- ранги, підказка */
.rank-table { display: grid; gap: 6px; }
.rrow { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 8px; background: var(--card-2); border: 2px solid transparent; border-radius: 14px; padding: 8px 12px; min-height: 46px; }
.rrow .re { font-size: 20px; text-align: center; }
.rrow .rn { font-weight: 800; }
.rrow .rp { font-family: var(--font-mono); font-weight: 800; font-size: 13px; color: var(--muted); text-align: right; }
.rrow.reached { background: color-mix(in srgb, var(--teal) 14%, var(--card)); }
.rrow.cur { border-color: var(--teal); }
.rrow.cur .rn::after { content: " ←"; color: var(--teal-strong); }
:root[data-theme="dark"] .rrow.cur .rn::after { color: var(--teal); }
.hint-sum { font-weight: 700; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.hint-sum span { background: var(--card-2); border-radius: 10px; padding: 4px 10px; font-size: 14px; }
.hint-sum b { font-family: var(--font-mono); }
.hint-grid-wrap { overflow-x: auto; }
.hint-grid { border-collapse: separate; border-spacing: 4px; font-family: var(--font-mono); font-weight: 800; font-size: 15px; margin: 0 auto; }
.hint-grid th { color: var(--muted); font-size: 13px; padding: 4px 8px; }
.hint-grid td { background: var(--card-2); border-radius: 8px; padding: 6px 10px; text-align: center; min-width: 40px; }
.hint-grid td.zero { background: transparent; color: var(--muted); font-weight: 600; }
.hint-grid td.left { background: var(--accent-soft); }

/* ---------- підсумок */
.result-hero { text-align: center; margin: 2px 0 14px; }
.result-hero .loop-canvas { width: 76px; height: 76px; }
.rh-emoji { font-size: 44px; line-height: 1.1; margin-top: 4px; }
.rh-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 7.4vw, 38px); line-height: 1.15; margin-top: 4px; color: var(--accent-strong); }
:root[data-theme="dark"] .rh-title { color: var(--accent); }
.rh-sub { color: var(--muted); margin-top: 6px; font-weight: 700; }
.res-next { margin-top: 10px; font-weight: 800; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); }
.stat .sv { font-family: var(--font-mono); font-weight: 800; font-size: 28px; line-height: 1.1; }
.stat .sl { color: var(--muted); font-size: 13px; font-weight: 700; margin-top: 2px; }
.result-actions { display: grid; gap: 0; margin-bottom: 14px; }
.cta { text-align: center; background: linear-gradient(135deg, var(--accent-soft), var(--teal-soft)); }
.cta-text { font-family: var(--font-head); font-weight: 700; font-size: 17px; margin-bottom: 12px; line-height: 1.3; }

/* ---------- адаптив */
@media (min-width: 720px) {
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .mode-card { grid-template-columns: 1fr; grid-template-rows: auto auto auto; text-align: center; }
  .mode-ico { grid-row: auto; font-size: 52px; }
  .screen:not(.game) { padding-left: 28px; padding-right: 28px; }
  #screen-home, #screen-archive, #screen-result { max-width: 760px; width: 100%; margin: 0 auto; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .archive { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .screen.game {
    display: grid; grid-template-columns: minmax(380px, 520px) minmax(300px, 1fr); gap: 24px; padding: 0 24px 18px; max-width: 1180px; width: 100%; margin: 0 auto;
    justify-content: center; align-items: stretch;
  }
  .g-main { max-width: none; margin: 0; }
  .found-strip { display: none; }
  .g-side { display: flex; flex-direction: column; min-height: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px; box-shadow: var(--shadow); }
  .side-head { font-size: 16px; margin-bottom: 10px; display: flex; gap: 8px; align-items: baseline; }
  .side-head span { font-family: var(--font-mono); font-weight: 800; color: var(--accent-strong); }
  :root[data-theme="dark"] .side-head span { color: var(--accent); }
  .g-side .found-list { flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
  .side-keys { margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
}
@media (max-height: 700px) and (max-width: 899px) {
  .rank-head .loop-canvas { width: 38px; height: 38px; }
  .rank-head { min-height: 40px; }
  .typed { min-height: 38px; font-size: 26px; }
  .act { min-height: 46px; }
  .found-strip { min-height: 40px; padding-top: 3px; padding-bottom: 3px; }
  .hive-wrap { min-height: 120px; }
}
@media (max-height: 580px) and (max-width: 899px) { .tools { display: none; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
