/* css/launch.css — launch a game (launch.html): one step on screen at a time.
   Written for a phone first: one column, a thumb-sized button, and the step
   rail scrolls sideways instead of wrapping. */
.lp { max-width: 720px; }
.lp .page-head { padding-bottom: 10px; }

/* the rail: five steps, the open one lit, a finished one ticked */
.lp-rail { list-style: none; display: flex; gap: 6px; margin: 10px 0 12px; padding: 0 0 4px; overflow-x: auto; scrollbar-width: none; }
.lp-rail::-webkit-scrollbar { display: none; }
.lp-rail li { flex: 1 0 auto; }
.lp-rail button {
  width: 100%; min-height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--store-panel); color: var(--store-muted); border: 1px solid var(--store-line); border-radius: var(--r);
  font: 600 .82rem var(--sg); cursor: pointer; white-space: nowrap;
}
.lp-rail button:disabled { color: var(--store-dim); cursor: default; }
.lp-rail button[aria-current="step"] { color: var(--store-ink); border-color: var(--g-live); background: var(--g-wash); }
.lp-rail button:not(:disabled):hover { color: var(--store-ink); border-color: var(--store-line-2); }
.lp-rail button[aria-current="step"]:hover { border-color: var(--g-live); }
.lp-n {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--store-pit); border: 1px solid var(--store-line-2); font: 600 .7rem var(--mono); color: var(--store-muted);
}
.lp-rail button[aria-current="step"] .lp-n { border-color: var(--g-live); color: var(--g-live); }
.lp-rail button.ok .lp-n { background: var(--g-live); border-color: var(--g-live); color: #06180a; font-size: 0; }
.lp-rail button.ok .lp-n::before { content: "✓"; font-size: .72rem; }
/* on a phone all five fit: the number sits over the word */
@media (max-width: 520px) {
  .lp-rail { gap: 4px; }
  .lp-rail li { flex: 1 1 0; min-width: 0; }
  .lp-rail button { flex-direction: column; gap: 3px; padding: 6px 2px; min-height: 54px; font-size: .74rem; }
}
.lp .lede[hidden] { display: none; }

/* a step */
.lp-step { padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.lp-step[hidden] { display: none; }
.lp-step h2 { font: 700 1.3rem/1.15 var(--sg); letter-spacing: -.01em; outline: none; }
.lp-step h3 { margin: 6px 0 -4px; }
.lp-sub { color: var(--store-muted); font-size: .9rem; max-width: 46em; }
.lp-label { font: 600 .82rem var(--sg); letter-spacing: .02em; color: var(--store-ink); }
.lp-sub code { font-family: var(--mono); font-size: .84em; color: var(--store-ink); }
.lp .fld input, .lp .fld select, .lp .fld textarea { min-height: 44px; font-size: 1rem; }
.lp .fld input[type="file"] { padding: 9px; }
.lp-two { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
@media (min-width: 560px) { .lp-two { grid-template-columns: 2fr 1fr; } }

.lp-addr { display: flex; align-items: stretch; }
.lp-addr span {
  display: flex; align-items: center; padding: 0 9px; background: var(--store-panel-2); color: var(--store-muted);
  border: 1px solid var(--store-line-2); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); font: .8rem var(--mono); white-space: nowrap;
}
.lp-addr input { border-radius: 0 var(--r-sm) var(--r-sm) 0; min-width: 0; }
@media (max-width: 420px) { .lp-addr span { font-size: .72rem; padding: 0 6px; } }

.lp-checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.lp-checks legend { font: 600 .82rem var(--sg); color: var(--store-ink); margin-bottom: 6px; padding: 0; }
.lp-checks label, .lp-check {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 10px; cursor: pointer;
  background: var(--store-pit); border: 1px solid var(--store-line); border-radius: var(--r); font-size: .86rem; color: var(--store-muted);
}
.lp-check { align-self: flex-start; }
.lp-checks label:has(input:checked), .lp-check:has(input:checked) { border-color: var(--g-live); color: var(--store-ink); }
.lp-checks input, .lp-check input { accent-color: var(--g-live); width: 16px; height: 16px; }

/* the buttons: the step's one act is full width on a phone */
.lp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lp-acts .btn { min-height: 44px; padding: 0 18px; font-size: .92rem; }
.lp-acts .btn.slim { min-height: 32px; padding: 0 10px; font-size: .8rem; }
.lp-go { flex: 1 1 100%; }
@media (min-width: 560px) { .lp-go { flex: 0 0 auto; min-width: 180px; } }
.lp-cost { color: var(--store-dim); font-size: .82rem; }
.lp-say { min-height: 1.3em; font-size: .88rem; color: var(--store-muted); }
.lp-say:empty { display: none; }
.lp-say.bad { color: #ff8a80; }
.lp-say.good { color: var(--g-live); }

.lp-alt { color: var(--store-dim); font-size: .84rem; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--store-line); padding-top: 12px; }
p.lp-alt { display: block; }
.lp-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--store-muted);
  padding: 10px 12px; border: 1px solid var(--store-line); border-radius: var(--r); background: var(--store-pit); }
