/*
 * Phone frame + the live app demo that plays inside it (demo.js), plus the
 * "finding your circle" orbit ring the demo's matchmaking screen reuses.
 * Loaded by index.html only.
 */

/* ---------- phone ---------- */

.phone {
  /* Straight, not tilted. Titanium band around a near-black chassis. */
  position: relative;
  padding: 4px;
  border-radius: 52px;
  background: linear-gradient(160deg, #6f7076, #3a3b40 30%, #55565c 65%, #2c2d31);
  box-shadow: var(--shadow);
}

/* Side buttons sit on the titanium band. */
.phone-btn {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #5b5c62, #35363b);
}

.phone-btn.power {
  right: -3px;
  top: 27%;
  height: 64px;
}

.phone-btn.action {
  left: -3px;
  top: 18%;
  height: 24px;
}

.phone-btn.vol-up {
  left: -3px;
  top: 27%;
  height: 40px;
}

.phone-btn.vol-down {
  left: -3px;
  top: calc(27% + 48px);
  height: 40px;
}

.phone-body {
  position: relative;
  width: min(272px, 66vw);
  border-radius: 48px;
  overflow: hidden;
  /* The screenshots start flush at the top with no status bar of their own, so
     the body reserves a strip in the app's own background colour for the
     Dynamic Island to float in — otherwise the island lands on the header text.
     `--bg` is exactly the screenshot background in each theme, so the strip is
     seamless. */
  background-color: #f1f1f1;
  padding-top: 38px;
  /* Black bezel between the titanium band and the screen. */
  border: 9px solid #000;
}

/* The "experience" screenshots have a light-grey (#f1f1f1) header rather than the
   cream app background, so the reserved Dynamic-Island strip must match them or a
   colour seam shows at the top. */
.phone-body:has(.feel-shot) {
  background: #f1f1f1;
}

.phone-shot {
  display: block;
  width: 100%;
  /* Natural height — the whole screenshot shows, top header to bottom tab bar,
     with nothing cropped (its aspect ratio already matches the body). */
  height: auto;
}

/* Dynamic Island with the camera lens on its right side — floats in the strip. */
.phone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 33%;
  height: 26px;
  background: #000;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 7px;
}

.phone-camera {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #2b3a55 18%, #10131c 55%, #000 80%);
  box-shadow: inset 0 0 2px rgba(120, 160, 255, 0.5);
}

/* ---------- orbit ring (mirrors the app's "finding your circle") ---------- */

.ring {
  --ring-indigo: #5146cd;
  --ring-orange: #ff7043;
  position: relative;
  width: min(240px, 62vw);
  aspect-ratio: 1;
  margin: 0 auto 4px;
}

/* Soft orange glow under the rings. */
.ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--ring-orange) 10%, transparent) 0%,
    color-mix(in srgb, var(--ring-orange) 4%, transparent) 40%,
    transparent 70%
  );
}

/* Concentric dashed guide rings — outer/inner indigo, middle orange. The
   inset of each band is mirrored by the matching .ring-orbit below so the dots
   sit exactly on the line. */
.ring-band {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed;
}
.ring-band.outer {
  inset: 0;
  border-color: color-mix(in srgb, var(--ring-indigo) 32%, transparent);
}
.ring-band.mid {
  inset: 14%;
  border-color: color-mix(in srgb, var(--ring-orange) 38%, transparent);
}
.ring-band.inner {
  inset: 28%;
  border-color: color-mix(in srgb, var(--ring-indigo) 32%, transparent);
}

/* The Kinvo mark in the centre, spinning slowly. */
.ring-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 27%;
  color: var(--accent);
  transform: translate(-50%, -50%);
  animation: ring-spin 9s linear infinite;
  z-index: 2;
}
@keyframes ring-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Each dot: a wrapper the size of its ring that rotates around the centre, with
   the dot pinned to the top edge (on the line). Speed/direction differ per dot
   so they drift out of step. The per-dot duration/delay are set inline as REAL
   properties (not CSS vars) — iOS Safari doesn't run an animation whose
   duration/delay come from a variable. */
