/* 2026-11-12 STAGED from the local preview (board #3026 · #3050 · #3153) — the first screen, CLIPPABLE and the per-box effects.
   Nothing here is fixed or sticky and nothing slides up: every fold opens in the page and pushes it down (T 10-16 / 10-28).
   Every control is 48px+ (T's mc-tap rule); phone-first at 390px, two columns on a desktop. */

/* ── the first screen ─────────────────────────────────────────────────────────────── */
#start{border-color:var(--flame)}
#start h2.lbl,#clippable h2.lbl,#share h2.lbl{font-size:12px;margin:0 0 12px}
#start .step{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-top:1px solid var(--line)}
#start .step:first-of-type{border-top:0;padding-top:2px}
#start .step-n{flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:var(--flame);color:#0b0b0d;font-weight:900;font-size:16px;
  display:flex;align-items:center;justify-content:center;margin-top:2px}
#start .step-b{flex:1 1 auto;min-width:0}
#start .step-t{display:block;font-size:17px;font-weight:800;color:var(--bone);margin:4px 0 8px}
#start .selwrap{position:relative}
#start .selwrap:after{content:"▾";position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#9a948b;font-size:17px;pointer-events:none}
#start select.g{display:block;width:100%;box-sizing:border-box;min-height:52px;padding:0 40px 0 14px;font:inherit;font-size:17px;font-weight:700;
  color:var(--bone);background:#0b0b0d;border:2px solid var(--line);border-radius:12px;appearance:none;-webkit-appearance:none}
#start select.g:focus{outline:2px solid var(--flame);outline-offset:1px}
#start .gstatus{display:inline-flex;align-items:center;min-height:44px;font-size:13px;color:var(--dim);text-decoration:none}
#start .gstatus:hover{color:var(--bone)}
#step-chan input.fld{width:100%;box-sizing:border-box;min-height:52px;font-size:16px}
#step-chan .mc-chan-own{display:flex;align-items:center;gap:10px;min-height:48px;margin-top:6px;font-size:15px}
#step-chan .mc-chan-say:empty{display:none}
#start .src-row{margin-top:6px}
#start .src-row .src-up{min-height:48px}

/* the 3 chips + More: one swipe row (scroll-snap, no scrollbar) */
.chips{display:flex;flex-wrap:wrap;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:2px 2px 6px;margin:0 -2px}
/* the row wraps instead of hiding "+ More" off the right edge at 390px (measured: 3 chips + More need ~400px, the step has ~290) */
.chips::-webkit-scrollbar{display:none}
.chip{flex:0 0 auto;scroll-snap-align:start;min-height:52px;padding:0 16px;border-radius:26px;border:2px solid var(--line);background:#0b0b0d;
  color:var(--bone);font:inherit;font-size:16px;font-weight:800;cursor:pointer;white-space:nowrap}
.chip[aria-pressed=true]{border-color:var(--flame);background:rgba(255,122,26,.16);color:var(--bone)}
.chip[aria-pressed=true] .chip-tick{color:var(--flame)}
.chip.more{border-style:dashed;color:var(--flame)}
.chip:focus-visible{outline:2px solid var(--flame);outline-offset:2px}
.chips-say{margin-top:4px}
#start .go{margin-top:6px}

/* ── CLIPPABLE ────────────────────────────────────────────────────────────────────── */
#clippable{scroll-margin-top:12px}
#clippable.flash{animation:clipflash 1.2s ease-out 1}
@keyframes clipflash{0%{box-shadow:0 0 0 3px var(--flame)}100%{box-shadow:0 0 0 0 transparent}}
.fx-rule{margin:8px 0 12px;padding:10px 12px;border-left:3px solid var(--flame);border-radius:0 10px 10px 0;background:#141009;font-size:13px;line-height:1.45;color:var(--bone)}
#clippable #quickpicks{margin:0 0 10px;padding:0;border:0;background:none}
#clippable #capture{margin:0;padding:0;border:0;background:none;display:block}
#clippable #capture details.pick{border:0;background:none}
#clippable #capture details.pick>summary,#clippable #capture .pick-done{display:none !important}
#clippable #capture .pick-grid{display:flex !important;flex-direction:column;gap:8px;padding:0}
#clippable .clip-row{display:flex;align-items:stretch;gap:8px;min-width:0}
#clippable .clip-row>.opt{flex:1 1 auto;min-width:0;min-height:56px;margin:0;padding:0 12px;border:2px solid var(--line);border-radius:12px;background:#0b0b0d;
  display:flex;align-items:center;gap:12px;font-size:16px;font-weight:700;cursor:pointer}
