/* ReelKept by Lumi: shared screen components for hosts, guests and the owner.
   Loaded after site.css. Everything here works at 320px and up, respects reduced motion, and keeps every tap target at 44px or more. */

/* ---- page frames -------------------------------------------------------------------------------------------- */
html.dark-page, html.dark-page body { background: var(--ink); }
.page-hero {
  position: relative; overflow: hidden; border-radius: 28px; padding: 26px 22px; color: var(--paper);
  background: radial-gradient(120% 140% at 100% 0%, #6b3b4a 0%, rgba(107, 59, 74, 0) 55%), radial-gradient(90% 120% at 0% 100%, #2f3d78 0%, rgba(47, 61, 120, 0) 60%), var(--ink);
  display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr);
}
.page-hero h1 { font-size: clamp(28px, 6vw, 42px); line-height: 1.04; overflow-wrap: anywhere; }
.page-hero p { margin: 0; color: rgba(247, 243, 236, .86); max-width: 52ch; }
.page-hero .art { display: none; }
@media (min-width: 760px) { .page-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; padding: 34px 36px; } .page-hero .art { display: block; } }
.eyebrow { font: 600 13px/1 ui-monospace, "DM Mono", monospace; letter-spacing: .1em; color: var(--tape); text-transform: uppercase; }
.page-hero .eyebrow { color: var(--tape); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- chips and status --------------------------------------------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 5px 12px; border-radius: 16px; font-size: 13px; font-weight: 700; line-height: 1.25; background: rgba(247, 243, 236, .14); color: inherit; border: 1px solid rgba(247, 243, 236, .25); max-width: 100%; overflow-wrap: anywhere; }
.chip.on-light { background: #fff; border-color: var(--soft); color: var(--ink); }
.chip.open { background: #fff4d6; color: #6a4a00; border-color: #f0d68a; }
.chip.submitted, .chip.making { background: #e8e6ff; color: #2c2784; border-color: #c9c4ff; }
.chip.delivered, .chip.ok { background: #dff3e7; color: #17452b; border-color: #aedcbf; }
.chip.warn { background: #ffe9e4; color: #7a1f14; border-color: #f4b6aa; }
.chip.muted { background: #efeae0; color: #4a4960; border-color: #e0d8c8; }

/* ---- stepper ------------------------------------------------------------------------------------------------ */
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: s; }
.progress li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 4px; }
.progress li::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 15px/1 "Bricolage Grotesque", sans-serif; background: #fff; border: 2px solid var(--soft); color: var(--muted); position: relative; z-index: 1; }
.progress li::after { content: ""; position: absolute; top: 21px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 3px; background: var(--soft); border-radius: 2px; }
.progress li:last-child::after { display: none; }
.progress li.done { color: var(--ok); }
.progress li.done::before { content: "\2713"; background: var(--ok); border-color: var(--ok); color: #fff; }
.progress li.done::after { background: var(--ok); }
.progress li.now { color: var(--ink); }
.progress li.now::before { background: var(--rec); border-color: var(--rec); color: #fff; box-shadow: 0 0 0 5px rgba(214, 58, 38, .18); }
.progress.on-dark li { color: rgba(247, 243, 236, .7); }
.progress.on-dark li::before { background: var(--night); border-color: #4a4960; color: rgba(247, 243, 236, .8); }
.progress.on-dark li::after { background: #4a4960; }
.progress.on-dark li.now { color: #fff; }
.progress.on-dark li.done { color: #7fe0a7; }
@media (max-width: 420px) { .progress li { font-size: 12px; } .progress li::before { width: 30px; height: 30px; } .progress li::after { top: 19px; left: calc(50% + 19px); right: calc(-50% + 19px); } }

/* ---- next step card, tiles, callouts ----------------------------------------------------------------------- */
.nextstep { display: grid; gap: 14px; grid-template-columns: auto minmax(0, 1fr); align-items: center; background: #fff; border: 3px solid var(--ink); border-radius: 22px; padding: 18px; box-shadow: 6px 6px 0 var(--tape); }
.nextstep .art { width: 56px; height: 56px; }
.nextstep h2 { font-size: 21px; margin-bottom: 2px; }
.nextstep p { margin: 0; color: var(--muted); font-size: 15px; }
.nextstep .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 10px; }
.tile { background: #fff; color: var(--ink); border: 2px solid var(--soft); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile b { font: 800 28px/1.05 "Bricolage Grotesque", sans-serif; letter-spacing: -.03em; overflow-wrap: anywhere; }
.tile.txt b { font-size: 19px; }
.tile span { font-size: 13px; font-weight: 600; color: var(--muted); }
.meter { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--rec); border-radius: 99px; }
.callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; border-radius: 16px; padding: 14px 16px; font-size: 15px; background: #fff8e6; border: 2px solid #f0d68a; color: #4b3500; }
.callout.info { background: #eef1ff; border-color: #c9d0ff; color: #232a63; }
.callout.ok { background: #e6f4ec; border-color: #aedcbf; color: #17452b; }
.callout.warn { background: #ffe9e4; border-color: #f4b6aa; color: #7a1f14; }
.callout b { display: block; }
.callout p { margin: 2px 0 0; }
.on-dark-callout { background: var(--night); border-color: #4a4960; color: var(--soft); }
.ic { vertical-align: -4px; flex: none; }

/* ---- tabs --------------------------------------------------------------------------------------------------- */
.tabbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 2px; margin: 0 -2px; background: var(--paper); }
@media (min-width: 720px) { .tabbar { position: sticky; top: 0; z-index: 20; } }
.pilltab { flex: 1 1 auto; justify-content: center; font: inherit; font-weight: 700; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.pilltab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.pilltab .n { background: var(--rec); color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 8px; }
.tabpanel[hidden] { display: none !important; }
.tabpanel { display: flex; flex-direction: column; gap: 22px; }

/* ---- share block -------------------------------------------------------------------------------------------- */
.sharegrid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .sharegrid { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; } }
.bigcode { font: 800 clamp(40px, 11vw, 64px)/1 ui-monospace, "DM Mono", monospace; letter-spacing: .12em; background: var(--ink); color: var(--tape); border-radius: 20px; padding: 18px 20px; text-align: center; overflow-wrap: anywhere; }
.qrbox { background: #fff; border: 3px solid var(--ink); border-radius: 20px; padding: 14px; display: grid; place-items: center; }
.qrbox svg, .qrbox canvas, .qrbox img { width: 100%; height: auto; max-width: 240px; }

/* ---- tutorial / tour --------------------------------------------------------------------------------------- */
.tour-back { position: fixed; inset: 0; background: rgba(10, 9, 14, .62); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; padding: 0; animation: tour-fade .2s ease-out; }
.tour { width: 100%; max-width: 560px; background: var(--paper); color: var(--ink); border-radius: 28px 28px 0 0; padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 14px; max-height: 92vh; overflow-y: auto; animation: tour-up .28s ease-out; }
@media (min-width: 720px) { .tour-back { align-items: center; padding: 24px; } .tour { border-radius: 28px; } }
.tour .art { background: var(--ink); border-radius: 20px; padding: 14px; display: grid; place-items: center; min-height: 150px; }
.tour .art svg { max-height: 150px; width: auto; max-width: 100%; }
.tour h2 { font-size: 26px; }
.tour p { margin: 0; font-size: 17px; color: #34324a; }
.tour ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; }
.tour-dots { display: flex; gap: 8px; justify-content: center; }
.tour-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--soft); }
.tour-dots i.on { background: var(--rec); width: 26px; border-radius: 6px; }
.tour-btns { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.tour-btns .btn { min-height: 52px; }
.tour-skip { background: none; border: 0; font: inherit; font-weight: 600; color: var(--muted); min-height: 44px; padding: 0 8px; cursor: pointer; text-decoration: underline; }
@keyframes tour-up { from { transform: translateY(24px); opacity: .0; } to { transform: none; opacity: 1; } }
@keyframes tour-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tour, .tour-back { animation: none; } }

/* ---- guest screens ------------------------------------------------------------------------------------------ */
.guest-card { background: var(--night); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 10px; color: var(--paper); }
.guest-card h2 { font-size: 20px; }
.guest-card ul { margin: 0; padding-left: 20px; line-height: 1.65; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--night); border-radius: 16px; padding: 12px 14px; min-height: 56px; }
.checklist .tick { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #6a6890; display: grid; place-items: center; color: transparent; }
.checklist li.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.checklist b { display: block; }
.checklist small { color: var(--soft); font-size: 13px; }
.howstrip { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.howstrip div { background: var(--night); border-radius: 16px; padding: 12px 8px; text-align: center; font-size: 13px; font-weight: 700; color: var(--paper); display: grid; gap: 6px; justify-items: center; }
.howstrip .art svg { width: 44px; height: 44px; }

/* ---- how it works page ------------------------------------------------------------------------------------- */
.hiw-steps { display: grid; gap: 16px; }
.hiw-step { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); background: #fff; border: 2px solid var(--ink); border-radius: 24px; padding: 20px; }
@media (min-width: 720px) { .hiw-step { grid-template-columns: 96px minmax(0, 1fr); align-items: center; } }
.hiw-step .art svg { width: 84px; height: 84px; }
.hiw-step h3 { font-size: 22px; margin-bottom: 4px; }
.hiw-step p, .hiw-step ul { margin: 0 0 6px; }
.hiw-step ul { padding-left: 20px; display: grid; gap: 4px; }
.num { font: 600 13px/1 ui-monospace, monospace; color: var(--rec); letter-spacing: .1em; }
.hiw-switch { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 5px; }
.hiw-switch button { font: inherit; font-weight: 700; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.hiw-switch button[aria-selected="true"] { background: var(--ink); color: var(--paper); }

/* ---- accounts and events ------------------------------------------------------------------------------------ */
.evcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; background: #fff; border: 2px solid var(--ink); border-radius: 20px; padding: 16px; text-decoration: none; color: var(--ink); }
.evcard:hover { box-shadow: 5px 5px 0 var(--tape); }
.evcard .t { font: 800 19px/1.15 "Bricolage Grotesque", sans-serif; overflow-wrap: anywhere; }
.evcard .m { font-size: 14px; color: var(--muted); }
.evcard .go { grid-column: 1 / -1; font-weight: 700; }
.ticket { position: relative; background: var(--ink); color: var(--paper); border-radius: 20px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: #fff; transform: translateY(-50%); }
.ticket::before { left: -9px; } .ticket::after { right: -9px; }
.ticket.used { background: #e5dfd2; color: #6b6a7c; }
.ticket b { font: 800 20px/1 "Bricolage Grotesque", sans-serif; }

/* ---- small things ------------------------------------------------------------------------------------------- */
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--tape); color: var(--ink); padding: 10px 14px; border-radius: 10px; z-index: 2000; font-weight: 700; }
.skip-link:focus { left: 8px; }
.help-fab { position: fixed; right: 14px; bottom: 14px; z-index: 900; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--tape); color: var(--ink); font: inherit; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.help-fab:hover { background: #ffc85c; }
@media print { .help-fab, .tour-back, .tabbar { display: none !important; } }
.btn-danger { background: #b92f1d; color: #fff; border-color: #b92f1d; }
.btn-danger:hover { background: #8f2315; border-color: #8f2315; }
.btn-danger[disabled] { background: #c9b8b4; border-color: #c9b8b4; color: #fff; cursor: not-allowed; }
.datarow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; border-top: 1.5px solid var(--soft); padding: 14px 0; }
.datarow .t { font: 800 18px/1.2 "Bricolage Grotesque", sans-serif; overflow-wrap: anywhere; }
.datarow .m { font-size: 14px; color: var(--muted); }
.datarow .why { grid-column: 1 / -1; font-size: 14px; color: #7a1f14; }
@media (max-width: 520px) { .datarow { grid-template-columns: minmax(0, 1fr); } .datarow .btn { width: 100%; } }


.pasteitem p, .legal { overflow-wrap: anywhere; }
