@font-face {
  font-family: "DM Sans";
  src: url("./DMSans-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Reenie Beanie";
  src: url("./handwriting.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --pond-inset: 0px;
  --pond-edge-to-edge: 1;
  --pond-controls-inset: max(var(--pond-inset), env(safe-area-inset-bottom));
  background-color: #0e241b;
}
html,
body {
  background-color: #0e241b;
  margin: 0;
  overscroll-behavior: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.quiet-button.feed-button[aria-pressed="true"] {
  color: #655035;
  background: #eae4d8;
  box-shadow: inset 0 0 0 1px #9e845525;
}
.feeding #pond {
  cursor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='10' fill='none' stroke='%23fff' stroke-opacity='.8'/%3E%3Ccircle cx='12' cy='11' r='2' fill='%23d4b577'/%3E%3Ccircle cx='17' cy='15' r='2' fill='%23b98f53'/%3E%3Ccircle cx='11' cy='18' r='1.6' fill='%23c69e66'/%3E%3C/svg%3E")
      14 14,
    crosshair;
}
* {
  box-sizing: border-box;
}
.page {
  position: relative;
  height: 100vh;
  height: 100dvh;
  padding: var(--pond-inset);
  gap: 0;
  background-color: #0e241b;
}
.pond-frame {
  min-height: 100px;
  isolation: isolate;
  background-color: #0e241b;
}
#pond {
  opacity: 0;
  transition: opacity 1.1s ease;
  outline: none;
}
[data-pond-ready="true"] #pond {
  opacity: 1;
}
#pond:focus-visible {
  outline: 1px dashed #638374;
  outline-offset: -24px;
  border-radius: 52px;
}
.controls {
  position: absolute;
  z-index: 2;
  left: 50%;
  translate: -50% 0;
  bottom: calc(var(--pond-controls-inset) + 46px);
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(160deg, #ffffff26, #ffffff08), #173e321a;
  border: 1px solid #ffffff40;
  -webkit-backdrop-filter: blur(5px) saturate(1.12);
  backdrop-filter: blur(5px) saturate(1.12);
  box-shadow: inset 0 1px 0 #ffffff26, 0 4px 18px #082d2520;
  flex-shrink: 0;
  gap: 6px;
}

/* Feed button first-time visitor tooltip */
.feed-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  translate: -50% 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 450;
  letter-spacing: 0.015em;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: default;
  user-select: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    translate 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.45s;
  z-index: 10;
}

.feed-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  translate: -50% 0;
}

.feed-tooltip-arrow {
  position: absolute;
  bottom: 100%;
  left: calc(50% + var(--feed-offset, 0px));
  translate: -50% 0;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #000000;
}

.feed-tooltip-text {
  display: inline-block;
}

.sound {
  width: 44px;
  height: 44px;
}
.quiet-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 100%;
  color: #71756d;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.2s,
    color 0.2s,
    opacity 0.2s;
}
.quiet-button:hover {
  background: #14141408;
  color: #233e32;
}
.quiet-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: rotate(-4deg);
}
.quiet-button:hover:not(:disabled) svg {
  transform: rotate(4deg) scale(1.08);
}
.quiet-button:active:not(:disabled) svg {
  transition-duration: 0.1s;
  transform: rotate(-4deg) scale(0.88);
}
.quiet-button.pop svg {
  animation: 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) pop;
}
.quiet-button:focus-visible {
  outline: 2px solid #648573;
  outline-offset: 1px;
}
.quiet-button:disabled {
  opacity: 0.35;
  cursor: default;
}
.quiet-button[aria-pressed="true"] {
  color: #263d31;
  background: #14141408;
}
.control-divider {
  width: 1px;
  height: 17px;
  margin: 0 3px;
  background: #edf4e838;
}
.controls .quiet-button,
.controls .sound {
  color: #f0f3e9;
  background: transparent;
  border-color: transparent;
}
.controls svg { filter: drop-shadow(0 1px 2px #123b32b3); }
.controls .quiet-button:hover,
.controls .sound:hover { background: #ffffff1c; }
.controls .quiet-button[aria-pressed="true"],
.controls .sound[aria-pressed="true"] {
  background: #ffffff20;
  box-shadow: inset 0 0 0 1px #ffffff20;
}
.controls .feed-button[aria-pressed="true"] {
  color: #fff0cb;
  background: #e8cf8e33;
  box-shadow: inset 0 0 0 1px #f3dfab52;
}
.controls button:focus-visible { outline-color: #f0f3e9; }
.note:empty {
  display: none;
}
.note {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: calc(var(--pond-controls-inset) + 110px);
  pointer-events: none;
  font-size: 11px;
  line-height: 1.4;
  min-height: 16px;
  color: #e8eddb;
  text-shadow: 0 1px 5px #163c30;
  text-align: center;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}

.error-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(340px, 85vw);
  text-align: center;
  padding: 25px;
  background: #fafaf8;
  border: 1px solid #e2e6dd;
  border-radius: 24px;
  box-shadow: 0 10px 40px #233e320a;
}
.error-title {
  font:
    600 24px/1.2 "DM Sans",
    sans-serif;
  letter-spacing: -0.02em;
}
.error-card p {
  color: #6b7568;
  font-size: 13px;
  line-height: 1.6;
}
.error-card button {
  background: #e9ede4;
  border: 0;
  border-radius: 20px;
  padding: 10px 18px;
  font: inherit;
  font-size: 13px;
  color: #304b35;
  cursor: pointer;
}
.noscript {
  position: fixed;
  inset: 40% 10% auto;
  text-align: center;
  background: #fafaf8;
  padding: 30px;
}
@media (max-width: 600px) {
  .note {
    font-size: 11px;
  }
}
@media (max-width: 380px) {
  .controls {
    gap: 3px;
  }
  .quiet-button {
    width: 38px;
    height: 38px;
  }
  .sound {
    width: 38px;
    height: 38px;
  }
}
@media (max-height: 430px) and (orientation: landscape) {
  .note {
    display: none;
  }
}
@keyframes pop {
  0% { transform: scale(0.8); }
  45% { transform: scale(1.12); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  #pond,
  .quiet-button,
  .quiet-button svg,
  .quiet-button.pop svg,
  .feed-tooltip {
    transition: none;
    animation: none;
  }
}
