/* 金豆电子鸡：电子宠物机的像素风界面，配色跟随 MONETA 品牌（金豆人是它的吉祥物）：
   深黑与墨蓝做空间，银白做信息，红色给主要按钮和需要你的提醒，蓝色给选中、数据和焦点。
   全部尺寸用 rem：1rem 是像素字体的一行（12 个字体像素）。main.js 按屏幕挑一个让字体像素落在整数设备像素上的字号，
   所以文字和边框在各种屏幕上都是锐利的。 */
@font-face {
  font-family: "GB Pixel";
  src: url("../fonts/ark-pixel-12px-zh_hans.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #06070b;
  --bg-dot: #0e131f;
  --surf: #0c111b;
  --surf-2: #141b2a;
  --surf-3: #1e2739;
  --edge: #2b3650;
  --edge-hi: #40507a;
  --deep: #030407;
  --fg: #f3f5f8;
  --muted: rgba(243, 245, 248, 0.6);
  --muted-2: rgba(243, 245, 248, 0.38);
  --red: #ff0033;
  --red-2: #a8001f;
  --red-hi: #ff6682;
  --blue: #138dff;
  --blue-2: #0a5cab;
  --blue-hi: #7cc0ff;
  --silver: #c5cedd;
  --gold: #ffc531;
  --px: 0.25rem;
  --bevel: inset 0 var(--px) 0 rgba(255, 255, 255, 0.07), inset 0 calc(var(--px) * -1) 0 rgba(0, 0, 0, 0.5);
  --frame: inset 0 0 0 var(--px) var(--edge);
  --font: "GB Pixel", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 12px; height: 100%; }
body {
  height: 100%; margin: 0;
  background: var(--bg);
  background-image: radial-gradient(var(--bg-dot) 0.125rem, transparent 0.125rem);
  background-size: 1rem 1rem;
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: none;
  font-smooth: never;
  text-rendering: optimizeSpeed;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0.125rem solid var(--blue); outline-offset: 0.125rem; }
img.px, canvas.px { image-rendering: pixelated; image-rendering: crisp-edges; }
[hidden] { display: none !important; }
h2, h3, h4, b { font-weight: normal; }

/* 缺角的像素方框 */
.act, .btn, .key, .row, .big, .card, .opt, .tab, .msg, .chip, .ibtn, .meter, .grow, .dialog-box, .pill, .goal, .dex-info, .codebox, .letter {
  clip-path: polygon(0 var(--px), var(--px) var(--px), var(--px) 0, calc(100% - var(--px)) 0, calc(100% - var(--px)) var(--px), 100% var(--px),
    100% calc(100% - var(--px)), calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px)) 100%, var(--px) 100%, var(--px) calc(100% - var(--px)), 0 calc(100% - var(--px)));
}

