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

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.app {
  width: 100%;
  max-width: 480px;
}

.app__header {
  text-align: center;
  margin-bottom: 16px;
}

.app__title {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.app__subtitle {
  font-size: 0.95rem;
  color: #6b7280;
}

.app__main {
  margin-bottom: 16px;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 18px 18px;
  box-shadow:
    0 20px 25px -5px rgba(15, 23, 42, 0.05),
    0 10px 10px -5px rgba(15, 23, 42, 0.04);
  border: 1px solid #e5e7eb;
}

.field {
  margin-bottom: 16px;
}

.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #4b5563;
}

.field__input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.field__input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4);
  background: #fef2f2;
}

.field__input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.field__inline {
  display: flex;
  gap: 8px;
}

.field__hint {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #6b7280;
}

.btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #ef4444;
  background: #ef4444;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    0 8px 12px -3px rgba(248, 113, 113, 0.5),
    0 3px 4px -4px rgba(185, 28, 28, 0.9);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.btn:hover:not(:disabled) {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow:
    0 10px 14px -3px rgba(239, 68, 68, 0.6),
    0 5px 6px -4px rgba(185, 28, 28, 0.95);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    0 6px 8px -3px rgba(239, 68, 68, 0.5),
    0 3px 4px -4px rgba(185, 28, 28, 0.7);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn--ghost {
  background: #ffffff;
  color: #b91c1c;
  border-color: #fecaca;
  box-shadow: none;
}

.btn--ghost:hover:not(:disabled) {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.lock {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.lock__text {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.lock__timer {
  font-size: 0.9rem;
  color: #b91c1c;
}

.result {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.result--success {
  background: #ecfdf5;
  border-color: #6ee7b7;
}

.result--error {
  background: #fef2f2;
  border-color: #fca5a5;
}

.result__message {
  font-size: 0.95rem;
}

.hidden {
  display: none;
}

.app__footer {
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
}

.team-step__title {
  font-size: 1rem;
  margin-bottom: 12px;
}

.team-step__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.team-btn {
  padding: 14px 10px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #4b5563;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow:
    0 4px 6px -4px rgba(15, 23, 42, 0.08);
}

.team-btn:hover {
  background: #fef2f2;
  border-color: #ef4444;
  color: #b91c1c;
  transform: translateY(-1px);
  box-shadow:
    0 6px 10px -4px rgba(239, 68, 68, 0.3);
}

.team-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.pin-step__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.pin-step__team-label {
  font-size: 0.92rem;
  color: #4b5563;
}

.pin-step__team-label span {
  font-weight: 600;
  color: #b91c1c;
}

@media (max-width: 480px) {
  .card {
    padding: 18px 14px 14px;
  }

  .field__inline {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

