@font-face {
  font-family: "Honk Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter.woff2") format("woff2");
}

:root {
  --focus-color: rgb(0 122 255 / 50%);
  color: #111;
  background: #fff;
  font-family:
    "Honk Inter", Arial, ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
  outline: 0;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

button {
  appearance: none;
  outline: 0;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
}

button:focus-visible {
  outline: 2px solid var(--focus-color);
}

.page-shell {
  width: min(34.375rem, 100%);
}

.sound-browser {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: inset 0 0 0 1px #f2f2f2;
}

.sound-browser__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  box-shadow: inset 0 -1px 0 #f2f2f2;
}

.sound-browser__header svg {
  flex: 0 0 auto;
}

.sound-browser__header path {
  stroke: #018dff;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.sound-browser__header h2 {
  position: relative;
  display: flex;
  margin: 0;
  color: #111;
  font-size: 0.875rem;
  font-weight: 560;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
}

.sound-browser__body {
  position: relative;
  display: flex;
  min-height: 19.3125rem;
  overflow: hidden;
}

.category-list {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 1px;
  width: 10.5234375rem;
  padding: 0.625rem 0.5rem;
  box-shadow: inset -1px 0 #f2f2f2;
}

.category-list__button {
  display: block;
  width: 100%;
  cursor: pointer;
  border-radius: 0.375rem;
  padding: 0.25rem 1rem 0.25rem 0.5rem;
  color: #111;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
  text-align: left;
  white-space: nowrap;
  opacity: 0.3;
  transition:
    background-color 0.1s ease,
    color 0.1s ease,
    opacity 0.1s ease;
}

.category-list__button:hover,
.category-list__button[data-active="true"] {
  background: #f6f6f6;
  opacity: 1;
}

.sound-content {
  height: 100%;
  max-height: 19.25rem;
  flex: 1 1 auto;
  overflow-y: auto;
}

.sound-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(4rem, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.sound-motion {
  min-width: 0;
}

.sound {
  position: relative;
  width: 100%;
}

.sound__button {
  cursor: pointer;
  color: #000;
  font-family: inherit;
  font-size: 13.3333px;
}

.sound__face {
  position: relative;
  display: flex;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.5rem;
  color: #d6d6d6;
  background: #f0f0f0;
  transition: all 0.2s ease;
}

.sound__face::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleY(0);
  transform-origin: bottom;
  background: #0070cc;
  transition: transform 10ms linear;
}

.sound__face svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.sound__button:hover .sound__face {
  color: rgb(255 255 255 / 40%);
  background: #018dff;
}

.sound__face[data-playing="true"] {
  color: #fff;
  background: #018dff;
}

.sound__face[data-playing="true"]::before {
  transform: scaleY(1);
  transition-duration: var(--duration, 300ms);
}

.copyright {
  min-height: 2rem;
  margin: 0;
  padding: 0.75rem 0 0;
  color: rgb(0 0 0 / 40%);
  font-size: 0.75rem;
  font-weight: 460;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
  text-align: center;
}

.tooltip {
  z-index: 1000;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  padding: 0.3rem 0.5rem;
  border-radius: 0.375rem;
  color: #fff;
  background: #000;
  font-size: 0.75rem;
  font-weight: 460;
  line-height: normal;
  letter-spacing: 0.00063rem;
  opacity: 0;
  transform: translate(var(--x, 0), var(--y, 0)) scale(0.96);
  transform-origin: top left;
  transition:
    opacity 0.1s ease,
    transform 0.1s ease;
}

.tooltip[data-visible="true"] {
  opacity: 1;
  transform: translate(var(--x, 0), var(--y, 0)) scale(1);
}

.honk-surprise {
  z-index: 900;
  position: fixed;
  right: 2rem;
  bottom: 0;
  display: none;
  cursor: pointer;
  transform: translateY(120%);
}

.honk-surprise[data-visible="true"] {
  display: block;
  animation: honk-in 1.75s ease-out both;
}

@keyframes honk-in {
  to {
    transform: translateY(20%);
  }
}

.honk-surprise svg {
  display: block;
  transform: rotate(10deg);
  transition: transform 0.1s ease;
}

.honk-surprise:hover svg {
  transform: rotate(10deg) translateY(-0.25rem);
}

.honk-face--cheeky {
  animation: honk-cheeky 1s ease-in-out 1s both;
}

@keyframes honk-cheeky {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  40% {
    transform: translateX(8px);
  }
  60%,
  80% {
    transform: translateX(-8px);
  }
}

.honk-rain {
  z-index: 850;
  pointer-events: auto;
  position: fixed;
  inset: 0;
  display: none;
  overflow: hidden;
}

.honk-rain[data-active="true"] {
  display: block;
}

.falling-honk {
  will-change: transform;
  position: absolute;
  top: 0;
  left: 0;
  width: 66px;
  height: 76px;
}

@media (max-width: 30rem) {
  body {
    align-items: flex-start;
    padding: 0.75rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
