@import url("https://fonts.cdnfonts.com/css/metropolis-2");

:root {
  --navy: #001b5d;
  --sky: #00abeb;
  --mist: #daf2f1;
  --orange: #e58824;
  --green: #00d931;
  --white: #ffffff;
  --ink: #0a1633;
  --muted: #5b6b86;
  --line: rgba(0, 27, 93, 0.12);
  --radius: 1.25rem;
  --pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

body {
  font-family: "Metropolis", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.font-bold {
  font-weight: 700;
  margin: 0;
}

button {
  font-family: inherit;
}

.app-shell {
  min-height: 100%;
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(1200px 420px at 100% -10%, rgba(0, 171, 235, 0.18), transparent 60%),
    radial-gradient(900px 360px at -10% 110%, rgba(0, 217, 49, 0.12), transparent 55%),
    var(--mist);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--green);
  overflow: visible;
}

.app-header__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  flex: 1 1 auto;
  max-width: calc(100% - 280px);
}

.app-header__logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 52px;
  padding: 7px 20px 7px 14px;
  background: var(--white);
  border-radius: 999px;
  overflow: visible;
  line-height: 0;
}

.app-header__logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.app-header__hello {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.app-header__hello strong {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-header__hello span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.app-header__clock {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.app-main {
  flex: 1;
  width: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(0.55rem, 1.5vh, 1.25rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(0.55rem, 1.5vh, 1.25rem);
  align-items: stretch;
}

.app-shell.is-compact .app-main {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr);
  max-width: 560px;
}

.app-shell.is-compact .mood-col {
  display: none;
}

.panel {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: clamp(0.75rem, 1.8vh, 1.35rem);
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  container-type: size;
  overflow: hidden;
}

.mood-col {
  display: flex;
  flex-direction: column;
  gap: clamp(0.15rem, 0.8vh, 0.35rem);
  padding: clamp(0.65rem, 1.5vh, 1rem) clamp(0.65rem, 1.5vw, 1rem) clamp(0.5rem, 1vh, 0.75rem);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.mood-col__head {
  flex: 0 0 auto;
  text-align: center;
  padding: 0 0.25rem clamp(0.65rem, 1.5vh, 1.15rem);
}

.mood-col__title {
  margin: 0 0 clamp(0.2rem, 0.5vh, 0.4rem);
  font-size: clamp(1.1rem, 1.6vh + 0.55rem, 1.86rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--white);
}

.mood-col__hint {
  margin: 0;
  font-size: clamp(0.78rem, 1vh + 0.45rem, 0.98rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.mood-hero {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: clamp(160px, 32vh, 380px);
  max-height: min(56vh, 100%);
  margin: clamp(0.35rem, 0.9vh, 0.65rem) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.mood-hero__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  container-type: size;
}

.mood-orbit-stage {
  position: relative;
  flex: 0 0 auto;
  width: min(100cqw, 92cqh, clamp(13rem, 28vh, 26.4rem));
  aspect-ratio: 1 / 1;
  container-type: size;
  display: flex;
  align-items: center;
  justify-content: center;
  --orbit-r: 46cqw;
}

.mood-orbit__glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.62) 32%,
    rgba(0, 0, 0, 0.42) 48%,
    rgba(0, 0, 0, 0.22) 58%,
    rgba(0, 0, 0, 0.08) 68%,
    rgba(0, 0, 0, 0.02) 78%,
    transparent 88%
  );
}

.mood-col .mood-orbit__glow {
  background: radial-gradient(
    circle closest-side at 50% 50%,
    #000000 0%,
    #000000 12%,
    rgba(0, 0, 0, 0.99) 18%,
    rgba(0, 0, 0, 0.92) 38%,
    rgba(0, 0, 0, 0.78) 58%,
    rgba(0, 0, 0, 0.52) 72%,
    rgba(0, 0, 0, 0.28) 82%,
    rgba(0, 0, 0, 0.12) 88%,
    rgba(0, 0, 0, 0.04) 91%,
    rgba(0, 0, 0, 0.01) 92.5%,
    transparent 93%
  );
}

.mood-orbit__halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  transform-origin: center center;
  animation: mood-halo-pump 5.2s ease-in-out infinite;
}

.mood-orbit__halo-rays {
  position: absolute;
  inset: -5%;
  border-radius: 50%;
  transform-origin: center center;
  background: repeating-conic-gradient(
    from -4deg at 50% 50%,
    rgba(255, 255, 255, 0) 0deg 10deg,
    rgba(255, 255, 255, 0.05) 10deg 11deg,
    rgba(0, 171, 235, 0.14) 11deg 12.5deg,
    rgba(0, 217, 49, 0.06) 12.5deg 13.5deg,
    rgba(255, 255, 255, 0) 13.5deg 22.5deg
  );
  -webkit-mask: radial-gradient(
    circle closest-side at 50% 50%,
    transparent 0%,
    transparent 32%,
    rgba(0, 0, 0, 0.55) 40%,
    black 48%,
    black 64%,
    rgba(0, 0, 0, 0.45) 74%,
    transparent 84%
  );
  mask: radial-gradient(
    circle closest-side at 50% 50%,
    transparent 0%,
    transparent 32%,
    rgba(0, 0, 0, 0.55) 40%,
    black 48%,
    black 64%,
    rgba(0, 0, 0, 0.45) 74%,
    transparent 84%
  );
  animation:
    mood-halo-rays-spin 72s linear infinite,
    mood-halo-rays-pump 4.4s ease-in-out infinite;
}

.mood-orbit__halo-dash {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(0, 171, 235, 0.42);
  transform: translate(-50%, -50%);
  transform-origin: center center;
  box-shadow: 0 0 10px rgba(0, 171, 235, 0.08);
}

.mood-orbit__halo-dash--inner {
  width: 52%;
  height: 52%;
  border-color: rgba(255, 255, 255, 0.28);
  opacity: 0.85;
  animation: mood-halo-dash-pump-inner 3.6s ease-in-out infinite;
}

.mood-orbit__halo-dash--mid {
  width: 72%;
  height: 72%;
  border-color: rgba(0, 171, 235, 0.38);
  animation:
    mood-halo-dash-spin 90s linear infinite reverse,
    mood-halo-dash-pump-mid 4.8s ease-in-out infinite;
  animation-delay: 0s, -1.4s;
}

@keyframes mood-halo-pump {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.042);
  }
  70% {
    transform: scale(0.988);
  }
}

