/* Playverse -- the family area. Shared pieces live in app.css; everything
   here is .pa- prefixed. Phones first, logical properties only (right-to-left
   comes free), boxes keep their size when filled (text is cut, never wrapped
   into a taller box). */

.pa-grow { flex: 1 1 auto; min-width: 0; }
.pa-title { flex-wrap: wrap; }
.pa-money { font-weight: 800; white-space: nowrap; }
.pa-kind .ic.go, .pa-kid .ic.go, .pa-pts .ic.go { color: var(--muted); }
.avatar.pa-xs { width: 24px; height: 24px; font-size: 12px; }
.chip .avatar.pa-xs { margin-inline-start: -6px; }
.btn.pa-danger { color: var(--bad); }
.btn.pa-danger:hover { background: var(--bad-soft); color: var(--bad); }

/* --- home ------------------------------------------------------------------------ */
.pa-hello h1 { font-size: 28px; }
.pa-welcome { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
              padding: 28px 18px; margin-bottom: 14px; }
.pa-welcome h2 { font-size: 22px; color: var(--c-ink); }

/* the children block (refreshed every 30 s): one fixed-height card each */
.pa-kid { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; height: 100%;
          min-height: 100px; padding: 14px 16px; padding-inline-start: 20px; background: #fff;
          border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); color: var(--ink); min-width: 0; }
