/* "Launch this program" wizard for the Journeys. Generated from css/play.css with the .pw prefix renamed to .lw.
   Same look as the site's planner: gradient head, step bars, big tappable options, bottom sheet on phones.
   Self-contained (.lw prefix, own tokens) so it looks the same on the Secret Santa page. Logic: js/launch.js. */
.lw {
  --pw-ink: #17171A; --pw-ink-2: #4E4D55; --pw-mute: #6E6D75; --pw-line: rgba(23, 23, 26, .09); --pw-paper: #F2F1F7;
  --pw-peach: #FFD3B8; --pw-lilac: #CFC6FF; --pw-ok: #11795A; --pw-ok-bg: #DDF5EA; --pw-iris: #5B47F5; --pw-iris-ink: #3B2BC4;
  --pw-disp: Gabarito, "Hanken Grotesk", system-ui, sans-serif; --pw-sans: "Hanken Grotesk", system-ui, sans-serif;
  --pw-tint: var(--pw-lilac);
  width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 28px;
  background: #fff; color: var(--pw-ink); font: 400 16px/1.5 var(--pw-sans); -webkit-font-smoothing: antialiased;
  box-shadow: 0 40px 80px -30px rgba(23, 23, 26, .55); overflow: hidden;
}
.lw[open] { display: flex; flex-direction: column; animation: pw-in 420ms cubic-bezier(.2, .8, .2, 1); }
.lw::backdrop { background: rgba(23, 23, 26, .28); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@keyframes pw-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@media (max-width: 700px) {
  .lw { width: auto; max-width: none; margin: auto 8px 8px; max-height: 92vh; }
  @keyframes pw-in { from { opacity: 0; transform: translateY(40px); } }
}
.lw *, .lw *::before, .lw *::after { box-sizing: border-box; }
.lw button { font: inherit; color: inherit; }

/* head */
.lw-head { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; padding: 20px 60px 16px 20px;
  background: radial-gradient(60% 120% at 0% 0%, var(--pw-tint), transparent 70%), radial-gradient(60% 120% at 100% 0%, var(--pw-peach), transparent 70%), #fff; }
[dir="rtl"] .lw-head { padding: 20px 20px 16px 60px; }
.lw-tile { width: 52px; height: 52px; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px -10px rgba(23, 23, 26, .4); display: grid; place-items: center; }
.lw-tile svg { width: 30px; height: 30px; }
.lw-head small { display: block; font-size: 13px; color: var(--pw-ink-2); font-weight: 500; }
.lw-head h2 { margin: 3px 0 2px; font: 700 28px/1.05 var(--pw-disp); letter-spacing: -0.03em; }
.lw-head p { margin: 0; font-size: 14.5px; color: var(--pw-ink-2); }
.lw .lw-x { position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .8);
  cursor: pointer; display: grid; place-items: center; font-size: 20px; line-height: 1; }

/* step bars */
.lw-steps { display: flex; gap: 6px; margin: 0; padding: 12px 20px 0; list-style: none; }
.lw-steps li { display: block; margin: 0; padding: 0; border: 0; box-shadow: none;  flex: 1; height: 4px; border-radius: 99px; background: var(--pw-line); transition: background 240ms; }
.lw-steps li.on { background: var(--pw-ink); } .lw-steps li.ok { background: var(--pw-ok); }

/* body */
.lw-body { overflow-y: auto; padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.lw-body > * { animation: pw-step 320ms cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pw-step { from { opacity: 0; transform: translateY(8px); } }
.lw-q { margin: 0; font: 700 22px/1.2 var(--pw-disp); letter-spacing: -0.02em; }
.lw-q:focus { outline: none; }
.lw-sub { margin: -4px 0 0; font-size: 14.5px; color: var(--pw-mute); }
.lw .lw-back { align-self: flex-start; border: 0; background: none; padding: 2px 0; font-size: 13.5px; font-weight: 600; color: var(--pw-mute); cursor: pointer; }
.lw .lw-back:hover { color: var(--pw-ink); }

/* options: like the planner's idea cards */
.lw-opts { display: grid; gap: 8px; }
.lw-opts.two { grid-template-columns: 1fr 1fr; }
.lw .lw-opt { width: 100%; text-align: start; border: 0; border-radius: 20px; background: var(--pw-paper); padding: 14px 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: background 160ms, box-shadow 160ms, transform 160ms; }
.lw .lw-opt:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--pw-ink); }
.lw .lw-opt[aria-pressed="true"] { background: #fff; box-shadow: inset 0 0 0 2px var(--pw-ink); }
.lw-opt b { font: 600 17px/1.2 var(--pw-sans); letter-spacing: -0.01em; }
.lw-opt em { font-style: normal; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--pw-line); white-space: nowrap; }
.lw-opt em.free { background: var(--pw-ok-bg); color: var(--pw-ok); box-shadow: none; }
@media (max-width: 420px) { .lw-opts.two { grid-template-columns: 1fr; } }

/* details step */
.lw-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.lw-tags span { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--pw-paper); }
.lw-tags span.r { color: var(--pw-iris-ink); background: #ECE9FF; }
.lw-form { display: grid; gap: 10px; }
.lw-form label { display: grid; gap: 6px; font: 600 13px/1.2 var(--pw-sans); color: var(--pw-ink-2); }
.lw-form input { min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(23, 23, 26, .16); background: #fff; width: 100%;
  font: 500 16px/1.2 var(--pw-sans); color: var(--pw-ink); }
.lw-form input:focus-visible { outline: 3px solid var(--pw-iris); outline-offset: 1px; }
.lw .lw-go { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; border: 0; border-radius: 999px;
  background: var(--pw-ink); color: #fff; font: 600 15.5px/1 var(--pw-sans); cursor: pointer; transition: transform 160ms; }
.lw .lw-go:hover { transform: translateY(-1px); }
.lw .lw-go[disabled] { opacity: .6; cursor: progress; }
.lw-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--pw-mute); }
.lw-note a { color: inherit; text-decoration: underline; }
.lw-err { margin: 0; font-size: 13.5px; color: #B42318; }
.lw-err:empty { display: none; }

/* done */
.lw-done { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px;
  background: radial-gradient(70% 90% at 100% 0%, #BDEBD8, transparent 70%), var(--pw-paper); }
.lw-done b { font: 700 22px/1.15 var(--pw-disp); letter-spacing: -0.02em; }
.lw-done ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lw-done li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 14.5px; color: var(--pw-ink-2); }
.lw-done li::before { content: "✓"; width: 20px; height: 20px; border-radius: 99px; background: var(--pw-ok-bg); color: var(--pw-ok); font-size: 11px; font-weight: 700; display: grid; place-items: center; }

@media (prefers-reduced-motion: reduce) { .lw[open], .lw-body > * { animation: none; } }

/* One line under the hero buttons on the game pages: the offer in short */
.lw .lw-close2 { align-self: center; }
a.lw-go { text-decoration: none; }
.lw-opt em { font-weight: 600; }