.app {
  height: 100%; height: 100dvh;
  display: flex; justify-content: center; gap: 1rem;
  padding: max(0.5rem, env(safe-area-inset-top)) max(0.5rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
}
.col-main { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; max-width: 40rem; min-height: 0; }
.col-side { display: none; }

/* 顶栏 */
.top { display: flex; align-items: center; gap: 0.5rem; min-height: 3.25rem; }
.who { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; flex: 1 1 auto; padding: 0 0.25rem; text-align: left; line-height: 1.35; }
.who-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-form { color: var(--blue-hi); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.top-nav { display: flex; gap: 0.375rem; flex: none; }
.ibtn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.125rem; width: 3rem; height: 3.25rem; background: var(--surf-2); color: var(--muted); line-height: 1.2; box-shadow: var(--bevel); }
.ibtn img { height: 1.25rem; image-rendering: pixelated; }
.ibtn:active { transform: translateY(0.125rem); box-shadow: none; }
.ibtn .dot { position: absolute; top: 0.375rem; right: 0.375rem; width: 0.5rem; height: 0.5rem; background: var(--red); animation: fade 0.9s steps(2) infinite; }
@keyframes fade { 50% { opacity: 0.25; } }

/* 成长条、金币、时钟 */
.strip { display: flex; align-items: stretch; gap: 0.375rem; height: 2rem; }
.chip { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0 0.625rem; background: var(--surf-2); color: var(--muted); white-space: nowrap; }
.chip.coin { color: var(--gold); }
.chip.coin img { width: 1.25rem; height: 1.25rem; image-rendering: pixelated; }
.chip.coin.bump { animation: bump 0.3s steps(3); }
@keyframes bump { 0% { transform: translateY(-0.25rem); } 100% { transform: none; } }
.grow { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 0.5rem; padding: 0 0.625rem; background: var(--surf-2); white-space: nowrap; }
.grow-bar { flex: 1 1 auto; min-width: 1.5rem; height: 0.75rem; background: var(--deep); padding: 0.125rem; }
.grow-bar i { display: block; height: 100%; width: 0; background: var(--blue); box-shadow: inset 0 0.125rem 0 var(--blue-hi); transition: width 0.3s steps(6); }
.grow.ready .grow-bar i { background: var(--fg); box-shadow: none; animation: fade 0.6s steps(2) infinite; }
.grow-num { color: var(--muted); }

/* 需求条 */
.meters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.375rem; }
.meter { background: var(--surf-2); padding: 0.375rem 0.5rem 0.5rem; min-width: 0; }
.meter-head { display: flex; align-items: center; gap: 0.25rem; white-space: nowrap; line-height: 1.25; }
.meter-head img { height: 1rem; image-rendering: pixelated; flex: none; }
.meter-head .num { margin-left: auto; color: var(--muted); }
.bar { position: relative; height: 0.75rem; margin-top: 0.25rem; background: var(--deep); padding: 0.125rem; }
.bar i { display: block; height: 100%; width: 0; background: var(--blue); box-shadow: inset 0 0.125rem 0 var(--blue-hi); transition: width 0.25s steps(5); }
.bar.mid i { background: var(--silver); box-shadow: inset 0 0.125rem 0 #ffffff; }
.bar.low i { background: var(--red); box-shadow: inset 0 0.125rem 0 var(--red-hi); }
.meter.alert { animation: alarm 0.9s steps(2) infinite; }
@keyframes alarm { 50% { background: #4a0a1c; } }

/* 画面：像一台掌机的屏幕 */
.stage { flex: 1 1 auto; min-height: 8rem; display: flex; align-items: center; justify-content: center; }
.screen { position: relative; line-height: 0; padding: var(--px); background: var(--deep); box-shadow: 0 0 0 var(--px) var(--edge), 0 0 0 calc(var(--px) * 2) var(--surf-2); }
#view { display: block; image-rendering: pixelated; image-rendering: crisp-edges; touch-action: none; cursor: pointer; }
.pill { position: absolute; left: 50%; top: 0.75rem; transform: translateX(-50%); padding: 0.25rem 0.75rem; background: var(--bg); color: var(--fg); line-height: 1.5; white-space: nowrap; pointer-events: none; }
.egg-bar { position: absolute; left: 14%; right: 14%; bottom: 1rem; height: 1rem; border: var(--px) solid var(--bg); background: var(--surf-3); }
.egg-bar span { display: block; height: 100%; width: 0; background: var(--gold); }

/* 消息 */
.msg { display: flex; align-items: center; width: 100%; min-height: 2.75rem; padding: 0.375rem 0.875rem 0.375rem 1.125rem; background: var(--surf-2); text-align: left; line-height: 1.4; box-shadow: inset calc(var(--px) * 2) 0 0 var(--edge-hi); }
.msg.flash { animation: pop 0.25s steps(3); }
.msg.warn { background: #260a13; box-shadow: inset calc(var(--px) * 2) 0 0 var(--red); }
.msg.good { background: #0b1a2e; box-shadow: inset calc(var(--px) * 2) 0 0 var(--blue); }
.msg.tip { box-shadow: inset calc(var(--px) * 2) 0 0 var(--silver); }
@keyframes pop { 0% { transform: translateY(0.25rem); } 100% { transform: none; } }

/* 照顾按钮 */
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.375rem; }
.act { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; min-height: 4.25rem; padding: 0.375rem 0.125rem 0.5rem; background: var(--surf-2); box-shadow: var(--bevel), var(--frame); }
.act img { height: 1.75rem; image-rendering: pixelated; }
.act:active { transform: translateY(0.125rem); background: var(--surf-3); }
.act.off { color: var(--muted-2); box-shadow: var(--bevel); }
.act.off img { opacity: 0.35; }
.act.want { background: var(--red); box-shadow: inset 0 var(--px) 0 var(--red-hi), inset 0 calc(var(--px) * -1) 0 var(--red-2); animation: want 0.8s steps(2) infinite; }
.act.queued { box-shadow: inset 0 0 0 var(--px) var(--blue); }
@keyframes want { 50% { background: var(--red-2); } }
.act kbd { position: absolute; top: 0.375rem; left: 0.5rem; font: inherit; color: var(--muted-2); display: none; }

/* 小游戏控制 */
.mini { display: flex; flex-direction: column; gap: 0.5rem; align-items: stretch; }
.mini-hint { margin: 0; color: var(--muted); text-align: center; line-height: 1.4; }
.mini-keys { display: flex; gap: 0.5rem; justify-content: center; }
.mini-keys.pad { display: grid; grid-template-columns: repeat(3, 4.75rem); grid-template-rows: repeat(2, 3.75rem); justify-content: center; }
.mini-keys.pad .key-up { grid-column: 2; grid-row: 1; }
.mini-keys.pad .key-left { grid-column: 1; grid-row: 2; }
.mini-keys.pad .key-down { grid-column: 2; grid-row: 2; }
.mini-keys.pad .key-right { grid-column: 3; grid-row: 2; }
.key { flex: 1 1 0; max-width: 16rem; min-height: 4rem; background: var(--fg); color: var(--bg); font-size: 2rem; line-height: 1; box-shadow: inset 0 calc(var(--px) * -2) 0 #8f9bb0; touch-action: none; }
.key.text { font-size: 1rem; }
.key:active, .key.down { transform: translateY(0.125rem); background: var(--silver); box-shadow: none; }

/* 通用按钮：红色是主要动作 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; min-height: 3.5rem; padding: 0 1.25rem; background: var(--red); color: #fff; box-shadow: inset 0 var(--px) 0 var(--red-hi), inset 0 calc(var(--px) * -1) 0 var(--red-2); }
.btn:active { transform: translateY(0.125rem); box-shadow: none; }
.btn.plain { background: var(--surf-3); color: var(--fg); box-shadow: var(--bevel), var(--frame); }
.btn.danger { background: var(--surf-2); color: var(--red-hi); box-shadow: inset 0 0 0 var(--px) var(--red-2); }
.btn.ghost { background: transparent; color: var(--muted); box-shadow: var(--frame); min-height: 3rem; }
.btn.on { background: var(--blue); color: #fff; box-shadow: inset 0 var(--px) 0 var(--blue-hi), inset 0 calc(var(--px) * -1) 0 var(--blue-2); }
.btn[disabled] { opacity: 0.45; cursor: default; }
.btn.small { min-height: 3rem; padding: 0 1rem; }

/* 抽屉 */
.backdrop { position: fixed; inset: 0; background: rgba(3, 4, 7, 0.72); z-index: 10; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; max-height: 82dvh; display: flex; flex-direction: column; background: var(--surf); border-top: var(--px) solid var(--edge-hi); padding-bottom: env(safe-area-inset-bottom); animation: rise 0.18s steps(4); }
@keyframes rise { from { transform: translateY(2rem); } to { transform: none; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.5rem 0.5rem 1.25rem; background: var(--surf-2); border-bottom: var(--px) solid var(--bg); }
.sheet-head h2 { margin: 0; font-size: 1rem; }
.x { width: 3.5rem; height: 3rem; font-size: 2rem; line-height: 1; color: var(--muted); }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 1rem 1.25rem 1.5rem; }
.sheet-body::-webkit-scrollbar, .col-side::-webkit-scrollbar, .dialog-box::-webkit-scrollbar { width: 0.5rem; }
.sheet-body::-webkit-scrollbar-thumb, .col-side::-webkit-scrollbar-thumb, .dialog-box::-webkit-scrollbar-thumb { background: var(--edge); }
.note { margin: 0 0 0.75rem; color: var(--muted); }
.note.warn { color: var(--red-hi); }

.rows { display: flex; flex-direction: column; gap: 0.5rem; }
.row { display: grid; grid-template-columns: 3.5rem 1fr auto; align-items: center; gap: 0.75rem; width: 100%; min-height: 4.25rem; padding: 0.5rem 0.875rem 0.625rem 0.5rem; background: var(--surf-2); text-align: left; box-shadow: var(--bevel), var(--frame); }
.row:active { transform: translateY(0.125rem); background: var(--surf-3); }
.row .pic { display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3rem; }
.row .pic img { image-rendering: pixelated; }
.row b { display: block; }
.row small { display: block; font-size: 1rem; color: var(--muted); line-height: 1.35; }
.row small.best { color: var(--blue-hi); }
.row .tag { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.125rem 0.5rem; background: var(--surf-3); color: var(--silver); white-space: nowrap; }
.row .tag img { width: 1rem; height: 1rem; image-rendering: pixelated; }
.row.off { opacity: 0.45; }
.row.locked { color: var(--muted-2); box-shadow: none; }
.row.locked .pic img { opacity: 0.35; }
.row.owned .tag, .row.on .tag { background: var(--blue); color: #fff; }
.row.on { box-shadow: inset 0 0 0 var(--px) var(--blue); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.big { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; min-height: 8rem; padding: 0.75rem; background: var(--surf-2); text-align: center; box-shadow: var(--bevel), var(--frame); }
.big small { font-size: 1rem; color: var(--muted); }
.big img { image-rendering: pixelated; }
.big:active { transform: translateY(0.125rem); background: var(--surf-3); }
.big.want { background: var(--red); box-shadow: inset 0 var(--px) 0 var(--red-hi), inset 0 calc(var(--px) * -1) 0 var(--red-2); animation: want 0.8s steps(2) infinite; }
.big.want small { color: #fff; }

/* 状态 */
.stat-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.stat-head canvas, .evo canvas { width: 8.25rem; height: 10rem; image-rendering: pixelated; background: var(--surf-2); box-shadow: var(--frame); flex: none; }
.stat-head h3 { margin: 0 0 0.125rem; font-size: 1rem; }
.stat-head p { margin: 0; color: var(--muted); }
.stat-head p.form { color: var(--blue-hi); }
.kv { display: grid; grid-template-columns: auto 1fr auto; gap: 0.5rem 0.75rem; align-items: center; margin: 0 0 1rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.kv .v { text-align: right; min-width: 2.5em; }
.track { height: 0.875rem; background: var(--deep); padding: 0.125rem; }
.track span { display: block; height: 100%; background: var(--blue); box-shadow: inset 0 0.125rem 0 var(--blue-hi); }
.track.silver span { background: var(--silver); box-shadow: inset 0 0.125rem 0 #fff; }
h4 { margin: 1.25rem 0 0.5rem; font-size: 1rem; color: var(--blue-hi); }
h4:first-child { margin-top: 0; }
.habits, .log { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.25rem; }
.habits li { display: grid; grid-template-columns: 3em 1fr; gap: 0.5rem; }
.habits b, .log time { color: var(--muted); }
.log li { display: grid; grid-template-columns: 6.5em 1fr; gap: 0.5rem; }
.log time { white-space: nowrap; }
.tabs { display: flex; gap: 0.375rem; margin-bottom: 1rem; }
.tab { flex: 1; min-height: 3rem; background: var(--surf-2); color: var(--muted); box-shadow: var(--bevel); }
.tab.on { background: var(--blue); color: #fff; box-shadow: inset 0 var(--px) 0 var(--blue-hi), inset 0 calc(var(--px) * -1) 0 var(--blue-2); }

/* 每日任务 */
.goal { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 0.75rem; align-items: center; padding: 0.625rem 0.875rem; background: var(--surf-2); box-shadow: var(--frame); }
.goal.done { box-shadow: inset 0 0 0 var(--px) var(--blue); }
.goal.done span:last-of-type { color: var(--blue-hi); }
.goal .track { grid-column: 1 / -1; }

/* 图鉴 */
.dex { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 0.5rem; }
.card { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.125rem; padding: 0.5rem 0.25rem 0.625rem; background: var(--surf-2); text-align: center; min-height: 9.5rem; line-height: 1.3; box-shadow: var(--bevel), var(--frame); }
.card canvas { width: 6.1875rem; height: 7.5rem; image-rendering: pixelated; }
.card small { font-size: 1rem; color: var(--muted); }
.card .q { display: flex; align-items: center; justify-content: center; width: 100%; height: 7.5rem; font-size: 2rem; color: var(--edge-hi); }
.card.unknown { background: var(--surf); color: var(--muted-2); box-shadow: var(--frame); }
.card.sel { box-shadow: inset 0 0 0 var(--px) var(--blue); background: #0b1a2e; }
.dex-info { margin: 0.75rem 0 0; padding: 0.75rem 1rem; background: var(--surf-2); box-shadow: inset 0 0 0 var(--px) var(--blue); }
.dex-info b { color: var(--blue-hi); }
.dex-info p { margin: 0.25rem 0 0; }

/* 设置 */
.field { margin-bottom: 1.25rem; }
.field > label, .field > .lab { display: block; margin-bottom: 0.5rem; color: var(--blue-hi); }
.opt { display: block; width: 100%; padding: 0.625rem 1rem; background: var(--surf-2); text-align: left; box-shadow: var(--frame); }
.inline { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
select, input[type="text"], textarea { font: inherit; color: var(--fg); background: #080a11; border: var(--px) solid var(--edge); border-radius: 0; padding: 0.5rem 0.75rem; min-height: 3.5rem; -webkit-user-select: text; user-select: text; }
select:focus, input[type="text"]:focus, textarea:focus { border-color: var(--blue); outline: none; }
textarea { width: 100%; min-height: 7rem; resize: vertical; word-break: break-all; }
input[type="text"] { width: 100%; }
input[type="file"] { font: inherit; color: var(--muted); max-width: 100%; }
input.code { letter-spacing: 0.15em; text-transform: uppercase; }
.codebox { padding: 0.75rem 1rem; background: #080a11; box-shadow: inset 0 0 0 var(--px) var(--blue); font-size: 2rem; line-height: 1.3; text-align: center; letter-spacing: 0.1em; -webkit-user-select: text; user-select: text; margin-bottom: 0.5rem; }

/* 对话框 */
.dialog { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(3, 4, 7, 0.8); }
.dialog-box { width: 100%; max-width: 30rem; max-height: 90dvh; overflow-y: auto; background: var(--surf); padding: 1.25rem; box-shadow: inset 0 0 0 var(--px) var(--edge-hi); animation: pop 0.2s steps(3); }
.dialog-box h2 { margin: 0 0 0.75rem; font-size: 2rem; line-height: 1.25; }
.dialog-body p { margin: 0 0 0.75rem; }
.dialog-btns { display: flex; gap: 0.5rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1rem; }
.evo { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin: 0.25rem 0 1rem; }
.evo .arrow { font-size: 2rem; color: var(--red); }
.why { margin: 0 0 0.75rem; padding-left: 1.25em; }
.letter { padding: 1rem; background: var(--surf-2); box-shadow: var(--frame); }
.hero { display: flex; justify-content: center; margin: 0 0 0.75rem; }
.hero canvas { width: 8.25rem; height: 10rem; margin-top: -3.5rem; image-rendering: pixelated; }
.result { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; margin: 0 0 0.75rem; }
.result dt { color: var(--muted); }
.result dd { margin: 0; }
.rank { font-size: 2rem; line-height: 1.3; color: var(--blue-hi); text-align: center; margin: 0 0 0.5rem; }

/* 桌面：右侧常驻状态栏 */
@media (min-width: 62rem) {
  .app { gap: 1.25rem; padding: 1.25rem; }
  .col-side { display: block; width: 24rem; flex: none; overflow-y: auto; background: var(--surf); padding: 1rem 1.25rem; box-shadow: var(--frame); }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 36rem; max-height: 84vh; transform: translate(-50%, -50%); border: var(--px) solid var(--edge-hi); animation: none; }
  .act kbd { display: block; }
  .act:hover, .row:hover, .big:hover, .opt:hover, .card:hover, .ibtn:hover, .grow:hover, .btn.plain:hover { background: var(--surf-3); }
  .btn:hover { filter: brightness(1.08); }
  .act.want:hover, .big.want:hover { background: var(--red); }
  .who { pointer-events: none; }
}
@media (max-width: 23.5rem) {
  .meter { padding: 0.25rem 0.375rem 0.375rem; }
  .meter-head .lab { display: none; }
  .ibtn { width: 2.75rem; }
  .grow-num { display: none; }
}
@media (max-height: 42rem) {
  .act { min-height: 3.5rem; flex-direction: row; gap: 0.375rem; }
  .act img { height: 1.25rem; }
  .msg { min-height: 2.25rem; }
  .top { min-height: 2.75rem; }
  .ibtn { height: 2.75rem; }
  .ibtn img { height: 1rem; }
}
/* 手机横屏：画面在左，照顾按钮在右 */
@media (orientation: landscape) and (max-height: 36rem) {
  .col-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr; column-gap: 0.75rem; row-gap: 0.375rem; max-width: none; }
  .col-side { display: none; }
  .stage { grid-column: 1; grid-row: 1 / span 5; min-height: 0; }
  .top, .strip, .meters, .msg, .actions, .mini { grid-column: 2; }
  .actions { align-content: start; }
  .act { min-height: 3rem; }
  .meter-head .lab { display: none; }
  .sheet { max-height: 94dvh; }
  .mini-keys.pad { grid-template-rows: repeat(2, 3rem); }
  .key { min-height: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .meter.alert, .act.want, .big.want, .msg.flash, .sheet, .dialog-box, .ibtn .dot, .grow.ready .grow-bar i { animation: none; }
}
