/* Visit Atlanta Santa — check-in, the call, and the after-visit screen. Portrait phone first.
 * Tokens and shared pieces (buttons, compact header) come from ../styles.css.
 */

body {
  background: #0c1715;
}

.screen {
  min-height: 100dvh;
}

.screen-checkin,
.screen-done {
  background: var(--cream);
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 1;
  }
}

/* ---------- 1. check-in ---------- */

.checkin-shell {
  display: flex;
  flex-direction: column;
  padding: 15px 0 33px;
}

.checkin-visual {
  position: relative;
  min-height: 230px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: var(--forest-3);
}

.checkin-visual > img {
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center 45%;
}

.checkin-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(0, 25, 17, 0.94));
}

.checkin-visual-bottom {
  position: absolute;
  left: 19px;
  right: 19px;
  bottom: 18px;
  z-index: 1;
  color: #fff;
}

.checkin-visual-bottom small {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.checkin-visual-bottom h2 {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.33;
  max-width: 320px;
  margin: 7px 0;
}

.checkin-visual-bottom p {
  font-size: 12px;
  margin: 0;
}

.checkin-form-card {
  background: #fffdf9;
  padding: 25px 20px;
  border: 1px solid #e8d9c8;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 13px 45px rgba(46, 27, 4, 0.08);
}

.step-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 25px;
  color: #877c6f;
}

.step-row .step-current,
.step-circle {
  display: grid;
  place-items: center;
  height: 25px;
  width: 25px;
  border-radius: 50%;
  background: #0e3429;
  color: #fff;
  font-weight: 800;
}

.step-circle {
  background: #ebe3d8;
  color: #72665c;
}

.step-label {
  font-weight: 700;
}

.step-row i {
  display: block;
  height: 1px;
  flex: 1;
  background: #d5c6b2;
  margin: 0 5px;
}

.checkin-form-card h1 {
  font-size: clamp(33px, 9vw, 47px);
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 13px 0 15px;
}

.checkin-form-card h1 em {
  color: #9d322b;
}

.form-intro {
  font-size: 15px;
  color: #655e55;
  line-height: 1.7;
  margin: 0 0 20px;
}

.privacy-summary {
  background: #f5eee4;
  border: 1px solid #e9d7bb;
  border-radius: 11px;
  display: flex;
  gap: 14px;
  padding: 14px;
  margin-bottom: 22px;
}

.shield-icon {
  width: 42px;
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ead9bd;
  color: #673b23;
  font-size: 28px;
}

.privacy-summary strong {
  font-size: 14px;
}

.privacy-summary p {
  font-size: 13px;
  line-height: 1.6;
  color: #6c6359;
  margin: 5px 0 0;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.field-grid label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 8px;
  font-weight: 800;
}

.field-grid small {
  font-weight: 400;
  color: #786b60;
}

.field-grid input,
.field-grid select {
  border: 1px solid #d8caba;
  border-radius: 9px;
  min-height: 48px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  font-size: 16px;
}

.field-grid input:focus,
.field-grid select:focus {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}

/* self-view switch */

.toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 22px 0 4px;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  cursor: pointer;
}

.toggle small {
  display: block;
  font-weight: 400;
  color: #786b60;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 2px;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch {
  flex: none;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: #d8caba;
  position: relative;
  transition: background 0.2s;
  margin-top: 1px;
}

.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.toggle input:checked + .switch {
  background: #0e3429;
}

.toggle input:checked + .switch::after {
  transform: translateX(18px);
}

.toggle input:focus-visible + .switch {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}

.consent-line {
  display: flex;
  gap: 12px;
  margin: 18px 0 20px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.6;
  color: #5e5853;
  cursor: pointer;
}

.consent-line input {
  width: 22px;
  height: 22px;
  accent-color: #962521;
  flex: none;
  margin: 1px 0 0;
}

.form-button {
  border-radius: 12px;
  width: 100%;
  justify-content: space-between;
  padding: 0 22px;
  min-height: 60px;
}

.blocked-card h1 {
  font-size: clamp(30px, 8vw, 42px);
  margin: 10px 0 12px;
}

/* ---------- 2. the call ---------- */

.call-shell {
  height: 100dvh;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.call-wallpaper {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(2, 14, 12, 0.95), rgba(9, 31, 23, 0.7)),
    url('../assets/santa-hero.jpg') center / cover;
  filter: blur(15px);
  transform: scale(1.06);
}

