/* dote.gg's signed-out pages (packages/ui/src/publicFeed.ts). app.css is the app's own CSS, so the
   app's markup looks as it does in the app; this file adds only the pw- pieces from the approved mocks
   (mockups/public-feed/css/public.css and profile.css). Breakpoints are the app's: the desktop shell
   from 900px (desktop.css) and the right column from 1200px (feed-shell.css). Nothing here repaints
   continuously: no looping animations, and every blur and mask is static. */

/* ---------- Page ---------- */
html, body { height: 100%; }
.pw-page { overflow: hidden; }
.pw-page #main:focus { outline: none; }

/* ---------- Phone top bar: the feed bar's box with the mark and the two account actions ---------- */
.pw-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 54px; padding: env(safe-area-inset-top) 10px 0 15px; border-bottom: 1px solid var(--feed-line); background: var(--feed-bg); flex: none; z-index: 3; }
.pw-brand { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); min-height: 44px; }
.pw-brand .icon { width: 20px; height: 22px; fill: currentColor; stroke: none; }
.pw-brand span { font: 600 19px/1 Sora, system-ui, sans-serif; letter-spacing: -.05em; color: var(--tx); }
.pw-top-end { display: flex; align-items: center; gap: 2px; }
.pw-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; font-size: 13px; font-weight: 650; color: var(--tx); }

/* ---------- Desktop sidebar and column ---------- */
/* Create account and Sign in where the account row sits, under the policy links. */
.pw-nav-account { display: grid; gap: 8px; padding: 12px 4px 0; }
.pw-nav-account .feed-button { justify-content: center; }
.pw-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 2px 4px; font-size: 12px; color: var(--mut); }
.pw-foot a { color: inherit; }
.pw-foot-stream { justify-content: center; padding: 4px 16px 28px; }
@media (min-width: 1200px) { .pw-foot-stream { display: none; } }

/* ---------- Intro card: Lucy's copy. Its action row is shared by the end card ---------- */
/* Two soft tone washes under a static grain: fractal noise from an SVG filter, used as a mask over
   the text colour so it reads in both themes. It tiles, so it renders once. */
.pw-intro { position: relative; isolation: isolate; padding: 20px 15px 15px; border-bottom: 1px solid var(--feed-line); background:
  radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--tone-a) 38%, transparent), transparent 60%),
  radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--tone-b) 26%, transparent), transparent 65%), var(--feed-bg); }
.pw-intro::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--tx); opacity: .07;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.4 0 0 0 -.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 160px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.4 0 0 0 -.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 160px; }
.pw-intro-text { max-width: none; margin: 0; font: 500 16px/1.5 Sora, system-ui, sans-serif; letter-spacing: -.02em; color: var(--mut); text-wrap: pretty; }
.pw-intro-text strong { font-weight: 600; color: var(--tx); }
.pw-intro-join { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 11px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, transparent); font-size: 13px; line-height: 1.45; color: var(--tx); }
.pw-intro-join .icon { width: 16px; height: 18px; flex: none; color: var(--accent); fill: currentColor; stroke: none; }
.pw-intro-join a { font-weight: 650; color: var(--accent); text-decoration: underline 1.5px color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
.pw-intro-join a:hover { text-decoration-color: currentColor; }
.pw-intro-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.pw-intro-actions .feed-button { gap: 7px; }
.pw-intro-note { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--mut); }
@media (min-width: 900px) {
  .pw-intro { padding: 21px 17px 17px; }
  .pw-intro-text { font-size: 17px; }
}

/* ---------- The age gate: shown until html[data-age=ok] ---------- */
/* Locked: no scrolling, and everything under the intro (or her header) blurs more the further down it
   sits. Each .pw-haze layer is a static backdrop blur masked to a band, doubling band by band, so the
   first post reads and the rest is unreadable by about 340px. Nothing repaints: scrolling is locked.
   A status page has no gate, so it keeps scrolling. */
