/* The socials' small feeds (social.js), over the room or the terminal. */
.social-layer { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(5, 6, 8, 0.72); backdrop-filter: blur(2px); }
.social-layer[hidden] { display: none; }
.social-card { width: min(420px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; gap: 12px; background: #0f1114; color: #f6f7f5;
  border: 3px solid #000; box-shadow: 0 0 0 1px #2b3035, 6px 6px 0 #000; padding: 14px; animation: social-in 0.32s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes social-in { from { transform: translateY(40px) scale(0.92); opacity: 0; } }
.social-head { display: flex; align-items: center; gap: 10px; }
.social-head div { display: grid; line-height: 1.1; margin-right: auto; }
.social-head b { font: 700 13px/1.2 "Silkscreen", monospace; }
.social-head span { font: 400 18px/1 "VT323", monospace; color: #a1a6ad; }
.social-logo { width: 22px; height: 22px; filter: invert(1); }
.social-close { background: #1b1f23; border: 2px solid #000; color: #f6f7f5; width: 32px; height: 32px; cursor: pointer; font: 400 14px/1 monospace; }
.social-cta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; text-decoration: none; color: #fff; background: var(--brand, #000);
  border: 2px solid #000; box-shadow: 0 0 0 1px #3a3f45, 3px 3px 0 #000; font: 700 12px/1 "Silkscreen", monospace; text-transform: uppercase; }
.social-cta img { filter: invert(1); }
.social-cta:active { transform: translate(2px, 2px); box-shadow: 0 0 0 1px #3a3f45, 1px 1px 0 #000; }
.social-note { margin: 0; font: 400 19px/1.2 "VT323", monospace; color: #c9ccd1; text-align: center; }
.social-note.big { font-size: 22px; padding: 18px 6px; }

/* the X phone */
.phone { position: relative; border: 10px solid #111; border-radius: 26px; background: #000; box-shadow: inset 0 0 0 2px #2b3035; overflow: hidden; }
.phone-screen { height: min(520px, calc(100vh - 230px)); overflow-y: auto; padding: 6px; scrollbar-width: thin; }
.phone-screen .twitter-tweet { margin: 0 auto 8px !important; }
.phone-wait { font: 400 20px/1 "VT323", monospace; color: #a1a6ad; text-align: center; margin: 24px 0; }

/* the Pinterest board */
.social-pinterest { width: min(560px, 100%); }
.pins { columns: 3 120px; column-gap: 8px; max-height: min(520px, calc(100vh - 230px)); overflow-y: auto; padding: 10px; background: #b98a5a;
  border: 3px solid #000; box-shadow: inset 0 0 0 3px #8a6036; }
.pins a { position: relative; display: block; margin: 0 0 8px; break-inside: avoid; border: 3px solid #fff; box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.45); }
.pins img { display: block; width: 100%; height: auto; }
.pin-dot { position: absolute; left: 50%; top: -5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #E60023; box-shadow: 0 0 0 2px #000; }

/* the Instagram polaroids */
.polaroids { display: flex; justify-content: center; padding: 18px 4px 8px; }
.polaroids figure { margin: 0 -14px; background: #f6f2e8; padding: 8px 8px 24px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5); transform: rotate(var(--r)); transition: transform 0.2s; }
.polaroids figure:hover { transform: rotate(0deg) translateY(-8px) scale(1.06); z-index: 2; position: relative; }
.polaroids img { display: block; width: 128px; height: 128px; image-rendering: pixelated; }
.polaroids figcaption { font: 400 18px/1 "VT323", monospace; color: #222; text-align: center; margin-top: 6px; }

/* the TikTok phone */
.phone-tall { width: min(260px, 70vw); margin: 0 auto; aspect-ratio: 9 / 16; }
.phone-tall video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-sound { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.7); color: #fff; border: 1px solid #444; padding: 5px 8px; font: 400 16px/1 "VT323", monospace; cursor: pointer; }

/* a small label under the cursor when it is over a social thing */
.social-chip { display: inline-flex; align-items: center; gap: 6px; }
.social-chip img { width: 14px; height: 14px; filter: invert(1); }

/* the social cards in the GPT panel frame (art/ui/panel.webp, 9-slice) */
.social-card { border: 20px solid transparent; border-image: url(art/ui/panel.webp) 40 fill / 20px stretch; background: none; box-shadow: none;
  padding: 4px; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.75)); }

/* the GIF window: six of ours, playing under the cursor */
.social-giphy { width: min(520px, 100%); }
.gifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gifs a { display: block; border: 2px solid #000; box-shadow: -1px 0 0 rgba(255, 69, 58, 0.8), 1px 0 0 rgba(0, 231, 252, 0.8); background: #000; }
.gifs img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
/* ===== round 7: the X card's phone is the desk's phone (art/ui4/phone.png, 46 x 97 art px, 9-slice 9 5, at 2x);
   the Pinterest board is a cork board (art/ui4/board.png, frame 5 art px, at 2x) with real push pins (art/ui4/pins.png, 29 px cells) ===== */
.social-x .phone { border-style: solid; border-color: transparent; border-width: 18px 10px; border-image: url(art/ui4/phone.png) 9 5 9 5 fill / 18px 10px stretch;
  border-radius: 0; background: none; box-shadow: none; image-rendering: pixelated; }
.social-x .phone-screen { background: #000; padding: 4px; }
.social-pinterest .pins { border-style: solid; border-color: transparent; border-width: 10px; border-image: url(art/ui4/board.png) 5 fill / 10px round;
  background: none; box-shadow: none; image-rendering: pixelated; padding: 16px 12px 10px; column-gap: 10px; }
.social-pinterest .pins a { border: 3px solid #f6f7f5; box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.5); margin-bottom: 12px; }
.social-pinterest .pins img { image-rendering: auto; }
.social-pinterest .pin-dot { width: 29px; height: 29px; margin-left: -14px; top: -17px; border-radius: 0; box-shadow: none; background: url(art/ui4/pins.png) 0 0 / 116px 29px no-repeat; image-rendering: pixelated; }
.social-pinterest .pins a:nth-child(4n+2) .pin-dot { background-position: -29px 0; }
.social-pinterest .pins a:nth-child(4n+3) .pin-dot { background-position: -58px 0; }
.social-pinterest .pins a:nth-child(4n) .pin-dot { background-position: -87px 0; }

/* ===== round 9: each card looks like its platform (owner: "o feed mais original possível") ===== */
.social-layer .social-card { border: 0 !important; border-image: none !important; padding: 0 !important; border-radius: 16px; overflow: hidden; gap: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7) !important; filter: none !important; }
.social-layer .social-head { padding: 12px 14px; }
.social-layer .social-head b { font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; text-transform: none; letter-spacing: 0; }
.social-layer .social-head span { font-family: inherit; font-weight: 400; font-size: 13px; line-height: 1.2; opacity: 0.7; }
.social-layer .social-close { border-radius: 50%; border: 0; width: 30px; height: 30px; font: 400 15px/1 system-ui, sans-serif; }
.social-layer .social-cta { margin: 12px 14px 14px; border: 0 !important; border-image: none !important; border-radius: 999px; box-shadow: none; padding: 12px 18px;
  font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1; text-transform: none; letter-spacing: 0; image-rendering: auto; }
.social-layer .social-cta img { width: 18px; height: 18px; }
.social-layer .social-cta:active { transform: none; box-shadow: none; }
.social-layer .social-note { font-family: inherit; font-weight: 400; font-size: 14px; line-height: 1.3; padding: 0 14px; }

/* X: black, the phone holds X's own posts, a white Follow pill */
.social-card.social-x { background: #000; color: #e7e9ea; }
.social-x .social-head { border-bottom: 1px solid #2f3336; }
.social-x .social-close { background: #16181c; color: #e7e9ea; }
.social-x .phone { margin: 10px 12px 0; }
.social-x .social-cta { background: #eff3f4 !important; color: #0f1419; }
.social-x .social-cta img { filter: none; }

/* Pinterest: white, rounded pins, the red Save pill */
.social-card.social-pinterest { background: #fff; color: #111; width: min(600px, 100%); }
.social-pinterest .social-logo { filter: none; background: #E60023; -webkit-mask: url(art/logos/pinterest.svg) center / contain no-repeat; mask: url(art/logos/pinterest.svg) center / contain no-repeat; content: ""; }
.social-pinterest .social-close { background: #efefef; color: #111; }
.social-pinterest .pins { border: 0; border-image: none; background: none; box-shadow: none; padding: 0 12px; columns: 3 150px; column-gap: 10px; image-rendering: auto; }
.social-pinterest .pins a { border: 0; border-radius: 16px; overflow: hidden; box-shadow: none; margin: 0 0 10px; position: relative; display: block; }
.social-pinterest .pins img { display: block; width: 100%; border-radius: 16px; }
.social-pinterest .pin-save { position: absolute; top: 10px; right: 10px; background: #E60023; color: #fff; font-family: inherit; font-weight: 700; font-size: 14px; line-height: 1; padding: 9px 14px; border-radius: 999px; opacity: 0; transition: opacity 0.15s; }
.social-pinterest .pins a:hover .pin-save, .social-pinterest .pins a:focus-visible .pin-save { opacity: 1; }
.social-pinterest .social-note { color: #5f5f5f; padding-top: 10px; }
.social-pinterest .social-cta { background: #E60023 !important; color: #fff; }

/* Instagram: a profile page in white */
.social-card.social-instagram { background: #fff; color: #262626; width: min(440px, 100%); }
.social-instagram .social-logo { filter: none; }
.social-instagram .social-close { background: #efefef; color: #262626; }
.social-instagram .social-head { border-bottom: 1px solid #dbdbdb; }
.ig-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px 10px; }
.ig-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; image-rendering: pixelated; border: 2px solid #fff; box-shadow: 0 0 0 2px #dbdbdb; background: #0c0d0f; }
.ig-head div { display: grid; gap: 3px; }
.ig-head b { font-family: inherit; font-weight: 700; font-size: 16px; }
.ig-head span { font-family: inherit; font-size: 13px; line-height: 1.3; color: #737373; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #fff; }
.ig-grid a { display: block; aspect-ratio: 1; overflow: hidden; background: #0c0d0f; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; }
.social-instagram .social-cta { background: #0095F6 !important; color: #fff; }
.social-instagram .social-cta img { display: none; }

/* TikTok: black, the vertical video with the column of actions */
.social-card.social-tiktok { background: #000; color: #fff; }
.social-tiktok .social-close { background: #1f1f1f; color: #fff; }
.social-tiktok .phone-tall { width: min(300px, 76vw); margin: 10px auto 0; border-radius: 22px; }
.tt-side { position: absolute; right: 10px; bottom: 70px; display: grid; gap: 18px; justify-items: center; }
.tt-side i { display: block; width: 30px; height: 30px; background: #fff; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }
.tt-heart { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21s-7.5-4.6-9.6-9A5.4 5.4 0 0 1 12 6.3a5.4 5.4 0 0 1 9.6 5.7c-2.1 4.4-9.6 9-9.6 9z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21s-7.5-4.6-9.6-9A5.4 5.4 0 0 1 12 6.3a5.4 5.4 0 0 1 9.6 5.7c-2.1 4.4-9.6 9-9.6 9z'/></svg>"); }
.tt-comment { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3C6.5 3 2 6.6 2 11c0 2.4 1.3 4.5 3.4 6L4 21l4.6-2c1.1.3 2.2.4 3.4.4 5.5 0 10-3.6 10-8s-4.5-8-10-8z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3C6.5 3 2 6.6 2 11c0 2.4 1.3 4.5 3.4 6L4 21l4.6-2c1.1.3 2.2.4 3.4.4 5.5 0 10-3.6 10-8s-4.5-8-10-8z'/></svg>"); }
.tt-bookmark { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 3h12v18l-6-4.5L6 21z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 3h12v18l-6-4.5L6 21z'/></svg>"); }
.tt-share { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 4l8 7-8 7v-4.5C8 13.5 5 15.5 2 20c1-6 4-10 12-11z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 4l8 7-8 7v-4.5C8 13.5 5 15.5 2 20c1-6 4-10 12-11z'/></svg>"); }
.tt-caption { position: absolute; left: 12px; right: 56px; bottom: 16px; display: grid; gap: 4px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.tt-caption b { font-family: inherit; font-weight: 700; font-size: 15px; }
.tt-caption span { font-family: inherit; font-size: 13px; line-height: 1.3; }
.social-tiktok .tt-sound { bottom: auto; top: 10px; right: 10px; border-radius: 50%; width: 34px; height: 34px; padding: 0; font-size: 16px; border: 0; background: rgba(0, 0, 0, 0.55); }
.social-tiktok .social-cta { background: #FE2C55 !important; color: #fff; }
.social-tiktok .social-cta img { display: none; }

/* GIPHY: dark, the grid */
.social-card.social-giphy { background: #121212; color: #fff; }
.social-giphy .social-close { background: #2a2a2a; color: #fff; }
.social-giphy .gifs { padding: 0 10px; gap: 4px; }
.social-giphy .gifs a { border: 0; box-shadow: none; border-radius: 4px; overflow: hidden; }
.social-giphy .social-note { padding-top: 10px; color: #a9a9a9; }
.social-giphy .social-cta { background: #fff !important; color: #121212; }
.social-giphy .social-cta img { filter: none; }

/* Telegram: a chat */
.social-card.social-telegram { background: #ffffff; color: #000; }
.social-telegram .social-head { background: #2AABEE; color: #fff; }
.social-telegram .social-head span { opacity: 0.85; }
.social-telegram .social-logo { filter: none; background: #fff; border-radius: 50%; padding: 3px; }
.social-telegram .social-close { background: rgba(255, 255, 255, 0.25); color: #fff; }
.tg-chat { display: grid; gap: 8px; padding: 14px; background: #e6ebee; }
.tg-msg { position: relative; justify-self: start; max-width: 85%; background: #fff; border-radius: 14px 14px 14px 4px; padding: 8px 48px 8px 12px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12); }
.tg-msg p { margin: 0; font-family: inherit; font-size: 15px; line-height: 1.35; }
.tg-msg time { position: absolute; right: 10px; bottom: 6px; font-family: inherit; font-size: 11px; color: #8d9aa3; }
.social-telegram .social-cta { background: #2AABEE !important; color: #fff; }
.social-telegram .social-cta img { filter: none; }

.social-layer .social-card { overflow: auto; }
.social-pinterest .pins { max-height: none; overflow: visible; }
.social-layer .social-head b, .social-layer .social-head span { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
/* the platform fonts beat the kit's pixel font (ui4.css loads later, so these carry more weight) */
.social-layer .social-card .social-head b { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-weight: 700; font-size: 15px; line-height: 1.2; text-transform: none; letter-spacing: 0; }
.social-layer .social-card .social-head span { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 13px; }
.social-layer .social-card .social-cta { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-weight: 700; font-size: 15px; line-height: 1; text-transform: none; letter-spacing: 0;
  border: 0; border-image: none; border-radius: 999px; box-shadow: none; padding: 12px 18px; image-rendering: auto; background-clip: border-box; }
.social-layer .social-card .social-note { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.social-layer .social-card.social-x .social-cta { background: #eff3f4; color: #0f1419; }
.social-layer .social-card.social-pinterest .social-cta { background: #E60023; color: #fff; }
.social-layer .social-card.social-instagram .social-cta { background: #0095F6; color: #fff; }
.social-layer .social-card.social-tiktok .social-cta { background: #FE2C55; color: #fff; }
.social-layer .social-card.social-giphy .social-cta { background: #fff; color: #121212; }
.social-layer .social-card.social-telegram .social-cta { background: #2AABEE; color: #fff; }

/* the one back key, top-left, over the card */
.social-back { position: fixed; left: 16px; top: 14px; z-index: 2; }
@media (max-width: 760px) { .social-layer { padding: 16px 16px 72px; } .social-layer .social-card { max-height: calc(100vh - 88px); } .social-back { top: auto; bottom: 16px; } }

/* the networks' own feeds (owner 16/10): Pinterest's profile widget and Instagram's profile embed, framed like the rest */
.social-pinterest .pin-embed { display: grid; justify-items: center; padding: 10px 0 4px; min-height: 200px; }
.social-pinterest .pin-embed > span { max-width: 100%; }
.social-wait { margin: 10px 0 0; font: 500 13px/1.3 system-ui, sans-serif; color: #6b6f76; text-align: center; }
.social-instagram .ig-embed-wrap { background: #fff; }
.social-instagram .ig-embed { display: block; width: 100%; height: min(560px, calc(100vh - 210px)); border: 0; background: #fff; }

/* TikTok's creator embed: measured out of sight, shown only once it loaded (social.js loadTikTok) */
.social-tiktok .tt-embed { position: absolute; left: 0; top: 0; width: min(340px, 100%); visibility: hidden; pointer-events: none; }
.social-tiktok .tt-embed.ready { position: static; visibility: visible; pointer-events: auto; width: 100%; max-height: min(600px, calc(100vh - 200px)); overflow-y: auto; }
.social-tiktok .tt-embed blockquote { margin: 0 auto !important; }
.social-tiktok { position: relative; }
