* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #eae7f0; color: #273f67; font-family: "Avenir Next", "Trebuchet MS", Arial, sans-serif; }
button, input { font: inherit; -webkit-tap-highlight-color: transparent; }
button, label { touch-action: manipulation; }
button { cursor: pointer; }
[hidden], #printImage { display: none !important; }
.phone { width:100%; height:100vh; height:100dvh; container-type:size; }
#stage {
  position:relative; isolation:isolate; width:100%; height:100%;
  /* All content fits within the central 671 pixels of the 834 × 1194 art. */
  --u:min(calc(100cqw / 671), calc(100cqh / 1194));
}
.art {
  position:absolute; inset:0; z-index:-1; pointer-events:none;
  /* Stretch only the outer background strips. The central artwork scales uniformly. */
  border:0 solid transparent;
  border-image-source:url("./assets/1.png");
  border-image-slice:12 90 fill;
  border-image-width:calc(50cqh - 585 * var(--u)) calc(50cqw - 327 * var(--u));
  border-image-repeat:stretch;
}
.position, .hit {
  position:absolute;
  left:calc(50% + (var(--x) - 417) * var(--u));
  top:calc(50% + (var(--y) - 597) * var(--u));
  width:calc(var(--w) * var(--u)); height:calc(var(--h) * var(--u));
}
.hit { color: transparent; font-size: 0; padding: 0; border: 0; border-radius: 100vmax; background: transparent; }
.hit::after { content: ""; position: absolute; inset: -5px 0; border-radius: inherit; }
.hit:active { background-color: #17265d15; }
:focus-visible { outline: 3px solid #163d79; outline-offset: 2px; }
.primary { --x:187; --y:1033; --w:460; --h:59; }
.consent { --x:173; --w:505; --y:905; --h:66; cursor:pointer; }
.consent input { position:absolute; inset:0; margin:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.tick { position:absolute; text-align:center; pointer-events:none; left:calc(2 * var(--u)); top:calc(4 * var(--u)); width:calc(23 * var(--u)); height:calc(23 * var(--u)); line-height:1; color:#fff; background:#234aa7; border-radius:4px; font-size:calc(21 * var(--u)); display:none; }
.consent input:checked + .tick { display:block; }
.consent:has(:focus-visible) { outline:3px solid #163d79; outline-offset:2px; }
.field { --x:184; --w:479; --h:61; color:#253e68; background:transparent; border:0; border-radius:calc(13 * var(--u)); padding:0 calc(15 * var(--u)); font-size:max(16px,22.5 * var(--u)); }
.field:focus { outline:2px solid #304ba3; }
#selfieCamera { --x:224; --y:379; --w:386; --h:386; object-fit:cover; border-radius:13%; transform:scaleX(-1); }
#take { --x:153; --w:528; }
#viewCard { --x:221; --y:422; --w:391; --h:391; background:transparent; border:0; padding:0; border-radius:13%; }
#qr { width:100%; height:100%; display:block; clip-path:inset(6% round 1%); image-rendering:pixelated; }
#badgeButton { --x:216; --y:418.4; --w:402; --h:562.5; border:0; border-radius:9% / 6.43%; background:linear-gradient(105deg,#b9e8f0,#e4e7f6 49%,#f7c8df); overflow:hidden; padding:0; }
#badge { display:block; width:100%; height:100%; }
#notice { position:absolute; bottom:calc(50% - 433 * var(--u)); width:84%; margin:0 8%; padding:9px 14px; border-radius:12px; background:#fffffff2; font-size:max(13px,3.1cqw); text-align:center; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; margin:-1px; }
@page { size: 63.6mm 89mm; margin: 0; }
@media print {
  html, body { background:white; width:63.6mm; height:89mm; min-height:0; margin:0; }
  .phone { display:none; }
  #printImage[src] { display:block !important; width:63.6mm; height:89mm; }
}

#nameList, #searchStatus { --x:184; --y:514; --w:479; height:auto; z-index:2; font-size:max(12px,26.7 * var(--u)); }
#nameList { background:#fff; border:1px solid #b6c5de; border-radius:8px; overflow-y:auto; max-height:calc(259 * var(--u)); box-shadow:0 4px 12px #273f6730; }
#nameList [role=option] { cursor:pointer; padding:8px 12px; min-height:44px; display:flex; flex-direction:column; justify-content:center; }
#nameList [role=option]+[role=option] { border-top:1px solid #e8edf3; }
#nameList [aria-selected=true], #nameList [role=option]:hover { background:#eff3ff; }
#nameList small { font-size:.88em; color:#53637d; }
#searchStatus { pointer-events:none; font-size:clamp(10px,2.7cqw,15px); line-height:1.15; padding-top:.4cqw; }

#home {
  --x:280; --y:935; --w:273; --h:63;
  min-height:32px; border:0; border-radius:999px;
  background:linear-gradient(105deg,#c41a4c,#284db9 53%,#8c18a5);
  color:white; box-shadow:inset 0 2px 4px #ffffff45;
  font-size:clamp(16px,4.1cqw,24px); font-weight:600; letter-spacing:.035em;
}
