/* threert.app: what the platform's pages add to the ThreeRT system (threert.css). Dense, quiet: hairlines and ink,
   bone for what is selected, tungsten only where something is lit (rooms that are open, a like, focus). */

:root { --danger: #ff7a6b; --nav-h: 60px; }

body { overflow-wrap: break-word; }
main { min-height: 62vh; padding: 0 0 96px; }
/* Grids of text: a column never grows to fit a long word (a title without spaces, a pasted URL). */
.app-side, .panel, .msg, .app-head, .feed-head, .profile .txt, .approw .info, .mini .txt, .lead .txt, .tile .body, .page-narrow { grid-template-columns: minmax(0, 1fr); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--bone); color: var(--ink-0); font: 500 14px var(--font-sans); text-decoration: none; }
.skip:focus { top: 12px; }
.i { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }
[hidden] { display: none !important; }
.wrap.narrow { max-width: 560px; width: 100%; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 2px; }

/* ---------- Header: lockup, links, search, account ---------- */
.nav .wrap { gap: 24px; height: var(--nav-h); }
.nav .links { gap: 24px; margin-left: 8px; }
.search { position: relative; flex: 0 1 320px; margin-left: auto; min-width: 0; }
.search .i { position: absolute; left: 13px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; color: var(--mute); pointer-events: none; }
.search input { width: 100%; height: 36px; padding: 0 34px 0 36px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(236, 232, 225, 0.04); color: var(--bone); font: 400 14px/1 var(--font-sans); appearance: none; -webkit-appearance: none; transition: border-color 0.2s, background 0.2s; }
.search input::placeholder { color: var(--mute); }
.search input:hover { border-color: rgba(236, 232, 225, 0.32); }
.search input:focus { outline: none; border-color: var(--bone-2); background: var(--ink-2); }
.search input:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 2px; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 11px; line-height: 16px; padding: 0 5px; color: var(--mute); pointer-events: none; }
.search input:focus + kbd, .search input:not(:placeholder-shown) + kbd { display: none; }
.nav .signin { flex: none; height: 36px; }
.avatar { border-radius: 50%; background: var(--ink-3); object-fit: cover; flex: none; }
.avatar.none { display: inline-grid; place-items: center; width: 32px; height: 32px; font: 600 13px/1 var(--font-sans); color: var(--bone-2); border: 1px solid var(--line); }
.menu { position: relative; flex: none; }
.menu summary { list-style: none; display: block; cursor: pointer; border-radius: 50%; padding: 1px; border: 1px solid var(--line-2); transition: border-color 0.2s; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { border-color: var(--bone-2); }
.menu summary:focus-visible { border-radius: 50%; }
.menu summary .avatar { width: 32px; height: 32px; }
.menu .pop { position: absolute; right: 0; top: calc(100% + 10px); width: 220px; padding: 6px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--ink-2); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); display: grid; }
.menu .who { display: grid; gap: 2px; padding: 9px 10px 11px; margin-bottom: 6px; border-bottom: 1px solid var(--line); min-width: 0; }
.menu .who b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu .who span { font: 400 12px/1.3 var(--font-mono); color: var(--mute); overflow: hidden; text-overflow: ellipsis; }
.menu .pop a, .menu .pop button { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--bone-2); font: 500 14px/1.3 var(--font-sans); text-align: left; text-decoration: none; cursor: pointer; }
.menu .pop a:hover, .menu .pop button:hover { background: rgba(236, 232, 225, 0.07); color: var(--bone); }
.menu form { margin: 0; }
/* The links again, under the bar, where the bar has no room for them. */
.subnav { display: none; border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 22px; height: 42px; align-items: center; font-size: 14px; font-weight: 500; color: var(--bone-2); overflow-x: auto; scrollbar-width: none; }
.subnav a { text-decoration: none; white-space: nowrap; padding: 4px 0; border-bottom: 1.5px solid transparent; }
.subnav a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--bone-2); }
.foot .tag { margin-top: 14px; max-width: 44ch; }
.foot .site .ics { display: inline-flex; align-items: center; gap: 16px; }

