@property --bg-inner {
  syntax: '<color>';
  inherits: true;
  initial-value: #07120e;
}
@property --bg-mid {
  syntax: '<color>';
  inherits: true;
  initial-value: #030806;
}
@property --bg-outer {
  syntax: '<color>';
  inherits: true;
  initial-value: #010302;
}
* {
  box-sizing: border-box;
  font-family: Manrope, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  height: 100%;
  margin: 0;
  background: #030509;
  color: #e5e9f0;
  font-family: Manrope, sans-serif;
  overflow: hidden;
}
html.is-hydrating,
html.is-hydrating * {
  transition: none !important;
}
#garden {
  --btn-border-width: 2px;
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 50% 48%,
    var(--bg-inner) 0%,
    color-mix(in srgb, var(--bg-inner) 68%, var(--bg-mid)) 18%,
    var(--bg-mid) 44%,
    color-mix(in srgb, var(--bg-mid) 42%, var(--bg-outer)) 72%,
    var(--bg-outer) 100%
  );
  transition:
    --bg-inner 1s ease,
    --bg-mid 1s ease,
    --bg-outer 1s ease;
}
#garden::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
#sphere-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 48%,
    rgba(2, 4, 8, 0) 0%,
    rgba(2, 4, 8, 0.04) 26%,
    rgba(2, 4, 8, 0.18) 52%,
    rgba(2, 4, 8, 0.46) 76%,
    rgba(2, 4, 8, 0.82) 100%
  );
}
.hud {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(1.5rem, env(safe-area-inset-top)) max(1.25rem, min(5vw, 3.5rem)) max(1.5rem, env(safe-area-inset-bottom));
  pointer-events: none;
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.38s ease;
}
#garden.ui-hidden .hud {
  opacity: 0;
  transform: scale(0.985);
  filter: blur(0.45rem);
  pointer-events: none;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}
