/* front_door: the share kit (share.py, web/share.js) on every page that shares. Loaded after site.css (and thanks.css
   on the landing pages, golive.css in the lobby). The look is the game's own UI: pixel-framed slots in the site's night
   and gold, the pixel fonts only at 16, 24 and 32 px, every line height a multiple of 8. One primary (the phone's own
   share sheet where there is one, else Copy link), the result line in a box with its own button, then the platforms in
   a tidy grid of slots, then the clip's buttons. Each site's mark in its own colour; ours drawn on the pixel grid at 3x. */
.sk { margin: 24px 0 0; text-align: left; }
.center .sk, .sk.center { margin-left: auto; margin-right: auto; max-width: 960px; }
.sk .ico { width: 24px; height: 24px; flex: 0 0 auto; fill: currentColor; }
.sk .ico.px { width: 27px; height: 21px; }         /* a 9 x 7 grid, 3 screen pixels each */

/* the primary row */
.sk-top { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.sk .sk-main { display: inline-flex; align-items: center; justify-content: center; gap: 16px; margin: 0 0 8px; padding: 12px 32px;
  white-space: nowrap; }
.sk .sk-main .ico { fill: var(--cta-ink); }
.sk.has-sheet .sk-sheet { flex: 1 1 100%; }
.sk.has-sheet .sk-copy { --b: transparent; --lip: transparent; color: var(--cream); background: transparent; font: 16px/24px var(--px);
  padding: 8px 16px; margin: 0; box-shadow: 0 -4px var(--frame), 0 4px var(--frame), -4px 0 var(--frame), 4px 0 var(--frame); }
.sk.has-sheet .sk-copy .ico { fill: var(--cream); }

/* the result line, as it pastes, and its button */
.sk-linebox { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin: 24px 0 0;
  padding: 16px 24px; background: var(--night-0);
  box-shadow: 0 -4px var(--gold-lo), 0 4px var(--gold-lo), -4px 0 var(--gold-lo), 4px 0 var(--gold-lo); }
.sk-linetext { flex: 1 1 100%; margin: 0; color: var(--cream); overflow-wrap: anywhere; }
.sk-linetext span { display: block; }
.sk-linetext .sk-lineurl { color: var(--sky); }
.sk .sk-line { display: inline-flex; align-items: center; gap: 12px; margin: 0; padding: 8px 24px;
  font: 24px/32px var(--px); white-space: nowrap; }
.sk .sk-line .ico { fill: var(--cta-ink); }

/* the platforms: slots */
.sk .nets { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 20px 16px; margin: 32px 0 0;
  justify-content: stretch; }
.sk .nets .net { --b: var(--night-0); --lip: var(--night-0); display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  box-sizing: border-box; min-height: 56px; margin: 0; padding: 8px 16px; font: 16px/24px var(--px); color: var(--cream);
  text-align: left; text-decoration: none; white-space: nowrap; background: var(--night-0); cursor: pointer;
  box-shadow: 0 -4px var(--frame-hi), 0 4px var(--frame-hi), -4px 0 var(--frame-hi), 4px 0 var(--frame-hi), 0 8px var(--frame); }
.sk .nets .net[hidden] { display: none; }
.sk .nets .net:hover, .sk .nets .net:focus-visible { --b: var(--night-3); background: var(--night-3); color: var(--cream);
  box-shadow: 0 -4px var(--cta), 0 4px var(--cta), -4px 0 var(--cta), 4px 0 var(--cta), 0 8px var(--cta-lo); }
.sk .nets .net:active { transform: translateY(4px); }
.sk [data-net=x] .ico, .sk [data-net=threads] .ico { fill: #ffffff; }
.sk [data-net=whatsapp] .ico { fill: #25d366; }
.sk [data-net=bluesky] .ico { fill: #1185fe; }
.sk [data-net=reddit] .ico { fill: #ff4500; }
.sk [data-net=facebook] .ico { fill: #1877f2; }
.sk [data-net=telegram] .ico { fill: #26a5e4; }
.sk [data-net=discord] .ico { fill: #5865f2; }
.sk [data-net=email] .ico, .sk [data-net=sms] .ico { fill: var(--gold); }
.sk .nets .ico .cut { fill: var(--night-0); }
.sk .nets .net:hover .ico .cut { fill: var(--night-3); }

/* the clip: Instagram and TikTok take the file */
.sk-clip { margin: 32px 0 0; }
.sk-cliphead { margin: 0 0 16px; color: var(--muted); }
.sk-cliprow { display: flex; flex-wrap: wrap; gap: 20px 16px; }
.sk .sk-cliprow .net { --b: var(--night-0); --lip: var(--night-0); display: inline-flex; align-items: center; gap: 12px; margin: 0;
  padding: 8px 20px; min-height: 56px; box-sizing: border-box; font: 16px/24px var(--px); color: var(--cream); background: var(--night-0);
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 -4px var(--cta), 0 4px var(--cta), -4px 0 var(--cta), 4px 0 var(--cta), 0 8px var(--frame); }
.sk .sk-cliprow .net[hidden] { display: none; }
.sk .sk-cliprow .net:hover { color: var(--cta-ink); background: var(--cta); }
.sk .sk-cliprow .net:hover .ico { fill: var(--cta-ink); }
.sk .sk-cliprow .sk-file { --b: var(--cta); color: var(--cta-ink); background: var(--cta); box-shadow: 0 -4px var(--cta-edge), -4px 0 var(--cta-edge), 4px 0 var(--cta-edge), 0 var(--lipw) var(--cta-lo), 0 calc(var(--lipw) + 4px) var(--cta-edge), inset 0 var(--bandw) var(--cta-hi); }
.sk .sk-cliprow .sk-file:hover { background: var(--cta-hover); }
.sk .sk-cliprow .sk-file .ico { fill: var(--cta-ink); }
.sk-cliponly { margin: 24px 0 0; }
.sk-cliponly .sk-clip { margin: 0; }

.sk .sk-said { min-height: 24px; margin: 16px 0 0; color: var(--teal); }
.sk:not(.golive-card) .sk-said:empty { display: none; }      /* the lobby keeps its line's room (golive.css) */

/* a band that centres its words (the share page's Share it too, Bring a friend): the kit centred too */
.center .sk .sk-top { justify-content: center; }
@media (min-width: 701px) {
  .center .sk .sk-cliprow { justify-content: center; }
  .center .sk .sk-cliphead, .center .sk .sk-said { text-align: center; }
  .center .sk .nets { display: flex; flex-wrap: wrap; justify-content: center; }
  .center .sk .nets .net { flex: 0 0 168px; }
}

/* phones: the share sheet first and full width, then the platforms as a grid of marks (their names still read out) */
@media (max-width: 700px) {
  .sk .sk-main { width: 100%; padding: 8px 16px; }
  .sk.has-sheet .sk-copy { width: auto; }
  .sk-linebox { padding: 16px 16px; }
  .sk .sk-line { width: 100%; justify-content: center; }
  .sk .nets { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 20px 12px; }
}
@media (max-width: 480px) {
  .sk .nets { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 12px; }
  .sk .nets .net { justify-content: center; padding: 8px 0; min-height: 56px; }
  .sk .nets .net span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sk .nets .ico { width: 24px; height: 24px; }
  .sk .nets .ico.px { width: 27px; height: 21px; }
  .sk .sk-cliprow .net { flex: 1 1 100%; justify-content: center; }
}

/* the lobby's step 2 (golive.py), as dead simple as it can be: its own primary stays (Share my link / Copy my link) and
   is the one big button; the platforms a compact grid of marks under it, smaller than it (names read out, and on hover) */
.golive-card.sk { margin: 0; text-align: center; }
.golive-card.sk .nets { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 16px; margin: 24px 0 0; }
.golive-card.sk .nets .net { justify-content: center; min-height: 48px; padding: 8px 2px; }
.golive-card.sk .nets .net span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