/* ---------- Small parts ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 7px; background: rgba(8, 9, 11, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 500 11px/1 var(--font-mono); color: var(--bone); white-space: nowrap; }
.pill .i { width: 11px; height: 11px; }
.pill.live i, .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--tungsten); box-shadow: 0 0 8px var(--tungsten); flex: none; }
.fp { display: inline-flex; color: var(--bone); flex: none; }
.fp .i { width: 13px; height: 13px; }
.fp-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 11.5px/1 var(--font-mono); letter-spacing: 0; color: var(--bone-2); white-space: nowrap; vertical-align: middle; }
.fp-pill .i { width: 13px; height: 13px; color: var(--bone); }
.stats { display: inline-flex; gap: 11px; flex: none; font: 400 12px/1 var(--font-mono); color: var(--mute); }
.stats > span { display: inline-flex; align-items: center; gap: 4px; }
.stats .i { width: 11px; height: 11px; }
.nocover { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(236, 232, 225, 0.16); background: radial-gradient(90% 120% at 20% 0%, var(--ink-3), var(--ink-1) 70%); }
.nocover.v1 { background: radial-gradient(90% 120% at 85% 10%, var(--ink-3), var(--ink-1) 70%); }
.nocover.v2 { background: radial-gradient(100% 130% at 50% 110%, var(--ink-3), var(--ink-1) 70%); }
.nocover.v3 { background: linear-gradient(135deg, var(--ink-2), var(--ink-1) 60%, var(--ink-3)); }
.nocover .i { width: 30%; max-width: 72px; height: auto; aspect-ratio: 1; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 16px 0 0; }
.chips::-webkit-scrollbar, .subnav .wrap::-webkit-scrollbar { display: none; }
.chips.wrapd { flex-wrap: wrap; overflow: visible; padding: 0; }
.chip { position: relative; flex: none; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); font: 500 12px/1.2 var(--font-mono); color: var(--bone-2); text-decoration: none; white-space: nowrap; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.chips.wrapd .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chip:hover { color: var(--bone); border-color: var(--bone-2); }
.chip[aria-current] { color: var(--ink-0); background: var(--bone); border-color: var(--bone); }
.status:empty { display: none; }
.status { font-size: 13.5px; color: var(--bone-2); }
.status.err { color: var(--danger); }
.btn.wide { width: 100%; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); }
.btn.danger.solid { background: var(--danger); color: #1a0705; border-color: transparent; }
.btn[disabled] { opacity: 0.5; cursor: default; transform: none; }

/* A command to copy. */
.cmd { display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: 12px; padding: 4px 4px 4px 16px; border: 1px solid var(--line); border-radius: 12px; background: #0a0b0e; }
.cmd code { flex: 1; min-width: 0; padding: 9px 0; border: 0; background: none; font: 400 13.5px/1.5 var(--font-mono); color: var(--bone); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.cmd code::-webkit-scrollbar { display: none; }
.cmd .ps { color: var(--mute); user-select: none; -webkit-user-select: none; }
.cmd .copy { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--ink-2); color: var(--bone-2); font: 500 12.5px/1 var(--font-sans); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.cmd .copy:hover { color: var(--bone); border-color: var(--bone-2); }
.cmd .copy.done { color: var(--bone); border-color: var(--bone-2); }

/* A titled block of a page. */
.block { margin-top: 44px; }
.block-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); min-height: 51px; }
.block-head h2 { font: 600 19px/1.2 var(--font-sans); letter-spacing: -0.025em; display: inline-flex; align-items: center; gap: 9px; }
.block-head .n { font: 400 12.5px/1 var(--font-mono); color: var(--mute); margin-top: 2px; }
.block-head .btn, .block-head .all { margin-left: auto; }
.block-head .all { font-size: 13.5px; color: var(--bone-2); text-decoration: none; white-space: nowrap; }
.block-head .all:hover { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }

.empty { display: grid; justify-items: center; gap: 10px; padding: 72px 20px 80px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-2); margin-top: 24px; }
.empty .glyph { color: rgba(236, 232, 225, 0.22); }
.empty .glyph .i { width: 44px; height: 44px; }
.empty h2 { font: 600 21px/1.2 var(--font-sans); letter-spacing: -0.025em; margin-top: 6px; }
.empty p { color: var(--bone-2); font-size: 15px; max-width: 52ch; }
.empty p b { color: var(--bone); font-weight: 500; overflow-wrap: anywhere; }
.empty .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }

