/* Soclya Social: X-style layout with the punk/comic look of soclya.com (tokens and fonts come from
   /studio/site.css). Three columns on desktop, one column and a bottom tab bar on phones. */
body.social { background: var(--ink); color: var(--text); font-family: var(--f-body); }
body.social::before { display: none; }
.social a { color: inherit; }
.social .muted { color: var(--muted); }
.sx { display: grid; grid-template-columns: 260px minmax(0, 620px) 340px; gap: 0; max-width: 1240px; margin: 0 auto; min-height: 100vh; }
.sx-nav { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; border-right: 2px solid var(--line); }
.sx-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 8px 16px; }
.sx-logo img { border-radius: 10px; border: 2px solid var(--text); box-shadow: 3px 3px 0 var(--pink); }
.sx-wm { font: 400 30px/1 var(--f-logo); color: var(--text); text-shadow: 2px 2px 0 var(--pink); letter-spacing: .02em; }
.sx-wm em { font: 400 13px/1 var(--f-pixel); font-style: normal; color: var(--lime); text-shadow: none; display: block; letter-spacing: .14em; margin-top: 4px; text-transform: uppercase; }
.sx-nav nav { display: grid; gap: 2px; }
.nv { display: flex; align-items: center; gap: 14px; padding: 11px 14px; text-decoration: none; font: 400 19px/1 var(--f-label); text-transform: uppercase; letter-spacing: .03em; position: relative; border: 2px solid transparent; }
.nv:hover { background: #17171a; border-color: var(--line); }
.nv.on { color: var(--lime); border-color: var(--text); background: #111; box-shadow: 4px 4px 0 var(--pink); }
.dot { position: absolute; left: 28px; top: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: #fff; font: 700 11px/18px var(--f-body); text-align: center; }
.tb .dot { left: auto; right: 8px; top: 6px; min-width: 9px; width: 9px; height: 9px; padding: 0; }
.btn-post { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 6px; padding: 14px; background: var(--pink); color: #fff !important; border: 3px solid var(--text); font: 400 22px/1 var(--f-comic); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; box-shadow: 5px 5px 0 var(--lime); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn-post:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--lime); }
.sx-join { text-align: center; font: 700 14px/1 var(--f-body); padding: 10px; text-decoration: underline; }
.sx-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; text-decoration: none; border: 2px solid var(--line); }
.sx-me span { display: grid; min-width: 0; }
.sx-me b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 4px; }
.sx-me small { color: var(--muted); }
.sx-news { display: flex; align-items: center; gap: 8px; font: 700 12px/1.2 var(--f-body); color: var(--muted) !important; padding: 10px 8px 0; text-decoration: none; }
.sx-news:hover { color: var(--lime) !important; }

.sx-main { border-right: 2px solid var(--line); min-width: 0; padding-bottom: 80px; }
.sx-head { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(10, 10, 11, .92); backdrop-filter: blur(10px); border-bottom: 2px solid var(--line); }
.sx-head h1 { margin: 0; font: 400 28px/1 var(--f-comic); letter-spacing: .03em; text-transform: uppercase; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-tabs-top { display: flex; width: 100%; margin: 4px -16px -12px; }
.sx-tabs-top a { flex: 1; text-align: center; padding: 14px 6px; font: 400 15px/1 var(--f-label); text-transform: uppercase; text-decoration: none; color: var(--muted); border-bottom: 4px solid transparent; }
.sx-tabs-top a.on { color: var(--text); border-bottom-color: var(--pink); }
.sx-tabs-top a:hover { background: #121214; }

.sx-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 14px 18px 40px; scrollbar-width: none; }
.side-search, .big-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #151517; border: 2px solid var(--line); }
.side-search:focus-within, .big-search:focus-within { border-color: var(--lime); }
.side-search input, .big-search input { flex: 1; background: none; border: 0; color: var(--text); font: 500 15px var(--f-body); padding: 12px 0; outline: none; }
.big-search { margin: 16px; }
.box { margin-top: 18px; border: 2px solid var(--text); background: #111; box-shadow: 5px 5px 0 var(--cyan); }
.box h2 { margin: 0; padding: 14px 16px 10px; font: 400 22px/1 var(--f-comic); text-transform: uppercase; letter-spacing: .03em; display: flex; align-items: center; gap: 8px; }
.box-news { box-shadow: 5px 5px 0 var(--pink); }
.box-flat { box-shadow: none; margin: 12px 16px; }
.trow { display: flex; gap: 12px; align-items: center; padding: 10px 16px; text-decoration: none; border-top: 1px solid var(--line); }
.trow:hover { background: #18181b; }
.trow span { display: grid; gap: 3px; min-width: 0; }
.trow b { font-weight: 700; line-height: 1.3; }
.trow small { color: var(--muted); font-size: 12px; }
.tn { font: 400 22px/1 var(--f-comic); color: var(--pink); width: 18px; }
.prow { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); }
.prow > a { flex: 1; min-width: 0; text-decoration: none; display: grid; }
.prow > a b { display: inline-flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.prow small { color: var(--muted); }
.prow-big { padding: 14px 16px; }
.prow-big .muted { font-size: 14px; margin-top: 4px; }
.side-foot { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 18px; }

.av { border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--text); background: #222; }
.av-mark { display: inline-grid; place-items: center; background: var(--pink); color: #fff; font-family: var(--f-comic); }

/* Labels and the verification tick */
.vtick { display: inline-flex; color: var(--lime); vertical-align: middle; }
.vtick .vcheck { display: block; }
.lb { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 3px 6px 2px; font: 400 10px/1 var(--f-pixel); text-transform: uppercase; letter-spacing: .06em; border: 2px solid currentColor; white-space: nowrap; }
.lb-press { color: #0a0a0b; background: var(--lime); border-color: var(--lime); }
.lb-staff { color: var(--cyan); }
.lb-creator { color: var(--pink); }
.lb-dev { color: #8b7bff; }
.lb-esports { color: var(--amber); }
.lb-partner { color: #3dff8b; }

/* Composer */
.compose { padding: 14px 16px; border-bottom: 2px solid var(--line); }
.compose-muted { display: flex; gap: 10px; align-items: flex-start; color: var(--amber); font-size: 15px; line-height: 1.5; }
.cp-row { display: flex; gap: 12px; }
.cp-main { flex: 1; min-width: 0; }
.compose textarea { width: 100%; resize: none; background: none; border: 0; color: var(--text); font: 500 19px/1.45 var(--f-body); padding: 8px 0; outline: none; min-height: 60px; }
.compose textarea::placeholder { color: #6f6b65; }
.cp-extra { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.cp-extra input, .cp-extra select { background: #151517; border: 2px solid var(--line); color: var(--text); padding: 8px 10px; font: 500 14px var(--f-body); }
.cp-extra input[name="game"] { flex: 1 1 180px; }
.cp-slots { width: 70px; }
.cp-check { display: inline-flex; align-items: center; gap: 6px; font: 700 13px var(--f-body); padding: 8px 10px; border: 2px solid var(--line); cursor: pointer; }
.cp-bar { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.cp-tool { display: grid; place-items: center; width: 38px; height: 38px; color: var(--lime); background: none; border: 2px solid transparent; cursor: pointer; }
.cp-tool:hover { border-color: var(--lime); }
.cp-count { margin-left: auto; font: 400 12px/1 var(--f-pixel); color: var(--muted); }
.cp-count.low { color: var(--amber); }
.cp-count.over { color: var(--pink); }
.btn-pub { padding: 11px 18px 9px; background: var(--lime); color: var(--ink); border: 3px solid var(--text); font: 400 18px/1 var(--f-comic); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; box-shadow: 3px 3px 0 var(--pink); }
.btn-pub:disabled { opacity: .5; cursor: wait; }
.cp-previews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cp-previews:empty { display: none; }
.cp-prev { position: relative; aspect-ratio: 1; border: 2px solid var(--text); overflow: hidden; }
.cp-prev img { width: 100%; height: 100%; object-fit: cover; }
.cp-prev button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .75); color: #fff; cursor: pointer; display: grid; place-items: center; }
.cp-prev.loading::after { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 11, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='11' fill='none' stroke='%23c6ff00' stroke-width='4' stroke-dasharray='40 30'/%3E%3C/svg%3E") center no-repeat; }
.cp-status { margin: 8px 0 0; font-size: 14px; }
.cp-status.err { color: var(--pink); }
.cp-status.ok { color: var(--lime); }
.cp-dialog { width: min(620px, 94vw); max-height: 90vh; padding: 0; border: 3px solid var(--text); background: var(--ink); color: var(--text); box-shadow: 10px 10px 0 var(--pink); }
.cp-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.cp-dhead { display: flex; padding: 8px; }
.cp-dialog .compose { border-bottom: 0; }

/* Post card */
.pc { padding: 12px 16px; border-bottom: 2px solid var(--line); cursor: pointer; transition: background .12s; }
.pc:hover { background: #0f0f11; }
.pc-thread { border-bottom: 0; position: relative; }
.pc-thread .pc-av::after { content: ""; position: absolute; left: 39px; top: 62px; bottom: 0; width: 3px; background: var(--line); }
.pc-big { cursor: default; }
.pc-big .pc-text { font-size: 21px; }
.pc-top { display: flex; align-items: center; gap: 6px; padding: 0 0 6px 58px; color: var(--muted); font: 700 13px var(--f-body); }
.pc-top a { text-decoration: none; }
.pc-row { display: flex; gap: 12px; }
.pc-av { flex: none; text-decoration: none; }
.pc-main { flex: 1; min-width: 0; }
.pc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 15px; }
.pc-name { text-decoration: none; display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
.pc-name b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.pc-name:hover b { text-decoration: underline; }
.pc-time { text-decoration: none; }
.pc-time:hover { text-decoration: underline; }
.pc-chips, .tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.tagrow { padding: 0 16px 14px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 3px; font: 700 12px/1.2 var(--f-body); border: 2px solid var(--lime); color: var(--lime) !important; text-decoration: none; background: none; cursor: pointer; }
.chip:hover { background: var(--lime); color: var(--ink) !important; }
.chip-dim { border-color: var(--line); color: var(--muted) !important; }
.pc-body { position: relative; margin-top: 4px; }
.pc-text { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.pc-text a { color: var(--cyan); text-decoration: none; }
.pc-text a:hover { text-decoration: underline; }
.pc-body.spoiler > :not(.spoiler-cover) { filter: blur(14px); user-select: none; pointer-events: none; }
.spoiler-cover { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 4px; min-height: 70px; background: repeating-linear-gradient(-45deg, rgba(255, 46, 136, .16) 0 12px, rgba(10, 10, 11, .5) 12px 24px); border: 2px dashed var(--pink); color: var(--text); font: 400 18px/1 var(--f-comic); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.spoiler-cover small { font: 600 12px var(--f-body); text-transform: none; letter-spacing: 0; color: var(--muted); }
.pc-media { display: grid; gap: 4px; margin-top: 10px; border: 2px solid var(--text); overflow: hidden; }
.pc-media.m2, .pc-media.m4 { grid-template-columns: 1fr 1fr; }
.pc-media.m3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.pc-media.m3 .pc-img:first-child { grid-row: span 2; }
.pc-img { display: block; background: #111; }
.pc-img img { display: block; width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.pc-media.m2 img, .pc-media.m3 img, .pc-media.m4 img { aspect-ratio: 1; max-height: 300px; }
.pc-quote { display: grid; gap: 6px; margin-top: 10px; padding: 10px 12px; border: 2px solid var(--line); text-decoration: none; }
.pc-quote:hover { border-color: var(--muted); }
.pc-qhead { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.pc-qtext { font-size: 15px; line-height: 1.45; color: #ddd8cf; }
.pc-lfg { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 12px 14px; border: 2px solid var(--cyan); background: rgba(0, 229, 255, .06); }
.pc-lfg div { display: grid; gap: 4px; }
.pc-lfg b { display: inline-flex; align-items: center; gap: 6px; font: 400 18px/1 var(--f-comic); letter-spacing: .03em; text-transform: uppercase; color: var(--cyan); }
.pc-lfg span { font-size: 13px; color: var(--muted); }
.pc-pending { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--amber); font-size: 13px; }
.pc-actions { display: flex; justify-content: space-between; max-width: 440px; margin-top: 8px; }
.pa { display: inline-flex; align-items: center; gap: 5px; padding: 6px; min-width: 40px; background: none; border: 0; color: var(--muted); font: 600 13px var(--f-body); cursor: pointer; text-decoration: none; border-radius: 0; }
.pa:hover { color: var(--cyan); }
.pa-like:hover, .pa-like.on { color: var(--pink); }
.pa-rp:hover, .pa-rp.on { color: var(--lime); }
.pa.on { color: var(--lime); }
.pa-like.on { color: var(--pink); }
.pa-like.pop .i { animation: pop .35s; }
@keyframes pop { 40% { transform: scale(1.35); } }

.btn-s { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 7px; background: none; border: 2px solid var(--text); color: var(--text) !important; font: 400 14px/1 var(--f-label); text-transform: uppercase; letter-spacing: .03em; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-s:hover { background: #1b1b1e; }
.btn-s.btn-solid { background: var(--text); color: var(--ink) !important; }
.btn-s.btn-solid:hover { background: var(--lime); border-color: var(--lime); }
.btn-s.on { border-color: var(--lime); color: var(--lime) !important; }
.btn-s:disabled { opacity: .5; cursor: not-allowed; }

/* Menu (post options) */
.menu { position: absolute; z-index: 30; min-width: 220px; background: #121214; border: 2px solid var(--text); box-shadow: 6px 6px 0 var(--pink); padding: 4px 0; }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 16px; background: none; border: 0; color: var(--text); font: 600 14px var(--f-body); cursor: pointer; text-align: left; }
.menu button:hover { background: #1d1d20; }
.menu button.danger { color: var(--pink); }

/* Profile */
.pf-banner { height: 200px; background: linear-gradient(135deg, #2a0f1e, #0d2229) center / cover no-repeat; border-bottom: 2px solid var(--line); }
.pf-in { padding: 0 16px 16px; }
.pf-top { display: flex; justify-content: space-between; align-items: flex-end; margin-top: -60px; }
.pf-top .av { width: 120px; height: 120px; border: 4px solid var(--ink); outline: 2px solid var(--text); font-size: 54px !important; }
.pf-actions { display: flex; gap: 8px; align-items: center; padding-bottom: 6px; }
.pf-name { margin: 14px 0 2px; font: 400 32px/1 var(--f-comic); letter-spacing: .02em; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pf-bio { font-size: 16px; line-height: 1.5; margin: 12px 0; }
.pf-bio a { color: var(--cyan); }
.pf-playing { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 2px solid var(--lime); color: var(--lime) !important; text-decoration: none; font-size: 14px; margin: 4px 0 10px; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; margin: 8px 0; }
.pf-meta a { color: var(--cyan) !important; }
.pf-counts { display: flex; gap: 18px; font-size: 15px; margin: 8px 0; }
.pf-counts a, .pf-counts span { text-decoration: none; color: var(--muted); }
.pf-counts b { color: var(--text); }
.pf-ids { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gid { display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 8px; padding: 8px 12px; background: #111; border: 2px solid var(--line); color: var(--text); cursor: pointer; text-align: left; }
.gid small { grid-column: 1; font: 400 10px/1 var(--f-pixel); text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
.gid b { grid-column: 1; font-size: 14px; }
.gid .i { grid-row: 1 / 3; grid-column: 2; color: var(--muted); }
.gid:hover { border-color: var(--cyan); }

/* Pages */
.hero { padding: 30px 20px; border-bottom: 2px solid var(--line); }
.hero h1 { font-size: clamp(36px, 6vw, 54px) !important; line-height: 1 !important; margin: 0 0 14px; }
.hero p { font-size: 17px; line-height: 1.55; color: #ddd8cf; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.game-head, .intro-box { padding: 18px 16px; border-bottom: 2px solid var(--line); display: grid; gap: 10px; justify-items: start; }
.game-head > div { display: flex; align-items: center; gap: 12px; color: var(--lime); }
.game-head h1 { margin: 0; font-size: 40px !important; color: var(--text); }
.intro-box h2 { margin: 0; font-size: 30px !important; }
.intro-box p { margin: 0; color: #ddd8cf; line-height: 1.5; }
.players { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.players b { margin-right: 6px; color: var(--muted); }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; padding: 0 16px 16px; }
.game { display: grid; gap: 6px; padding: 14px; border: 2px solid var(--text); background: #111; text-decoration: none; box-shadow: 4px 4px 0 var(--lime); color: var(--lime) !important; }
.game b { color: var(--text); font-size: 15px; }
.game small { color: var(--muted); font-size: 12px; }
.game:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--lime); }
.sub { margin: 10px 16px; font: 400 24px/1 var(--f-comic); text-transform: uppercase; }
.empty { display: grid; justify-items: center; gap: 12px; padding: 60px 30px; text-align: center; color: var(--muted); font-size: 16px; line-height: 1.5; }
.empty img { opacity: .8; filter: grayscale(.3); }
.more { display: grid; place-items: center; padding: 26px; }
.spin { width: 28px; height: 28px; border: 4px solid var(--line); border-top-color: var(--lime); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-hint, .intro-line { padding: 14px 16px; color: var(--muted); border-bottom: 2px solid var(--line); margin: 0; line-height: 1.5; }
.login-hint a, .intro-line a { color: var(--lime); }
.pad { padding: 16px; }
.social-form { background: #111 !important; color: var(--text) !important; border: 2px solid var(--text) !important; box-shadow: 6px 6px 0 var(--pink) !important; padding: 22px !important; }
.social-form + .social-form { margin-top: 28px; }
.social-form .auth-p { color: var(--muted); }
.social-form input, .social-form select, .social-form textarea { background: #0a0a0b !important; color: var(--text) !important; border: 2px solid var(--line) !important; }
.social-form input:focus, .social-form select:focus, .social-form textarea:focus { border-color: var(--lime) !important; }
.row-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Notifications */
.nt { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 2px solid var(--line); text-decoration: none; }
.nt:hover { background: #0f0f11; }
.nt.unread { background: rgba(198, 255, 0, .05); box-shadow: inset 4px 0 0 var(--lime); }
.nt-i { flex: none; width: 34px; display: grid; justify-items: center; padding-top: 4px; color: var(--cyan); }
.nt-like .i { color: var(--pink); }
.nt-repost .i, .nt-badge .i { color: var(--lime); }
.nt-moderation .i { color: var(--amber); }
.nt-b { display: grid; gap: 6px; font-size: 15px; line-height: 1.45; }
.nt-quote { font-size: 14px; }

/* Tickets */
.tk { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 2px solid var(--line); text-decoration: none; }
.tk:hover { background: #0f0f11; }
.tk-n { font: 400 22px/1 var(--f-comic); color: var(--pink); }
.tk-b { flex: 1; display: grid; gap: 4px; min-width: 0; }
.tk-b small { color: var(--muted); }
.st { font: 400 10px/1 var(--f-pixel); text-transform: uppercase; letter-spacing: .06em; padding: 5px 7px 4px; border: 2px solid var(--line); color: var(--muted); white-space: nowrap; }
.st-open { color: var(--cyan); border-color: var(--cyan); }
.st-answered { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.st-closed { color: var(--muted); }
.msgs { padding: 8px 16px; display: grid; gap: 14px; }
.msg { display: flex; gap: 10px; padding: 14px; border: 2px solid var(--line); background: #0f0f11; }
.msg p { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.msg-h { margin-bottom: 6px !important; font-size: 14px; }
.msg-staff { border-color: var(--lime); box-shadow: 4px 4px 0 var(--lime); }
.list { border-top: 0; }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 100; max-width: min(92vw, 460px); padding: 12px 18px; background: var(--lime); color: var(--ink); border: 3px solid var(--ink); font: 700 14px/1.4 var(--f-body); box-shadow: 5px 5px 0 var(--pink); }
.toast.err { background: var(--pink); color: #fff; }
.fab, .sx-tabs { display: none; }

@media (max-width: 1180px) {
  .sx { grid-template-columns: 88px minmax(0, 620px) 320px; }
  .sx-nav { align-items: center; padding: 14px 8px; }
  .sx-wm, .nv span, .btn-post span, .sx-me span, .sx-news span, .sx-join { display: none; }
  .nv { padding: 12px; }
  .dot { left: 30px; }
  .btn-post { width: 56px; height: 56px; padding: 0; border-radius: 50%; }
  .sx-logo { padding: 6px 0 14px; }
}
@media (max-width: 960px) {
  .sx { grid-template-columns: 88px minmax(0, 1fr); }
  .sx-side { display: none; }
}
@media (max-width: 640px) {
  .sx { grid-template-columns: 1fr; }
  .sx-nav { display: none; }
  .sx-main { border-right: 0; }
  .sx-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(10, 10, 11, .96); border-top: 2px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tb { flex: 1; display: grid; place-items: center; padding: 12px 0; position: relative; color: var(--muted); }
  .tb.on { color: var(--lime); }
  .fab { display: grid; place-items: center; position: fixed; right: 18px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 21; width: 58px; height: 58px; border-radius: 50%; background: var(--pink); color: #fff; border: 3px solid var(--text); box-shadow: 4px 4px 0 var(--lime); cursor: pointer; }
  .pf-banner { height: 130px; }
  .pf-top { margin-top: -44px; }
  .pf-top .av { width: 88px; height: 88px; font-size: 40px !important; }
  .compose textarea { font-size: 17px; }
  .pc-name b { max-width: 140px; }
  .cp-previews { grid-template-columns: repeat(2, 1fr); }
}

/* Fixes: the news site pads <main> for its fixed header; tabs fit in one line. */
.social main.sx-main { padding-top: 0; }
.sx-head .sx-tabs-top { flex: 0 0 calc(100% + 32px); margin: 4px -16px -12px; }
.sx-tabs-top { display: flex; width: auto; margin: 0; border-bottom: 2px solid var(--line); }
.sx-head .sx-tabs-top { border-bottom: 0; }
.sx-tabs-top a { white-space: nowrap; }
.nv { font-size: 17px; }
@media (max-width: 640px) { .sx-tabs-top a { font-size: 13px; padding: 14px 4px; } }

/* Card of a soclya.com story shared in a post */
.pc-card { display: grid; grid-template-columns: 140px 1fr; margin-top: 10px; border: 2px solid var(--text); background: #111; text-decoration: none; overflow: hidden; }
.pc-card:not(:has(img)) { grid-template-columns: 1fr; }
.pc-card img { width: 100%; height: 100%; min-height: 100px; object-fit: cover; border-right: 2px solid var(--text); }
.pc-card span { display: grid; gap: 4px; padding: 10px 12px; align-content: center; }
.pc-card small { display: inline-flex; align-items: center; gap: 5px; font: 400 10px/1 var(--f-pixel); text-transform: uppercase; color: var(--lime); letter-spacing: .06em; }
.pc-card b { font-size: 15px; line-height: 1.3; }
.pc-card em { font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-card:hover { border-color: var(--lime); }
@media (max-width: 640px) { .pc-card { grid-template-columns: 96px 1fr; } }

/* Intro for visitors (own class: "hero" belongs to the news site) */
.sx-hero { padding: 26px 18px 28px; border-bottom: 2px solid var(--line); }
.sx-hero h1 { margin: 0 0 12px; font-size: clamp(34px, 6vw, 52px) !important; line-height: 1.02 !important; }
.sx-hero p { margin: 0; font-size: 16px; line-height: 1.55; color: #ddd8cf; max-width: 520px; }
.sx-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px !important; }
.sx-hero-cta .btn > span { padding: 12px 18px 11px; font-size: 14px; }

/* Phone top bar with the logo */
.sx-mtop { display: none; }
@media (max-width: 640px) {
  .sx-mtop { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 2px solid var(--line); background: var(--ink); }
  .sx-mtop .sx-logo { padding: 0; }
  .sx-mtop .sx-wm { display: block; font-size: 24px; }
  .sx-mtop .sx-wm em { font-size: 10px; }
  .sx-head { top: 0; }
  .sx-head h1 { font-size: 22px; }
}

/* Spoilers: a slim bar, not a big blurred block */
.pc-body.spoiler { max-height: 64px; overflow: hidden; }
.spoiler-cover { display: flex !important; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; min-height: 0 !important; height: 100%; padding: 0 14px; font-size: 15px !important; }
.spoiler-cover span { flex: 1; text-align: left; }
.spoiler-cover small { padding: 5px 10px; border: 2px solid var(--pink); color: var(--text) !important; font: 400 12px/1 var(--f-label) !important; text-transform: uppercase !important; }

/* Polls */
.pc-poll { display: grid; gap: 8px; margin-top: 10px; }
.po-opt { padding: 11px 14px; background: none; border: 2px solid var(--cyan); color: var(--cyan); font: 700 15px var(--f-body); text-align: left; cursor: pointer; }
.po-opt:hover { background: rgba(0, 229, 255, .1); }
.po-res { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 2px solid var(--line); overflow: hidden; font-size: 15px; }
.po-bar { position: absolute; inset: 0 auto 0 0; background: rgba(0, 229, 255, .16); }
.po-res.mine { border-color: var(--lime); }
.po-res.mine .po-bar { background: rgba(198, 255, 0, .18); }
.po-t, .po-res b { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.po-meta { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.cp-poll { display: grid; gap: 8px; margin: 4px 0 10px; }
.cp-poll input { background: #151517; border: 2px solid var(--line); color: var(--text); padding: 9px 12px; font: 500 14px var(--f-body); }
.cp-poll input:focus { border-color: var(--cyan); outline: none; }
.cp-poll small { color: var(--muted); font-size: 12px; }

/* Phone menu */
.sheet { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 85vh; padding: 0; border: 0; border-top: 3px solid var(--text); background: var(--ink); color: var(--text); }
.sheet::backdrop { background: rgba(0, 0, 0, .65); }
.sheet-in { display: grid; gap: 4px; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); }
.sheet .nv span { display: inline !important; }
.sheet-me { display: flex; align-items: center; gap: 12px; padding: 6px 6px 14px; text-decoration: none; border-bottom: 2px solid var(--line); margin-bottom: 6px; }
.sheet-me span { display: grid; }
.sheet-me small { color: var(--muted); }
.sheet-close { justify-self: center; margin-top: 10px; }
.tb .av { width: 28px; height: 28px; font-size: 13px !important; }

/* Profile editing */
.pf-edit { display: flex; align-items: center; gap: 16px; margin: 6px 0 14px; }
.pf-edit-av { position: relative; cursor: pointer; }
.pf-edit-av span { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--ink); border: 2px solid var(--ink); }
.pf-edit label.btn-s { cursor: pointer; }
.sw { border: 0 !important; padding: 6px 0 !important; font-size: 15px !important; }
/* The last tab (profile / menu) is a button: no grey browser background. */
.tb { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; }
.tb:active, .tb:focus { background: none; outline: none; }