.logo {
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  letter-spacing: 0.3em;
  font-weight: 300;
  color: rgba(235, 240, 246, 0.9);
}
.logo span {
  color: var(--profile-color, #56c496);
  transition: color 0.4s ease;
}
.subtitle {
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  color: rgba(136, 152, 172, 0.72);
  white-space: nowrap;
}
.center-info {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--category-top, max(0.875rem, calc(50% - min(35vw, 35vh) - 2.75rem)));
  margin-inline: auto;
  max-width: 92vw;
  text-align: center;
  pointer-events: none;
  transform-origin: center center;
  transition:
    opacity 0.6s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.6s ease;
}
.center-info.is-changing {
  opacity: 0;
  filter: blur(0.5rem);
  transform: translateY(0.5rem) scale(0.94);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    filter 0.3s ease;
}
.category {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  color: var(--profile-color, #56c496);
  opacity: 0.85;
  transition: color 0.7s ease;
}
.controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.05rem;
  pointer-events: none;
}
.profiles,
.modes,
.actions {
  display: flex;
  justify-content: center;
  align-items: center;
}
.profiles {
  gap: 1rem;
  flex-wrap: wrap;
}
.profile {
  pointer-events: auto;
  position: relative;
  width: 3.125rem;
  height: 3.125rem;
  flex: 0 0 3.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: var(--btn-border-width) solid color-mix(in srgb, var(--c) 24%, rgba(255, 255, 255, 0.14));
  background: rgba(9, 14, 22, 0.16);
  backdrop-filter: blur(1px);
  color: color-mix(in srgb, var(--c) 72%, rgba(255, 255, 255, 0.3));
  box-shadow: 0 0 10px color-mix(in srgb, var(--c) 10%, rgba(255, 255, 255, 0.04));
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}
.profile:hover {
  border-color: color-mix(in srgb, var(--c) 46%, rgba(255, 255, 255, 0.2));
  background: rgba(9, 14, 22, 0.22);
  color: color-mix(in srgb, var(--c) 86%, #ffffff);
  box-shadow: 0 0 14px color-mix(in srgb, var(--c) 18%, rgba(255, 255, 255, 0.06));
}
.profile:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--c) 68%, #ffffff);
  box-shadow: 0 0 16px color-mix(in srgb, var(--c) 30%, transparent);
}
.profile.active {
  border-color: color-mix(in srgb, var(--c) 54%, rgba(255, 255, 255, 0.16));
  background: color-mix(in srgb, var(--c) 5%, rgba(9, 14, 22, 0.2));
  color: color-mix(in srgb, var(--c) 88%, #ffffff);
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 32%, transparent);
}
.profile.is-playing {
  border-color: color-mix(in srgb, var(--c) 68%, rgba(255, 255, 255, 0.2));
  background: color-mix(in srgb, var(--c) 8%, rgba(9, 14, 22, 0.24));
  color: color-mix(in srgb, var(--c) 92%, #ffffff);
  box-shadow:
    0 0 24px color-mix(in srgb, var(--c) 44%, transparent),
    0 0 8px color-mix(in srgb, var(--c) 22%, transparent);
}
.profile-icon {
  width: 68%;
  height: 68%;
  display: block;
}
@media (hover: hover) and (pointer: fine) {
  .profile::after {
    content: attr(data-label);
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translate(-50%, 4px);
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--c, #56c496) 48%, rgba(255, 255, 255, 0.14));
    background: rgba(8, 13, 22, 0.72);
    backdrop-filter: blur(1px);
    color: var(--c, #56c496);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.25s ease,
      transform 0.25s ease;
  }
  .profile:hover::after,
  .profile:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
.modes {
  gap: 0.55rem;
  flex-wrap: wrap;
  max-width: min(94vw, 38rem);
}
.modes-break {
  display: none;
}
.mode {
  pointer-events: auto;
  flex: 0 0 auto;
  border: var(--btn-border-width) solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(9, 14, 22, 0.14);
  backdrop-filter: blur(1px);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.045);
  color: rgba(162, 177, 196, 0.78);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}
.mode:hover {
  color: rgba(228, 236, 245, 0.92);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(9, 14, 22, 0.2);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.08);
}
.mode:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--profile-color, #56c496) 56%, rgba(255, 255, 255, 0.2));
  box-shadow: 0 0 16px color-mix(in srgb, var(--profile-color, #56c496) 26%, transparent);
}
.mode.active {
  color: color-mix(in srgb, var(--profile-color, #56c496) 86%, #ffffff);
  border-color: color-mix(in srgb, var(--profile-color, #56c496) 52%, rgba(255, 255, 255, 0.16));
  background: color-mix(in srgb, var(--profile-color, #56c496) 7%, rgba(9, 14, 22, 0.22));
  box-shadow: 0 0 18px color-mix(in srgb, var(--profile-color, #56c496) 34%, transparent);
}
.actions {
  width: 100%;
  max-width: 100%;
  gap: 0.75rem;
}
.timer-control {
  --timer-border: rgba(255, 255, 255, 0.16);
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  height: 2.5rem;
  min-height: 2.5rem;
  max-height: 2.5rem;
  overflow: hidden;
  border: var(--btn-border-width) solid var(--timer-border);
  border-radius: 999px;
  background: rgba(9, 14, 22, 0.16);
  backdrop-filter: blur(1px);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  color: #b8c6d8;
  letter-spacing: 0.12em;
  transition:
    width 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}
.timer-control:hover {
  --timer-border: rgba(255, 255, 255, 0.26);
  background: rgba(9, 14, 22, 0.22);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.09);
}
.timer-control[data-state='expanded'],
.timer-control[data-state='running'] {
  --timer-border: color-mix(in srgb, var(--profile-color, #56c496) 52%, rgba(255, 255, 255, 0.18));
  background: color-mix(in srgb, var(--profile-color, #56c496) 6%, rgba(9, 14, 22, 0.22));
  box-shadow: 0 0 18px color-mix(in srgb, var(--profile-color, #56c496) 32%, transparent);
}
.timer-idle,
.timer-editor,
.timer-running {
  position: relative;
  inset: auto;
  width: max-content;
  height: 2.3125rem;
  min-height: 2.3125rem;
  max-height: 2.3125rem;
  display: none;
  align-items: center;
  flex: none;
  white-space: nowrap;
}
.timer-control[data-state='idle'] .timer-idle,
.timer-control[data-state='expanded'] .timer-editor,
.timer-control[data-state='running'] .timer-running {
  display: flex;
}
.timer-idle,
.timer-reopen,
.timer-cancel {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.timer-idle:focus-visible,
.timer-reopen:focus-visible,
.timer-cancel:focus-visible {
  outline: none;
  color: #ffffff;
}
.timer-idle {
  gap: 0.65rem;
  position: relative;
  justify-content: center;
  padding: 0 0.95rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}
.timer-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
  color: var(--profile-color, #56c496);
  transition: color 0.25s ease;
}
.timer-editor {
  gap: 0.7rem;
  padding: 0 0.85rem;
}
.timer-editor input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  width: clamp(7.5rem, 36vw, 13.75rem);
  height: 0.625rem;
  margin: 0;
  padding: 0;
  background: transparent;
  accent-color: var(--profile-color, #56c496);
  cursor: pointer;
  outline: none;
}
.timer-editor input[type='range']::-webkit-slider-runnable-track {
  height: 0.5rem;
  border: 0;
  border-radius: 6.1875rem;
  background: linear-gradient(
    to right,
    var(--profile-color, #56c496) 0 var(--timer-progress, 100%),
    rgba(255, 255, 255, 0.14) var(--timer-progress, 100%) 100%
  );
}
.timer-editor input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0.95rem;
  height: 0.95rem;
  margin: -0.225rem 0 0;
  border: 1.5px solid #eef6f1;
  border-radius: 50%;
  background: var(--profile-color, #56c496);
  box-shadow: 0 0 8px color-mix(in srgb, var(--profile-color, #56c496) 45%, transparent);
}
.timer-editor input[type='range']::-moz-range-track {
  height: 0.5rem;
  border: 0;
  border-radius: 6.1875rem;
  background: rgba(255, 255, 255, 0.14);
}
.timer-editor input[type='range']::-moz-range-progress {
  height: 0.5rem;
  border: 0;
  border-radius: 6.1875rem;
  background: var(--profile-color, #56c496);
}
.timer-editor input[type='range']::-moz-range-thumb {
  width: 0.95rem;
  height: 0.95rem;
  border: 1.5px solid #eef6f1;
  border-radius: 50%;
  background: var(--profile-color, #56c496);
  box-shadow: 0 0 8px color-mix(in srgb, var(--profile-color, #56c496) 45%, transparent);
}
.timer-editor input[type='range']:hover,
.timer-editor input[type='range']:focus {
  outline: none;
  filter: none;
  box-shadow: none;
}
.timer-editor output {
  flex: 0 0 4.35rem;
  width: 4.35rem;
  text-align: right;
  color: #e5e7eb;
  font-size: 0.8rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.timer-editor output .timer-leading-zeroes {
  color: #aebdcc;
  opacity: 0.45;
}
.timer-editor output .timer-value,
.timer-editor output .timer-unit {
  color: var(--profile-color, #56c496);
}
.timer-running {
  width: 9.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
  cursor: pointer;
}
.timer-clock-slot,
.timer-cancel {
  width: 1.625rem;
  flex: 0 0 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timer-clock-slot {
  margin-left: -0.25rem;
}
.timer-reopen {
  height: 100%;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #d6e1ee;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.timer-cancel {
  margin-right: -0.25rem;
  height: 1.6875rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9baabe;
  cursor: pointer;
  transition:
    color 0.25s ease,
    background-color 0.25s ease;
}
.timer-cancel-icon {
  width: 0.9rem;
  height: 0.9rem;
}
.timer-cancel:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.footer {
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  color: rgba(136, 152, 172, 0.72);
  text-align: center;
  margin-top: 0.15rem;
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  flex-shrink: 0;
}
.app-download {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border: var(--btn-border-width) solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(9, 14, 22, 0.16);
  backdrop-filter: blur(1px);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  color: #b8c6d8;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}
.app-download:hover {
  color: #eef4fb;
  border-color: color-mix(in srgb, var(--profile-color, #56c496) 52%, rgba(255, 255, 255, 0.2));
  background: color-mix(in srgb, var(--profile-color, #56c496) 7%, rgba(9, 14, 22, 0.24));
  box-shadow: 0 0 16px color-mix(in srgb, var(--profile-color, #56c496) 26%, transparent);
}
.app-download:focus-visible {
  outline: none;
  color: #ffffff;
  border-color: color-mix(in srgb, var(--profile-color, #56c496) 68%, #ffffff);
  box-shadow: 0 0 16px color-mix(in srgb, var(--profile-color, #56c496) 32%, transparent);
}
.app-download-icon {
  width: 0.9rem;
  height: 0.9rem;
  flex: none;
  color: var(--profile-color, #56c496);
  transition: color 0.25s ease;
}
.shortcut-hints {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: rgba(154, 170, 190, 0.56);
  white-space: nowrap;
}
.shortcut-hints span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.shortcut-hints kbd {
  padding: 0.08rem 0.36rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(220, 230, 242, 0.72);
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  letter-spacing: 0.06em;
}
@media (hover: hover) and (pointer: fine) {
  .shortcut-hints {
    display: flex;
  }
}
#garden.ui-hidden .profile,
#garden.ui-hidden .mode,
#garden.ui-hidden .timer-control,
#garden.ui-hidden .app-download {
  pointer-events: none;
}

/* Tablet */
@media (max-width: 56rem) {
  .hud {
    padding: max(1.125rem, env(safe-area-inset-top)) max(1rem, 4vw) max(1.125rem, env(safe-area-inset-bottom));
  }
  .controls {
    gap: 0.9rem;
  }
}

/* Mobile portrait & narrow screens */
@media (max-width: 37.5rem), (hover: none) and (pointer: coarse) {
  #garden {
    --btn-border-width: 1.5px;
  }
}

@media (max-width: 37.5rem) {
  .hud {
    padding: max(0.875rem, env(safe-area-inset-top)) 0.875rem max(1rem, env(safe-area-inset-bottom));
  }
  .logo {
    letter-spacing: 0.24em;
  }
  .subtitle,
  .footer {
    font-size: 0.55rem;
    letter-spacing: 0.18em;
  }
  .shortcut-hints {
    display: none;
  }
  .app-download {
    font-size: 0.7rem;
    padding: 0.36rem 0.72rem;
    gap: 0.35rem;
  }
  .app-download-icon {
    width: 0.82rem;
    height: 0.82rem;
  }
  .category {
    font-size: 0.72rem;
    letter-spacing: 0.26em;
    text-indent: 0.26em;
  }
  .controls {
    gap: 0.85rem;
  }
  .profiles {
    gap: 0.85rem;
  }
  .profile {
    width: 2.9375rem;
    height: 2.9375rem;
    flex-basis: 2.9375rem;
  }
  .modes {
    gap: 0.42rem;
  }
  .mode {
    font-size: 0.74rem;
    padding: 0.4rem 0.72rem;
  }
  .timer-editor {
    gap: 0.5rem;
    padding: 0 0.7rem;
  }
  .timer-editor input[type='range'] {
    width: clamp(6.5rem, 38vw, 11rem);
  }
  .timer-editor output {
    flex-basis: 3.9rem;
    width: 3.9rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 28rem) {
  .modes-break {
    display: block;
    flex-basis: 100%;
    height: 0;
    margin-block: -0.21rem;
  }
}

@media (max-width: 24rem) {
  .subtitle {
    display: none;
  }
  .app-download {
    font-size: 0.66rem;
    padding: 0.32rem 0.62rem;
  }
  .profiles {
    gap: 0.65rem;
  }
  .profile {
    width: 2.6875rem;
    height: 2.6875rem;
    flex-basis: 2.6875rem;
  }
  .modes {
    gap: 0.35rem;
  }
  .modes-break {
    margin-block: -0.175rem;
  }
  .mode {
    font-size: 0.7rem;
    padding: 0.36rem 0.6rem;
  }
}

/* Low-height screens (720p/768p laptops & short browser windows) */
@media (max-height: 45rem) {
  .hud {
    padding: max(0.875rem, env(safe-area-inset-top)) max(1rem, 4vw) max(0.875rem, env(safe-area-inset-bottom));
  }
  .controls {
    gap: 0.72rem;
  }
  .profile {
    width: 2.8125rem;
    height: 2.8125rem;
    flex-basis: 2.8125rem;
  }
  .mode {
    padding: 0.36rem 0.76rem;
    font-size: 0.74rem;
  }
  .timer-control {
    height: 2.25rem;
    min-height: 2.25rem;
    max-height: 2.25rem;
  }
  .timer-idle,
  .timer-editor,
  .timer-running {
    height: 2.0625rem;
    min-height: 2.0625rem;
    max-height: 2.0625rem;
  }
}

/* Ultra-short & mobile landscape screens */
@media (max-height: 33.75rem) {
  .hud {
    padding: max(0.5rem, env(safe-area-inset-top)) max(0.875rem, env(safe-area-inset-right))
      max(0.625rem, env(safe-area-inset-bottom)) max(0.875rem, env(safe-area-inset-left));
  }
  .subtitle {
    font-size: 0.55rem;
  }
  .app-download {
    font-size: 0.68rem;
    padding: 0.32rem 0.68rem;
  }
  .controls {
    gap: 0.52rem;
  }
  .profiles {
    gap: 0.75rem;
  }
  .profile {
    width: 2.4375rem;
    height: 2.4375rem;
    flex-basis: 2.4375rem;
  }
  .modes {
    gap: 0.35rem;
  }
  .mode {
    padding: 0.3rem 0.64rem;
    font-size: 0.7rem;
  }
  .footer {
    display: none;
  }
}

@media (max-height: 21.25rem) {
  html,
  body {
    overflow-y: auto;
  }
  #garden {
    height: max(100dvh, 21.25rem);
  }
}

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