.ring-orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  animation: ring-orbit 9s linear infinite;
}
.ring-orbit.mid {
  inset: 14%;
}
.ring-orbit.inner {
  inset: 28%;
}
.ring-orbit.reverse {
  animation-direction: reverse;
}
@keyframes ring-orbit {
  to {
    transform: rotate(360deg);
  }
}
.ring-dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.ring-dot.indigo {
  background: var(--ring-indigo);
  box-shadow: 0 0 6px color-mix(in srgb, var(--ring-indigo) 45%, transparent);
}
.ring-dot.orange {
  background: var(--ring-orange);
  box-shadow: 0 0 6px color-mix(in srgb, var(--ring-orange) 45%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .ring-logo,
  .ring-orbit {
    animation: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * Hero phone demo (demo.js)
 *
 * The demo lays the app's screens out at a fixed 390×844 and scales them to
 * the phone body (demo.js sets --scale and the body height). Values inside
 * the phone are the app's own: #F1F1F1 canvas, white cards, #141414 ink,
 * #6E6E6E muted, tangerine primary, indigo/green accents.
 * ═══════════════════════════════════════════════════════════════════════════ */

.demo-body {
  /* No reserved island strip: the screen draws its own status bar. */
  padding-top: 0;
  background: #f1f1f1;
}

.screen {
  --scale: 0.65;
  --bg: #f1f1f1;
  --card: #fff;
  --cardb: #eae8e3;
  --ink: #141414;
  --mut: #6e6e6e;
  --ph: #a6a39c;
  --o: #ff7043;
  --os: #fbe3d8;
  --in: #5146cd;
  --ins: #e7e3fb;
  --g: #2e9b5b;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 844px;
  transform: scale(var(--scale));
  transform-origin: top left;
  background: var(--bg);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

.screen p,
.screen h3 {
  margin: 0;
  line-height: inherit;
  letter-spacing: 0;
}


/* screens + transitions */

.scr {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
}

.scr.in-right {
  animation: scr-in-right 0.42s var(--ease-out) both;
}

.scr.in-left {
  animation: scr-in-left 0.42s var(--ease-out) both;
}

.scr.out-left {
  animation: scr-out-left 0.42s var(--ease-out) both;
}

.scr.out-right {
  animation: scr-out-right 0.42s var(--ease-out) both;
}

.scr.in-fade {
  animation: scr-fade 0.5s ease both;
}

@keyframes scr-in-right {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes scr-in-left {
  from {
    transform: translateX(-28%);
    opacity: 0.4;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes scr-out-left {
  to {
    transform: translateX(-28%);
    opacity: 0.4;
  }
}

@keyframes scr-out-right {
  to {
    transform: translateX(100%);
  }
}

@keyframes scr-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.sb {
  height: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 34px 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.sb-r {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sb svg {
  display: block;
}

.screen .body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 8px 20px 0;
  display: flex;
  flex-direction: column;
}

.hdr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 20px 10px;
  flex-shrink: 0;
}

.hdr .rb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hdr .t {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hdr .t.center {
  text-align: center;
}

.hdr .t small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--mut);
  letter-spacing: 0;
  margin-top: 1px;
}

.av {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e8e6e1;
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.av img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.av.lg {
  width: 56px;
  height: 56px;
  font-size: 30px;
}

.av.sm {
  width: 28px;
  height: 28px;
  font-size: 15px;
}

.av.me {
  background: var(--os);
}

.stack {
  display: flex;
}

.stack .av {
  border: 2px solid var(--bg);
  margin-left: -10px;
}

.stack .av:first-child {
  margin-left: 0;
}

/* home */

.h-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0 12px;
}

.h-top .h-hi {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.h-top .h-loc {
  font-size: 14px;
  color: var(--mut);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.h-top .bell {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
}

.h-card {
  border-radius: 24px;
  padding: 26px 22px 24px;
  text-align: center;
  background: linear-gradient(110deg, #e6e2f1 0%, #f3ebe8 55%, #f6e0d3 100%);
}

.h-card-t {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  font-weight: 500;
}

.h-card-t b {
  font-weight: 800;
}

.h-card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--mut);
}

.pbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--o);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  border: 0;
  font-family: inherit;
  transition: transform 0.15s var(--ease-out), filter 0.15s;
}

.pbtn.block {
  display: flex;
  width: 100%;
  border-radius: 18px;
  padding: 17px;
}

.pbtn.busy {
  background: #f1b49c;
}

.pbtn.pressed {
  transform: scale(0.96);
  filter: brightness(0.92);
}

.spin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  animation: demo-spin 0.8s linear infinite;
}

@keyframes demo-spin {
  to {
    transform: rotate(360deg);
  }
}

.h-sec {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 26px 0 12px;
}

.h-empty {
  background: var(--card);
  border-radius: 20px;
  padding: 18px;
  font-size: 14px;
  color: var(--mut);
  line-height: 1.4;
}

.h-row {
  background: var(--card);
  border-radius: 20px;
  padding: 16px 16px 14px;
  animation: demo-pop 0.45s var(--ease-out) both;
}

@keyframes demo-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.h-row .r1 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.h-row .r1 .n {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.h-row .r2 {
  margin-top: 10px;
  font-size: 14px;
  color: var(--mut);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ev {
  background: var(--card);
  border-radius: 20px;
  padding: 16px;
  animation: demo-pop 0.45s var(--ease-out) both;
}

.ev .n {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.ev .m {
  margin-top: 8px;
  font-size: 14px;
  color: var(--mut);
  display: flex;
  align-items: center;
  gap: 7px;
}

.ev .m + .m {
  margin-top: 6px;
}

.ev .m svg {
  color: var(--o);
}

.ev .f {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--cardb);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--mut);
}

.pill-g {
  background: #dff3e6;
  color: var(--g);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
}

.tabs {
  flex-shrink: 0;
  margin: 12px 24px 26px;
  height: 78px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  padding: 8px;
  gap: 4px;
}

.tab {
  flex: 1;
  height: 62px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.tab.on {
  background: var(--o);
  color: #fff;
}

.tab svg {
  display: block;
}

/* matchmaking — the "finding" visual reuses the landing page's .ring; this only
   sizes it for the phone frame. */

.orbit {
  width: 220px;
  margin: 10px auto 0;
}

.orbit .ring-logo {
  width: 58px;
  height: 58px;
  color: var(--o);
}

.orbit .ring-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.f-title {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-top: 22px;
}

.f-sub {
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: var(--mut);
  margin: 10px 8px 0;
}

.cancel {
  text-align: center;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 700;
}

.m-card {
  background: var(--card);
  border-radius: 24px;
  padding: 22px 20px;
  animation: demo-pop 0.5s var(--ease-out) both;
}

.m-card .n {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.m-card .s {
  text-align: center;
  color: var(--mut);
  font-size: 15px;
  margin-top: 6px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  background: var(--os);
  color: #c8532b;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
}

.m-people {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}

.m-people div {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.m-people .av {
  margin-bottom: 6px;
}

.why {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.why-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  font-size: 15px;
}

.why-row i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ins);
  color: var(--in);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.m-actions {
  margin-top: 16px;
}

.m-actions .alt {
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  margin-top: 16px;
}

/* chat */

.chat-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 14px 8px;
  overflow: hidden;
}

.c-empty {
  text-align: center;
  padding: 0 12px 40px;
  animation: demo-pop 0.4s var(--ease-out) both;
}

.c-empty .stack {
  justify-content: center;
}

.c-empty .t {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-top: 14px;
}

.c-empty .s {
  font-size: 14px;
  color: var(--mut);
  line-height: 1.4;
  margin-top: 8px;
}

.c-hint {
  background: var(--card);
  border-radius: 22px;
  padding: 18px 16px;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.35;
}

.c-hint .hello {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--os);
  color: #c8532b;
  font-weight: 700;
  font-size: 15px;
}

.msgs {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 78%;
  animation: demo-bubble 0.4s var(--ease-out) both;
}

@keyframes demo-bubble {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.msg.mine {
  align-self: flex-end;
}

.msg .who {
  font-size: 12px;
  color: var(--mut);
  margin: 10px 0 4px 6px;
}

.msg .b {
  padding: 9px 14px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--cardb);
  font-size: 15px;
  line-height: 20px;
}

.msg.mine .b {
  background: var(--o);
  border-color: var(--o);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.msg.other .b {
  border-bottom-left-radius: 6px;
}

.msg .av.sm {
  visibility: hidden;
}

.msg.last .av.sm {
  visibility: visible;
}

.msg .col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.typing .b {
  display: flex;
  gap: 4px;
  padding: 13px 14px;
}

.typing .b i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b5b2ac;
  animation: demo-dot 1.1s ease-in-out infinite;
}

.typing .b i:nth-child(2) {
  animation-delay: 0.18s;
}

.typing .b i:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes demo-dot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.sysmsg {
  align-self: center;
  text-align: center;
  margin: 12px 0 6px;
  font-size: 13px;
  color: var(--mut);
  animation: demo-bubble 0.4s var(--ease-out) both;
}

.compose {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 34px;
  background: var(--bg);
}

.compose .in {
  flex: 1;
  min-height: 44px;
  border-radius: 22px;
  background: #f0efec;
  border: 1px solid #e6e4df;
  padding: 11px 16px 10px;
  font-size: 15px;
  line-height: 20px;
  color: var(--ph);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compose .in.typed {
  color: var(--ink);
}

.compose .in.typed::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 18px;
  background: var(--o);
  vertical-align: -3px;
  margin-left: 1px;
  animation: demo-caret 1s steps(1) infinite;
}

@keyframes demo-caret {
  50% {
    opacity: 0;
  }
}

.compose .send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--o);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* circle detail */

.d-members {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 8px;
}

.d-members div {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.d-members .av {
  margin-bottom: 6px;
}

.d-blurb {
  text-align: center;
  color: var(--mut);
  font-size: 14px;
  line-height: 1.4;
  margin: 14px 8px 0;
}

.panel {
  background: var(--card);
  border-radius: 20px;
  padding: 16px;
  margin-top: 12px;
}

.panel .pt {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel .ps {
  font-size: 13px;
  color: var(--mut);
  margin-top: 3px;
}

.sbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--card);
  border: 1.5px solid var(--o);
  color: var(--o);
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.15s var(--ease-out);
}

.sbtn.pressed {
  transform: scale(0.97);
  background: var(--os);
}

/* new event form */

.disc {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: 18px;
  padding: 14px;
}

.disc i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ins);
  color: var(--in);
  display: grid;
  place-items: center;
}

.disc .dt {
  font-weight: 700;
  font-size: 15px;
}

.disc .ds {
  font-size: 13px;
  color: var(--mut);
}

.lbl {
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
}

.lbl span {
  font-weight: 400;
  color: var(--mut);
}

.field {
  background: #fff;
  border: 1px solid #e3e2de;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 15px;
  min-height: 48px;
  color: var(--ph);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
}

.field.filled {
  color: var(--ink);
}

.field.focus {
  border-color: var(--o);
  box-shadow: 0 0 0 3px var(--os);
}

.field.focus::after {
  content: '';
  width: 2px;
  height: 18px;
  background: var(--o);
  animation: demo-caret 1s steps(1) infinite;
}

.field.ta {
  min-height: 72px;
  align-items: flex-start;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.two .lbl {
  margin-top: 0;
}

/* plan detail */

.p-card {
  background: var(--card);
  border-radius: 24px;
  padding: 22px 18px 18px;
  text-align: center;
}

.p-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--os);
  color: var(--o);
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.p-card .n {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-top: 12px;
}

.p-card .m {
  font-size: 15px;
  color: var(--mut);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.p-card .m + .m {
  margin-top: 6px;
}

.map {
  margin-top: 16px;
  border-radius: 18px;
  overflow: hidden;
  height: 150px;
  background: #2f3345;
}

.map svg {
  display: block;
  width: 100%;
  height: 100%;
}

.p-sec {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 20px 0 10px;
}

.rsvp {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.rsvp div {
  border: 1.5px solid #e3e2de;
  background: var(--card);
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--mut);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.rsvp div.on {
  border-color: var(--g);
  color: var(--g);
  background: #eef8f1;
}

.who-card {
  background: var(--card);
  border-radius: 20px;
  padding: 16px;
}

.who-h {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.who-h:first-child {
  margin-top: 0;
}

.who-h::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6e6e6e;
}

.who-h.g {
  color: var(--g);
}

.who-h.g::before {
  background: var(--g);
}

.who-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  animation: demo-bubble 0.35s var(--ease-out) both;
}

.who-row .av {
  width: 38px;
  height: 38px;
  font-size: 20px;
}

/* tap indicator */

.tap {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transform: scale(0.6);
}

.tap.show {
  animation: demo-tap 0.55s var(--ease-out) both;
}

@keyframes demo-tap {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  35% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scr,
  .msg,
  .sysmsg,
  .h-row,
  .ev,
  .m-card,
  .c-empty,
  .who-row,
  .tap {
    animation: none !important;
  }
}

/* On small screens the phone body shrinks to 66vw, so the island scales down
   with it instead of staying at its desktop size. */
@media (max-width: 480px) {
  .phone-island {
    top: 9px;
    width: 30%;
    height: 19px;
    padding-right: 5px;
  }

  .phone-camera {
    width: 9px;
    height: 9px;
  }
}
