/* The kiosk artwork uses the practice logo and CSS contactless rings. */
.main-content:has(.nfc-kiosk) { max-width: 59rem; }
#tablet-view:has(.nfc-kiosk) { padding: 0; overflow: hidden; }
.nfc-kiosk { display: grid; place-items: center; min-height: min(66vh, 520px); padding: clamp(1rem, 4vw, 2.8rem); }
.nfc-kiosk .nfc-copy { width: 100%; }
.nfc-kiosk h1 { margin: 12px 0 8px; font-size: clamp(2rem, 6vw, 3.7rem); text-wrap: balance; }
.nfc-kiosk p { margin: 0 auto .65em; max-width: 46ch; }
.nfc-kiosk .nfc-small { font-size: 1rem; }
.nfc-kiosk.ready { color: #fff9e9; background: radial-gradient(ellipse at 50% 31%, #205848 0%, #11382e 46%, #0b261f 84%); }
.nfc-kiosk.ready p { color: #dceae1; }
.nfc-kiosk.ready .button { border-color: #a4ceaf; }
.nfc-kiosk .nfc-pets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: .7rem; margin: 1.4rem auto 0; max-width: 40rem; }
.nfc-kiosk .nfc-pet { min-height: 72px; }
.nfc-kiosk.success { background: #eaf5e9; }
.nfc-kiosk.notice, .nfc-kiosk.walk-in { background: #fff5e0; }
.nfc-kiosk .signal { margin: 0 auto 19px; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: #73501a; background: #fce8b9; box-shadow: 0 0 0 6px #ffefd0; }
.nfc-kiosk.success .signal { color: #075846; background: #d9eddf; box-shadow: 0 0 0 6px #e4f0e5; }
.nfc-kiosk .attention { font-size: 2.1rem; font-weight: 750; }
.nfc-kiosk .tick { width: 21px; height: 38px; margin-top: -7px; transform: rotate(43deg); border: solid currentColor; border-width: 0 5px 5px 0; }
.nfc-kiosk .clock-face { width: 33px; height: 33px; position: relative; border: 3px solid currentColor; border-radius: 50%; }
.nfc-kiosk .clock-face::after { content: ""; position: absolute; width: 9px; height: 10px; top: 5px; left: 12px; border: solid currentColor; border-width: 0 0 2px 2px; border-radius: 0 0 0 2px; }
.nfc-kiosk .wait-note { margin-top: 1.1rem; padding: 10px 15px; border: 1px solid #e4c68b; border-radius: 10px; color: #52381a; background: #fff0d0; font-size: 1.1rem; }
.nfc-kiosk .wait-note strong { display: block; }
body:has(.nfc-checkin) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.main-content:has(.nfc-checkin) {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
#tablet-view:has(.nfc-checkin) {
  display: flex;
  flex: 1;
  flex-direction: column;
  border: 0;
  border-radius: 0;
}
.nfc-checkin {
  flex: 1;
  min-height: 0;
  padding: clamp(1.2rem, 4vw, 3.5rem) clamp(.85rem, 4vw, 3.5rem)
    max(clamp(1.2rem, 4vw, 3.5rem), env(safe-area-inset-bottom));
  background: #f3f7f3;
}
.nfc-checkin .nfc-copy { max-width: 64rem; }
.nfc-checkin .nfc-intro { max-width: 54ch; }
.nfc-checkin.ready .reader-illustration { height: clamp(142px, 25vw, 216px); }
.nfc-checkin .nfc-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem 1.35rem;
  margin: 0 auto 1rem;
  padding: 0;
  list-style: none;
  color: #fff8e7;
  font-size: clamp(.93rem, 2.1vw, 1.17rem);
  font-weight: 650;
}
.nfc-checkin .nfc-steps li { display: flex; align-items: center; gap: .6rem; text-align: left; counter-increment: nfc-step; }
.nfc-checkin .nfc-steps li::before {
  display: grid;
  place-items: center;
  min-width: 1.7rem;
  min-height: 1.7rem;
  border-radius: 50%;
  background: #efd69b;
  color: #193b2d;
  content: counter(nfc-step);
}
.nfc-checkin .nfc-steps { counter-reset: nfc-step; }
.nfc-checkin .nfc-greeting { color: #0d624b; font-size: clamp(1.35rem, 4vw, 2.12rem); font-weight: 700; }
.nfc-checkin .nfc-back { min-height: 48px; margin-top: 1.1rem; border-color: transparent; color: #225744; background: transparent; }
.nfc-checkin .nfc-back:hover { background: #e0ece4; }
.nfc-kiosk .nfc-recipient { margin-block: 1rem; padding: .75rem 1.15rem; border-radius: .7rem; background: #e4efe8; }
.nfc-kiosk .nfc-recipient > * { display: block; }
.nfc-kiosk .nfc-recipient strong { font-size: clamp(1.2rem, 3vw, 1.65rem); }
.nfc-kiosk .nfc-recipient small { color: #385a4d; }
@media (max-width: 550px) {
  .nfc-checkin .nfc-steps { flex-direction: column; align-items: center; }
  .nfc-checkin .nfc-steps li { width: min(100%, 22rem); }
}
.reader-illustration {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: min(515px, 100%);
  height: clamp(164px, 30vw, 247px);
  margin: 0 auto;
}
.reader-field, .reader-pulse {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(88%, 395px);
  aspect-ratio: 1.85;
  border: 1px solid #9be2bf3d;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.reader-field::before, .reader-field::after { content: ""; position: absolute; border: 1px solid #8bd8b930; border-radius: inherit; inset: 13%; }
.reader-field::after { inset: 26%; background: #aefcc113; box-shadow: 0 0 38px #6fe1ae28; }
.reader-pulse {
  border-color: #aaf4ce;
  opacity: 0;
  box-shadow: 0 0 12px #8af7c46b, inset 0 0 8px #8af7c428;
  animation: nfc-pulse 4.8s ease-out infinite;
}
.reader-pulse:nth-of-type(2) { animation-delay: -1.6s; }
.reader-pulse:nth-of-type(3) { animation-delay: -3.2s; }
@keyframes nfc-pulse {
  0% { transform: translate(-50%, -50%) scale(.52); opacity: 0; }
  17% { opacity: .64; }
  100% { transform: translate(-50%, -50%) scale(1.22); opacity: 0; }
}
.card-art {
  z-index: 1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: clamp(169px, 55%, 257px);
  aspect-ratio: 1.61;
  display: grid;
  align-content: space-between;
  transform: rotate(-10deg);
  padding: clamp(10px, 2.3vw, 20px);
  border: 1px solid #dfc789;
  border-radius: 13px;
  background:
    radial-gradient(ellipse at 12% 0%, #396e59 0%, transparent 65%),
    linear-gradient(150deg, #24513f, #183e33 50%, #0f2d25 88%);
  box-shadow: 0 3px 0 #9c8350, 0 4px 0 #c7aa6c, 0 21px 34px #071d18bf;
  color: #f1d894;
  text-align: left;
}
.card-art::before, .card-art::after { content: ""; position: absolute; pointer-events: none; z-index: -1; }
.card-art::before {
  width: 140%;
  aspect-ratio: 1;
  bottom: -111%;
  left: -33%;
  border-radius: 50%;
  border: 1px solid #e9cf8d6e;
  box-shadow: 0 0 0 10px #e9cf8d12, 0 0 0 22px #e9cf8d16, 0 0 0 34px #e9cf8d15;
}
.card-art::after { inset: 0; background: repeating-linear-gradient(120deg, #ffffff0b 0 1px, transparent 1px 5px); }
.card-mark { position: relative; display: block; width: 55px; height: 43px; overflow: hidden; }
.card-mark img { position: absolute; top: -1px; left: 50%; width: 168px; height: auto; max-width: none; transform: translateX(-50%); }
.card-label strong { display: block; font-size: clamp(.66rem, 1.45vw, .91rem); font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
.card-label small { display: block; color: #deebdc; font-size: clamp(.57rem, 1.2vw, .75rem); white-space: nowrap; }
.card-nfc {
  position: absolute;
  inset: 11% 8% auto auto;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid #f3d69492;
  border-radius: 50%;
  color: #ffe6ac;
  background: #a9894226;
}
.waves { display: block; width: 25px; height: 25px; position: relative; }
.waves i { position: absolute; top: 50%; left: 0; transform: translateY(-50%); width: var(--size); height: var(--size); border: 2px solid transparent; border-right-color: currentColor; border-radius: 50%; }
.waves i:nth-child(1) { --size: 11px; }
.waves i:nth-child(2) { --size: 17px; }
.waves i:nth-child(3) { --size: 23px; }
@media (max-width: 490px) {
  .card-mark { width: 41px; height: 33px; }
  .card-mark img { width: 126px; }
  .card-nfc { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .reader-pulse { animation: none; } }
