:root {
  background: #f6efe4;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body,
main,
#bouquet {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: #f6efe4;
}

main {
  position: relative;
  min-height: 100svh;
  touch-action: none;
}

#bouquet canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.mode-switch {
  position: fixed;
  z-index: 2;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: calc(10px + env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  gap: 1px;
  pointer-events: auto;
}

.mode-switch__button {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(111, 86, 63, 0.47);
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 160ms ease-out, background-color 160ms ease-out, transform 120ms ease-out;
}

.mode-switch__button:hover {
  color: rgba(86, 63, 43, 0.75);
  background: rgba(126, 92, 58, 0.055);
}

.mode-switch__button[aria-pressed="true"] {
  color: rgba(78, 52, 33, 0.78);
  background: rgba(126, 92, 58, 0.08);
}

.mode-switch__button:active {
  transform: scale(0.96);
}

.mode-switch__button:focus-visible {
  outline: 1px solid rgba(78, 52, 33, 0.72);
  outline-offset: 2px;
}

.mode-switch__glyph {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}

.mode-switch__glyph--bloom {
  width: 15px;
  height: 15px;
  border-radius: 56% 44% 62% 38% / 42% 57% 43% 58%;
  background:
    radial-gradient(circle at 35% 32%, rgba(193, 93, 76, 0.46) 0 19%, transparent 48%),
    radial-gradient(circle at 67% 64%, rgba(83, 93, 157, 0.42) 0 23%, transparent 61%),
    rgba(170, 115, 88, 0.23);
  filter: blur(0.15px);
  transform: rotate(-16deg);
}

.mode-switch__glyph--bloom::after {
  position: absolute;
  width: 4px;
  height: 4px;
  top: -3px;
  right: 0;
  border-radius: 58% 42% 50% 50%;
  background: rgba(185, 106, 74, 0.38);
  content: "";
}

.mode-switch__glyph--ripple {
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.mode-switch__glyph--ripple::before,
.mode-switch__glyph--ripple::after {
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.mode-switch__glyph--ripple::before {
  inset: 3px;
}

.mode-switch__glyph--ripple::after {
  inset: -4px;
  opacity: 0.74;
}