@keyframes mood-halo-rays-pump {
  0%,
  100% {
    opacity: 0.72;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.12);
  }
}

@keyframes mood-halo-dash-pump-inner {
  0%,
  100% {
    width: 52%;
    height: 52%;
    opacity: 0.82;
  }
  50% {
    width: 55%;
    height: 55%;
    opacity: 1;
  }
}

@keyframes mood-halo-dash-pump-mid {
  0%,
  100% {
    width: 72%;
    height: 72%;
    opacity: 0.75;
  }
  50% {
    width: 76%;
    height: 76%;
    opacity: 0.95;
  }
}

@keyframes mood-halo-rays-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes mood-halo-dash-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.mood-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.mood-orbit__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 171, 235, 0.22);
  transform: translate(-50%, -50%);
  aspect-ratio: 1 / 1;
  height: auto;
}

.mood-orbit__ring--outer {
  width: 92%;
  animation: mood-orbit-pulse 4s ease-in-out infinite;
}

.mood-orbit__ring--inner {
  width: 68%;
  border-color: rgba(0, 217, 49, 0.28);
  animation: mood-orbit-pulse 4s ease-in-out infinite 1.2s;
}

.mood-orbit__track {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  z-index: 4;
  transform: translate(-50%, -50%);
}

.mood-orbit__track:is(:hover, :focus-within) .mood-orbit__icon {
  animation-play-state: paused;
}

