:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #fff;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #fff; }
body[data-page="success"], body[data-page="checkout"] { background: #fcf9f2; }
body[data-page="personnel"] { background: #fff; }
[hidden] { display: none !important; }
.phone-shell { width: 100%; max-width: 480px; margin: 0 auto; }
.stage { position: relative; width: 100%; overflow: hidden; }
.success-stage { --crop-top: 300px; aspect-ratio: 1280 / 2481; }
.home-stage, .personnel-stage { --crop-top: 273px; aspect-ratio: 1170 / 2259; }
.artboard {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  transform: scale(var(--scale, .32)) translateY(calc(0px - var(--crop-top, 0px)));
  overflow: hidden;
}
.success-artboard { width: 1280px; height: 2781px; background: #fcf9f2; }
.home-artboard, .personnel-artboard { width: 1170px; height: 2532px; }
.home-artboard { background: #fff; }
.personnel-artboard { background: #fff; }
.page-image {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.home-phone-patch { position: absolute; left: 267px; top: 554px; width: 431px; height: 78px; overflow: hidden; }
.home-phone-strip {
  position: absolute;
  left: -267px;
  top: 0;
  width: 1170px;
  height: 13px;
  background: url("assets/home.jpg") no-repeat 0 -539px / 1170px 2532px;
  transform: scaleY(6);
  transform-origin: top left;
}
.home-phone {
  position: absolute;
  left: 272px;
  top: 554px;
  width: 420px;
  height: 78px;
  display: flex;
  align-items: center;
  color: #e5f0de;
  font-family: Arial, sans-serif;
  font-size: 56px;
  font-weight: 400;
  letter-spacing: 5px;
  line-height: 1;
  white-space: nowrap;
}
.home-birth-patch { position: absolute; left: 326px; top: 647px; width: 420px; height: 76px; overflow: hidden; }
.home-birth-strip {
  position: absolute;
  left: -326px;
  top: 0;
  width: 1170px;
  height: 10px;
  background: url("assets/home.jpg") no-repeat 0 -632px / 1170px 2532px;
  transform: scaleY(7.6);
  transform-origin: top left;
}
.home-birth-date {
  position: absolute;
  left: 334px;
  top: 647px;
  width: 410px;
  height: 76px;
  display: flex;
  align-items: center;
  color: #e5f0de;
  font-family: Arial, sans-serif;
  font-size: 56px;
  font-weight: 400;
  letter-spacing: 6px;
  line-height: 1;
  white-space: nowrap;
}
.success-stamp {
  position: absolute;
  left: 468px;
  top: 1110px;
  width: 632px;
  height: 78px;
  display: flex;
  align-items: center;
  gap: 39px;
  padding-left: 4px;
  background: #fff;
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 51px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.success-date { letter-spacing: 2px; }
.success-time { letter-spacing: 1.5px; }
/* Reuse blank horizontal strips from the untouched reference photo. */
.home-record-patch { position: absolute; left: 52px; top: 958px; width: 1066px; height: 107px; overflow: hidden; }
.home-record-strip {
  position: absolute;
  left: -52px;
  top: 0;
  width: 1170px;
  height: 18px;
  background: url("assets/home.jpg") no-repeat 0 -940px / 1170px 2532px;
  transform: scaleY(6);
  transform-origin: top left;
}
.home-record {
  position: absolute;
  left: 238px;
  top: 969px;
  width: 695px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fffce7;
  font-family: Arial, sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -.7px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1;
}
.home-now-patch { position: absolute; left: 616px; top: 1080px; width: 215px; height: 65px; overflow: hidden; }
.home-now-strip {
  position: absolute;
  left: -616px;
  top: 0;
  width: 1170px;
  height: 8px;
  background: url("assets/home.jpg") no-repeat 0 -1070px / 1170px 2532px;
  transform: scaleY(9);
  transform-origin: top left;
}
.home-now {
  position: absolute;
  left: 624px;
  top: 1080px;
  width: 215px;
  height: 65px;
  display: flex;
  align-items: center;
  color: #fffce7;
  font-family: Arial, sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1.2px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1;
}
.hotspot {
  position: absolute;
  display: block;
  z-index: 2;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.hotspot:focus-visible { outline: 6px solid #165dff; outline-offset: -6px; border-radius: 8px; }
.hotspot:active { background: rgb(0 0 0 / 3%); }
.success-done { left: 120px; top: 1400px; width: 1040px; height: 169px; border-radius: 6px; }
.home-check-in { left: 48px; top: 1237px; width: 502px; height: 153px; border-radius: 80px 80px 0 80px; }
.home-check-out { left: 620px; top: 1237px; width: 504px; height: 153px; border-radius: 80px 80px 80px 0; }
.home-personnel { left: 44px; top: 1474px; width: 523px; height: 301px; border-radius: 12px; }
.personnel-photo {
  position: absolute;
  left: 722px;
  top: 364px;
  width: 348px;
  height: 464px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 10px rgb(0 0 0 / 12%);
}
.personnel-photo::before {
  content: "";
  position: absolute;
  left: 0;
  top: -24px;
  width: 100%;
  height: 22px;
  background: #fff;
}
.personnel-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
.personnel-value {
  position: absolute;
  display: flex;
  align-items: center;
  margin: 0;
  padding-left: 8px;
  background: #fff;
  color: #080b0b;
  font-size: 39px;
  font-weight: 500;
  letter-spacing: 4px;
  line-height: 1;
  white-space: nowrap;
}
.personnel-name { left: 116px; top: 493px; width: 240px; height: 61px; }
.personnel-phone { left: 412px; top: 493px; width: 306px; height: 61px; font-family: Arial, sans-serif; letter-spacing: 5px; }
.personnel-id { left: 115px; top: 632px; width: 580px; height: 61px; font-family: Arial, sans-serif; letter-spacing: 7px; }
.personnel-gender { left: 412px; top: 767px; width: 240px; height: 61px; }
.personnel-privacy { left: 300px; top: 340px; width: 115px; height: 94px; }
.privacy-icon {
  position: absolute;
  left: 26px;
  top: 25px;
  width: 54px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #b5b8b2;
  pointer-events: none;
}
.privacy-icon svg { width: 44px; height: 40px; }
.noscript { position: fixed; bottom: 24px; left: 16px; right: 16px; padding: 16px; color: #111; background: #fff; border: 1px solid #ddd; }
@media (min-width: 600px) {
  body, body[data-page] { background: #eef0f4; padding: 24px 0; }
  .phone-shell { width: min(480px, calc((100dvh - 48px) * .5159)); box-shadow: 0 12px 50px rgb(30 40 60 / 12%); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