/* ---------- The card of an app ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-1); overflow: hidden; transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease); }
.tile:hover { border-color: rgba(236, 232, 225, 0.28); background: var(--ink-2); transform: translateY(-2px); }
.tile:has(h3 a:focus-visible) { outline: 2px solid var(--tungsten); outline-offset: 2px; }
.cover { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tile:hover .cover > img, .lead:hover .cover > img, .mini:hover .cover > img { transform: scale(1.035); }
.cover .tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.cover .live { position: absolute; left: 10px; bottom: 10px; }
.tile .body { display: grid; grid-template-rows: auto 1fr auto; gap: 5px; flex: 1; padding: 13px 15px 13px; min-width: 0; }
.tile h3 { font: 600 16px/1.3 var(--font-sans); letter-spacing: -0.02em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.tile h3 a, .lead h3 a, .mini h3 a { text-decoration: none; outline: none; }
.tile h3 a::after, .lead h3 a::after, .mini h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sum { color: var(--bone-2); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; min-width: 0; }
.by { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 12.5px; line-height: 1.2; color: var(--mute); text-decoration: none; }
.by .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by:hover { color: var(--bone); }

/* ---------- Feed ---------- */
.feed-head { padding: 36px 0 28px; display: grid; gap: 8px; }
.feed-head h1 { font: 600 clamp(24px, 2.6vw, 32px)/1.1 var(--font-sans); letter-spacing: -0.035em; overflow-wrap: anywhere; }
.feed-head h1 .q { color: var(--bone-2); }
.feed-head p { color: var(--mute); font-size: 15px; }
.featured { margin-bottom: 44px; }
.featured > .eyebrow { display: block; margin: 0 0 14px; font-weight: 500; letter-spacing: 0.02em; }
.feat { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: 20px; }
.featured.solo .feat { grid-template-columns: 1fr; }
.lead { position: relative; border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; background: #000; min-width: 0; transition: border-color 0.2s; }
.lead:hover, .mini:hover { border-color: rgba(236, 232, 225, 0.28); }
.lead:has(h3 a:focus-visible), .mini:has(h3 a:focus-visible) { outline: 2px solid var(--tungsten); outline-offset: 2px; }
.lead .cover { height: 100%; min-height: 100%; }
.featured.solo .lead .cover { aspect-ratio: 21 / 9; }
.lead .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 7, 9, 0.94) 0%, rgba(6, 7, 9, 0.62) 26%, rgba(6, 7, 9, 0) 56%); pointer-events: none; }
.lead .cover .tags { top: 16px; left: 16px; }
.lead .cover .live { left: auto; right: 16px; top: 16px; bottom: auto; }
.lead .txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 24px 22px; display: grid; gap: 6px; }
.lead h3 { font: 620 clamp(26px, 2.8vw, 38px)/1.05 var(--font-sans); letter-spacing: -0.04em; overflow-wrap: anywhere; }
.lead .sum { font-size: 15.5px; color: var(--bone); opacity: 0.86; max-width: 62ch; }
.lead .row { margin-top: 6px; justify-content: flex-start; gap: 18px; }
.lead .by { font-size: 13.5px; color: var(--bone-2); }
.lead .stats { color: var(--bone-2); }
.side { display: grid; grid-auto-rows: 1fr; gap: 12px; min-width: 0; }
.mini { position: relative; display: grid; grid-template-columns: 148px minmax(0, 1fr); align-items: stretch; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-1); overflow: hidden; min-width: 0; transition: border-color 0.2s, background 0.2s; }
.mini:hover { background: var(--ink-2); }
.mini .cover { aspect-ratio: auto; min-height: 84px; height: 100%; }
.mini .txt { display: grid; grid-template-rows: auto 1fr auto; gap: 3px; padding: 11px 14px; min-width: 0; }
.mini h3 { font: 600 15px/1.25 var(--font-sans); letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini .sum { display: block; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.mini .row { margin-top: 2px; }

.bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 0 24px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 26px; min-width: 0; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 0 13px; margin-bottom: -1px; border-bottom: 2px solid transparent; font: 500 15px/1.2 var(--font-sans); color: var(--mute); text-decoration: none; white-space: nowrap; transition: color 0.2s; }
.tabs a:hover { color: var(--bone); }
.tabs a[aria-current] { color: var(--bone); border-bottom-color: var(--bone); }
.tabs .dot { opacity: 0.55; box-shadow: none; }
.tabs a[aria-current] .dot { opacity: 1; box-shadow: 0 0 8px var(--tungsten); }
.seg { display: inline-flex; flex: none; padding: 3px; margin-bottom: 8px; border: 1px solid var(--line-2); border-radius: 999px; }
.seg a { padding: 6px 13px; border-radius: 999px; font: 500 13px/1.2 var(--font-sans); color: var(--bone-2); text-decoration: none; transition: color 0.2s; }
.seg a:hover { color: var(--bone); }
.seg a[aria-current] { background: var(--bone); color: var(--ink-0); }
.feed .grid { margin-top: 20px; }
.feed > .grid:first-child { margin-top: 0; }
.more { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 0 0; min-height: 76px; }
.more.auto a { visibility: hidden; height: 1px; padding: 0; border: 0; }
.more.busy::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--bone-2); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- An app's page ---------- */
.app-head { padding: 32px 0 22px; display: grid; gap: 12px; }
.app-head .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; line-height: 1.4; }
.app-head .eyebrow a { color: var(--bone-2); text-decoration: none; }
.app-head .eyebrow a:hover { color: var(--bone); }
.app-head .eyebrow span::before { content: "/"; margin-right: 10px; opacity: 0.5; }
.app-head .eyebrow .unlisted { color: var(--bone-2); }
.app-head h1 { font: 620 clamp(30px, 4vw, 48px)/1.04 var(--font-sans); letter-spacing: -0.045em; overflow-wrap: anywhere; }
.app-head .by { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 15px; color: var(--bone-2); z-index: auto; }
.app-head .who { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.app-head .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-head .who:hover { color: var(--bone); }
.app-head .who .avatar { width: 24px; height: 24px; font-size: 11px; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto 1fr; gap: 0 32px; align-items: start; }
.gallery { grid-column: 1; grid-row: 1; min-width: 0; }
.app-side { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--ink-1); min-width: 0; }
.app-main { grid-column: 1; grid-row: 2; min-width: 0; }
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-2); border: 1px solid var(--line); background: #000; overflow: hidden; }
.stage > img, .stage > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage > img { object-fit: contain; }
.stage .nopic { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; font: 400 12.5px/1 var(--font-mono); color: var(--mute); }
.stage .step { position: absolute; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%; border: 1px solid rgba(236, 232, 225, 0.25); background: rgba(8, 9, 11, 0.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--bone); display: grid; place-items: center; cursor: pointer; padding: 0; opacity: 0; transition: opacity 0.2s, border-color 0.2s; }
.stage .step .i { width: 16px; height: 16px; }
.stage .step.prev { left: 12px; }
.stage .step.next { right: 12px; }
.stage:hover .step, .stage .step:focus-visible, .gallery:focus-within .step { opacity: 1; }
.stage .step:hover { border-color: var(--bone); }
.stage .step:focus-visible { border-radius: 50%; }
.stage .count { position: absolute; right: 12px; bottom: 12px; padding: 5px 8px; border-radius: 7px; background: rgba(8, 9, 11, 0.7); font: 500 11px/1 var(--font-mono); color: var(--bone-2); }
.stage.playing .step, .stage.playing .count { display: none; }
.playbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-1); font-size: 13.5px; color: var(--mute); }
.playbar b { color: var(--bone-2); font-weight: 500; }
.thumbs { list-style: none; display: flex; gap: 8px; margin: 10px 0 0; padding: 2px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--ink-4) transparent; }
.thumbs li { flex: none; }
.thumbs a { display: block; width: 116px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; outline: 1px solid var(--line); outline-offset: 0; opacity: 0.55; transition: opacity 0.2s, outline-color 0.2s; }
.thumbs a:hover { opacity: 1; }
.thumbs a[aria-current] { opacity: 1; outline: 2px solid var(--bone); }
.thumbs a:focus-visible { opacity: 1; outline: 2px solid var(--tungsten); outline-offset: 0; border-radius: 8px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.app-side .summary { font-size: 16px; line-height: 1.5; color: var(--bone); overflow-wrap: anywhere; }
.cta { display: grid; gap: 10px; }
.cta .btn { height: 48px; }
.app-side .need { margin-top: -6px; }
.invite { padding: 10px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--tungsten) 45%, transparent); background: radial-gradient(90% 140% at 80% 0%, var(--halo), transparent 70%); font-size: 13.5px; color: var(--bone-2); }
.invite b { font: 500 13px var(--font-mono); color: var(--bone); letter-spacing: 0.04em; }
.statrow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stat { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 0 6px; padding: 11px 6px 10px; background: none; border: 0; border-left: 1px solid var(--line); color: var(--bone); font: inherit; text-align: center; text-decoration: none; min-width: 0; }
.stat:first-child { border-left: 0; }
.stat .i { width: 13px; height: 13px; color: var(--mute); }
.stat b { font: 600 16px/1.2 var(--font-sans); letter-spacing: -0.02em; }
.stat span { grid-column: 1 / -1; font: 400 11.5px/1.3 var(--font-mono); color: var(--mute); }
a.stat, button.stat { cursor: pointer; transition: background 0.2s; }
a.stat:hover, button.stat:hover { background: rgba(236, 232, 225, 0.05); }
.stat:focus-visible { outline-offset: -2px; border-radius: 0; }
.like[aria-pressed="true"] .i { color: var(--tungsten); fill: var(--tungsten); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--tungsten) 60%, transparent)); }
.like.lit { background: rgba(236, 232, 225, 0.07); }
.facts { margin: 0; display: grid; font-size: 13.5px; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); min-width: 0; }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts > div:last-child { padding-bottom: 0; }
.facts dt { color: var(--mute); flex: none; }
.facts dd { margin: 0; color: var(--bone-2); text-align: right; font-family: var(--font-mono); font-size: 12.5px; min-width: 0; overflow-wrap: anywhere; }
.repo { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font: 400 12.5px/1.3 var(--font-mono); color: var(--bone-2); text-decoration: none; min-width: 0; }
.repo span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repo .i:last-child { width: 12px; height: 12px; color: var(--mute); }
.repo:hover { color: var(--bone); }