.mood-orbit__icon {
  appearance: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 2.88rem;
  height: 2.88rem;
  margin: -1.44rem 0 0 -1.44rem;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transform: rotate(var(--orbit-angle, 0deg)) translateY(calc(-1 * var(--orbit-r, 46cqw)))
    rotate(calc(-1 * var(--orbit-angle, 0deg)));
  animation: mood-orbit-item 14s linear infinite;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mood-orbit__icon:focus {
  outline: none;
}

.mood-orbit__icon:focus-visible {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(0, 171, 235, 0.45);
}

.mood-orbit__icon.is-selected {
  border-color: rgba(0, 217, 49, 0.65);
  background: rgba(0, 217, 49, 0.2);
  box-shadow: 0 0 0 2px rgba(0, 217, 49, 0.3);
}

.mood-orbit__icon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mood-orbit__icon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

@media (hover: hover) {
  .mood-orbit__icon:hover:not(:disabled) .mood-orbit__icon-inner svg,
  .mood-orbit__icon:focus-visible:not(:disabled) .mood-orbit__icon-inner svg {
    transform: scale(1.65);
  }

  .mood-orbit__icon:hover:not(:disabled),
  .mood-orbit__icon:focus-visible:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
    z-index: 5;
  }
}

@supports not (width: 1cqw) {
  .mood-orbit-stage {
    --orbit-r: 12.14rem;
  }
}

.mood-orbit__icon-inner svg {
  display: block;
  width: 2.18rem;
  height: 2.18rem;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease;
}

.mood-hero__video {
  position: relative;
  z-index: 2;
  width: 120%;
  height: auto;
  max-height: 120%;
  object-fit: contain;
  pointer-events: none;
}

@keyframes mood-orbit-item {
  from {
    transform: rotate(var(--orbit-angle, 0deg)) translateY(calc(-1 * var(--orbit-r, 46cqw)))
      rotate(calc(-1 * var(--orbit-angle, 0deg)));
  }
  to {
    transform: rotate(calc(var(--orbit-angle, 0deg) + 360deg)) translateY(calc(-1 * var(--orbit-r, 46cqw)))
      rotate(calc(-1 * var(--orbit-angle, 0deg) - 360deg));
  }
}

@keyframes mood-orbit-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mood-orbit__halo,
  .mood-orbit__halo-rays,
  .mood-orbit__halo-dash--inner,
  .mood-orbit__halo-dash--mid,
  .mood-orbit__track,
  .mood-orbit__ring--outer,
  .mood-orbit__ring--inner,
  .mood-orbit__icon {
    animation: none;
  }

  .mood-orbit__track {
    transform: translate(-50%, -50%);
  }

  .mood-orbit__icon {
    transform: rotate(var(--orbit-angle, 0deg)) translateY(calc(-1 * var(--orbit-r, 46cqw)))
      rotate(calc(-1 * var(--orbit-angle, 0deg)));
  }
}

.mood-orbit__caption {
  flex: 0 0 auto;
  margin: clamp(0.65rem, 1.8vh, 1.15rem) 0 0;
  padding-top: clamp(0.1rem, 0.4vh, 0.25rem);
  min-height: 1.5em;
  font-size: clamp(1rem, 1.6vh + 0.55rem, 1.35rem);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.15s ease;
}

.mood-orbit__caption.is-active {
  opacity: 1;
  transform: translateY(0);
  color: var(--green);
}

.mood-form__msg {
  flex: 0 0 auto;
  margin: clamp(0.15rem, 0.5vh, 0.35rem) 0 0;
  padding: 0 0.25rem;
  font-size: clamp(0.72rem, 1.1vh + 0.4rem, 0.94rem);
  color: rgba(255, 255, 255, 0.72);
  min-height: 1.1em;
  text-align: center;
}