.call-frame {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #1c291f;
}

.santa-video,
.vendor-slot,
.vendor-slot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.santa-video.is-hidden {
  opacity: 0;
}

.santa-video {
  transition: opacity 0.25s ease;
}

.vendor-slot {
  background: #000;
}

.call-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 14, 14, 0.56) 0%,
    transparent 24%,
    transparent 50%,
    rgba(3, 14, 14, 0.9) 100%
  );
  pointer-events: none;
}

.call-top {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.connection-status {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 25px;
  background: rgba(0, 0, 0, 0.32);
}

.status-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
  background: #f4cf8d;
  box-shadow: 0 0 0 5px rgba(245, 198, 102, 0.14);
  animation: pulse 1.8s infinite;
}

body[data-state='live'] .status-dot {
  background: #5fe38b;
  box-shadow: 0 0 0 5px rgba(41, 190, 103, 0.19);
}

.call-time {
  font-size: 12px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.32);
  border-radius: 25px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.call-time.is-low {
  background: var(--red);
}

.call-side-note {
  position: absolute;
  right: 16px;
  top: 72px;
  display: flex;
  gap: 6px;
  flex-direction: column;
  text-align: right;
  color: rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

.call-logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 0.8;
  color: #f4d6a8;
}

.call-logo strong {
  font-style: normal;
  color: #fff;
  font-size: 23px;
}

.call-side-note small {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.5;
  margin-top: 7px;
}

/* local-only self view */

.selfview {
  position: absolute;
  left: 16px;
  top: 72px;
  width: 96px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(238, 198, 135, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  background: #000;
}

.selfview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.selfview-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4px 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
}

.caption-line {
  position: absolute;
  z-index: 3;
  bottom: 214px;
  left: 16px;
  right: 16px;
  margin: 0 auto;
  background: rgba(2, 9, 8, 0.78);
  color: #fff;
  padding: 11px 16px;
  border-radius: 8px;
  text-align: center;
  width: fit-content;
  max-width: 100%;
  font-size: 15px;
  line-height: 1.4;
}

.parent-drawer {
  position: absolute;
  z-index: 5;
  left: 16px;
  right: 16px;
  top: 70px;
  background: var(--cream);
  padding: 22px;
  border-radius: 15px;
  color: var(--ink);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.parent-drawer > button {
  position: absolute;
  right: 6px;
  top: 6px;
  background: none;
  border: 0;
  font-size: 18px;
  width: 44px;
  height: 44px;
}

.parent-drawer h3 {
  font-size: 25px;
  margin: 0 0 6px;
}

.parent-drawer p {
  font-size: 13px;
  line-height: 1.65;
  color: #69594f;
  margin: 8px 0;
}

.drawer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.drawer-actions .outline-dark-button {
  min-height: 46px;
  font-size: 13px;
}

.call-bottom {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: max(20px, env(safe-area-inset-bottom));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

.call-message span {
  font-size: 10px;
  letter-spacing: 0.17em;
  color: var(--gold);
  font-weight: 800;
}

.call-message h2 {
  font-size: 27px;
  font-weight: 600;
  margin: 8px 0 5px;
  color: #fff;
}

.call-message h2 small {
  color: var(--gold);
}

.call-message p {
  font-size: 13px;
  color: #e7dfcf;
  margin: 0;
}

.call-buttons {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2px;
}

.call-icon-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #fff;
  background: none;
  border: 0;
  min-width: 64px;
  padding: 0;
}

.call-icon-button:disabled {
  opacity: 0.45;
}

.circle-control {
  height: 56px;
  width: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  font-size: 22px;
  transition: background 0.2s;
}

.circle-control.cc {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.call-icon-button[aria-pressed='true'] .circle-control,
.call-icon-button[aria-expanded='true'] .circle-control {
  background: #f8e4bf;
  color: #1a211e;
  border-color: #f8e4bf;
}

.call-icon-button small {
  font-size: 11px;
  font-weight: 600;
}

.hangup .circle-control {
  background: #c02f2b;
  border-color: #d7534c;
}

.hangup:hover .circle-control {
  background: #e43e37;
}

/* ---------- 3. after the visit ---------- */

.done-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 0 50px;
}

.done-photo {
  height: 310px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(57, 27, 2, 0.15);
}

.done-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.done-photo::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(transparent 63%, rgba(9, 37, 28, 0.7));
}

