[x-cloak] {
  display: none !important;
}

html,
body {
  background: #faf8ff;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Inter, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

button,
a,
label,
[role="button"],
[role="switch"] {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

@media screen and (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
}

.icon-fill {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.pt-safe {
  padding-top: env(safe-area-inset-top, 0px);
}

.glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.field {
  width: 100%;
  border-radius: 0.9rem;
  background: #f2f3ff;
  color: #131b2e;
  border: 1px solid transparent;
  transition: all 0.15s;
  font-size: 16px;
}

.field:focus {
  outline: none;
  background: #fff;
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.field::placeholder {
  color: #94a3b8;
  font-size: 14px;
}

.btn-primary {
  background: #10b981;
  color: #fff;
  transition: all 0.15s;
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.45);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

.key {
  background: #f2f3ff;
  transition: all 0.1s;
  touch-action: manipulation;
}

.key:hover {
  background: #eaedff;
}

.key:active {
  transform: scale(0.95);
  background: #e2e7ff;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background: #dae2fd;
  border-radius: 9999px;
}

.ambient {
  background:
    radial-gradient(60% 40% at 0% 0%, rgba(16, 185, 129, 0.08), transparent 70%),
    radial-gradient(50% 40% at 100% 100%, rgba(16, 185, 129, 0.06), transparent 70%);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-8px);
  }
  40%,
  80% {
    transform: translateX(8px);
  }
}