.mood-form__msg.is-error {
  color: #ffb4b4;
}

.mood-confirm-flyout {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
  background: rgba(0, 27, 93, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mood-confirm-flyout[hidden] {
  display: none;
}

.mood-confirm-flyout__card {
  width: 100%;
  max-width: 22rem;
  background: rgba(0, 27, 93, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1.15rem;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  animation: fadeUp 0.28s ease both;
}

.mood-confirm-flyout__card > p:first-child {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
}

.mood-confirm-flyout__detail {
  margin: 0;
  font-size: 0.92rem;
  color: var(--mist);
  line-height: 1.35;
}

.journey-col,
.mood-col {
  background:
    linear-gradient(165deg, rgba(0, 27, 93, 0.88), rgba(0, 27, 93, 0.68));
  color: var(--white);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 16px 40px rgba(0, 27, 93, 0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: journeyIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.journey-col {
  justify-content: flex-start;
  gap: clamp(0.2rem, 1vh, 0.65rem);
}

.journey-col > *,
.mood-col > * {
  position: relative;
  z-index: 1;
}

.journey-col > .snooze-flyout {
  z-index: 20;
}

.mood-col > .mood-confirm-flyout {
  z-index: 20;
}

.journey-col::before,
.mood-col::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 22px solid rgba(0, 171, 235, 0.32);
  pointer-events: none;
  animation: blobSpin 16s linear infinite;
}

.journey-col::before {
  right: -90px;
  top: -90px;
}

.mood-col::before {
  right: -110px;
  top: -110px;
  width: 220px;
  height: 220px;
  border-width: 18px;
}

.journey-col::after,
.mood-col::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(0, 217, 49, 0.16);
  filter: blur(8px);
  pointer-events: none;
  animation: blobFloat 7s ease-in-out infinite;
}

.journey-col::after {
  left: -70px;
  bottom: 18%;
}

.mood-col::after {
  left: -80px;
  top: 12%;
  width: 140px;
  height: 140px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex-shrink: 0;
  animation: fadeUp 0.55s 0.08s both;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--pill);
  padding: clamp(0.25rem, 0.6vh, 0.35rem) clamp(0.55rem, 1vh, 0.8rem);
  font-size: clamp(0.65rem, 1vh + 0.35rem, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #e8f7ff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chip[hidden] {
  display: none !important;
}

.chip.is-out {
  background: rgba(218, 242, 241, 0.1);
  color: var(--mist);
}

.chip.is-pause {
  background: rgba(229, 136, 36, 0.22);
  border-color: rgba(229, 136, 36, 0.45);
  color: #ffd7a8;
}

.chip.is-ok {
  background: rgba(0, 217, 49, 0.16);
  border-color: rgba(0, 217, 49, 0.4);
  color: #8cff9f;
}

.journey-col h1 {
  font-size: clamp(1.05rem, 1.8vh + 0.65rem, 2.35rem);
  line-height: 1.15;
  margin: clamp(0.25rem, 0.8vh, 0.85rem) 0 clamp(0.15rem, 0.45vh, 0.5rem);
  flex-shrink: 0;
  animation: fadeUp 0.6s 0.16s both;
}

.journey-col .cta-green {
  color: var(--green);
  font-size: clamp(0.88rem, 1.3vh + 0.5rem, 1.2rem);
  font-weight: 700;
  margin: 0 0 clamp(0.15rem, 0.45vh, 0.75rem);
  flex-shrink: 0;
  animation: fadeUp 0.6s 0.24s both, ctaGlow 2.4s 0.9s ease-in-out infinite;
}

.journey-col .hint {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 clamp(0.2rem, 0.65vh, 1.25rem);
  line-height: 1.4;
  font-size: clamp(0.76rem, 1.1vh + 0.4rem, 1rem);
  flex-shrink: 0;
  animation: fadeUp 0.6s 0.3s both;
}

.clock-ring {
  width: clamp(110px, min(22vw, 28vh), 220px);
  aspect-ratio: 1 / 1;
  height: auto;
  max-width: 100%;
  margin: clamp(0.1rem, 0.45vh, 0.45rem) auto;
  position: relative;
  flex: 0 1 auto;
  min-height: 0;
  align-self: center;
  animation: ringPulse 3.2s ease-in-out infinite;
}

.clock-ring::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  animation: glassBreathe 3.2s ease-in-out infinite;
}

.clock-ring svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(-90deg);
  transform-origin: center;
}

.clock-ring__meta {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.clock-ring__meta small {
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.clock-ring__meta strong {
  font-size: clamp(1.25rem, 2.8vh, 2rem);
  font-variant-numeric: tabular-nums;
}

.clock-pause {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.clock-pause[hidden] {
  display: none;
}

.clock-bar {
  display: none;
  width: 100%;
  height: 3.2rem;
  margin: 0.2rem 0 0.35rem;
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 171, 235, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.clock-bar__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #00abeb, #00d931);
  transition: width 0.45s ease;
}

.clock-bar__meta {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  pointer-events: none;
}

.clock-bar__meta small {
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.clock-bar__meta strong {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.clock-bar .clock-pause {
  margin-top: 0;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: clamp(0.35rem, 1vh, 0.7rem);
  margin-top: auto;
  flex: 0 0 auto;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding-top: clamp(0.25rem, 0.6vh, 0.5rem);
  padding-bottom: 0.1rem;
  background: none;
}

.snooze-flyout {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.1rem;
  background: rgba(0, 27, 93, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.snooze-flyout[hidden] {
  display: none;
}

.snooze-flyout__card {
  width: 100%;
  background: rgba(0, 27, 93, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1.15rem;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  animation: fadeUp 0.28s ease both;
}

.snooze-flyout__card p {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.snooze-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.85rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--mist);
  font-size: 0.92rem;
}

.snooze-wrap input {
  width: 5.2rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.7rem;
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-weight: 700;
  text-align: center;
  color: var(--navy);
  background: #fff;
}

.pill {
  appearance: none;
  border: 0;
  border-radius: var(--pill);
  padding: clamp(0.58rem, 1.3vh, 0.95rem) clamp(0.85rem, 2vw, 1.2rem);
  font-size: clamp(0.84rem, 1.2vh + 0.45rem, 1rem);
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.pill:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.pill:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pill-green {
  background: var(--green);
  color: var(--navy);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 0 rgba(0, 217, 49, 0.45);
  animation: btnGlow 2.6s ease-in-out infinite;
}

.pill-green::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shine 2.8s 0.6s ease-in-out infinite;
  pointer-events: none;
}

.pill-green:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.06);
}

.pill-orange {
  background: var(--orange);
  color: var(--white);
}

.pill-navy {
  background: var(--white);
  color: var(--navy);
}

.pill-ghost {
  background: transparent;
  color: var(--mist);
  border: 2px solid rgba(218, 242, 241, 0.45);
}

.status-msg {
  min-height: 1.1em;
  margin-top: clamp(0.2rem, 0.5vh, 0.85rem);
  font-size: clamp(0.76rem, 1.1vh + 0.4rem, 0.9rem);
  color: #b9ecff;
  flex-shrink: 0;
}

.status-msg.is-error {
  color: #ffb4b4;
}

.banner {
  padding: 0.7rem 1.5rem;
  background: #fff3e0;
  color: #8a4b00;
  font-size: 0.9rem;
}

.install-body,
.error-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.install-card,
.error-card {
  width: min(640px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--line);
}

.install-card h1,
.error-card h1 {
  color: var(--navy);
  margin: 0.75rem 0 0.5rem;
}

.install-card label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin: 1rem 0 0.4rem;
}

.install-card input,
.install-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #f7fbfb;
}

.install-card .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.install-card .row .pill {
  width: auto;
  flex: 1;
}

.install-card .pill-ghost {
  color: var(--navy);
  border-color: var(--line);
}

.install-log {
  margin-top: 1.1rem;
  max-height: 28rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f7fbfb;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}

.muted {
  color: var(--muted);
  line-height: 1.5;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

pre {
  background: var(--navy);
  color: #daf2f1;
  padding: 0.9rem;
  border-radius: 0.75rem;
  overflow: auto;
}

@keyframes journeyIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blobSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -14px) scale(1.12); }
}

@keyframes ringPulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(0, 171, 235, 0.25));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 22px rgba(0, 217, 49, 0.45));
    transform: scale(1.035);
  }
}

