:root {
  color-scheme: dark;
  --ink: #110d16;
  --surface: #211a29;
  --stroke: #ffffff20;
  --pink: #ff62a1;
  --muted: #cbbdd0;
  font: 16px system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(ellipse at 50% 0%, #391c36 0%, transparent 64%), var(--ink);
  color: #fff5fc;
}
main {
  width: min(100%, 29rem);
  margin: auto;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
}
.brand { text-align: center; margin-bottom: 1.4rem; }
.brand-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  aspect-ratio: 1;
  margin: 0 auto .65rem;
  border: 1px solid #ff62a15e;
  border-radius: 1rem;
  background: #ff62a11c;
  color: var(--pink);
  box-shadow: 0 0 1.6rem #ff398331;
}
.brand-icon svg { width: 1.65rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 7vw, 2.5rem); letter-spacing: -.045em; line-height: 1.1; }
h2 { font-size: 1.45rem; line-height: 1.18; letter-spacing: -.025em; overflow-wrap: anywhere; }
strong, h1 span { color: var(--pink); }
p { line-height: 1.5; color: var(--muted); }
.brand p, #profile p { font-size: .9rem; margin-top: .35rem; }
.account {
  width: fit-content;
  margin: 0 auto 1rem;
  border: 1px solid var(--stroke);
  border-radius: 2rem;
  background: #ffffff09;
  padding: .3rem .75rem;
  font-size: .79rem;
}
#profile { text-align: center; margin: 1.35rem 0; }
.portrait {
  width: clamp(8rem, 41vw, 10.5rem);
  aspect-ratio: 1;
  margin: 0 auto .9rem;
  padding: .24rem;
  border-radius: 50%;
  background: linear-gradient(140deg, #ffc5de, #ff2c82 65%, #77336e);
  box-shadow: 0 0 2rem #f0368060;
}
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: .15rem solid var(--ink); }
.card, dialog {
  padding: 1.15rem;
  border: 1px solid var(--stroke);
  border-radius: 1.45rem;
  background: linear-gradient(145deg, #2a2033, var(--surface));
  box-shadow: 0 .65rem 1.7rem #0003;
}
.card + .card { margin-top: .8rem; }
#call[data-status="waiting"] { border-color: #ff62a17a; }
#call[data-status="accepted"] { border-color: #81e2ba66; }
.eyebrow { color: var(--pink); font-size: .76rem; font-weight: 750; margin-bottom: .45rem; }
#call[data-status="accepted"] > .eyebrow { color: #9aefcc; }
.intro, #idle h2 + p, #detail:not(:empty), dialog h2 + p { margin: .55rem 0 .9rem; }
label { display: block; margin-top: .75rem; font-size: .92rem; }
input, select, button, .map-link { font: inherit; }
input:not([type="checkbox"]), select {
  display: block;
  width: 100%;
  min-height: 3rem;
  margin-top: .35rem;
  padding: .65rem .75rem;
  border: 1px solid var(--stroke);
  border-radius: .8rem;
  background: #100d16;
  font-size: 1rem;
}
button, .map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  margin-top: .65rem;
  padding: .6rem .85rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  background: linear-gradient(110deg, #ff84b5, #ff4b93);
  color: #270514;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button:active:not(:disabled), .map-link:active { filter: brightness(.88); }
button:disabled { opacity: .5; cursor: default; }
button.secondary, .map-link { background: #ffffff0b; border-color: var(--stroke); color: #ffe1ee; }
.map-link { color: #ffb4d2; }
:focus-visible { outline: 2px solid #ffb4d2; outline-offset: 3px; }
.check { display: flex; gap: .65rem; align-items: flex-start; margin: 0 0 .35rem; line-height: 1.4; }
.check input { accent-color: #ff62a1; width: 1.2rem; height: 1.2rem; flex-shrink: 0; margin: 0; }
#response { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
#tracking { margin-top: .85rem; padding: .8rem; border-radius: 1rem; background: #100d167a; }
#tracking .eyebrow { margin-bottom: .2rem; }
#tracking > button { margin: .3rem 0 .65rem; }
#notice:empty, #confirm-error:empty { display: none; }
#notice, #confirm-error { color: #ffc4dd; margin: .6rem 0; font-size: .88rem; }
footer { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin-top: .9rem; }
footer button { width: auto; margin: 0; font-size: .84rem; }
dialog { width: min(25rem, calc(100% - 2rem)); color: inherit; }
dialog::backdrop { background: #0b0710c9; }

@media (max-width: 520px) and (orientation: portrait) {
  main {
    min-height: 100dvh;
    padding: max(.7rem, env(safe-area-inset-top)) 1rem max(.7rem, env(safe-area-inset-bottom));
  }
  .brand { margin-bottom: clamp(.4rem, 1.7dvh, .85rem); }
  .brand-icon { width: clamp(2rem, 5.5dvh, 2.7rem); margin-bottom: .3rem; }
  .brand-icon svg { width: 58%; }
  h1 { font-size: clamp(1.55rem, 4.5dvh, 2rem); }
  h2 { font-size: 1.2rem; }
  .brand p { margin-top: .22rem; font-size: .8rem; }
  .account { margin-bottom: .55rem; }
  #profile { margin: .55rem 0 .8rem; }
  .portrait { width: clamp(4.5rem, 19dvh, 9rem); margin-bottom: .45rem; }
  #profile p { margin-top: .15rem; }
  .card, dialog { padding: .85rem; }
  .card + .card { margin-top: .5rem; }
  button, .map-link { min-height: 44px; margin-top: .4rem; }
  #tracking { margin-top: .5rem; padding: .55rem; }
  #tracking > button { margin: .2rem 0 .4rem; }
  footer { gap: .35rem; margin-top: .55rem; }
  footer button { margin: 0; padding-inline: .65rem; }
  #detail:not(:empty), .intro, dialog h2 + p { margin: .35rem 0 .55rem; }
  dialog { max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 1rem); }
}

@media (max-width: 520px) and (orientation: portrait) and (max-height: 630px) {
  .brand p, #profile p { display: none; }
  .brand-icon { margin-bottom: .2rem; }
  .portrait { width: clamp(4rem, 15dvh, 6rem); }
}
