:root {
  --bg: #020617;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --ring: #6366f1;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 60;
  background: #111827;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
}

.skip-link:focus {
  left: 1rem;
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.section-anchor {
  scroll-margin-top: 7rem;
}

[data-mobile-menu='true'][hidden] {
  display: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

#app-settings-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-width: 7rem;
  height: 2rem;
  padding: 0 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid #4f46e5;
  background-color: #4f46e5;
  color: #ffffff;
  line-height: 1;
}

#app-settings-trigger > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
}

#app-settings-trigger > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  line-height: 1;
}

#app-settings-trigger:hover {
  background-color: #4338ca;
  border-color: #4338ca;
}

#app-settings-menu {
  width: 100%;
  min-width: 100%;
}

#app-settings-menu a {
  white-space: nowrap;
}

.icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  line-height: 1;
  font-size: 0.875em;
}

.noting-pet-live-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.noting-pet-live-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #34d399;
  flex: 0 0 auto;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.nps-hours-wrapper {
  min-width: 0;
}

.nps-hours-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nps-hours-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
}

.nps-hours-row-label {
  line-height: 1;
}

.nps-hours-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  min-width: 0;
}

.nps-hours-group > select {
  min-width: 0;
}

@media (max-width: 767px) {
  .dog-mascot-wrap {
    display: none;
  }

  .nps-hours-row {
    grid-template-columns: 1fr;
  }
}

.dog-mascot-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.95rem;
  margin-bottom: 1.25rem;
}

.dog-mascot {
  position: relative;
  width: 7rem;
  height: 6.4rem;
}

.dog-ear {
  position: absolute;
  top: 0.4rem;
  width: 1.9rem;
  height: 2.5rem;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border-radius: 1rem 1rem 0.4rem 0.4rem;
  border: 1px solid rgba(120, 53, 15, 0.45);
  z-index: 1;
}

.dog-ear-left {
  left: 0.95rem;
  transform: rotate(-22deg);
}

.dog-ear-right {
  right: 0.95rem;
  transform: rotate(22deg);
}

.dog-face {
  position: absolute;
  inset: 1.15rem 0.35rem 0.25rem;
  border-radius: 2rem;
  background: linear-gradient(160deg, #fdba74 0%, #fb923c 45%, #f59e0b 100%);
  border: 1px solid rgba(120, 53, 15, 0.45);
  box-shadow: 0 0.7rem 1.2rem rgba(2, 6, 23, 0.45);
}

.mascot-eye {
  position: absolute;
  top: 1.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.55);
  overflow: hidden;
}

.dog-eye-left {
  left: 1.55rem;
}

.dog-eye-right {
  right: 1.55rem;
}

.mascot-pupil {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  margin-left: -0.21rem;
  margin-top: -0.21rem;
  border-radius: 999px;
  background: #0f172a;
  transform: translate(0, 0);
  transition: transform 90ms ease-out;
}

.dog-nose {
  position: absolute;
  left: 50%;
  top: 2.5rem;
  width: 0.8rem;
  height: 0.56rem;
  margin-left: -0.4rem;
  border-radius: 0.5rem;
  background: #7c2d12;
}

.dog-mouth {
  position: absolute;
  left: 50%;
  top: 3rem;
  width: 1.45rem;
  height: 0.95rem;
  margin-left: -0.725rem;
  border-bottom: 2px solid rgba(124, 45, 18, 0.9);
  border-radius: 0 0 999px 999px;
}

.dog-cheek {
  position: absolute;
  top: 2.9rem;
  width: 0.52rem;
  height: 0.3rem;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.5);
}

.dog-cheek-left {
  left: 1.05rem;
}

.dog-cheek-right {
  right: 1.05rem;
}

.cat-mascot {
  position: relative;
  width: 6.8rem;
  height: 6.2rem;
}

.cat-ear {
  position: absolute;
  top: 0.35rem;
  width: 1.95rem;
  height: 1.95rem;
  background: linear-gradient(165deg, #f9a8d4 0%, #f472b6 70%);
  border-radius: 0.4rem 0.4rem 0.6rem 0.6rem;
  border: 1px solid rgba(131, 24, 67, 0.45);
  transform: rotate(45deg);
  z-index: 1;
}

.cat-ear-left {
  left: 1rem;
}

.cat-ear-right {
  right: 1rem;
}

.cat-face {
  position: absolute;
  inset: 1.2rem 0.35rem 0.2rem;
  border-radius: 2rem;
  background: linear-gradient(165deg, #fbcfe8 0%, #f9a8d4 48%, #f472b6 100%);
  border: 1px solid rgba(131, 24, 67, 0.45);
  box-shadow: 0 0.7rem 1.2rem rgba(2, 6, 23, 0.42);
}

.cat-eye {
  top: 1.5rem;
}

.cat-eye-left {
  left: 1.4rem;
}

.cat-eye-right {
  right: 1.4rem;
}

.cat-nose {
  position: absolute;
  left: 50%;
  top: 2.5rem;
  width: 0;
  height: 0;
  margin-left: -0.32rem;
  border-left: 0.32rem solid transparent;
  border-right: 0.32rem solid transparent;
  border-top: 0.48rem solid rgba(131, 24, 67, 0.95);
}

.cat-mouth {
  position: absolute;
  left: 50%;
  top: 3.06rem;
  width: 1.4rem;
  height: 0.95rem;
  margin-left: -0.7rem;
}

.cat-mouth::before,
.cat-mouth::after {
  content: '';
  position: absolute;
  top: 0;
  width: 0.6rem;
  height: 0.72rem;
  border-bottom: 2px solid rgba(131, 24, 67, 0.95);
  border-radius: 0 0 0.6rem 0.6rem;
}

.cat-mouth::before {
  left: 0.09rem;
  transform: rotate(14deg);
}

.cat-mouth::after {
  right: 0.09rem;
  transform: rotate(-14deg);
}

.cat-whisker {
  position: absolute;
  top: 2.98rem;
  width: 1.2rem;
  height: 1px;
  background: rgba(131, 24, 67, 0.8);
}

.cat-whisker-l1 {
  left: 0.45rem;
  transform: rotate(10deg);
}

.cat-whisker-l2 {
  left: 0.45rem;
  top: 3.35rem;
  transform: rotate(-8deg);
}

.cat-whisker-r1 {
  right: 0.45rem;
  transform: rotate(-10deg);
}

.cat-whisker-r2 {
  right: 0.45rem;
  top: 3.35rem;
  transform: rotate(8deg);
}

@keyframes mascotSleepFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.95);
  }

  20% {
    opacity: 0.92;
  }

  100% {
    opacity: 0;
    transform: translateY(-0.85rem) scale(1.04);
  }
}

.dog-mascot.is-sleeping::after,
.cat-mascot.is-sleeping::after {
  content: 'Zz';
  position: absolute;
  right: 0.1rem;
  top: -0.45rem;
  color: rgba(226, 232, 240, 0.95);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  pointer-events: none;
  animation: mascotSleepFloat 1.15s ease-out infinite;
}

.dog-mascot.is-sleeping .mascot-eye,
.cat-mascot.is-sleeping .mascot-eye {
  height: 0.22rem;
  margin-top: 0.33rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.16);
  border-color: rgba(100, 116, 139, 0.55);
}

.dog-mascot.is-sleeping .mascot-pupil,
.cat-mascot.is-sleeping .mascot-pupil {
  opacity: 0;
}
