/* Entry screen — phone first. One job per screen: get a PIN and a name. */

.entry {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.entry__head {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.entry__head h1 {
  font-size: clamp(2.6rem, 14vw, 4rem);
}

#entry-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stub__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
}

.stub__seal img {
  height: 22px;
  width: auto;
  opacity: 0.55;
}

/* The ticket lands with a small settle, like it was just torn off. */
#ticket-view:not([hidden]) .stub {
  animation: stub-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes stub-in {
  from { opacity: 0; transform: translateY(14px) rotate(-1.5deg); }
  to { opacity: 1; transform: none; }
}

#watch,
#watch-form {
  text-decoration: none;
}

/* Recovery sits below the fold of the main task — present for the people who
   need it, quiet for everyone else. */
.restore {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.btn--link {
  width: auto;
  align-self: flex-start;
  padding: 0.4rem 0;
  border: none;
  background: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn--link:hover:not(:disabled) {
  background: none;
  color: var(--coral);
}

.restore__panel {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.restore__label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.restore__row {
  display: flex;
  gap: 0.6rem;
}

.restore__row .input {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-align: center;
}

.restore__row .btn {
  flex-shrink: 0;
  padding-inline: 1.3rem;
}

/* --- terms sheet -------------------------------------------------------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.1rem;
  background: rgba(3, 12, 25, 0.74);
  backdrop-filter: blur(3px);
  animation: sheet-fade 0.2s ease;
}

.sheet__panel {
  width: min(440px, 100%);
  max-height: 86dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.5rem;
  background: linear-gradient(165deg, var(--stage-2), var(--stage));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  animation: sheet-pop 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
}

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

@keyframes sheet-pop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}

.sheet__title {
  font-size: 1.5rem;
}

.terms-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--mist);
}

.terms-list li {
  padding-left: 1.1rem;
  position: relative;
}

.terms-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

.terms-list strong {
  font-weight: 600;
}

.sheet__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.closed-banner {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(242, 93, 90, 0.14);
  border: 1.5px solid rgba(242, 93, 90, 0.45);
  font-size: 0.95rem;
}