.app-main > .block:first-child { margin-top: 32px; }
.rooms .dot { background: var(--ink-4); box-shadow: none; }
.rooms .dot.on { background: var(--tungsten); box-shadow: 0 0 8px var(--tungsten); }
.roomlist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.room { display: grid; grid-template-columns: 92px minmax(0, 1fr) 64px 100px 76px; align-items: center; gap: 12px; padding: 9px 9px 9px 16px; border-top: 1px solid var(--line); font: 400 13px/1.3 var(--font-mono); color: var(--mute); }
.room:first-child { border-top: 0; }
.room:hover { background: rgba(236, 232, 225, 0.03); }
.room .code { color: var(--bone); font-weight: 500; letter-spacing: 0.06em; }
.room .what { display: flex; gap: 10px; min-width: 0; overflow: hidden; white-space: nowrap; }
.room .mode { color: var(--bone-2); text-transform: uppercase; }
.room .mode, .room .where { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.room .ppl { display: inline-flex; align-items: center; gap: 6px; color: var(--bone-2); }
.room .ppl .i { width: 12px; height: 12px; color: var(--mute); }
.room .age { white-space: nowrap; }
.room .btn { height: 32px; padding: 0 14px; font-size: 13px; }
.rooms .fine { margin-top: 0; }
.controls { color: var(--bone-2); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.verlist { list-style: none; margin: 0; padding: 0; font: 400 13px/1.3 var(--font-mono); color: var(--mute); }
.verlist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.verlist li:first-child { border-top: 0; padding-top: 0; }
.verlist .v { color: var(--bone-2); }
.verlist .pill { background: none; border: 1px solid var(--line-2); padding: 3px 6px; font-size: 10.5px; color: var(--bone-2); }
.verlist time { margin-left: auto; }
.older { border-top: 1px solid var(--line); }
.older summary { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; font-size: 13.5px; color: var(--bone-2); cursor: pointer; list-style: none; }
.older summary::-webkit-details-marker { display: none; }
.older summary:hover { color: var(--bone); }
.older[open] summary .i { transform: rotate(180deg); }
.older .verlist li:first-child { padding-top: 8px; }
.report { margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--line); }
.report summary { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--mute); cursor: pointer; list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report summary:hover { color: var(--bone-2); }
.report form { display: grid; gap: 10px; margin-top: 14px; max-width: 560px; }
.report label { font-size: 13.5px; color: var(--bone-2); }
textarea { width: 100%; min-height: 84px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--ink-1); color: var(--bone); font: 400 14px/1.5 var(--font-sans); resize: vertical; }
.report .acts, .dialog .acts { display: flex; align-items: center; gap: 12px; }
.more-from { margin-top: 64px; }

