/* Card studio (home page, #posts). Cards size with their container (cqw), so the same markup
   works as a thumbnail, inside an X post, a square Instagram post or a tall TikTok photo. */

.st { display: grid; gap: 28px; margin-top: 56px; align-items: start; }
.st > *, .st-field, .st-colors > * { min-width: 0; }
@media (min-width: 1024px) { .st { grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 40px; } }

/* ---------- controls ---------- */
.st-panel { background: #161616; border: 1px solid #2a2a2a; border-radius: 10px; padding: 22px; display: grid; gap: 22px; }
@media (min-width: 1024px) { .st-panel { position: sticky; top: 88px; } }
.st-field { display: grid; gap: 8px; }
.st-label { font: 600 13px/1 Barlow, sans-serif; color: #a1a1a1; display: flex; justify-content: space-between; align-items: center; }
.st-input { width: 100%; height: 44px; background: #0d0d0d; border: 1px solid #2a2a2a; border-radius: 6px; color: #fff;
  font: 600 16px Barlow, sans-serif; padding: 0 12px; }
.st-input:focus-visible, .st button:focus-visible, .st-file:focus-within { outline: 2px solid #53d337; outline-offset: 2px; }
.st-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-color { display: flex; align-items: center; gap: 8px; height: 44px; background: #0d0d0d; border: 1px solid #2a2a2a; border-radius: 6px; padding: 0 6px; }
.st-color input[type=color] { width: 32px; height: 32px; border: 0; padding: 0; background: none; border-radius: 4px; cursor: pointer; flex: none; }
.st-color input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.st-color input[type=color]::-webkit-color-swatch { border: 0; border-radius: 4px; }
.st-color input[type=text] { min-width: 0; width: 100%; background: none; border: 0; color: #fff; font: 600 15px "Barlow Condensed", Barlow, sans-serif;
  letter-spacing: .02em; text-transform: uppercase; outline: none; }
.st-color input[type=text] { align-self: stretch; height: auto; }  /* whole field height is tappable */
.st-color small { font: 600 11px Barlow, sans-serif; color: #8a8a8a; white-space: nowrap; padding-right: 4px; }
.st-pals { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.st-pal { aspect-ratio: 1; border-radius: 6px; border: 2px solid transparent; padding: 3px; display: grid; grid-template-rows: 2fr 1fr;
  overflow: hidden; background: #0d0d0d; cursor: pointer; }
.st-pal i { display: block; }
.st-pal i:first-child { border-radius: 3px 3px 0 0; } .st-pal i:last-child { border-radius: 0 0 3px 3px; }
.st-pal[aria-pressed=true] { border-color: #fff; }
.st-file { display: flex; align-items: center; gap: 10px; height: 44px; background: #0d0d0d; border: 1px dashed #3a3a3a; border-radius: 6px;
  padding: 0 12px; color: #bdbdbd; font: 600 14px Barlow, sans-serif; cursor: pointer; position: relative; }
.st-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.st-file button { margin-left: auto; position: relative; z-index: 1; background: none; border: 0; color: #8a8a8a; font: inherit; cursor: pointer; }
.st-file button:hover { color: #fff; }
.st-looks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-look { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: #bdbdbd; font: 600 13px Barlow, sans-serif; }
.st-look .sc { border-radius: 6px; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.st-look span { display: block; margin-top: 7px; }
.st-look .st-thumb { margin-top: 0; }
.st-thumb .sc-k { color: var(--ink); }  /* 4px label in the thumbnails: full ink so it passes contrast in every look */
.st-look:hover .sc { outline-color: #3a3a3a; }
.st-look[aria-checked=true] .sc { outline-color: #53d337; }
.st-look[aria-checked=true] span { color: #fff; }
.st-hint { font: 500 13px/1.45 Barlow, sans-serif; color: #8a8a8a; margin: 0; }

/* ---------- tabs ---------- */
.st-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.st-tabs button { height: 38px; padding: 0 14px; border-radius: 6px; border: 1px solid #2a2a2a; background: #121212; color: #bdbdbd;
  font: 700 14px Barlow, sans-serif; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.st-tabs button:hover { color: #fff; border-color: #3a3a3a; }
.st-tabs button[aria-selected=true] { background: #53d337; border-color: #53d337; color: #000; }
.st-tabs img { width: 18px; height: 18px; border-radius: 4px; }
.st-tabs small { font: 700 10px Barlow, sans-serif; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.st-kinds button { height: 34px; font-size: 13px; }
.st-bar { display: grid; gap: 12px; }
.st-stage { margin-top: 20px; }
.st-one { max-width: 640px; }
.st-one-tiktok { max-width: 360px; }
.st-one-instagram { max-width: 480px; }
.st-note { margin: 14px 0 0; font: 500 14px Barlow, sans-serif; color: #8a8a8a; }
.st-all { display: grid; gap: 28px; }
@media (min-width: 1280px) {
  .st-all { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; }
  .st-all-x, .st-all-discord, .st-all-bluesky { grid-column: span 2; }
  .st-all-instagram { grid-column: 1 / span 3; } .st-all-tiktok { grid-column: 4 / span 2; }
}
.st-cap { font: 700 13px Barlow, sans-serif; color: #8a8a8a; margin-bottom: 8px; }
.st-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* ---------- the card ---------- */
.sc { container-type: inline-size; position: relative; overflow: hidden; background: var(--bg); color: var(--ink);
  aspect-ratio: 16 / 9; display: flex; flex-direction: column; font-family: Barlow, sans-serif; isolation: isolate; }
.sc--square { aspect-ratio: 4 / 5; }
.sc--tall { aspect-ratio: 9 / 16; }
.sc-edge { position: absolute; inset: 0 0 auto 0; height: .7cqw; z-index: 2; }
.sc-head { display: flex; align-items: center; gap: 2.2cqw; padding: 4.4cqw 5.4cqw 0; position: relative; z-index: 1; }
.sc-tile { width: 7cqw; height: 7cqw; flex: none; border-radius: .9cqw; background: var(--tile); color: var(--tile-ink); display: grid; place-items: center;
  font: 800 3.6cqw/1 "Barlow Condensed", Barlow, sans-serif; overflow: hidden; }
.sc-tile img, .fr-av img { width: 100%; height: 100%; object-fit: cover; }
.sc-id { min-width: 0; }
.sc-name { font-weight: 700; font-size: 3.4cqw; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-tag { font: 700 2.3cqw/1.2 "Barlow Condensed", Barlow, sans-serif; color: var(--mute); text-transform: uppercase; letter-spacing: .03em; margin-top: .4cqw; }
.sc-badge { margin-left: auto; font: 800 2.6cqw/1 "Barlow Condensed", sans-serif; padding: 1cqw 2cqw; border-radius: .6cqw; }
.sc-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 5.4cqw; position: relative; z-index: 1; min-height: 0; }
.sc-big { font: 800 13cqw/.92 "Barlow Condensed", Barlow, sans-serif; letter-spacing: -.005em; white-space: nowrap; }
.sc-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 3cqw; }
.sc-num { font: 800 7cqw/1 "Barlow Condensed", sans-serif; padding-bottom: .6cqw; white-space: nowrap; }
.sc-line { display: flex; flex-wrap: wrap; gap: 0 2.6cqw; margin-top: 2cqw; font: 700 3.6cqw/1.1 "Barlow Condensed", sans-serif; color: var(--mute); }
.sc-line .sc-odds { color: var(--ink); }
.sc-line.sc-plain { font: 600 3cqw/1.25 Barlow, sans-serif; }
.sc-acc { margin-top: 1.4cqw; }
.sc-foot { position: relative; z-index: 1; background: var(--foot); display: flex; align-items: center; gap: 2cqw; padding: 0 5.4cqw; height: 15.4%;
  font: 700 3.8cqw/1 "Barlow Condensed", sans-serif; }
.sc-k { color: var(--mute); font-size: 2.5cqw; }
.sc-rec { color: var(--ink); }
.sc-u { margin-left: auto; }

/* slash: a diagonal band in the brand color, like the stadium-board look on the home page */
.sc-slash { position: absolute; z-index: 0; top: -20%; right: 4%; width: 18%; height: 140%; background: var(--slash); transform: skewX(-22deg); }
.sc-slash::after { content: ""; position: absolute; top: 0; bottom: 0; left: -26%; width: 9%; background: var(--slash2); }
.sc--slash .sc-foot { background: rgba(255,255,255,.04); }

/* split: brand panel on the left (on top for square and tall) */
.sc--split.sc--wide { display: grid; grid-template-columns: 31% 1fr; grid-template-rows: 1fr auto; }
.sc--split.sc--wide .sc-head { grid-row: 1; grid-column: 1; background: var(--panel); color: var(--panel-ink); flex-direction: column; justify-content: center;
  align-items: flex-start; padding: 4cqw; gap: 2cqw; }
.sc--split.sc--wide .sc-tile { width: 12cqw; height: 12cqw; font-size: 6cqw; background: var(--panel-ink); color: var(--panel); }
.sc--split.sc--wide .sc-name { font-size: 3.2cqw; white-space: normal; }
.sc--split .sc-tag { color: inherit; opacity: .75; }
.sc--split.sc--wide .sc-body { grid-row: 1; grid-column: 2; padding: 0 4cqw; }
.sc--split.sc--wide .sc-foot { grid-row: 2; grid-column: 1 / -1; height: auto; padding-block: 3.6cqw; }
.sc--split:not(.sc--wide) .sc-head { background: var(--panel); color: var(--panel-ink); padding-block: 5cqw; }
.sc--split:not(.sc--wide) .sc-tile { background: var(--panel-ink); color: var(--panel); }

/* square and tall: everything scales up a step */
.sc--square .sc-head, .sc--tall .sc-head { padding: 7cqw 7cqw 0; gap: 3cqw; }
.sc--square .sc-tile, .sc--tall .sc-tile { width: 12cqw; height: 12cqw; font-size: 6cqw; border-radius: 1.6cqw; }
.sc--square .sc-name, .sc--tall .sc-name { font-size: 5.6cqw; }
.sc--square .sc-tag, .sc--tall .sc-tag { font-size: 3.8cqw; }
.sc--square .sc-badge, .sc--tall .sc-badge { font-size: 4.2cqw; padding: 1.6cqw 3cqw; }
.sc--square .sc-body, .sc--tall .sc-body { padding: 0 7cqw; }
.sc--square .sc-row, .sc--tall .sc-row { flex-direction: column; align-items: flex-start; gap: 2cqw; }
.sc--square .sc-num, .sc--tall .sc-num { font-size: 12cqw; }
.sc--square .sc-line, .sc--tall .sc-line { font-size: 5.6cqw; margin-top: 3.4cqw; }
.sc--square .sc-line.sc-plain, .sc--tall .sc-line.sc-plain { font-size: 4.8cqw; }
.sc--square .sc-foot, .sc--tall .sc-foot { height: auto; padding: 5.4cqw 7cqw; font-size: 6cqw; }
.sc--square .sc-k, .sc--tall .sc-k { font-size: 4cqw; }
.sc--square .sc-edge, .sc--tall .sc-edge { height: 1.2cqw; }
.sc--square .sc-slash { top: -10%; right: -8%; width: 30%; height: 60%; }
.sc--tall .sc-slash { top: -6%; right: -14%; width: 40%; height: 42%; }
.sc--tall .sc-body { justify-content: flex-start; padding-top: 22cqw; }

/* ---------- platform frames (generic, dark mode) ---------- */
.fr { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; border-radius: 12px; overflow: hidden; text-align: left; }
.fr b { font-weight: 700; }
.fr svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fr-av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  font: 800 15px/1 "Barlow Condensed", Barlow, sans-serif; }
.fr-hd { display: flex; align-items: baseline; gap: 6px; font-size: 15px; min-width: 0; }
.fr-hd span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-txt { font-size: 15px; line-height: 1.4; margin-top: 3px; overflow-wrap: anywhere; }
.fr-media { margin-top: 12px; overflow: hidden; }
.fr-act { display: flex; justify-content: space-between; margin-top: 12px; max-width: 440px; }
.fx-i { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.fr-sp { flex: 1; }

.fr-x { background: #000; color: #e7e9ea; border: 1px solid #2f3336; padding: 14px 16px; display: flex; gap: 12px; }
.fr-x .fr-av { border-radius: 50%; }
.fr-x .fr-main, .fr-bs .fr-main { min-width: 0; flex: 1; }
.fr-x .fr-hd span { color: #71767b; } .fr-x .fr-hd span + span::before { content: "\00b7\00a0"; }
.fr-x .fr-media { border: 1px solid #2f3336; border-radius: 16px; }
.fr-x .fr-act { color: #71767b; }

.fr-dc { background: #313338; color: #dbdee1; }
.fr-ch { padding: 12px 16px; border-bottom: 1px solid #1f2023; font-weight: 700; color: #f2f3f5; display: flex; gap: 6px; font-size: 15px; }
.fr-ch span { color: #80848e; font-weight: 500; }
.fr-msg { display: flex; gap: 14px; padding: 14px 16px 16px; }
.fr-dc .fr-main { min-width: 0; flex: 1; }
.fr-dc .fr-hd span { color: #949ba4; font-size: 12px; }
.fr-app { background: #5865f2; color: #fff !important; font: 700 10px/1 sans-serif !important; padding: 3px 4px; border-radius: 3px; align-self: center; }
.fr-dc .fr-media { border-radius: 8px; max-width: 520px; }
.fr-react { display: flex; gap: 6px; margin-top: 8px; }
.fr-react span { background: #2b2d31; border: 1px solid #3f4147; border-radius: 8px; padding: 2px 8px; font-size: 13px; color: #b5bac1; }

.fr-bs { background: #161e27; color: #f1f3f5; border: 1px solid #2e4052; padding: 14px 16px; display: flex; gap: 12px; }
.fr-bs .fr-hd span { color: #8b98a5; } .fr-bs .fr-hd span + span::before { content: "\00b7\00a0"; }
.fr-bs .fr-media { border-radius: 12px; }
.fr-bs .fr-act { color: #8b98a5; }

.fr-ig { background: #000; color: #f5f5f5; border: 1px solid #262626; }
.fr-ig > .fr-hd { padding: 10px 12px; align-items: center; gap: 10px; font-size: 14px; }
.fr-ig .fr-av { width: 32px; height: 32px; font-size: 12px; }
.fr-ring { box-shadow: 0 0 0 2px #000, 0 0 0 4px #f5f5f5; }
.fr-ig .fr-media { margin: 0; }
.fr-ig .fr-act { padding: 10px 12px 0; gap: 14px; justify-content: flex-start; max-width: none; }
.fr-ig .fr-act svg { width: 24px; height: 24px; }
.fr-likes { padding: 8px 12px 0; font-size: 14px; font-weight: 700; }
.fr-ig .fr-txt { padding: 4px 12px 14px; font-size: 14px; }

.fr-tt { background: #000; color: #fff; position: relative; border-radius: 18px; border: 1px solid #262626; }
.fr-tt .fr-media { margin: 0; }
.fr-rail { position: absolute; right: 8px; bottom: 120px; display: grid; gap: 16px; justify-items: center; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.fr-rail .fx-i { flex-direction: column; gap: 2px; font-size: 11px; font-weight: 600; }
.fr-rail svg { width: 26px; height: 26px; }
.fr-rail .fr-av { width: 38px; height: 38px; border: 2px solid #fff; }
.fr-cap { position: absolute; left: 0; right: 56px; bottom: 0; padding: 40px 12px 14px; font-size: 13px; line-height: 1.35;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.fr-cap b { font-size: 14px; }

@media (max-width: 640px) {
  .st-panel { padding: 16px; }
  .st-pals { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
  .fr-x, .fr-bs { padding: 12px; gap: 10px; }
  .fr-av { width: 34px; height: 34px; }
  .fr-msg { padding: 12px; gap: 10px; }
  .fr-txt, .fr-hd { font-size: 14px; }
}

/* fixes after first render */
.sc--slash.sc--wide .sc-body { padding-right: 30cqw; }
.sc--slash.sc--wide .sc-num { font-size: 6cqw; }
.sc--tall .sc-body { flex: 0 0 auto; }
.sc--tall .sc-foot { margin-top: 10cqw; margin-bottom: auto; }
.fr-hd b { white-space: nowrap; }
.fr-hd .fr-app { flex: none; overflow: visible; }
.st-one { max-width: 760px; }
.st-all { display: block; columns: 1; column-gap: 28px; }
.st-all > div { break-inside: avoid; margin-bottom: 28px; }
@media (min-width: 1100px) { .st-all { columns: 2; } }
@media (min-width: 1280px) { .st-all > div { grid-column: auto; } }
.st-all-tiktok .fr-tt { max-width: 340px; }
.sc--tall .sc-foot { padding-right: 20cqw; }
.sc--slash .sc-foot { background: #1a1b1d; }
.st-one-tiktok { max-width: 360px; }
.st-one-instagram { max-width: 500px; }

/* ---------- welcome back (hero, returning visitors who built a card) ---------- */
.wb { background: #161616; border: 1px solid #2a2a2a; border-radius: 12px; padding: 22px; }
.wb-hi { margin: 0; font: 800 clamp(1.6rem, 2.6vw, 2.2rem)/1.05 "Barlow Condensed", Barlow, sans-serif; text-transform: uppercase; color: #fff; }
.wb-hi b { color: #53d337; font-weight: 800; }
.wb-sub { margin: 8px 0 16px; color: #a1a1a1; font: 500 15px/1.45 Barlow, sans-serif; max-width: 46ch; }
.wb-card .sc { border-radius: 8px; }
.wb-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 18px; }
.wb-edit { color: #bdbdbd; font: 600 14px Barlow, sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.wb-edit:hover { color: #fff; }

/* ---------- hero proof: a real capture of the dashboard (assets/proof/) ---------- */
.proof { margin: 0; }
.proof img { display: block; width: 100%; height: auto; max-width: 560px; margin-left: auto; border-radius: 10px; border: 1px solid #2b2e33; background: #161616; }
.proof figcaption { max-width: 560px; margin: 10px 0 0 auto; color: #8f96a2; font: 500 13px Barlow, sans-serif; }