#clippable .clip-row>.opt:has(input:checked){border-color:var(--flame);background:rgba(255,122,26,.08)}
#clippable .clip-row>.opt input{flex:0 0 22px;width:22px;height:22px;margin:0}
#clippable .clip-row>.opt .lane-x{display:none}
#clippable .clip-row .fx-sum{margin-left:auto;font-size:12px;font-weight:700;color:var(--flame);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:45%}
#clippable .fx-plus{flex:0 0 56px;width:56px;min-height:56px;border-radius:12px;border:2px solid var(--flame);background:rgba(255,122,26,.12);color:var(--flame);
  font:inherit;font-size:28px;font-weight:800;line-height:1;cursor:pointer}
#clippable .fx-plus[aria-expanded=true]{background:var(--flame);color:#0b0b0d}
#clippable .fx-plus:focus-visible{outline:2px solid var(--bone);outline-offset:2px}
.fx-panel{margin:-2px 0 4px;padding:12px;border:1px solid var(--flame);border-radius:12px;background:#100d0a}
.fx-panel[hidden]{display:none}
.fx-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px}
.fx-head b{font-size:12px;letter-spacing:1.2px;color:var(--flame)}
.fx-count{font-size:13px;font-weight:800;color:var(--bone)}
.fx-count.short{color:#ffb27a}
.fx-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.fx-btn{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-height:56px;padding:6px 10px;border:2px solid var(--line);border-radius:12px;
  background:#0b0b0d;color:var(--bone);font:inherit;text-align:left;cursor:pointer;min-width:0}
.fx-btn b{font-size:15px}
.fx-btn small{font-size:11px;line-height:1.3;color:var(--dim)}
.fx-btn[aria-pressed=true]{border-color:var(--flame);background:rgba(255,122,26,.16)}
.fx-btn[aria-pressed=true] b:before{content:"✓ ";color:var(--flame)}
.fx-btn[aria-disabled=true]{opacity:.45}
.fx-more{margin-top:8px}
.fx-more>summary{display:flex;align-items:center;min-height:48px;padding:0 4px;cursor:pointer;font-weight:800;color:var(--flame);list-style:none}
.fx-more>summary::-webkit-details-marker{display:none}
.fx-more>summary:before{content:"▸ "}.fx-more[open]>summary:before{content:"▾ "}
.fx-order{margin-top:10px;font-size:13px;line-height:1.5;color:var(--bone)}
.fx-order .seq{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.fx-order .seq span{padding:4px 8px;border-radius:8px;background:#1d1d22;border:1px solid var(--line);font-size:12px}
.fx-btns{display:flex;gap:8px;margin-top:10px}
.fx-btns button{flex:1 1 0;min-height:52px;border-radius:12px;font:inherit;font-size:15px;font-weight:800;cursor:pointer}
.fx-shuffle{background:none;border:1px solid var(--line);color:var(--bone)}
.fx-done{background:var(--flame);border:0;color:#0b0b0d}
.clip-coming{margin-top:12px;font-size:13px;color:var(--dim)}
.clip-coming[hidden]{display:none}
.clip-coming .cc-row{display:flex;align-items:center;min-height:48px;padding:0 12px;margin-top:6px;border:1px dashed #3a3a42;border-radius:12px;color:var(--dim)}
.clip-coming .cc-row i{margin-left:auto;font-style:normal;font-size:12px}

/* ── SHARE = destinations only ────────────────────────────────────────────────────── */
#share .share-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#share .note{margin-top:8px}

/* ── the stage folds to a slim line while nobody is live (no dead half-screen) ───── */
#stagebox.offline .screen{aspect-ratio:auto;min-height:0;height:auto;padding:14px 12px}
#stagebox.offline .mc-player-controls{display:none}
#stagebox.offline .mc-stage-msg{position:static;font-size:14px;letter-spacing:0;font-weight:600;color:var(--dim);text-align:center}
#stagebox.offline .mc-stage-msg small{display:none}

/* top bar: the game picker moved into step 1; on a phone the ⋯ sits alone at the end of its row */
.top .gamesel{display:flex;justify-content:flex-end}
.top .gamesel:after{content:none}

@media (min-width:900px){
  #clippable #capture .pick-grid{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr))}
  #clippable .fx-panel{grid-column:1/-1}
  .fx-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* SHARE names its places out loud: the "Made for: …" line under the icon is visible here (it was screen-reader only beside the
   AVAILABLE CLIPS row), so the icon never stands alone (Gemini G1) */
#share .share-row .share-sum{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}

/* ═══ 2026-11-13 UI v2 (board #3179 / #3180) ═══
   A chip is two buttons in one pill: the name turns the clip type on or off, "+ fx" opens its effects. */
.clip-store{display:none!important}
.chipx{flex:0 0 auto;display:inline-flex;align-items:stretch;border:2px solid var(--line);border-radius:26px;overflow:hidden;background:#0b0b0d}
.chipx.on{border-color:var(--flame);background:rgba(255,122,26,.16)}
.chipx>.chip{border:0!important;border-radius:0;background:transparent!important;min-height:52px;padding:0 10px 0 14px}
.chipx>.chip .chip-tick{margin-right:4px}
.chipx>.chip .chip-tick:empty{display:none}
.chipx>.chip-fx{flex:0 0 auto;min-width:58px;min-height:52px;padding:0 12px;border:0;border-left:2px solid var(--line);background:#16161b;
  color:var(--flame);font:inherit;font-size:14px;font-weight:800;cursor:pointer;white-space:nowrap}
.chipx.on>.chip-fx{border-left-color:var(--flame)}
.chipx>.chip-fx[aria-expanded=true]{background:var(--flame);color:#0b0b0d}
.chipx>.chip:focus-visible,.chipx>.chip-fx:focus-visible{outline:2px solid var(--bone);outline-offset:-4px}
.chipx.soon{opacity:.5;border-style:dashed}
.chipx.soon>.chip,.chipx.soon>.chip-fx{display:inline-flex;align-items:center;cursor:default;font-weight:700}
.chips-more{margin-top:8px}
.chips-more[hidden]{display:none}
/* 2026-11-15: a game row's own plain warning (NBA 2K26: MyCareer), right under the chips */
.chips-note{margin-top:8px;padding:8px 10px;border:1px dashed var(--flame);border-radius:10px;font-size:13px;line-height:1.4;color:var(--bone)}
.chips-note[hidden]{display:none}
.chips-more.in-sheet{margin:0;padding:4px 2px 14px}
#fx-slot:empty{display:none}
#fx-slot .fx-panel{margin:10px 0 2px}
.mc-sheet .fx-panel{margin:0;border:0;padding:2px 0 10px;background:transparent}
.mc-sheet .fx-panel .fx-head b{display:none}
.fx-btn small{font-size:13px}
.fx-live-note{margin-top:10px;font-size:13px;line-height:1.4;color:var(--dim)}
/* step 4, WHERE IT GOES: the Share row sits inside the make flow */
#start #share{margin:0}
#start #share .share-row{margin:0}
/* the short page / the full page (ui_switches.js: data-how on <html>) */
html[data-how="5"] .short-say{display:none!important}
html:not([data-how="5"]) .long-say{display:none!important}
/* UI v2 fit: two chips share a row at 390 px; the open effects panel is a full row inside the chips */
.chipx>.chip{padding:0 8px 0 12px;font-size:15px}
.chipx>.chip-fx{min-width:52px;padding:0 10px}
.chips>.fx-panel{flex:1 1 100%;min-width:0;margin:2px 0 4px}
