/* Face Off — shared styles for the casual game modes. Light, minimal chrome over colourful game scenes. */
:root {
  /* surfaces and type */
  --bg: #f6f5f2; --surface: #ffffff; --surface-2: #f2f1ed; --text: #18181b; --muted: #6f6f76; --line: #e6e4df; --line-2: #d6d3cc;
  /* one accent; the rest are game colours used sparingly (scores, stars, health) */
  --accent: #ef4f2b; --accent-ink: #c73b1b; --accent-soft: #fdebe5;
  --gold: #f2b01e; --gold-ink: #a86c00; --cyan: #1aa7c9; --red: #e5383b; --pink: #e0479e; --green: #1f9d63;
  --ink: var(--bg); --panel: var(--surface);
  --glass: rgba(255, 255, 255, .94); --shadow-sm: 0 1px 2px rgba(24, 24, 27, .06), 0 1px 3px rgba(24, 24, 27, .05);
  --shadow: 0 2px 6px rgba(24, 24, 27, .05), 0 10px 30px rgba(24, 24, 27, .08); --shadow-lg: 0 4px 12px rgba(24, 24, 27, .06), 0 24px 60px rgba(24, 24, 27, .14);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; user-select: none; -webkit-user-select: none;
  touch-action: none; overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
canvas#stage { position: fixed; inset: 0; display: block; touch-action: none; }

/* top bar */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; gap: 8px;
  padding: calc(10px + var(--safe-t)) calc(12px + var(--safe-r)) 8px calc(12px + var(--safe-l)); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.icon-btn, .pill, .meter { background: var(--glass); border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--shadow-sm), 0 0 0 1px rgba(24, 24, 27, .06); color: var(--text); }
.icon-btn { appearance: none; width: 40px; height: 40px; border-radius: 12px; font: 600 17px system-ui, sans-serif; cursor: pointer;
  display: grid; place-items: center; flex: none; text-decoration: none; transition: transform .1s, background .15s; }
.icon-btn:active { transform: scale(.93); }
.pill { border-radius: 12px; padding: 0 12px; height: 40px; display: flex; align-items: center; gap: 6px; font-weight: 700;
  font-variant-numeric: tabular-nums; flex: none; }
