@import url("./fonts.css");
:root {
  --teal: #7151d6;
  --cream: #fcfaf5;
  --ink: #292238;
}
body {
  font-family: "Tama Sans", system-ui, sans-serif;
  background:
    radial-gradient(ellipse at top, #e9dffc 0, transparent 550px), var(--cream);
}
header h1 em {
  font-family: inherit;
  font-weight: 650;
  color: #7857e6;
}
header .eyebrow {
  color: #7857e6;
}
.card {
  border-color: #e6dff1;
  box-shadow: 0 8px 30px #4e38600a;
}
.auth-tabs {
  display: flex;
  gap: 5px;
  background: #f0eafa;
  padding: 5px;
  border-radius: 15px;
  margin: 23px 0;
}
.auth-tabs button {
  flex: 1;
  font-size: 12px;
  background: transparent;
  color: #6c617b;
  padding: 9px 6px;
  min-height: 40px;
}
.auth-tabs button.selected {
  background: white;
  color: #7151d6;
  box-shadow: 0 3px 12px #38245f10;
}
#authForm label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 16px;
}
#authForm input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  background: #fffeff;
  border: 1px solid #dcd2e8;
  border-radius: 12px;
  padding: 13px;
  margin-top: 6px;
}
#authSubmit {
  width: 100%;
  margin-top: 20px;
}
#authForm .terms {
  font-size: 11px;
  line-height: 1.7;
  font-weight: 400;
}
#authError {
  color: #a53748;
  font-size: 12px;
}
#authForm label[hidden] {
  display: none;
}
#passwordHint {
  font-size: 10px;
  font-weight: 400;
  color: #81748e;
}
.auth-note {
  font-size: 11px;
  color: #8b7f96;
}
#qrHelp {
  border-top: 1px solid #e9e0f0;
  margin-top: 24px;
  padding-top: 10px;
}
#qrHelp p {
  font-size: 12px;
}
#qrHelp h3 {
  font-size: 15px;
}
.adopt-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin: 20px 0;
}
.adopt-choice {
  padding: 5px 3px;
  background: #f3eef8;
  color: #65547d;
  border: 2px solid transparent;
  border-radius: 14px;
  min-width: 0;
}
.adopt-choice canvas {
  width: 100%;
  display: block;
}
.adopt-choice span {
  font-size: 8px;
}
.adopt-choice.selected {
  background: #e5dbfb;
  border-color: #9176d6;
  color: #463369;
}
.adopt-grid ~ label {
  display: block;
  font-size: 13px;
}
.adopt-grid ~ label select {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 8px 0 16px;
}
#adoptSubmit {
  width: 100%;
  background: #7151d6;
}
.petcard {
  overflow: hidden;
}
.pethead h2 {
  font-size: 33px;
}
#profiles .selected {
  background: #7857e6;
}
.connection {
  font-size: 10px;
}
#accountSettings p {
  font-size: 12px;
}
#accountSettings > a {
  font-size: 12px;
  color: #7151d6;
}
#recoveryDialog code {
  display: block;
  overflow-wrap: anywhere;
  background: #f0eafa;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
}
#recoveryDialog button {
  display: block;
  width: 100%;
  margin: 10px 0;
}
#recoveryDialog {
  max-width: 460px;
}
a {
  color: #7151d6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #b392db;
  outline-offset: 3px;
}
@media (max-width: 440px) {
  .adopt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .adopt-choice span {
    font-size: 11px;
  }
  .adopt-choice canvas {
    max-width: 120px;
    margin: auto;
  }
  #actions {
    gap: 6px;
  }
  #actions button {
    padding: 10px 8px;
    font-size: 12px;
  }
  .pethead h2 {
    font-size: 28px;
  }
  header h1 {
    font-size: 37px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.code-sample {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  background: #f0eafa;
  padding: 15px;
  border-radius: 12px;
}

/* Keep secondary copy and controls readable, also on narrow screens. */
.auth-tabs button { font-size: 15px; min-height: 48px; }
#authForm label, .adopt-grid ~ label { font-size: 16px; }
#authForm .terms, #authError, #passwordHint, .auth-note { font-size: 15px; }
#passwordHint, .auth-note { color: #62566f; }
#qrHelp p, #accountSettings p, #accountSettings > a { font-size: 17px; }
#qrHelp h3 { font-size: 19px; }
.adopt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adopt-choice span { font-size: 15px; }
.connection { font-size: 14px; }
#actions button { font-size: 17px; padding: 12px 8px; }
.code-sample { font-size: 14px; }
@media (max-width: 440px) {
  .adopt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-tabs { flex-wrap: wrap; }
  .auth-tabs button { min-width: 75px; }
}
#palermo { grid-column: 1 / -1; background: #f7dfb1; color: #654829; }
.walk-place { font-size: 20px; font-weight: 750; color: #654829; margin: 10px 0; }
#activityStatus { min-height: 3.3em; }
