*, *::before, *::after { box-sizing: border-box; touch-action: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden;
  position: fixed; inset: 0; overscroll-behavior: none;
  background: #f7e4cf;
  -webkit-text-size-adjust: 100%;
}
#cv { position: fixed; left: 0; top: 0; display: block; touch-action: none; }
#ui { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 10px); right: calc(env(safe-area-inset-right, 0px) + 10px); z-index: 2; }
button { -webkit-appearance: none; appearance: none; font: inherit; color: inherit; }
#ui button {
  width: 44px; height: 44px; padding: 8px; border: 0; border-radius: 50%;
  background: rgba(255, 250, 240, 0.72); box-shadow: 0 1px 4px rgba(90, 50, 20, 0.25);
  cursor: pointer; outline: none;
}
#ui button:active { transform: scale(0.92); }
#ui button:focus-visible, #again:focus-visible { box-shadow: 0 0 0 3px rgba(240, 160, 90, 0.7); }
#ui svg { width: 100%; height: 100%; display: block; fill: none; stroke: #7a4a30; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
#ui .spk { fill: #7a4a30; stroke: none; }
#ui .x { display: none; }
#snd.off .wave { display: none; }
#snd.off .x { display: inline; }
#again {
  position: fixed; left: 50%; top: 60%; z-index: 3; width: 84px; height: 84px; margin: -42px 0 0 -42px; padding: 14px;
  border: 0; border-radius: 50%; background: #ff8f6b; box-shadow: 0 5px 0 #d8603f, 0 8px 18px rgba(120, 50, 20, 0.3);
  cursor: pointer; outline: none; opacity: 0; visibility: hidden; transform: scale(0.4);
  transition: opacity 0.18s, transform 0.28s cubic-bezier(0.3, 1.7, 0.5, 1), visibility 0s 0.18s;
}
#again.on { opacity: 1; visibility: visible; transform: scale(1); transition: opacity 0.18s, transform 0.28s cubic-bezier(0.3, 1.7, 0.5, 1), visibility 0s; animation: bob 1.4s ease-in-out 0.4s infinite; }
#again:active { transform: scale(0.9) translateY(3px); box-shadow: 0 2px 0 #d8603f; animation: none; }
#again svg { width: 100%; height: 100%; display: block; }
#again .arc { fill: none; stroke: #fff; stroke-width: 6.5; stroke-linecap: round; }
#again .head { fill: #fff; stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; }
@keyframes bob { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