@keyframes glassBreathe {
  0%, 100% { background: rgba(255, 255, 255, 0.08); }
  50% { background: rgba(255, 255, 255, 0.16); }
}

@keyframes ctaGlow {
  0%, 100% { opacity: 1; text-shadow: 0 0 0 rgba(0, 217, 49, 0); }
  50% { opacity: 0.92; text-shadow: 0 0 16px rgba(0, 217, 49, 0.7); }
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 217, 49, 0.35); }
  50% { box-shadow: 0 0 22px 2px rgba(0, 217, 49, 0.55); }
}

@keyframes shine {
  0% { transform: translateX(0); }
  60%, 100% { transform: translateX(420%); }
}

@media (prefers-reduced-motion: reduce) {
  .journey-col,
  .mood-col,
  .journey-col::before,
  .journey-col::after,
  .mood-col::before,
  .mood-col::after,
  .chip-row,
  .journey-col h1,
  .journey-col .cta-green,
  .journey-col .hint,
  .clock-ring,
  .clock-ring::after,
  .clock-ring svg,
  .clock-bar__fill,
  .pill-green,
  .pill-green::after {
    animation: none !important;
  }
}

@media (max-height: 820px) {
  .app-header {
    padding: 0.55rem 1rem;
  }

  .app-header__logo-pill {
    height: 44px;
    padding: 5px 14px 5px 10px;
  }

  .app-header__logo {
    height: 30px;
  }

  .app-header__clock {
    font-size: 1rem;
  }

  .mood-hero {
    min-height: clamp(140px, 28vh, 300px);
    max-height: 50vh;
  }

  .mood-orbit__icon {
    width: clamp(2.2rem, 4.5vh, 2.88rem);
    height: clamp(2.2rem, 4.5vh, 2.88rem);
    margin: calc(clamp(2.2rem, 4.5vh, 2.88rem) / -2) 0 0 calc(clamp(2.2rem, 4.5vh, 2.88rem) / -2);
  }

  .clock-ring {
    width: clamp(96px, min(20vw, 24vh), 180px);
  }
}