.pill > span:first-child:not(:only-child) { font-weight: 600; letter-spacing: .3px; }
.pill.coins b { color: var(--gold-ink); }
.spacer { flex: 1; }
.meter { flex: 1; max-width: 420px; height: 40px; border-radius: 12px; padding: 5px 11px; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.meter .lbl { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; letter-spacing: .6px; color: var(--muted); white-space: nowrap; }
.meter .lbl b { color: var(--text); font-weight: 700; }
.meter .bar { height: 7px; border-radius: 4px; background: rgba(24, 24, 27, .08); overflow: hidden; }
.meter .fill { height: 100%; width: 100%; border-radius: 4px; background: linear-gradient(90deg, #2bb673, #f2b01e 50%, #e5383b); transform-origin: left; transition: transform .25s; }

/* bottom tool bar */
.toolbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden;
  padding: 8px calc(12px + var(--safe-r)) calc(12px + var(--safe-b)) calc(12px + var(--safe-l)); scrollbar-width: none; touch-action: pan-x; }
.toolbar::-webkit-scrollbar { display: none; }
.tool { appearance: none; flex: none; width: 64px; height: 68px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .7); background: var(--glass);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(24, 24, 27, .06);
  color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; position: relative;
  font: 600 10px system-ui, sans-serif; letter-spacing: .2px; padding: 0; transition: transform .1s, box-shadow .15s; }
.tool .ic { font-size: 26px; line-height: 1; }
.tool.on { box-shadow: 0 0 0 2px var(--accent), var(--shadow); background: #fff; }
.tool.locked .ic { filter: grayscale(1) opacity(.45); }
.tool .price { position: absolute; top: -6px; right: -4px; background: var(--text); color: #fff; border-radius: 8px; padding: 1px 6px; font-size: 10px; font-weight: 700; }
.tool:active { transform: scale(.94); }

/* overlays */
.overlay { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(246, 245, 242, .68); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card { position: relative; width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px 20px; text-align: center;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 12px; animation: pop .3s cubic-bezier(.2, 1.2, .4, 1); max-height: 100%; overflow-y: auto; }
@keyframes pop { from { transform: translateY(8px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.card h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; color: var(--text); }
.card p { margin: 0; color: var(--muted); }
.card p b, .card p strong { color: var(--text); }
.btn { appearance: none; border: 1px solid var(--line-2); color: var(--text); background: var(--surface); padding: 12px 18px; border-radius: 12px;
  font: 650 15px system-ui, sans-serif; cursor: pointer; min-height: 46px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .08s, background .15s, border-color .15s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 1px 2px rgba(199, 59, 27, .3), 0 4px 14px rgba(239, 79, 43, .25); font-size: 16px; font-weight: 700; }
.btn.primary:active { transform: scale(.97); background: var(--accent-ink); }
.row { display: flex; gap: 10px; } .row > * { flex: 1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { background: var(--surface-2); border-radius: 12px; padding: 10px 4px; display: flex; flex-direction: column; gap: 2px; }
.stats span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.stats b { font-size: 20px; font-variant-numeric: tabular-nums; font-weight: 750; }
.big-emoji { font-size: 56px; line-height: 1; width: 1.6em; height: 1.6em; margin: 0 auto; border-radius: 50%; display: grid !important; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.big-emoji .ic { width: .82em; height: .82em; stroke-width: 1.8; }
.fine { font-size: 12px; color: var(--muted); }

.toast { position: fixed; z-index: 40; left: 50%; top: calc(64px + var(--safe-t)); transform: translateX(-50%); background: var(--text); color: #fff;
  padding: 9px 16px; border-radius: 12px; font-weight: 600; pointer-events: none; transition: opacity .3s; white-space: nowrap; max-width: 92vw; overflow: hidden;
  text-overflow: ellipsis; box-shadow: var(--shadow); }
.hint { position: fixed; z-index: 9; left: 50%; transform: translateX(-50%); bottom: calc(100px + var(--safe-b)); color: var(--text); font-weight: 600; font-size: 14px;
  background: var(--glass); box-shadow: var(--shadow-sm);
  padding: 7px 14px; border-radius: 999px; pointer-events: none; text-align: center; max-width: 90vw; transition: opacity .5s; }
#loading { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: var(--bg); font-weight: 600; color: var(--muted); }

/* health bars */
.meter .fill.hp { background: linear-gradient(90deg, #e5383b, #f2772b); }
.you-hp { position: fixed; z-index: 10; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-b)); width: min(320px, 70vw);
  display: flex; align-items: center; gap: 8px; font: 700 11px system-ui; letter-spacing: .8px; color: var(--text); pointer-events: none;
  background: var(--glass); padding: 6px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.you-hp .bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(24, 24, 27, .1); overflow: hidden; }
.you-hp .fill { height: 100%; width: 100%; background: linear-gradient(90deg, #2bb673, #1aa7c9); transform-origin: left; transition: transform .25s; }
.hint.top { bottom: auto; top: calc(64px + var(--safe-t)); }

/* upgrade shop rows */
.shop { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.shop .up { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 8px 10px; }
.shop .up .ic { font-size: 24px; }
.shop .up .nm { flex: 1; display: flex; flex-direction: column; font-weight: 700; }
.shop .up .nm small { color: var(--muted); font-weight: 500; font-size: 12px; }
.shop .up .pips { display: flex; gap: 3px; margin-top: 3px; }
.shop .up .pips i { width: 12px; height: 5px; border-radius: 3px; background: rgba(24, 24, 27, .12); }
.shop .up .pips i.on { background: var(--accent); }
.shop .up .btn { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.shop .up .btn[disabled] { opacity: .45; }
@media (max-width: 420px) { .topbar .pill { padding: 0 9px; font-size: 13px; } }
.card.wide { width: min(640px, 100%); }
.big-emoji.sm { font-size: 40px; }
@media (min-width: 560px) { .card.wide .shop { display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-height: 560px) { .card { padding: 16px; gap: 8px; } .card h2 { font-size: 22px; } .big-emoji { font-size: 36px; } .stats b { font-size: 16px; } }

/* Face Boxing on-screen controls */
.box-ctl { position: fixed; z-index: 10; left: 0; right: 0; bottom: calc(10px + var(--safe-b)); display: flex; justify-content: center; gap: 8px; padding: 0 10px; }
.box-ctl button { flex: 1; max-width: 120px; height: 72px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .7); background: var(--glass); color: var(--text);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(24, 24, 27, .06);
  font: 700 24px system-ui, sans-serif; display: grid; place-items: center; align-content: center; gap: 2px; touch-action: none; user-select: none; -webkit-user-select: none; }
.box-ctl button small { font-size: 10px; letter-spacing: .8px; color: var(--muted); font-weight: 600; }
.box-ctl button:active { transform: scale(.94); background: #fff; }
.box-ctl .star { max-width: 90px; font-size: 18px; color: var(--muted); }
.box-ctl .star.ready { color: var(--gold-ink); box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.you-hp.box-hp { bottom: calc(94px + var(--safe-b)); }
@media (pointer: fine) and (min-width: 700px) { .box-ctl button { height: 60px; } .you-hp.box-hp { bottom: calc(80px + var(--safe-b)); } }

/* Face Bowling scorecard */
.scorecard { position: fixed; z-index: 9; left: 50%; transform: translateX(-50%); top: calc(62px + var(--safe-t)); display: flex; gap: 4px; pointer-events: none; }
.scorecard span { min-width: 44px; padding: 5px 6px; border-radius: 8px; background: var(--glass); box-shadow: var(--shadow-sm); font: 700 13px system-ui; text-align: center; color: var(--text); }
.scorecard span.cur { box-shadow: 0 0 0 2px var(--accent); color: var(--accent-ink); }

/* ===================== Game shell (src/shared/shell.js) ===================== */
/* page transitions */
body.fo-enter canvas#stage, body.fo-enter .topbar { animation: fo-in .4s ease-out both; }
body.fo-enter .topbar { animation-name: fo-drop; }
@keyframes fo-in { from { opacity: 0; } }
@keyframes fo-drop { from { opacity: 0; transform: translateY(-10px); } }
body.fo-leave > * { transition: opacity .16s ease-in, transform .16s ease-in; opacity: 0; transform: scale(.99); }

@media (hover: hover) {
  .icon-btn:hover { background: #fff; }
  .btn:hover { border-color: #c4c0b8; background: #fbfaf8; }
  .btn.primary:hover { background: #f25f3d; }
}
.icon-btn:focus-visible, .btn:focus-visible, .seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* way home on every start and results card (shell.js adds it where a page has none) */
.card .home-link { align-self: center; margin: 2px 0 -4px; padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.card .home-link:hover { color: var(--text); background: var(--surface-2); }

.big-emoji { display: inline-block; animation: fo-bob 2.6s ease-in-out infinite; }
@keyframes fo-bob { 50% { transform: translateY(-4px) rotate(-3deg); } }

/* results reveal: stats slide in one by one, numbers pop when they finish counting */
.card.reveal .stats > div { animation: fo-stat .35s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes fo-stat { from { opacity: 0; transform: translateY(10px); } }
.stats b.done { animation: fo-num .3s ease-out; }
@keyframes fo-num { 50% { transform: scale(1.18); color: var(--accent); } }
.card.best { box-shadow: 0 0 0 2px var(--gold), var(--shadow-lg); overflow: hidden; }
.card.best::after { content: 'New best'; position: absolute; top: 14px; right: 14px; background: #fff4d6; color: var(--gold-ink);
  font: 700 11px system-ui; letter-spacing: .4px; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; }
.fo-confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }

/* 3-2-1 countdown */
.overlay.countdown { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; z-index: 55; }
.countdown b { font: 800 min(30vw, 180px)/1 system-ui, sans-serif; color: #fff; -webkit-text-stroke: 5px var(--text); paint-order: stroke fill;
  letter-spacing: -4px; animation: fo-count .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.countdown b.go { color: var(--accent); font-size: min(24vw, 150px); }
@keyframes fo-count { from { transform: scale(1.8); opacity: 0; } 60% { opacity: 1; } to { transform: scale(1); } }

/* pause menu */
#fo-pause { z-index: 50; }
.pause-card { gap: 12px; }
.pause-card .settings { display: flex; flex-direction: column; gap: 10px; text-align: left; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.pause-card label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 14px; color: var(--text); }
.pause-card input[type=range] { width: 52%; accent-color: var(--accent); }
.pause-card input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); }
.pause-card .keys { font-size: 12px; }
@media (pointer: coarse) { .pause-card .keys { display: none; } }

/* loading screen */
#loading { flex-direction: column; gap: 14px; }
#loading::before { content: ''; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: fo-spin .8s linear infinite; }
@keyframes fo-spin { to { transform: rotate(360deg); } }

/* 2 players (src/shared/versus.js) */
.vs-banner { margin: -4px 0 4px; }
.vs-row { display: flex; align-items: center; justify-content: center; gap: 14px; }
.vs-av { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: .5; transition: opacity .2s, transform .2s; }
.vs-av img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--line-2); }
.vs-av b { font-size: 12px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-av.up { opacity: 1; transform: scale(1.08); }
.vs-av.up img { box-shadow: 0 0 0 3px var(--accent); }
.vs-x, .vs-banner .vs-x { font: 700 15px/1 system-ui; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.vs-banner p { margin: 8px 0 0; }
.card.vs-card .stats { display: none; }
.card.vs-card .big-emoji { display: none; }
.vs-box { margin: 4px 0 10px; }
.vs-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vs-score { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid transparent; border-radius: 14px; padding: 14px 8px 12px; }
.vs-score img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.vs-score span { font-size: 12px; color: var(--muted); font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-score b { font: 800 26px system-ui; }
.vs-score.win { border-color: var(--accent); background: var(--accent-soft); animation: fo-stat .4s cubic-bezier(.2, 1.3, .4, 1) both; }
.vs-score.win img { box-shadow: 0 0 0 3px var(--accent); }
.vs-score i { position: absolute; top: -16px; font-style: normal; font-size: 24px; animation: fo-bob 1.6s ease-in-out infinite; }
.vs-verdict { margin: 12px 0 0; font-size: 18px; font-weight: 700; }
.vs-tally, .vs-wait span { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.vs-wait, .vs-pass { margin: 12px 0 0; font-weight: 600; }
.vs-wait span { display: block; }
.vs-pass b { color: var(--accent-ink); }
.pill.rival { gap: 6px; padding-left: 4px; }
.pill.rival img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--pink); }
.pill.rival.done b { color: var(--green); }
/* same-screen modes draw their own two scores: hide the solo HUD pills */
body.fo-vs-local .pill:has(#score), body.fo-vs-local #combo-pill, body.fo-vs-local .pill:has(#lives) { display: none; }
.vs-kicks { display: flex; align-items: center; gap: 1px; font-size: 11px; line-height: 1.3; }
.vs-kicks small { min-width: 44px; margin-right: 4px; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.fo-vs-local .pill:has(#shots) { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 3px; padding-bottom: 3px; }
.btn:disabled { opacity: .45; cursor: default; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* key hints on the start card (computers only) */
.keyhint { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 2px 0 4px; font-size: 13px; color: var(--muted); }
.keyhint span { display: inline-flex; align-items: center; gap: 4px; }
kbd { display: inline-block; min-width: 22px; padding: 2px 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 var(--line-2); font: 600 12px system-ui, sans-serif; color: var(--text); text-align: center; white-space: nowrap; }
canvas#stage.aim { cursor: crosshair; }
/* the stress room's tools show their number key on computers */
@media (hover: hover) and (pointer: fine) {
  .toolbar { counter-reset: tool; }
  .toolbar .tool { position: relative; counter-increment: tool; }
  .toolbar .tool:nth-child(-n+10)::after { content: counter(tool); position: absolute; top: 4px; left: 7px; font: 600 10px system-ui, sans-serif; color: var(--muted); }
  .toolbar .tool:nth-child(10)::after { content: '0'; }
}
/* ---------- Face Crush ---------- */
.crush-tools { position: fixed; left: 50%; bottom: calc(14px + var(--safe-b)); transform: translateX(-50%); z-index: 10; display: flex; gap: 12px; align-items: center; }
.booster { appearance: none; position: relative; width: 54px; height: 54px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .7); background: var(--glass);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(24, 24, 27, .06); color: var(--text); display: grid; place-items: center; font-size: 24px; cursor: pointer;
  transition: transform .12s, box-shadow .2s; }
.booster small { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; font: 700 10px system-ui, sans-serif; padding: 1px 6px; border-radius: 8px; }
.booster:hover:not(:disabled) { transform: translateY(-2px); }
.booster.on { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.booster:disabled { opacity: .45; cursor: default; }
.moves-pill.warn { animation: movesWarn .8s ease-in-out infinite; }
@keyframes movesWarn { 50% { background: #fde2dd; box-shadow: 0 0 0 2px var(--red); } }
.crush-card { max-width: 440px; }
.crush-card .streak { color: var(--gold-ink); font-weight: 700; font-size: 14px; margin: 0; }
.levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; max-height: 196px; overflow-y: auto; padding: 4px; margin: 2px 0 4px; scrollbar-width: thin; }
.lv { transition: none; box-shadow: none; transform: none; appearance: none; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text); padding: 6px 0 4px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 1px; font: inherit; }
.lv b { font-size: 16px; font-weight: 700; }
.lv span { font-size: 10px; color: var(--gold); letter-spacing: 1px; }
.lv.done { background: #fff; }
.lv.sel { border-color: var(--accent); background: var(--accent-soft); }
.lv.locked { opacity: .4; cursor: default; }
.stars { display: flex; justify-content: center; gap: 10px; font-size: 40px; line-height: 1; margin: -4px 0 2px; }
.stars i { font-style: normal; color: var(--line); transform: scale(.6); transition: transform .35s cubic-bezier(.2, 1.6, .4, 1), color .2s; }
.stars i.on { color: var(--gold); transform: scale(1); }
.stars i:nth-child(2) { font-size: 50px; margin-top: -8px; }

/* ---------- icons (src/shared/icons.js) ---------- */
[data-ic] { display: inline-flex; font-style: normal; }
.icon-btn .ic { width: 20px; height: 20px; }
.ic-coin { color: var(--gold-ink); }
.ic-heart { color: var(--accent); }
.ic-heartEmpty { color: var(--line-2); }
#lives { display: inline-flex; gap: 2px; align-items: center; }
.ic-starFill { color: var(--gold); }
.ic-crown { color: var(--gold-ink); }
.ic-trophy { color: var(--gold-ink); }
.tool .ic { color: var(--text); }
.tool.locked .ic { filter: none; opacity: .4; }
.btn .ic { margin-right: 2px; }