.done-photo-mark {
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: #fff;
  z-index: 1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.done-photo-mark em {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 42px;
  letter-spacing: 0;
  color: var(--gold);
}

.done-main h1 {
  font-size: clamp(40px, 11vw, 71px);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 15px 0 16px;
}

.done-main h1 em {
  color: #ad342f;
}

.done-lede {
  color: #665d55;
  font-size: 16px;
  line-height: 1.7;
  max-width: 580px;
  margin: 0;
}

.done-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 25px 0 29px;
}

.done-actions .primary-button {
  min-height: 56px;
  font-size: 14px;
  justify-content: space-between;
}

.done-separator {
  border-top: 1px solid #dfcebb;
  margin-bottom: 24px;
}

.done-main h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.gift-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.gift-card {
  padding: 18px;
  border: 1px solid #e2d4c3;
  background: #fffcf8;
  border-radius: 11px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
  text-decoration: none;
}

.gift-card:hover {
  border-color: #c79e7c;
  background: #fbf1e5;
}

.gift-card strong {
  font-size: 15px;
}

.gift-card small {
  font-size: 12px;
  color: #75695e;
}

.gift-card span {
  font-size: 12px;
  color: #992c2b;
  font-weight: 800;
}

/* ---------- tablet / desktop ---------- */

@media (min-width: 761px) {
  .checkin-shell {
    min-height: calc(100vh - 78px);
    padding: 50px 0;
    display: grid;
    grid-template-columns: 0.8fr 1.15fr;
    max-width: 1180px;
    align-items: stretch;
  }

  .checkin-visual {
    min-height: 690px;
    border-radius: 18px 0 0 18px;
  }

  .checkin-visual > img {
    object-position: center 35%;
  }

  .checkin-visual-bottom {
    left: 36px;
    right: 31px;
    bottom: 39px;
  }

  .checkin-visual-bottom h2 {
    font-size: 33px;
    max-width: none;
    margin: 15px 0;
  }

  .checkin-visual-bottom p {
    font-size: 13px;
  }

  .checkin-form-card {
    padding: 41px clamp(30px, 4vw, 65px);
    border-radius: 0 18px 18px 0;
  }

  .step-row {
    margin-bottom: 47px;
  }

  .field-grid {
    grid-template-columns: 1fr 1fr;
  }

  .call-shell {
    padding: 18px 27px;
  }

  .call-frame {
    height: min(820px, calc(100vh - 36px));
    width: min(1040px, 100%);
    min-height: 560px;
    border-radius: 22px;
    border: 1px solid rgba(235, 194, 119, 0.28);
    box-shadow: 0 25px 75px rgba(0, 0, 0, 0.5);
  }

  .santa-video,
  .vendor-slot video {
    object-position: center 40%;
  }

  .call-top {
    top: 29px;
    left: 31px;
    right: 31px;
  }

  .connection-status {
    font-size: 12px;
    letter-spacing: 0.13em;
  }

  .call-side-note {
    right: 35px;
    top: 80px;
  }

  .call-logo {
    font-size: 25px;
  }

  .call-logo strong {
    font-size: 32px;
  }

  .call-side-note small {
    font-size: 8px;
  }

  .selfview {
    left: 31px;
    top: 84px;
    width: 150px;
  }

  .caption-line {
    bottom: 150px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: 80%;
    font-size: 16px;
  }

  .parent-drawer {
    left: auto;
    right: 28px;
    top: 140px;
    width: min(360px, 80%);
    padding: 24px;
  }

  .call-bottom {
    left: 38px;
    right: 38px;
    bottom: 30px;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
  }

  .call-message h2 {
    font-size: 31px;
  }

  .call-buttons {
    gap: 12px;
  }

  .call-icon-button {
    min-width: 70px;
  }

  .circle-control {
    height: 58px;
    width: 58px;
  }

  .done-layout {
    display: grid;
    grid-template-columns: 0.78fr 1fr;
    gap: 62px;
    align-items: center;
    min-height: calc(100vh - 78px);
    padding-block: 70px;
  }

  .done-photo {
    height: 650px;
  }

  .done-main h1 {
    font-size: clamp(45px, 4.8vw, 71px);
  }

  .done-lede {
    font-size: 17px;
  }

  .done-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .done-actions .primary-button {
    min-height: 55px;
    font-size: 13px;
    justify-content: center;
  }

  .gift-links {
    grid-template-columns: 1fr 1fr;
  }
}
