/* launch — "Daylight": the form as white numbered cards on the left, the user's real game as a dark slab on the right */
.lp { padding: 44px 0 24px; }
.lp-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(48px, 7vw, 120px); align-items: start; }

/* intro */
.lp-intro { grid-column: 1; grid-row: 1; max-width: 800px; padding-bottom: 48px; }
.lp-intro h1 { font-size: clamp(64px, 8.4vw, 124px); margin: 22px 0 0 -.05em; }
.lp-intro .lede { margin-top: 26px; max-width: 470px; }

/* form */
.lform { grid-column: 1; grid-row: 2; max-width: 840px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.lform fieldset { margin: 0; padding: 26px 30px 30px; border: 0; border-radius: var(--r); background: var(--card); min-width: 0;
  box-shadow: 0 1px 0 rgba(20, 18, 16, .03), 0 1px 2px rgba(20, 18, 16, .05); display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.lform legend { float: left; width: 100%; padding: 0 0 18px; margin: 0; border-bottom: 1px solid var(--rule); display: flex; align-items: baseline; gap: 14px;
  font: 700 26px/1 var(--display); letter-spacing: -.035em; color: var(--ink); }
.lform legend b { font: 500 13px/1 var(--mono); letter-spacing: 0; color: var(--muted); min-width: 22px; }
.lform legend em { margin-left: auto; font: 400 14px/1 var(--sans); letter-spacing: 0; font-style: normal; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 28px; align-items: center; }
.row2b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.lform .stack { display: grid; gap: 16px; min-width: 0; }
#cabs button { padding: 0 12px; }
.lform .hint { line-height: 1.5; }
.lform .field > span { flex-wrap: wrap; row-gap: 2px; }
/* the hint sits at the right end of the label row; when it has to wrap it drops to its own line, left-aligned under the label */
.lform .field > span em { min-width: 0; }
.lform .hint a, #walletHint a { border-bottom: 1px solid var(--rule2); color: var(--ink); }
#walletHint { padding: 0 6px; }

/* logo drop: a dashed circle */
.drop { position: relative; width: 148px; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed var(--rule2); background: var(--bg); display: grid; place-items: center;
  text-align: center; cursor: pointer; overflow: hidden; font-size: 12px; line-height: 1.4; color: var(--muted); transition: border-color .2s, background .2s; }
.drop i { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 8px; border-radius: 50%; background: var(--ink); color: #fff; font: 400 20px/1 var(--mono); font-style: normal; transition: transform .25s var(--ease); }
.drop b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.drop:hover, .drop.over { border-color: var(--ink); background: #faf6ef; }
.drop:hover i, .drop.over i { transform: scale(1.08); }
.drop.err { border-color: var(--accent); background: rgba(255, 74, 28, .05); }
.drop.err i { background: var(--accent); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop:has(img:not([hidden])) { border-style: solid; border-color: var(--rule); }
.drop:focus-visible { outline-offset: 4px; border-radius: 50%; }

/* colour swatches: round chips */
.lform .swatches { gap: 10px; }
.lform .swatches input { -webkit-appearance: none; appearance: none; width: 42px; height: 42px; padding: 3px; border-radius: 50%; border: 1px solid var(--rule2); background: var(--card); transition: border-color .2s, transform .2s var(--ease); }
.lform .swatches input:hover { border-color: var(--ink); transform: translateY(-2px); }
.lform .swatches input::-webkit-color-swatch-wrapper { padding: 0; }
.lform .swatches input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.lform .swatches input::-moz-color-swatch { border: 0; border-radius: 50%; }

/* creator fees: two selectable cards */
.opts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.opt { position: relative; display: grid; align-content: start; gap: 8px; padding: 20px; border-radius: 18px; border: 1px solid var(--rule2); background: var(--card); cursor: pointer;
  transition: border-color .2s, box-shadow .2s; }
.opt:hover { border-color: rgba(20, 18, 16, .45); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.opt b { padding-right: 32px; font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.opt span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.opt::after { content: ""; position: absolute; right: 18px; top: 20px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--rule2); box-sizing: border-box;
  display: grid; place-items: center; font: 600 11px/1 var(--sans); color: #fff; }
.opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt.on::after { content: "✓"; background: var(--ink); border-color: var(--ink); }

/* dev buy */
.devbuy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; }
.devbuy .seg { padding-bottom: 8px; }
.sol { position: relative; }
.sol .inp { padding-right: 64px; }
.sol b { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 500 13px/1 var(--mono); color: var(--muted); pointer-events: none; }

/* the sticky bottom bar: what it costs + the ink Launch button */
.go { position: sticky; bottom: 16px; z-index: 5; margin-top: 8px; display: flex; align-items: center; gap: 24px; padding: 12px 12px 12px 26px; border-radius: 24px;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 0 0 1px var(--rule), 0 24px 50px -22px rgba(60, 38, 16, .4); }
.cost { flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 22px; align-items: center; }
.cost span { grid-column: 1; grid-row: 1; font-size: 13px; color: var(--muted); }
.cost b { grid-column: 1; grid-row: 2; font: 500 24px/1.15 var(--mono); letter-spacing: -.035em; color: var(--ink); white-space: nowrap; }
.cost em { grid-column: 2; grid-row: 1 / 3; align-self: center; max-width: 42ch; padding-left: 22px; border-left: 1px solid var(--rule); font-style: normal; font-size: 13px; line-height: 1.45; color: var(--muted); }
.go .btn { flex: none; gap: 0; }
.go .btn #launchSym { margin-left: .3em; }
.go .btn .arr { margin-left: 10px; }

/* live preview: the user's game on a dark slab */
.lprev { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 112px; width: clamp(250px, calc((100vh - 290px) * 9 / 16), 380px); width: clamp(250px, calc((100svh - 290px) * 9 / 16), 380px); }
.cab-mq { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px 16px; font-size: 14px; font-weight: 500; color: var(--ink); }
.cab-mq > span { display: flex; align-items: center; gap: 10px; }
.cab-mq b { padding: 6px 10px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); font: 500 12px/1 var(--mono); letter-spacing: .02em; color: var(--ink2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-slab { padding: 8px; border-radius: 36px; background: var(--slab); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), var(--shadow-lg); }
.pv-slab .screen { position: relative; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #000; isolation: isolate; }
.pv-slab .screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.pvnote { margin: 22px 4px 0; font-size: 14px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

/* progress modal */
.steps-m { display: grid; margin: 22px 0 4px; border-top: 1px solid var(--rule); }
.steps-m .s { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--faint); transition: color .2s; }
.steps-m .s i { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--rule2); display: grid; place-items: center; font: 600 12px/1 var(--sans); font-style: normal; color: #fff; }
.steps-m .s.done { color: var(--ink2); }
.steps-m .s.done i { background: var(--ink); border-color: var(--ink); }
.steps-m .s.now { color: var(--ink); font-weight: 550; }
.steps-m .s.now i { border-color: var(--ink); border-right-color: transparent; animation: lspin .8s linear infinite; }
.steps-m .s.bad { color: var(--accent-ink); font-weight: 550; }
.steps-m .s.bad i { background: var(--accent); border-color: var(--accent); }
@keyframes lspin { to { transform: rotate(360deg); } }
.msg { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--bg); font-size: 14px; line-height: 1.5; color: var(--ink2); overflow-wrap: anywhere; }
.msg.bad { background: rgba(255, 74, 28, .08); color: var(--accent-ink); }
.modal .hint a { border-bottom: 1px solid var(--rule2); color: var(--ink); }
.modal .hint a:hover { border-color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .lform fieldset { padding: 24px 24px 26px; }
  .row2 { grid-template-columns: 132px minmax(0, 1fr); gap: 22px; }
  .drop { width: 132px; }
  /* narrower form: amount + button on one row, the note under them */
  .go { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l btn" "a btn" "n n"; gap: 0 16px; align-items: center; padding: 14px 14px 14px 22px; }
  .cost { display: contents; }
  .cost span { grid-area: l; }
  .cost b { grid-area: a; }
  .cost em { grid-area: n; max-width: none; margin-top: 12px; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .go .btn { grid-area: btn; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .opts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .lp-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-intro { grid-row: 1; max-width: none; padding-bottom: 36px; }
  .lprev { grid-column: 1; grid-row: 2; position: static; justify-self: center; width: 260px; margin-bottom: 56px; }
  .lform { grid-row: 3; max-width: none; }
  .pvnote { text-align: center; }
}
@media (max-width: 640px) {
  .lp { padding-top: 28px; }
  .lp-intro { padding-bottom: 32px; }
  .lp-intro h1 { margin-top: 16px; }
  .lp-intro .lede { margin-top: 18px; }
  .lprev { width: 220px; margin-bottom: 44px; }
  .cab-mq { padding-bottom: 12px; font-size: 13px; }
  .pv-slab { padding: 6px; border-radius: 30px; }
  .pv-slab .screen { border-radius: 24px; }
  .pvnote { margin: 16px -40px 0; font-size: 13px; text-wrap: balance; }
  .lform { gap: 12px; }
  .lform fieldset { padding: 20px 18px 22px; border-radius: 20px; gap: 18px; }
  .lform legend { font-size: 22px; padding-bottom: 14px; gap: 12px; }
  .lform legend em { font-size: 13px; }
  .row2 { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; }
  .drop { width: 112px; font-size: 11px; }
  .drop i { width: 26px; height: 26px; margin-bottom: 6px; font-size: 18px; }
  .drop b { font-size: 14px; }
  .row2b, .opts { grid-template-columns: minmax(0, 1fr); }
  .devbuy { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .devbuy .seg { padding-bottom: 0; }
  .opt { padding: 18px; }
  .opt::after { right: 16px; top: 18px; }
  .lform .swatches input { width: 40px; height: 40px; }
  .go { bottom: 10px; padding: 12px 12px 12px 18px; border-radius: 20px; }
  .cost span { font-size: 12px; }
  .cost b { font-size: 20px; }
  .cost em { font-size: 12px; }
  .go .btn { height: 48px; padding: 0 18px; font-size: 15px; }
  .go .btn .arr { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .steps-m .s.now i { animation-duration: 2.4s; }
  .drop i, .lform .swatches input { transition: none; }
}