/* What a creator wrote (descriptionHtml: sanitized Markdown). */
.prose { color: var(--bone-2); font-size: 15.5px; line-height: 1.65; max-width: 74ch; overflow-wrap: anywhere; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 14px; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--bone); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-top: 28px; }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: 22px; }
.prose h2 { font-size: 19px; }
.prose h3, .prose h4 { font-size: 16px; }
.prose a { color: var(--bone); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.prose a:hover { text-decoration-color: var(--bone); }
.prose strong, .prose b { color: var(--bone); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 5px; }
.prose li::marker { color: var(--mute); }
.prose img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.prose code { white-space: normal; overflow-wrap: anywhere; }
.prose pre { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: #0a0b0e; overflow-x: auto; font: 400 13px/1.6 var(--font-mono); color: #c9c4bb; }
.prose pre code { border: 0; background: none; padding: 0; font: inherit; color: inherit; white-space: pre; }
.prose blockquote { padding-left: 14px; border-left: 2px solid var(--line-2); color: var(--mute); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 6px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { color: var(--bone); font-weight: 600; }

/* ---------- Profile ---------- */
.profile { display: flex; align-items: center; gap: 22px; padding: 44px 0 32px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.profile .avatar.xl { width: 88px; height: 88px; font-size: 32px; border: 1px solid var(--line-2); }
.profile .txt { display: grid; gap: 8px; min-width: 0; flex: 1; }
.profile h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 620 clamp(26px, 3vw, 36px)/1.1 var(--font-sans); letter-spacing: -0.04em; overflow-wrap: anywhere; }
.profile .handle { font: 400 13.5px/1.3 var(--font-mono); color: var(--mute); }
.profile .handle a { color: var(--bone-2); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.profile .handle a:hover { color: var(--bone); }
.profile .handle .i { width: 11px; height: 11px; }
.profile .kv b { color: var(--bone); }

/* ---------- Dashboard ---------- */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: 44px 0 0; }
.dash-head h1 { font: 620 clamp(26px, 3vw, 36px)/1.1 var(--font-sans); letter-spacing: -0.04em; }
.dash-head p { margin-top: 8px; color: var(--mute); font-size: 15px; }
.dash-head p a { color: var(--bone-2); text-decoration: none; }
.dash-head p a:hover { color: var(--bone); }
.names { display: grid; gap: 8px; min-width: 220px; font: 400 12.5px/1 var(--font-mono); color: var(--mute); }
.names b { color: var(--bone); font-weight: 500; }
progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 4px; border: 0; border-radius: 4px; background: var(--ink-4); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--ink-4); }
progress::-webkit-progress-value { background: var(--bone-2); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--bone-2); border-radius: 4px; }
.applist { list-style: none; margin: 0 0 14px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; }
.approw { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 12px 16px 12px 12px; border-top: 1px solid var(--line); transition: opacity 0.2s; }
.approw:first-child { border-top: 0; }
.approw.busy { opacity: 0.5; pointer-events: none; }
.approw .thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.approw .thumb img { width: 100%; height: 100%; object-fit: cover; }
.approw .info { display: grid; gap: 4px; min-width: 0; }
.approw h2 { font: 600 16px/1.3 var(--font-sans); letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.approw h2 a { text-decoration: none; }
.approw h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.approw .addr { font: 400 12.5px/1.3 var(--font-mono); color: var(--bone-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.approw .meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font: 400 12px/1.5 var(--font-mono); color: var(--mute); }
.approw .warn { font-size: 12.5px; color: var(--bone-2); }
.approw .ctl { display: flex; align-items: center; gap: 8px; }
.approw .state { display: inline-flex; align-items: center; gap: 7px; min-width: 84px; font: 400 12px/1 var(--font-mono); color: var(--mute); }
.approw .state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); }
.approw .state.on { color: var(--bone-2); }
.approw .state.on::before { background: var(--bone-2); }
.approw .btn { height: 34px; padding: 0 14px; font-size: 13px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
.two .cmd:first-of-type { margin-top: 12px; }
.two .cmd + .cmd { margin-top: 8px; }
.dialog { width: min(440px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--ink-2); color: var(--bone); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.dialog::backdrop { background: rgba(3, 4, 5, 0.7); backdrop-filter: blur(3px); }
.dialog form { display: grid; gap: 12px; margin: 0; }
.dialog h2 { font: 600 20px/1.25 var(--font-sans); letter-spacing: -0.025em; overflow-wrap: anywhere; }
.dialog p { font-size: 14.5px; color: var(--bone-2); }
.dialog .acts { justify-content: flex-end; margin-top: 6px; }

/* ---------- Device sign-in, messages ---------- */
.page-narrow { display: grid; align-content: start; padding-top: 72px; }
.panel { display: grid; gap: 16px; }
.panel h1 { font: 620 30px/1.1 var(--font-sans); letter-spacing: -0.04em; }
.panel h2 { font: 600 19px/1.2 var(--font-sans); letter-spacing: -0.025em; }
.panel p { color: var(--bone-2); font-size: 15px; }
.panel .lede { font-size: 15.5px; line-height: 1.55; }
.panel .lede b { color: var(--bone); font-weight: 500; }
.panel .btn { justify-self: start; }
.panel .btn.wide { justify-self: stretch; }
.panel .usercode { padding: 18px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--ink-0); text-align: center; font: 500 clamp(26px, 8vw, 38px)/1 var(--font-mono); letter-spacing: 0.14em; color: var(--bone) !important; overflow-wrap: anywhere; }
.asking { padding: 2px 0; }
.asking .acct { display: inline-flex; align-items: center; gap: 7px; }
.asking .avatar { width: 20px; height: 20px; font-size: 10px; }
.decide { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.decide form { margin: 0; }
.codeform { display: grid; gap: 10px; margin: 0; }
.codeform label { font: 500 12.5px/1 var(--font-mono); color: var(--mute); }
.codeform input { width: 100%; min-width: 0; height: 56px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink-0); color: var(--bone); font: 500 24px/1 var(--font-mono); letter-spacing: 0.14em; text-align: center; text-transform: uppercase; }
.codeform input::placeholder { color: var(--ink-4); }
.activate .done { color: var(--bone); }
.activate .done .i { width: 40px; height: 40px; }
.msg { display: grid; justify-items: start; gap: 16px; padding: 40px 0; }
.msg .status-code { font: 500 13px/1 var(--font-mono); color: var(--mute); padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 8px; }
.msg h1 { font: 620 clamp(30px, 5vw, 44px)/1.05 var(--font-sans); letter-spacing: -0.045em; overflow-wrap: anywhere; }
.msg .lede { font-size: 17px; overflow-wrap: anywhere; }
.msg .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- Publish ---------- */
.page-publish .page-head { padding-bottom: 12px; }
.guide { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
.guide .aside { display: grid; gap: 16px; margin-top: 44px; }
.guide .panel { padding: 24px; border-radius: var(--r-2); gap: 12px; }
.howto { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 28px; }
.howto li { counter-increment: step; position: relative; padding-left: 44px; min-width: 0; }
.howto li::before { content: "0" counter(step); position: absolute; left: 0; top: 3px; font: 500 12.5px/1.4 var(--font-mono); color: var(--tungsten); }
.howto h3 { font: 600 18px/1.3 var(--font-sans); letter-spacing: -0.02em; }
.howto p { margin-top: 10px; color: var(--bone-2); font-size: 15px; max-width: 62ch; }
.howto p a, .panel p a, .rules a { color: var(--bone); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.howto b, .panel b { color: var(--bone); font-weight: 500; }
.rules { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.rules > div { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rules dt { font: 500 12.5px/1.7 var(--font-mono); color: var(--mute); }
.rules dd { margin: 0; color: var(--bone-2); font-size: 14.5px; line-height: 1.55; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 0 24px; }
  .more-from .grid > :nth-child(4) { display: none; }
}
@media (max-width: 980px) {
  .feat { grid-template-columns: 1fr; }
  .lead .cover { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .side { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery, .app-side, .app-main { grid-column: 1; grid-row: auto; }
  .app-side { position: static; margin-top: 20px; }
  .guide { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .nav .links { display: none; }
  .subnav { display: block; }
  .search { flex: 1 1 auto; }
}
@media (max-width: 760px) {
  :root { --nav-h: 56px; }
  .nav .wrap { gap: 12px; }
  .nav .logo > span { display: none; }
  .search kbd { display: none; }
  .search input { font-size: 16px; padding-right: 12px; text-overflow: ellipsis; }
  .search input::placeholder { text-overflow: ellipsis; }
  .tile .stats > span + span { display: none; }
  .rooms .block-head .n { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .more-from .grid > :nth-child(4) { display: flex; }
  .tile .body { padding: 10px 11px 11px; gap: 3px; }
  .tile h3 { font-size: 14.5px; }
  .tile .sum { display: none; }
  .tile .row { margin-top: 5px; }
  .tile:hover { transform: none; }
  .cover .tags { top: 7px; left: 7px; gap: 4px; }
  .cover .live { left: 7px; bottom: 7px; }
  .tile .cover .tags .pill + .pill { display: none; }
  .pill { padding: 4px 6px; font-size: 10px; }
  .feed-head { padding: 26px 0 22px; }
  .feed-head p { font-size: 14px; }
  .featured { margin-bottom: 32px; }
  .lead .txt { padding: 0 16px 16px; }
  .lead .sum { font-size: 14px; }
  .side { grid-template-columns: 1fr; gap: 10px; }
  .mini { grid-template-columns: 124px minmax(0, 1fr); }
  .bar { flex-wrap: wrap; border-bottom: 0; }
  .tabs { flex: 1 1 100%; gap: 22px; border-bottom: 1px solid var(--line); }
  .seg { margin: 14px 0 0; }
  .chips { margin: 0 -20px; padding: 12px 20px 0; }
  .chips.wrapd { margin: 0; padding: 0; }
  .block { margin-top: 36px; }
  .app-head { padding: 22px 0 18px; }
  .app-side { padding: 18px; }
  .stage { border-radius: 12px; }
  .stage .step { display: none; }
  .thumbs a { width: 96px; }
  .playbar { flex-direction: column; align-items: stretch; padding: 12px; }
  .room { grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 12px; padding: 10px 10px 10px 14px; }
  .room .what { grid-column: 1; grid-row: 2; }
  .room .ppl { grid-column: 2; grid-row: 1; }
  .room .age { grid-column: 2; grid-row: 2; text-align: right; }
  .room .btn { grid-column: 3; grid-row: 1 / span 2; }
  .block-head { flex-wrap: wrap; row-gap: 8px; }
  .rooms .block-head { flex-wrap: nowrap; }
  .profile { gap: 16px; padding: 28px 0 24px; flex-wrap: wrap; }
  .profile .avatar.xl { width: 64px; height: 64px; font-size: 24px; }
  .dash-head { padding-top: 28px; }
  .names { min-width: 0; width: 100%; }
  .approw { grid-template-columns: 96px minmax(0, 1fr); gap: 12px 14px; padding: 12px; }
  .approw .ctl { grid-column: 1 / -1; }
  .approw .state { margin-right: auto; }
  .two { grid-template-columns: 1fr; }
  .page-narrow { padding-top: 32px; }
  .rules > div { grid-template-columns: 1fr; gap: 2px; }
  .howto li { padding-left: 34px; }
  .more-from { margin-top: 48px; }
  main { padding-bottom: 72px; }
}
@media (max-width: 380px) {
  .tabs { gap: 18px; }
  .tabs a { font-size: 14.5px; }
  .subnav .wrap { gap: 18px; }
  .decide { grid-template-columns: 1fr; }
}
