.face-tile, .face-full { position: relative; overflow: hidden; }
.face-tile { border-radius: 2px; }
.face-sprite {
  position: absolute;
  inset: 0;
  background: url("assets/face-scenes.jpg") var(--scene-x) var(--scene-y) / 300% 200%;
}
.face-tile .face-sprite { transform: scale(2.15); transform-origin: 50% var(--portrait-origin); }
.face-tile[aria-pressed="true"] .face-sprite { transform: scale(1.83); }
.face-none {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}
.face-none input { width: 12px; height: 12px; margin: 0; accent-color: var(--blue); }
.face-dialog {
  width: min(350px, calc(100% - 32px), calc(100svh - 90px));
  max-height: calc(100svh - 16px);
  padding: 7px;
  border: 1px solid #b7c6da;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 36px #17264055;
}
.face-dialog::backdrop { background: #18243a82; }
.face-full { aspect-ratio: 1; background: #e4e9f0; }
.face-dialog-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px; margin-top: 7px; }

.etch-case {
  padding: 11px;
  border: 1px solid #8a3130;
  border-radius: 8px;
  background: linear-gradient(#b74844, #a63634);
  box-shadow: inset 0 1px 1px #fff3;
}
.etch-screen {
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border: 2px solid #753434;
  border-radius: 4px;
  background: #e3e5dc;
  box-shadow: inset 0 2px 5px #38342c24;
}
.etch-screen:focus-visible { outline-color: white; outline-offset: -5px; }
.etch-screen canvas { display: block; width: 100%; height: 100%; }
.etch-check {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 60%;
  height: 44%;
  padding: 0 4px;
  border: 1px solid #94998d;
  border-radius: 3px;
  background: #eff0e9;
  color: #323b34;
  font-size: clamp(10px, 4cqw, 13px);
}
.etch-check:disabled { color: #50594e; }
.etch-check .check-box { width: 18px; height: 18px; }
.etch-controls { display: flex; justify-content: space-between; gap: 5px; margin-top: 8px; }
.etch-axis { display: flex; align-items: center; gap: 4px; }
.etch-step, .etch-knob {
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #852f2e;
  background: #f7f3e8;
  color: #593332;
}
.etch-step { width: 26px; height: 32px; border-radius: 3px; font-size: 16px; touch-action: manipulation; }
.etch-knob {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  rotate: var(--etch-turn);
  background: radial-gradient(circle at 40% 32%, #fffdf7, #ded7c7);
  box-shadow: 0 2px 0 #843430;
  touch-action: none;
  cursor: grab;
}
.etch-knob::after { content: ''; width: 3px; height: 9px; margin-top: -14px; border-radius: 2px; background: #8e5750; }
.etch-step:focus-visible, .etch-knob:focus-visible { outline-color: white; }
.etch-clear { display: block; margin: 8px 0 0 auto; }

.stopwatch-face {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 7px;
  padding: 19px 10px;
  border: 1px solid #b8c5d4;
  border-radius: 3px;
  background: #edf3f8;
  color: #233f5b;
  font: 700 clamp(40px, 14cqw, 62px)/1.1 ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stopwatch-face small { font-size: 16px; }