.pw-gate, .pw-haze { display: none; }
html:not([data-age=ok]) .pw-gate { display: block; }
html:not([data-age=ok]):has(.pw-gate) :is(.feed-scroll, .pf-scroll) { overflow: hidden; }
html:not([data-age=ok]) .pw-under { pointer-events: none; }
html:not([data-age=ok]) .pw-haze { display: block; position: relative; z-index: 2; height: 0; }
.pw-haze i { position: absolute; inset: 0 0 auto; height: 100dvh; pointer-events: none; -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); -webkit-mask-image: var(--band); mask-image: var(--band); }
.pw-haze i:nth-child(1) { --blur: 1px; --band: linear-gradient(#0000 40px, #000 100px, #000 160px, #0000 220px); }
.pw-haze i:nth-child(2) { --blur: 2px; --band: linear-gradient(#0000 100px, #000 160px, #000 220px, #0000 280px); }
.pw-haze i:nth-child(3) { --blur: 4px; --band: linear-gradient(#0000 160px, #000 220px, #000 280px, #0000 340px); }
.pw-haze i:nth-child(4) { --blur: 8px; --band: linear-gradient(#0000 220px, #000 280px, #000 340px, #0000 400px); }
.pw-haze i:nth-child(5) { --blur: 16px; --band: linear-gradient(#0000 280px, #000 340px); }

/* The link page gate's card as a sheet on phones (your copy stays readable above it), a dialog from 900px. */
.pw-gate-scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); }
.pw-sheet-gate { --gate-line: color-mix(in srgb, var(--tx) 16%, transparent); position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 100dvh; overflow: auto; padding: 24px 20px calc(18px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: #fff; color: var(--tx); box-shadow: 0 -18px 40px -24px #2a1e3c66, 0 0 0 1px #0000000f; }
[data-theme=dark] .pw-sheet-gate { background: #2a2130; }
.pw-sheet-gate:focus { outline: none; }
.pw-sheet-gate h2 { margin: 0 0 20px; font: 600 24px/1.25 Sora, system-ui, sans-serif; letter-spacing: -.045em; }
.pw-sheet-gate .feed-button.primary { width: 100%; justify-content: center; }
.pw-sheet-links { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.pw-sheet-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 13px; color: var(--mut); }
.pw-cookie-note { max-width: none; margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--gate-line); font-size: 12px; line-height: 1.5; text-align: center; color: var(--mut); text-wrap: pretty; }
.pw-cookie-note a { color: var(--accent); font-weight: 600; }
@media (max-width: 899px) {
  .pw-gate-scrim { display: none; }
}
@media (min-width: 900px) {
  .pw-sheet-gate { left: 50%; top: 50%; bottom: auto; width: 420px; transform: translate(-50%, -50%); border-radius: 18px; padding: 30px 28px 18px; }
}

/* ---------- Blurred photos: under the gate, and in AU, the UK or an unknown country until a face check ----------
   The server sends a 24px copy, never the photo; a static blur and a slight scale hide its edges. */
.pw-blur { overflow: hidden; width: 100%; height: 100%; }
.pw-blur > img { filter: blur(26px) saturate(1.15); transform: scale(1.25); }
/* Lucy's line and a white Verify with selfie button on every photo, once past the gate. */
.pw-blur-line { display: none; position: absolute; inset: 0; place-content: center; justify-items: center; gap: 3px; padding: 24px; color: #fff; text-align: center; background: #1c15204d; }
html[data-age=ok][data-face=required]:not([data-face-pass]) .pw-blur-line { display: grid; }
html[data-age=ok][data-face=required]:not([data-face-pass]) .pw-blur { cursor: pointer; }
.pw-blur-line .icon { width: 30px; height: 30px; margin-bottom: 8px; }
.pw-blur-line b { max-width: 24ch; font-size: 14px; font-weight: 650; line-height: 1.35; text-wrap: balance; text-shadow: 0 1px 8px #0006; }
.pw-blur-line > span { font-size: 12px; opacity: .82; }
.pw-blur-line .pw-blur-button { margin-top: 14px; border-color: transparent; background: #fff; color: #2a2232; }
/* Small tiles (several photos on a phone) keep the button whole: the line tightens, and the shortest
   tiles show only the button, since a tap anywhere on the photo starts the check too. */
.pw-blur { container-type: size; }
@container (max-width: 240px) {
  .pw-blur-line { padding: 10px; }
  .pw-blur-line .icon { display: none; }
  .pw-blur-line b { font-size: 12px; }
  .pw-blur-line > span { font-size: 11px; }
  .pw-blur-line .pw-blur-button { margin-top: 8px; min-height: 34px; padding-inline: 12px; font-size: 12px; }
}
@container (max-height: 190px) {
  .pw-blur-line b, .pw-blur-line > span { display: none; }
  .pw-blur-line .pw-blur-button { margin-top: 0; }
}

/* ---------- Sheets: the join prompt and the face check ----------
   Modal <dialog>s, so focus stays inside and Escape closes them. A bottom sheet on phones, a centred
   dialog from 900px. Outside .feed-screen, so like the app's sheets a plain feed-button has no frame. */
.pw-layer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--scrim); color: var(--tx); }
.pw-layer[open] { display: flex; align-items: flex-end; justify-content: center; }
.pw-layer::backdrop { background: transparent; }
.pw-sheet { width: 100%; max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: #fff; box-shadow: var(--shadow); }
[data-theme=dark] .pw-sheet { background: #2a2130; }
.pw-sheet:before { content: ''; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--lift-hover); margin: 0 auto 12px; }
.pw-sheet h2 { font: 600 19px/1.3 Sora, system-ui, sans-serif; letter-spacing: -.03em; }
@media (min-width: 900px) {
  .pw-layer[open] { align-items: center; }
  .pw-sheet { width: 400px; border-radius: 18px; padding: 26px 26px 22px; }
  .pw-sheet:before { display: none; }
}

/* The join prompt: her avatar (or the Chats icon), the title, Lucy's three lines, then the buttons. */
.pw-join { display: grid; justify-items: center; gap: 8px; text-align: center; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
.pw-join > .avatar { width: 56px; height: 56px; font-size: 20px; margin-top: 4px; }
.pw-join h2 { margin: 4px 0 8px; }
.pw-join .feed-button { width: 100%; justify-content: center; }
.pw-join-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-top: 4px; border-radius: 50%; color: var(--accent); background: var(--soft); }
.pw-join-icon .icon { width: 26px; height: 26px; }
.pw-points { justify-self: stretch; display: grid; gap: 11px; margin: 0 0 12px; padding: 14px 16px; border-radius: 14px; background: var(--soft); text-align: left; list-style: none; }
.pw-points li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.35; }
.pw-points .icon { flex: none; width: 20px; height: 20px; color: var(--accent); }
@media (min-width: 900px) {
  .pw-join { padding-bottom: 22px; }
}

/* The face check: the camera box, the instruction and its step, the privacy line, Cancel. */
.pw-checksheet h2 { margin: 2px 0 12px; }
.pw-check { display: grid; gap: 10px; padding-bottom: 6px; }
.pw-camera { position: relative; height: 230px; border-radius: 12px; background: radial-gradient(ellipse at 50% 40%, #4a3a52, #1c1520 70%); overflow: hidden; }
.pw-camera video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.pw-oval { position: absolute; left: 50%; top: 50%; width: 118px; height: 152px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid #ffffffd0; box-shadow: 0 0 0 999px #1c152066; }
.pw-check-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 2px 0 0; }
.pw-check-line b { font-size: 15px; font-weight: 650; }
.pw-check-line span { font-size: 12px; color: var(--mut); font-variant-numeric: tabular-nums; }
.pw-check-line[data-error] b { color: var(--danger); }
.pw-check .pw-intro-note { margin: 0; }
.pw-check-actions { display: flex; gap: 8px; }

/* ---------- Cards in the stream ---------- */
.pw-games { padding: 18px 15px 20px; border-bottom: 1px solid var(--feed-line); }
.pw-games h2 { margin: 0 0 4px; font: 600 19px/1.25 Sora, system-ui, sans-serif; letter-spacing: -.04em; }
.pw-games p { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: var(--mut); }
.pw-game-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.pw-game { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #2a2232; }
.pw-game img { width: 100%; height: 100%; object-fit: cover; }
.pw-game[data-game="ship"] { background: #4a3a5c; }
.pw-game[data-game="ship"] img { object-fit: contain; padding: 10px; }
.pw-game[data-game="wordy"] { background: #3b3b42; }
.pw-game b { position: absolute; left: 9px; bottom: 7px; font-size: 11.5px; font-weight: 650; color: #fff; text-shadow: 0 1px 6px #0008; }
.pw-wordy { display: flex; gap: 3px; margin-bottom: 12px; }
.pw-wordy i { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 3px; font: 700 10px/1 system-ui; font-style: normal; color: #fff; background: #6b6b74; }
.pw-wordy i[data-tone="1"] { background: #b59f3b; }
.pw-wordy i[data-tone="2"] { background: #538d4e; }
.pw-end { display: grid; justify-items: center; gap: 10px; padding: 36px 24px 44px; text-align: center; }
.pw-end > .icon { width: 26px; height: 29px; color: var(--accent); fill: currentColor; stroke: none; }
.pw-end h2 { margin: 0; font: 600 18px/1.3 Sora, system-ui, sans-serif; letter-spacing: -.03em; }
.pw-end .pw-intro-actions { margin-top: 4px; justify-content: center; }
.feed-empty .pw-intro-actions { margin-top: 0; }
@media (min-width: 900px) {
  .pw-games { padding-inline: 17px; }
}

/* Dommes to follow in the stream. feed-shell.css styles .feed-card only from 900px, so this copy
   restates its values for phones. */
.pw-follow { margin: 12px 13px; padding: 12px 14px 6px; border-radius: 14px; }
.pw-follow h2 { display: flex; align-items: center; margin: 0 0 4px; font: 700 15px/1.3 system-ui, sans-serif; letter-spacing: 0; }
.pw-follow .feed-card-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 52px; padding: 4px 0; font-size: 12.5px; line-height: 1.4; }
.pw-follow .feed-card-text { min-width: 0; color: inherit; overflow-wrap: anywhere; }
.pw-follow .feed-card-text strong { font-weight: 650; }
.pw-follow .feed-card-text small { display: block; color: var(--mut); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-follow .feed-card-action { min-height: 34px; padding: 6px 14px; font-size: 12px; }

/* ---------- Platform ads: Lucy's copy under a drawn picture of the feature ---------- */
.pw-ad { padding: 14px 15px 18px; border-bottom: 1px solid var(--feed-line); }
.pw-ad-art { position: relative; display: grid; place-items: center; height: 214px; margin-bottom: 15px; border-radius: 16px; overflow: hidden; }
.pw-ad h2 { margin: 0 0 5px; font: 600 19px/1.25 Sora, system-ui, sans-serif; letter-spacing: -.04em; }
.pw-ad p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: color-mix(in srgb, var(--tx) 78%, var(--feed-bg)); text-wrap: pretty; }
.pw-ad .feed-button { gap: 7px; }
.pw-ad .feed-button .icon { width: 17px; height: 17px; }
@media (min-width: 900px) {
  .pw-ad { padding: 16px 17px 20px; }
  .pw-ad-art { height: 250px; }
}
/* A stock face from /images, so the ads name no real domme. */
.pw-ad-face { background: url(/images/auth-16045192.jpg) 47% 21% / 330% no-repeat; }

/* Crypto Cards: a loaded card, and the ping when she spends from it.
   The backdrop is SVG noise drawn once by the browser: fine grain over a low frequency field
   mapped to violet and pink (mockups/crypto-ad-noise). */
.pw-ad[data-ad-kind="crypto"] .pw-ad-art { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 260' preserveAspectRatio='xMidYMid slice'%3E%3Cfilter id='f' color-interpolation-filters='sRGB' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0042 .0062' numOctaves='3' seed='11'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.2' intercept='-.6'/%3E%3CfeFuncG type='linear' slope='2.2' intercept='-.6'/%3E%3CfeFuncB type='linear' slope='2.2' intercept='-.6'/%3E%3C/feComponentTransfer%3E%3CfeComponentTransfer%3E%3CfeFuncR type='table' tableValues='.10 .13 .21 .34 .56'/%3E%3CfeFuncG type='table' tableValues='.08 .10 .15 .23 .29'/%3E%3CfeFuncB type='table' tableValues='.13 .17 .32 .52 .56'/%3E%3CfeFuncA type='linear' slope='0' intercept='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='600' height='260' filter='url(%23f)'/%3E%3C/svg%3E") center / cover,
  #211a29; }
.pw-ccard { position: relative; display: flex; flex-direction: column; justify-content: space-between; width: 232px; aspect-ratio: 1.586; padding: 15px 16px 13px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #a58ae6 0%, #6d4fc0 48%, #3d2a78 100%); box-shadow: 0 22px 40px -18px #000c, inset 0 1px 0 #ffffff40; transform: translate(-14px, -10px) rotate(-7deg); }
.pw-ccard:after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 35%, #ffffff26 48%, transparent 62%); pointer-events: none; }
.pw-ccard-top { display: flex; align-items: center; justify-content: space-between; }
.pw-ccard-top .icon { width: 20px; height: 22px; fill: currentColor; stroke: none; }
.pw-ccard-chip { width: 30px; height: 22px; border-radius: 5px; background: linear-gradient(135deg, #f4dba0, #c79a4a); box-shadow: inset 0 0 0 1px #0000001f; }
.pw-ccard strong { font: 600 25px/1 Sora, system-ui, sans-serif; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pw-ccard-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: .08em; opacity: .9; }
.pw-ccard-coins { display: flex; gap: 4px; }
.pw-ccard-coins i { padding: 2px 5px; border-radius: 4px; font: 700 8.5px/1.2 system-ui; font-style: normal; letter-spacing: .04em; background: #ffffff2e; }
.pw-ping { position: absolute; right: 16px; bottom: 18px; display: flex; align-items: center; gap: 9px; padding: 9px 13px 9px 9px; border-radius: 14px; background: #fff; color: #2a2232; box-shadow: 0 16px 30px -14px #000a; }
.pw-ping .avatar { width: 30px; height: 30px; }
.pw-ping > span { display: grid; }
.pw-ping b { font-size: 12.5px; font-weight: 650; }
.pw-ping small { font-size: 11px; color: #7a6c80; }

/* Invite your dom: you and her, a game between you, and the link. */
.pw-ad[data-ad-kind="invite"] .pw-ad-art { align-content: center; gap: 18px; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), color-mix(in srgb, var(--accent) 8%, var(--feed-bg)); }
.pw-pair { display: flex; align-items: center; }
.pw-pair .avatar { width: 64px; height: 64px; font-size: 22px; box-shadow: 0 0 0 4px var(--feed-bg); }
.pw-you { background: var(--tone-b); color: var(--tx); }
.pw-pair-line { position: relative; width: 92px; height: 2px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent) 0 6px, transparent 6px 11px); }
.pw-pair-game { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--accent); background: var(--feed-bg); box-shadow: 0 6px 16px -8px #3b234a66; }
.pw-pair-game .icon { width: 21px; height: 21px; }
.pw-pair-dom { position: relative; }
.pw-pair-crown { position: absolute; right: -4px; top: -6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--accent-ink); background: var(--accent); box-shadow: 0 0 0 3px var(--feed-bg); }
.pw-pair-crown .icon { width: 15px; height: 15px; }
.pw-invite-link { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--tx); background: var(--feed-bg); box-shadow: 0 8px 20px -12px #3b234a55, 0 0 0 1px var(--feed-line); }
.pw-invite-link .icon { width: 17px; height: 17px; color: var(--accent); }

/* Messaging with spice: a chat with the Red light bar and two toy bars, in the app's colours. */
.pw-ad[data-ad-kind="spice"] .pw-ad-art { align-items: end; padding: 16px 16px 0; background: radial-gradient(circle at 0% 0%, #d9c8f3, transparent 60%), linear-gradient(160deg, #efe9fb, #e6e3f4); }
[data-theme=dark] .pw-ad[data-ad-kind="spice"] .pw-ad-art { background: radial-gradient(circle at 0% 0%, #4a3866, transparent 60%), linear-gradient(160deg, #2b2436, #221d2b); }
.pw-chat { width: 100%; max-width: 330px; height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 0; border-radius: 16px 16px 0 0; background: var(--feed-bg); box-shadow: 0 -10px 30px -18px #3b234a55; }
.pw-chat-head { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.pw-chat-head .avatar { width: 28px; height: 28px; }
.pw-light { position: relative; display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 10px; color: #fff; background: #2e8b5e; overflow: hidden; }
[data-theme=dark] .pw-light { background: #35a06c; }
.pw-light span { display: grid; gap: 1px; }
.pw-light b { font-size: 14px; font-weight: 600; }
.pw-light small { font-size: 11px; opacity: .9; }
.pw-light i { position: absolute; left: 44%; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: #fff; opacity: .85; }
.pw-chat-body { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pw-bubble { max-width: 60%; margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--tx); }
.pw-toys { display: flex; gap: 8px; }
.pw-toys > span { display: grid; justify-items: center; gap: 3px; }
.pw-toys small { font-size: 10px; color: var(--mut); }
.pw-toy-level { position: relative; display: grid; place-items: center; width: 46px; height: 72px; border-radius: 9px; overflow: hidden; background: var(--soft); border: 1px solid var(--lift-hover); }
.pw-toy-level i { position: absolute; inset: auto 0 0; height: var(--v); background: var(--accent); opacity: .4; }
.pw-toy-level output { position: relative; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Her profile (C: Message first) ---------- */
/* The Message bar fixed to the bottom while the column is hidden. */
.pw-dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 10px 13px calc(18px + env(safe-area-inset-bottom)); background: var(--feed-bg); border-top: 1px solid var(--feed-line); }
.pw-dock .feed-button { width: 100%; justify-content: center; gap: 7px; min-height: 46px; }
.pw-dock .feed-button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-page .pf-head h1 { overflow-wrap: anywhere; }
.pw-dock .icon { width: 18px; height: 18px; }
/* Her card in the column: Message, Follow and her links. */
.pw-her { padding: 10px 14px 12px; }
.pw-her .feed-card-row { grid-template-columns: 46px minmax(0, 1fr) auto; }
.pw-her .feed-card-row > .avatar { width: 46px; height: 46px; }
.pw-her .feed-card-text strong { font-size: 15px; }
.pw-her-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px; }
.pw-her-actions .feed-button { justify-content: center; gap: 6px; }
.pw-her-actions .icon { width: 16px; height: 16px; }
.pw-her .pf-meta { margin-top: 6px; }

/* ---------- Discover (packages/ui/src/discoverPage.ts) ----------
   discover.css and pages.css draw it as in the app. It has no .feed-screen, so the shell's feed
   buttons and top bar take the feed's colours from the layout. */
.pw-page .app-layout:not(.feed-app) { --feed-bg: #fff; --feed-line: color-mix(in srgb, var(--tx) 10%, transparent); }
[data-theme=dark] .pw-page .app-layout:not(.feed-app) { --feed-bg: var(--doc); }
.dd-form { display: contents; }
.pw-page .admin-badge .icon { color: #d4213f; }
/* No column here, so the footer stays at every width. */
.dd-body > .pw-foot-stream { display: flex; padding-inline: 0; }

/* ---------- One DOM for every width ----------
   Last, so these switches win over the base rules above. */
/* The top bar under 900px, the app's sidebar from 900px and its column from 1200px. */
@media (max-width: 899px) {
  .pw-nav, .pw-col { display: none; }
  .pw-page .feed-scroll { padding-bottom: 24px; }
}
@media (min-width: 900px) {
  .pw-top { display: none; }
}
/* Without the column, the stream carries Dommes to follow and her profile keeps Follow and the Message bar. */
@media (min-width: 1200px) {
  .pw-follow, .pw-page .pf-actions, .pw-dock { display: none; }
}
@media (max-width: 1199px) {
  .pw-page .pf-scroll { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