@media (max-height: 680px) {
  .app-main {
    padding: 0.45rem;
    gap: 0.45rem;
  }

  .panel,
  .mood-col {
    padding: 0.6rem;
  }

  .journey-col h1 {
    margin-top: 0.15rem;
    margin-bottom: 0.1rem;
  }

  .journey-col .hint {
    margin-bottom: 0.15rem;
  }

  .clock-ring {
    width: clamp(88px, min(18vw, 20vh), 150px);
  }

  .clock-bar {
    height: clamp(2.4rem, 5vh, 3.2rem);
  }

  .actions {
    gap: 0.3rem;
    padding-top: 0.25rem;
  }

  .pill {
    padding: 0.52rem 0.85rem;
    font-size: 0.82rem;
  }

  .mood-col__title {
    font-size: clamp(1rem, 1.4vh + 0.5rem, 1.35rem);
  }

  .mood-orbit-stage {
    width: min(100cqw, 90cqh, clamp(11rem, 24vh, 20rem));
  }
}

@media (max-width: 920px), (orientation: portrait), (max-aspect-ratio: 1/1) {
  .app-main {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 0.88fr) minmax(0, 1.12fr);
    padding: clamp(0.45rem, 1.2vh, 0.65rem);
    gap: clamp(0.45rem, 1.2vh, 0.65rem);
  }

  .app-shell.is-compact .app-main {
    grid-template-rows: minmax(0, 1fr);
  }

  .panel {
    padding: 0.85rem;
  }

  .mood-col {
    padding: clamp(0.55rem, 1.2vh, 0.75rem) clamp(0.55rem, 1.2vw, 0.65rem) clamp(0.45rem, 1vh, 0.6rem);
  }

  .mood-col__title {
    font-size: clamp(1rem, 1.5vh + 0.45rem, 1.26rem);
  }

  .mood-col__hint {
    font-size: clamp(0.72rem, 1vh + 0.35rem, 0.91rem);
  }

  .mood-hero {
    min-height: clamp(130px, 26vh, 260px);
    max-height: 48vh;
  }

  .mood-orbit-stage {
    width: min(100cqw, 90cqh, clamp(11rem, 26vh, 21.6rem));
    --orbit-r: 46cqw;
  }

  @supports not (width: 1cqw) {
    .mood-orbit-stage {
      --orbit-r: 9.94rem;
    }
  }

  .mood-orbit__icon {
    width: clamp(2rem, 4vh, 2.52rem);
    height: clamp(2rem, 4vh, 2.52rem);
    margin: calc(clamp(2rem, 4vh, 2.52rem) / -2) 0 0 calc(clamp(2rem, 4vh, 2.52rem) / -2);
  }

  .mood-orbit__icon-inner svg {
    width: clamp(1.35rem, 2.8vh, 1.86rem);
    height: clamp(1.35rem, 2.8vh, 1.86rem);
  }

  .mood-orbit__caption {
    font-size: clamp(0.92rem, 1.4vh + 0.45rem, 1.1rem);
    margin-top: clamp(0.55rem, 1.5vh, 1rem);
  }

  .mood-hero__video {
    width: 114%;
    max-height: 114%;
  }

  .app-header {
    padding: 0.55rem 0.85rem;
  }

  .app-header__logo-pill {
    height: 40px;
    padding: 5px 12px 5px 10px;
  }

  .app-header__logo {
    height: 26px;
  }

  .journey-col {
    justify-content: flex-start;
    gap: clamp(0.15rem, 0.8vh, 0.2rem);
  }

  .journey-col h1 {
    font-size: clamp(0.98rem, 1.5vh + 0.45rem, 1.35rem);
    margin: 0.2rem 0 0.12rem;
  }

  .journey-col .cta-green {
    font-size: clamp(0.82rem, 1.2vh + 0.4rem, 0.95rem);
    margin-bottom: 0.15rem;
  }

  .journey-col .hint {
    margin-bottom: 0.2rem;
    font-size: clamp(0.72rem, 1vh + 0.35rem, 0.82rem);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .clock-ring {
    display: none;
  }

  .clock-bar {
    display: block;
    height: clamp(2.35rem, 5vh, 3.2rem);
    margin: 0.12rem 0 0.2rem;
  }

  .clock-bar__meta strong {
    font-size: clamp(1.05rem, 2.2vh, 1.35rem);
  }

  .actions {
    gap: clamp(0.28rem, 0.8vh, 0.4rem);
    padding-top: clamp(0.25rem, 0.8vh, 0.4rem);
  }

  .pill {
    padding: clamp(0.52rem, 1.2vh, 0.7rem) clamp(0.75rem, 2vw, 1rem);
    font-size: clamp(0.8rem, 1.1vh + 0.4rem, 0.95rem);
  }
}