.lp-mine[hidden] { display: none; }
.lp-mine select {
  min-height: 32px; padding: 0 8px; background: var(--store-pit); color: var(--store-ink);
  border: 1px solid var(--store-line-2); border-radius: var(--r-sm); font: .84rem var(--mono); max-width: 100%;
}

/* the build: a place to drop it */
.lp-drop {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 14px; text-align: center;
  border: 1px dashed var(--store-line-2); border-radius: var(--r); background: var(--store-pit); color: var(--store-muted);
}
.lp-drop.over { border-color: var(--g-live); background: var(--g-wash); color: var(--store-ink); }
.lp-drop .lp-acts { justify-content: center; }
.lp progress { width: 100%; height: 8px; accent-color: var(--g-live); }
.lp progress[hidden] { display: none; }
.lp-fold { border-top: 1px solid var(--store-line); padding-top: 10px; font-size: .88rem; color: var(--store-muted); }
.lp-fold summary { cursor: pointer; color: var(--store-ink); font: 600 .86rem var(--sg); min-height: 32px; display: flex; align-items: center; gap: 6px; }
.lp-fold summary::before { content: "▸"; color: var(--store-dim); }
.lp-fold[open] summary::before { content: "▾"; }
.lp-fold summary::-webkit-details-marker { display: none; }
.lp-fold[open] { display: flex; flex-direction: column; gap: 10px; }
.lp-fold .btn { align-self: flex-start; min-height: 40px; }

/* the page: the two crops, as they will be cut */
.lp-crops { display: flex; gap: 12px; align-items: flex-end; }
.lp-crops[hidden] { display: none; }
.lp-crops figure { margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lp-crops figure:first-child { flex: 616 1 0; }
.lp-crops figure:last-child { flex: 353 1 0; }
.lp-crops canvas { width: 100%; height: auto; display: block; border: 1px solid var(--store-line-2); border-radius: var(--r-sm); background: var(--store-pit); }
.lp-crops figcaption { font-size: .74rem; color: var(--store-dim); }

/* the coin: three choices, then the server's own rows */
.lp-picks { display: grid; gap: 8px; }
.lp-picks button {
  text-align: left; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-height: 56px;
  background: var(--store-pit); color: var(--store-muted); border: 1px solid var(--store-line); border-radius: var(--r); font: .86rem/1.4 var(--body);
}
.lp-picks button b { font: 700 .95rem var(--sg); color: var(--store-ink); }
.lp-picks button[aria-checked="true"] { border-color: var(--g-live); background: var(--g-wash); }
.lp-picks button:hover { border-color: var(--store-line-2); }
.lp-picks button[aria-checked="true"]:hover { border-color: var(--g-live); }
#lp-coin-form[hidden] { display: none; }
.lp-rows { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .86rem; }
.lp-rows:empty { display: none; }
.lp-rows th, .lp-rows td { text-align: left; vertical-align: top; padding: 8px 0; border-top: 1px solid var(--store-line); }
.lp-rows th { width: 34%; padding-right: 12px; font: 600 .8rem var(--sg); color: var(--store-muted); }
.lp-rows td { color: var(--store-ink); overflow-wrap: anywhere; }

/* done: what is live, and what is left */
.lp-list, .lp-next { list-style: none; margin: 0; padding: 0; }
.lp-list li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--store-line); font-size: .92rem; }
.lp-list li:first-child { border-top: 0; }
.lp-list li > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.lp-list li.todo > span:nth-child(2) { color: var(--store-muted); }
.lp-mark { display: inline-grid; place-items: center; flex: 0 0 22px; height: 22px; border-radius: 50%; border: 1px solid var(--store-line-2); color: var(--store-dim); font-size: .76rem; }
.lp-list li.ok .lp-mark { background: var(--g-live); border-color: var(--g-live); color: #06180a; }
.lp-list a { white-space: nowrap; }
.lp-next li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--store-line); font-size: .9rem; }
.lp-next span { color: var(--store-dim); font-size: .82rem; }
