:root {
  --bg: #f4f5f7; --face: #ffd43b; --edge: #e0a800; --ink: #1d2330;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14171d; --face: #ffd43b; --edge: #c99600; --ink: #14171d; }
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); display: grid; place-items: center; }
.smiley { width: min(40vmin, 320px); height: auto; overflow: visible; }
.face { fill: var(--face); stroke: var(--edge); stroke-width: 3; }
.eye { fill: var(--ink); }
.mouth { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }

@media (prefers-reduced-motion: no-preference) {
  .smiley { animation: bob 4s ease-in-out infinite; }
  .eye { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
}
@keyframes bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