/* Wide desktop — escala por container do painel (não regredir telas baixas acima) */
@media (min-width: 1100px) and (min-height: 620px) {
  :root {
    --wide-scale: clamp(1rem, 0.9rem + 0.45vw, 1.28rem);
  }

  .app-main {
    padding: clamp(0.75rem, 1.8vh, 1.5rem);
    gap: clamp(0.75rem, 1.8vh, 1.5rem);
  }

  .panel {
    padding: clamp(0.95rem, 2vh, 1.65rem);
  }

  .mood-col__head {
    padding-bottom: clamp(0.85rem, 1.8vh, 1.35rem);
  }

  .mood-hero {
    margin-top: clamp(0.5rem, 1.1vh, 0.85rem);
    min-height: clamp(200px, 36vh, 440px);
    max-height: min(64vh, 100%);
  }

  .mood-col__title {
    font-size: clamp(1.35rem, 1.8vh + 0.75rem, 2.2rem);
  }

  .mood-col__hint {
    font-size: clamp(0.88rem, 1.15vh + 0.5rem, 1.15rem);
  }

  .mood-orbit-stage {
    width: min(94cqw, 90cqh, 38rem);
  }

  @supports not (width: 1cqw) {
    .mood-orbit-stage {
      --orbit-r: 17.5rem;
    }
  }

  .mood-orbit__icon {
    width: 3.35rem;
    height: 3.35rem;
    margin: -1.675rem 0 0 -1.675rem;
  }

  .mood-orbit__icon-inner svg {
    width: 2.5rem;
    height: 2.5rem;
  }

  .mood-orbit__caption {
    font-size: clamp(1.15rem, 1.7vh + 0.6rem, 1.55rem);
    margin-top: clamp(0.75rem, 2vh, 1.25rem);
  }

  .mood-form__msg {
    font-size: clamp(0.82rem, 1.15vh + 0.45rem, 1.05rem);
  }

  .journey-col h1 {
    font-size: clamp(1.35rem, 2vh + 0.75rem, 2.8rem);
  }

  .journey-col .cta-green {
    font-size: clamp(1rem, 1.5vh + 0.55rem, 1.45rem);
  }

  .journey-col .hint {
    font-size: clamp(0.84rem, 1.15vh + 0.45rem, 1.12rem);
  }

  .chip {
    font-size: clamp(0.68rem, 1vh + 0.38rem, 0.82rem);
    padding: clamp(0.28rem, 0.65vh, 0.4rem) clamp(0.6rem, 1.1vh, 0.9rem);
  }

  .clock-ring {
    width: clamp(160px, min(38cqw, 44cqh), 300px);
    aspect-ratio: 1 / 1;
    height: auto;
    margin: clamp(0.2rem, 0.55vh, 0.55rem) auto;
  }

  .clock-ring__meta strong {
    font-size: clamp(1.45rem, 3.2vh, 2.4rem);
  }

  .clock-ring__meta small {
    font-size: clamp(0.68rem, 1vh + 0.35rem, 0.8rem);
  }

  .pill {
    padding: clamp(0.72rem, 1.5vh, 1.05rem) clamp(1rem, 2.2vw, 1.35rem);
    font-size: clamp(0.92rem, 1.25vh + 0.48rem, 1.15rem);
  }

  .status-msg {
    font-size: clamp(0.82rem, 1.1vh + 0.42rem, 1rem);
  }
}

@media (min-width: 1400px) and (min-height: 700px) {
  .mood-orbit-stage {
    width: min(95cqw, 92cqh, 42rem);
  }

  @supports not (width: 1cqw) {
    .mood-orbit-stage {
      --orbit-r: 19.25rem;
    }
  }

  .clock-ring {
    width: clamp(180px, min(42cqw, 48cqh), 320px);
  }
}

@media (min-width: 1900px) and (min-height: 800px) {
  .mood-orbit-stage {
    width: min(96cqw, 94cqh, 44rem);
  }

  .clock-ring {
    width: clamp(200px, min(44cqw, 50cqh), 340px);
  }
}