.pa-kid::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 6px; background: var(--c); }
a.pa-kid:hover { text-decoration: none; border-color: var(--c); }
.pa-kid.is-in { background: #F6FBF8; border-color: #CDE9DC; }
.pa-kid-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pa-kid-main > b { font-size: 19px; line-height: 1.3; }
.pa-kid-live { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-height: 28px; min-width: 0;
               font-size: 14px; font-weight: 700; color: var(--ink-2); }
.pa-kid-live .ic { width: 16px; height: 16px; color: var(--c-ink, var(--brand)); }
.pa-kid-live.is-book { color: var(--brand); }
.pa-kid-live.is-book .ic { color: var(--brand); }
.pa-timer { font-weight: 800; color: var(--ok); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* quick actions: four fixed tiles */
.pa-quick { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .pa-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pa-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 106px; padding: 14px;
           border-radius: var(--r); background: var(--c-soft); color: var(--c-ink); border: 1.5px solid transparent;
           font-weight: 800; font-size: 17px; min-width: 0; }
.pa-tile:hover { text-decoration: none; border-color: var(--c); color: var(--c-ink); }
.pa-tile > span:last-child { overflow-wrap: break-word; line-height: 1.3; }

/* points card */
.pa-pts { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
a.pa-pts:hover { text-decoration: none; border-color: var(--brand); color: var(--ink); }
.pa-pts-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pa-pts-num { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.pa-pts-num b { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.pa-pts-num span { font-weight: 700; color: var(--muted); }

/* --- children ------------------------------------------------------------------------ */
.pa-child { display: flex; flex-direction: column; gap: 14px; }
.pa-child-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pa-child-top h2 { font-size: 19px; }
.pa-lines { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: auto; min-width: 0; }
.pa-line { display: flex; align-items: center; gap: 8px; min-height: 26px; max-width: 100%; min-width: 0; font-size: 14px;
           font-weight: 700; color: var(--ink-2); }
.pa-line .ic { width: 17px; height: 17px; color: var(--muted); }
.badge.pa-allergy { flex: 0 1 auto; max-width: 100%; min-width: 0; background: var(--bad-soft); color: var(--bad); }
.pa-allergy > span { min-width: 0; overflow-wrap: break-word; }

.pa-preview { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pa-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pa-pick { position: relative; display: inline-flex; cursor: pointer; margin: 0; }
.pa-pick input, .pa-color input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.pa-pick span { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 18px; border-radius: 999px; background: #fff;
                border: 1.5px solid var(--line); color: var(--ink-2); font-weight: 800; }
.pa-pick input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pa-pick input:focus-visible + span { outline: 3px solid #E3D7EC; }
.pa-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.pa-color { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; cursor: pointer; margin: 0; }
.pa-color span { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.pa-color input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--c); }
.pa-color input:focus-visible + span { outline: 3px solid #E3D7EC; outline-offset: 6px; }

.pa-added { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 30px 18px;
            max-width: 560px; margin-block-start: 8px; margin-inline: auto; }
.pa-added h1 { font-size: 26px; }
.pa-added-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }

/* --- booking ------------------------------------------------------------------------- */
.pa-kind { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 14px; height: 100%;
           min-height: 108px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
           box-shadow: var(--shadow); color: var(--ink); min-width: 0; }
.pa-kind::after { content: ""; position: absolute; z-index: -1; width: 150px; height: 150px; border-radius: 50%;
                  inset-inline-end: -60px; top: -70px; background: var(--c-soft); }
a.pa-kind:hover { text-decoration: none; border-color: var(--c); color: var(--ink); }
.pa-kind-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pa-kind-body > b { font-size: 19px; line-height: 1.3; }

.pa-book { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.pa-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 960px) {
  .pa-book { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .pa-side { position: sticky; top: 84px; }
}
.pa-days { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pa-code { text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.pa-q { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 700; min-width: 0; }
.pa-q .ic { width: 16px; height: 16px; }
.pa-q-ok { color: var(--ok); }
.pa-q-bad { color: var(--bad); }
.pa-pkgs .price b { font-size: 18px; }
.pa-frames .choice-body { gap: 8px; }

/* the live total (also the price card of a booking) */
.pa-summary { display: flex; flex-direction: column; gap: 14px; }
.pa-summary .card-title { margin: 0; }
.pa-sum { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pa-sum > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.pa-sum dt { min-width: 0; color: var(--muted); font-weight: 700; font-size: 15px; overflow-wrap: break-word; }
.pa-sum dd { margin: 0; flex: none; display: inline-flex; align-items: center; gap: 4px; font-weight: 800; white-space: nowrap; }
.pa-sum dd .ic { width: 16px; height: 16px; }
.pa-sum .pa-sum-total { padding-top: 10px; border-top: 1.5px dashed var(--line); }
.pa-sum .pa-sum-total dt { color: var(--ink); font-size: 16px; }
.pa-sum .pa-sum-total dd { font-size: 26px; line-height: 1.1; }
.pa-minus dd { color: var(--ok); }
.pa-earn dd { color: var(--warn); }

/* --- one booking ------------------------------------------------------------------------ */
.pa-booking { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .pa-booking { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.pa-ticket .ticket-top h1 { font-size: 24px; color: #fff; }
.pa-when { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 700; color: rgba(255, 255, 255, .92); }
.pa-when .ic { width: 18px; height: 18px; }

.pa-steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.pa-steps li { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
               font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }
.pa-steps li::before { content: ""; position: absolute; top: 9px; height: 3px; border-radius: 3px; background: var(--line);
                       inset-inline-start: calc(-50% + 4px); inset-inline-end: calc(50% + 10px); }
.pa-steps li:first-child::before { display: none; }
.pa-steps li.is-done::before { background: var(--ok); }
.pa-steps i { position: relative; display: block; flex: none; width: 20px; height: 20px; border-radius: 50%; background: #fff;
              border: 3px solid var(--line); }
.pa-steps li.is-done i { background: var(--ok); border-color: var(--ok); }
.pa-steps li.is-now { color: var(--ink); }
.pa-steps li.is-now i { box-shadow: 0 0 0 4px var(--ok-soft); }
.pa-steps span { max-width: 100%; overflow-wrap: break-word; text-align: center; line-height: 1.25; }

.pa-pickup { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; border-radius: var(--r);
             background: var(--soft); text-align: center; }
.pa-pickup .code-big { color: var(--brand-d); }
.pa-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; color: var(--ink-2); min-width: 0; }
.pa-note .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--muted); }
.pa-frame { margin: 0; max-width: 260px; display: flex; flex-direction: column; gap: 8px; }
.pa-amount { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 14px;
             border-radius: var(--r-sm); background: var(--c-soft); color: var(--c-ink); font-weight: 700; min-width: 0; }
.pa-amount b { font-size: 24px; white-space: nowrap; }

/* --- points ---------------------------------------------------------------------------- */
.pa-hero { display: flex; flex-direction: column; gap: 12px; }
.pa-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.pa-hero-label { display: block; font-weight: 800; color: rgba(255, 255, 255, .88); }
.pa-hero-line { font-weight: 800; }
.pa-hero-rule { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; color: rgba(255, 255, 255, .9); }
.pa-hero-rule .ic { width: 16px; height: 16px; }
.pa-reward { display: flex; flex-direction: column; gap: 10px; }
.pa-reward .card-title { margin: 0; }
.pa-reward p { color: var(--muted); font-size: 14px; }
.pa-reward-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; min-width: 0; }
.pa-voucher .ticket-top { padding: 14px 16px; gap: 2px; }
.pa-voucher .ticket-body { align-items: center; text-align: center; gap: 6px; padding: 14px 16px 16px; }
.pa-voucher .code-mid { color: var(--brand-d); }
.pa-spent .row-title { color: var(--ink-2); }
.pa-delta { font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pa-delta.is-up { color: var(--ok); }
.pa-delta.is-down { color: var(--bad); }

/* the booking-choice cards: the price may take two lines ("From" above the amount), never more width */
.pa-kind .price { white-space: normal; flex-wrap: wrap; flex: 0 1 auto; min-width: 0; row-gap: 0; }
.pa-kind .price b { white-space: nowrap; }
