:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  background: #0c0c0d;
  color: #f5f5f7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(circle at 50% 0%, #29282d 0, #111113 38%, #09090a 100%);
}

.shell {
  width: min(100%, 34rem);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(3rem, env(safe-area-inset-top)) 1.25rem max(2rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mark {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 1.25rem;
  background: #f3f3f5;
  color: #111;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.eyebrow {
  margin: 0 0 .65rem;
  color: #9d9da5;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .12em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 9vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.message {
  margin: 1rem 0 0;
  color: #b8b8c0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.card {
  margin-top: 2rem;
  padding: 1.2rem;
  border: 1px solid #34343a;
  border-radius: 1.15rem;
  background: rgba(34, 34, 38, .88);
}

.card-label, .timer {
  margin: 0;
  color: #9999a2;
  font-size: .875rem;
}

.action-text {
  margin: .65rem 0 1rem;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  line-height: 1.4;
}

.controls {
  display: grid;
  gap: .75rem;
  margin-top: 2rem;
}

.pair-form {
  display: grid;
  gap: .75rem;
}

input {
  width: 100%;
  min-height: 3.5rem;
  padding: .8rem 1rem;
  border: 1px solid #3b3b42;
  border-radius: 1rem;
  outline: none;
  background: #1e1e22;
  color: #f5f5f7;
  font: inherit;
  font-size: 1.1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

input:focus { border-color: #8b8b95; }

button {
  width: 100%;
  min-height: 3.5rem;
  padding: .85rem 1rem;
  border: 0;
  border-radius: 1rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
}

button:disabled { opacity: .55; }
.primary { background: #f5f5f7; color: #111113; }
.secondary { background: #303036; color: #f5f5f7; }
.request { background: #242429; color: #f5f5f7; text-align: left; }

.status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: #9d9da5;
  line-height: 1.4;
}

.hidden { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .shell { animation: appear .24s ease-out; }
  @keyframes appear { from { opacity: 0; transform: translateY(8px); } }
}
