:root {
  color-scheme: light;
  --green-950: #032b1e;
  --green-900: #063f2c;
  --green-700: #08734d;
  --lime: #c8f135;
  --yellow: #ffd43b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f4f7f4;
  color: #17352a;
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.login-bg {
  background:
    radial-gradient(circle at 15% 15%, rgba(200, 241, 53, 0.22), transparent 24rem),
    linear-gradient(145deg, #032b1e, #08734d);
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 92% -5%, rgba(200, 241, 53, 0.18), transparent 28rem),
    #f4f7f4;
}

.hero-pattern {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(200, 241, 53, 0.23), transparent 11rem),
    linear-gradient(138deg, #063f2c 0%, #08734d 58%, #0a8558 100%);
}

.hero-pattern::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -52px -90px auto;
  width: 230px;
  height: 230px;
  border: 46px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.pitch-lines {
  position: relative;
}

.pitch-lines::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
}

.pitch-lines > * {
  position: relative;
  z-index: 1;
}

.glass {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.soft-card {
  border: 1px solid rgba(8, 115, 77, 0.08);
  background: #fff;
  box-shadow: 0 12px 40px rgba(3, 43, 30, 0.07);
}

.lift {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 46px rgba(3, 43, 30, 0.12);
}

.nav-item {
  position: relative;
  transition: color 160ms ease, background 160ms ease;
}

.nav-item.active {
  color: #063f2c;
}

.nav-item.active::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 24px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--lime);
}

.desktop-nav .nav-item.active::before {
  top: 50%;
  left: -12px;
  width: 4px;
  height: 28px;
  transform: translateY(-50%);
}

.progress-track {
  overflow: hidden;
  background: #e8eee9;
}

.progress-fill {
  background: linear-gradient(90deg, #0b8d59, #c8f135);
  animation: progress-in 700ms ease both;
  transform-origin: left;
}

@keyframes progress-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.pulse-dot {
  box-shadow: 0 0 0 0 rgba(200, 241, 53, 0.55);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(200, 241, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 241, 53, 0); }
}

.score-input {
  appearance: textfield;
}

.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.toast {
  animation: toast-in 240ms ease both;
}

@keyframes toast-in {
  from { transform: translate(-50%, 14px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.modal-backdrop {
  animation: fade-in 180ms ease both;
}

.modal-panel {
  animation: panel-in 240ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes panel-in {
  from { transform: translateY(24px) scale(.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.paint-can {
  position: relative;
  width: 112px;
  height: 92px;
  border: 3px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px 8px 22px 22px;
  background: linear-gradient(150deg, #fff 0 19%, #d4fb4e 20% 57%, #08734d 58%);
  box-shadow: 0 18px 34px rgba(3, 43, 30, 0.28);
  transform: rotate(4deg);
}

.paint-can::before {
  content: "";
  position: absolute;
  left: 13px;
  top: -19px;
  width: 80px;
  height: 32px;
  border: 4px solid rgba(255, 255, 255, 0.6);
  border-bottom: 0;
  border-radius: 50px 50px 0 0;
}

.paint-can::after {
  content: "QUALIZ";
  position: absolute;
  inset: 35px 0 auto;
  color: #063f2c;
  font: 800 15px "Outfit", sans-serif;
  text-align: center;
  letter-spacing: .06em;
}

@media (min-width: 1024px) {
  .main-column {
    margin-left: 264px;
  }
}

@media (max-width: 640px) {
  .mobile-safe {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
}
