/* The recognition experience (recognition-experience plugin): the wall, the composer sheet and the reveal.
   Brand colour comes from the programme's theme: recognition-fx.js reads the primary button colour and sets --rx-brand,
   --rx-brand-deep, --rx-brand-light, --rx-brand-soft and --rx-brand-ink on <html>; the fallbacks below are a neutral blue.
   Mobile-first (bottom sheets, thumb-zone actions, safe areas); on a wide screen the sheet and the reveal become a centred
   device-width stage. Every animation is skipped under prefers-reduced-motion. */
:root {
    --rx-brand: #1f5fd1; --rx-brand-deep: #163d85; --rx-brand-light: #4a7edb; --rx-brand-soft: #e4ecfa; --rx-brand-ink: #fff;
    --rx-gold: #f3b743; --rx-ok: #16a36a;
    --rx-paper: #f3f4f7; --rx-card: #fff; --rx-ink: #15171d; --rx-mute: #646b7c; --rx-line: #e3e5ec;
    --rx-spring: cubic-bezier(.2, 1.3, .35, 1); --rx-ease: cubic-bezier(.22, .8, .2, 1);
    --rx-hand: "Caveat", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
    --rx-card-ar: 1.4145; /* admins upload landscape eCards (1754x1240, the eAward preview's size) */
}
html.rx-locked, html.rx-locked body { overflow: hidden !important; }

/* ---------- Shared bits ---------- */
.rx-av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; background: var(--rx-brand-soft); color: var(--rx-brand-deep); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.rx-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rx-av.is-team { font-size: 11px; }
.rx-floaty { position: absolute; z-index: 9; font-size: 30px; pointer-events: none; animation: rx-floaty 1.4s ease-out forwards; }
@keyframes rx-floaty { to { transform: translateY(-260px) scale(1.4); opacity: 0; } }
.rx-burst { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-size: 84px; pointer-events: none; z-index: 4; animation: rx-heart .9s var(--rx-spring) forwards; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); }
@keyframes rx-heart { 0% { scale: 0; opacity: 0; } 30% { scale: 1.15; opacity: 1; } 70% { scale: .95; opacity: 1; } 100% { scale: 1.4; opacity: 0; } }
.rx-caret { display: inline-block; width: 2px; height: 1em; background: var(--rx-brand); vertical-align: -2px; margin-left: 1px; animation: rx-breathe .8s steps(2) infinite; }
@keyframes rx-breathe { 50% { opacity: .45; } }
.rx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1; padding: 15px 16px; border: 0; border-radius: 18px; font: inherit; font-weight: 700; font-size: 15.5px; background: var(--rx-ink); color: #fff; cursor: pointer; transition: transform .2s var(--rx-spring), opacity .2s; text-decoration: none; }
.rx-btn:hover, .rx-btn:focus { color: #fff; text-decoration: none; }
.rx-btn:active { transform: scale(.97); }
.rx-btn[disabled] { opacity: .3; pointer-events: none; }
.rx-btn.rx-ghost { flex: none; background: var(--rx-card); color: var(--rx-ink); box-shadow: inset 0 0 0 1px var(--rx-line); }
.rx-btn.rx-ghost:hover, .rx-btn.rx-ghost:focus { color: var(--rx-ink); }
.rx-btn.rx-brand { background: var(--rx-brand); color: var(--rx-brand-ink); }
.rx-btn.rx-brand:hover, .rx-btn.rx-brand:focus { color: var(--rx-brand-ink); }
.rx-btn:focus-visible, .rx-x:focus-visible, .rx-chip:focus-visible, .rx-person:focus-visible, .rx-value:focus-visible, .rx-level:focus-visible, .rx-cslide:focus-visible, .rx-emo:focus-visible, .rx-react:focus-visible, .rx-envelope:focus-visible, .rx-spot:focus-visible { outline: 3px solid var(--rx-gold); outline-offset: 2px; }
.rx-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--rx-card); color: var(--rx-ink); display: inline-grid; place-items: center; box-shadow: inset 0 0 0 1px var(--rx-line); cursor: pointer; flex: none; font-size: 16px; }
.rx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rx-art { position: absolute; inset: 0; background: linear-gradient(150deg, var(--rx-brand), var(--rx-brand-deep)); overflow: hidden; }
.rx-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rx-art.is-contain::before { content: ""; position: absolute; inset: -12%; background: var(--img) center / cover no-repeat; filter: blur(16px) saturate(1.15); opacity: .9; }
.rx-art.is-contain img { position: relative; object-fit: contain; }
.rx-art.is-tile { display: grid; place-items: center; }
.rx-art.is-tile img { width: 44%; height: 44%; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .35)); }
.rx-art.is-tile::before { content: ""; position: absolute; inset: -30%; background: repeating-radial-gradient(circle at 80% 20%, transparent 0 22px, rgba(255, 255, 255, .1) 22px 24px); }
.rx-art .rx-art-name { position: absolute; left: 8%; right: 8%; bottom: 9%; color: #fff; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-size: var(--fs, 22px); text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.rx-skel { background: linear-gradient(90deg, var(--rx-line) 25%, #eef0f5 37%, var(--rx-line) 63%); background-size: 400% 100%; animation: rx-skel 1.4s ease infinite; border-radius: 12px; }
@keyframes rx-skel { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- The wall ---------- */
.rx-wall { position: relative; color: var(--rx-ink); font-size: 14px; line-height: 1.4; }
.rx-wall *, .rx-sheet *, .rx-reveal * { box-sizing: border-box; }
.rx-hello h2 { font-weight: 800; font-size: 30px; line-height: 1.02; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.rx-hello p { margin: 0 0 4px; color: var(--rx-mute); font-size: 14px; }
.rx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 6px; }
.rx-stat { background: var(--rx-card); border-radius: 16px; padding: 12px; box-shadow: 0 1px 0 var(--rx-line); min-width: 0; }
.rx-stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.rx-stat b.is-text { font-size: 15px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-stat small { color: var(--rx-mute); font-size: 11.5px; line-height: 1.25; display: block; margin-top: 2px; }
.rx-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 18px 0 10px; }
.rx-sec-h h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.rx-sec-h small { color: var(--rx-mute); font-size: 12.5px; }
.rx-reel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: none; }
.rx-reel::-webkit-scrollbar { display: none; }
.rx-spot { position: relative; flex: none; width: 268px; height: 176px; border-radius: 22px; overflow: hidden; scroll-snap-align: start; color: #fff; text-align: left; border: 0; padding: 0; background: var(--rx-brand-deep); cursor: pointer; font: inherit; }
.rx-spot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .72)); }
.rx-spot .rx-meta { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 10px; min-width: 0; }
.rx-spot .rx-meta .rx-av { width: 34px; height: 34px; border: 2px solid #fff; }
.rx-spot .rx-meta b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-spot .rx-meta small { font-size: 12px; opacity: .85; display: block; }
.rx-spot .rx-hot { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(0, 0, 0, .35); backdrop-filter: blur(8px); padding: 5px 9px; border-radius: 999px; }
.rx-chips { position: sticky; top: var(--header-bar-height, 60px); z-index: 4; display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 8px; margin: 0 -2px; scrollbar-width: none; background: rgba(243, 244, 247, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rx-chips::-webkit-scrollbar { display: none; }
.rx-chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 0; background: var(--rx-card); box-shadow: inset 0 0 0 1px var(--rx-line); font: inherit; font-size: 13px; font-weight: 600; color: var(--rx-mute); cursor: pointer; transition: all .2s; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-chip[aria-pressed="true"] { background: var(--rx-ink); color: #fff; box-shadow: none; }
.rx-feed { display: flex; flex-direction: column; gap: 14px; padding: 12px 0 90px; }
.rx-post { background: var(--rx-card); border-radius: 24px; overflow: hidden; box-shadow: 0 1px 0 var(--rx-line), 0 10px 30px -18px rgba(20, 22, 30, .25); scroll-margin-top: calc(var(--header-bar-height, 60px) + 70px); }
.rx-post.is-fresh { animation: rx-drop .9s var(--rx-spring) both; }
.rx-post.is-lit { animation: rx-lit 2.8s ease forwards; }
@keyframes rx-drop { from { transform: translateY(-30px) scale(.94); opacity: 0; } }
@keyframes rx-lit { 0%, 60% { box-shadow: 0 0 0 3px var(--rx-gold), 0 10px 40px -10px rgba(243, 183, 67, .7); } 100% { box-shadow: 0 1px 0 var(--rx-line), 0 10px 30px -18px rgba(20, 22, 30, .25); } }
.rx-post-art { position: relative; aspect-ratio: var(--ar, var(--rx-card-ar)); overflow: hidden; user-select: none; -webkit-user-select: none; cursor: pointer; touch-action: manipulation; }
.rx-post-art .rx-art { transition: transform .6s var(--rx-ease); }
.rx-post-art:hover .rx-art { transform: scale(1.03); }
.rx-post-body { padding: 14px 16px 12px; }
.rx-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rx-pair { position: relative; display: flex; align-items: center; flex: none; }
.rx-pair .rx-av { width: 38px; height: 38px; border: 2px solid var(--rx-card); }
.rx-pair .rx-av + .rx-av { margin-left: -10px; }
.rx-who-text { min-width: 0; font-size: 14px; line-height: 1.3; }
.rx-who-text b { font-weight: 700; }
.rx-who-text small { display: block; color: var(--rx-mute); font-size: 12px; }
.rx-arrow { display: inline-block; color: var(--rx-brand); font-weight: 700; margin: 0 4px; animation: rx-nudge 2.4s ease-in-out infinite; }
@keyframes rx-nudge { 0%, 100% { translate: 0; } 50% { translate: 3px; } }
.rx-vchip { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 5px 10px 5px 6px; border-radius: 999px; background: var(--rx-brand-soft); color: var(--rx-brand-deep); font-size: 12px; font-weight: 700; max-width: 100%; }
.rx-vchip img, .rx-vchip i { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; display: inline-grid; place-items: center; font-size: 12px; }
.rx-vchip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-post-msg { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.rx-post-more { background: none; border: 0; padding: 0; color: var(--rx-mute); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rx-post-fields { margin: 10px 0 0; font-size: 13px; color: var(--rx-mute); }
.rx-post-fields span { display: block; }
.rx-post-fields strong { color: var(--rx-ink); }
.rx-post-actions { display: flex; align-items: center; gap: 6px; padding: 10px 12px 12px; border-top: 1px solid var(--rx-line); }
.rx-react { display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 999px; border: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--rx-mute); background: var(--rx-paper); cursor: pointer; transition: transform .2s var(--rx-spring), background .2s; }
.rx-react:active { transform: scale(.9); }
.rx-react[aria-pressed="true"] { background: var(--rx-brand-soft); color: var(--rx-brand-deep); }
.rx-react[disabled] { opacity: .5; cursor: default; }
.rx-grow { flex: 1; }
.rx-post-comment { margin: 0 16px 14px; padding: 10px 12px; border-radius: 14px; background: var(--rx-paper); font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.rx-post-comment .rx-av { width: 28px; height: 28px; font-size: 11px; }
.rx-post-comment b { display: block; font-size: 12.5px; }
.rx-post-comment span { min-width: 0; overflow-wrap: anywhere; }
.rx-empty { text-align: center; color: var(--rx-mute); padding: 30px 10px; }
.rx-more { display: flex; justify-content: center; padding: 4px 0 20px; }
.rx-fab { position: fixed; z-index: 1400; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 8px; padding: 15px 20px 15px 16px; border: 0; border-radius: 999px; background: var(--rx-brand); color: var(--rx-brand-ink); font: inherit; font-weight: 700; font-size: 15px; box-shadow: 0 14px 30px -8px rgba(var(--rx-brand-rgb, 31, 95, 209), .7); cursor: pointer; transition: transform .25s var(--rx-spring), background .4s; }
.rx-fab:hover { transform: translateY(-2px) scale(1.03); }
.rx-fab i { font-size: 18px; }
.rx-pill { position: sticky; top: calc(var(--header-bar-height, 60px) + 68px + env(safe-area-inset-top, 0px)); z-index: 5; display: flex; justify-content: center; pointer-events: none; height: 0; }
.rx-pill button { pointer-events: auto; border: 0; border-radius: 999px; padding: 9px 16px; background: var(--rx-ink); color: #fff; font: inherit; font-size: 13px; font-weight: 700; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); cursor: pointer; animation: rx-drop .6s var(--rx-spring) both; }
.rx-picker { display: flex; flex-direction: column; gap: 8px; }
.rx-picker button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border: 0; border-radius: 16px; background: var(--rx-card); box-shadow: inset 0 0 0 1px var(--rx-line); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.rx-picker button i { color: var(--rx-brand); }
@media (min-width: 821px) {
    .rx-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; gap: 16px; }
    .rx-stat b { font-size: 26px; }
}

/* ---------- The composer sheet ---------- */
.rx-scrim { position: fixed; inset: 0; z-index: 1500; background: rgba(10, 12, 18, .45); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .4s; }
.rx-scrim.is-on { opacity: 1; pointer-events: auto; }
.rx-sheet { position: fixed; z-index: 1501; left: 0; right: 0; bottom: 0; height: calc(100% - 46px); background: var(--rx-paper); color: var(--rx-ink); border-radius: 28px 28px 0 0; transform: translateY(105%); transition: transform .6s var(--rx-spring); display: flex; flex-direction: column; overflow: hidden; font-size: 14px; line-height: 1.4; box-shadow: 0 -20px 60px rgba(0, 0, 0, .35); }
.rx-sheet.is-on { transform: none; }
.rx-grab { width: 42px; height: 5px; border-radius: 3px; background: #cfd2db; margin: 10px auto 0; flex: none; }
.rx-sheet-h { display: flex; align-items: center; gap: 10px; padding: 10px 16px 6px; flex: none; }
.rx-sheet-h h4 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.015em; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-ribbon { display: flex; gap: 6px; padding: 4px 16px 0; flex: none; }
.rx-ribbon span { flex: 1; height: 4px; border-radius: 2px; background: var(--rx-line); overflow: hidden; position: relative; }
.rx-ribbon span::after { content: ""; position: absolute; inset: 0; background: var(--rx-brand); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--rx-ease); }
.rx-ribbon span.is-on::after { transform: none; }
.rx-mini { flex: none; margin: 12px 16px 4px; display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--rx-card); box-shadow: 0 1px 0 var(--rx-line); }
.rx-mini .rx-thumb { width: 64px; height: 45px; border-radius: 10px; overflow: hidden; position: relative; flex: none; background: var(--rx-line); }
.rx-mini .rx-mt { min-width: 0; font-size: 13px; line-height: 1.35; }
.rx-mini .rx-mt b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-mini .rx-mt span { color: var(--rx-mute); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-sheet-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 16px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rx-sheet-body::-webkit-scrollbar { display: none; }
.rx-panel { animation: rx-panel .5s var(--rx-ease) both; }
@keyframes rx-panel { from { opacity: 0; transform: translateX(24px); } }
.rx-q { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 12px; line-height: 1.05; text-wrap: balance; }
.rx-search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--rx-card); box-shadow: inset 0 0 0 1px var(--rx-line); }
.rx-search i { color: var(--rx-mute); }
.rx-search input { border: 0; outline: 0; background: none; font: inherit; font-size: 15px; flex: 1; min-width: 0; color: var(--rx-ink); }
.rx-sub { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--rx-mute); font-weight: 700; margin: 16px 0 10px; display: flex; align-items: center; gap: 8px; }
.rx-sub .rx-grow { flex: 1; }
.rx-sub button { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 700; color: var(--rx-brand-deep); text-transform: none; letter-spacing: 0; cursor: pointer; padding: 0; }
.rx-people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.rx-person { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font: inherit; font-size: 12px; line-height: 1.2; font-weight: 600; border: 0; background: none; padding: 0; color: var(--rx-ink); cursor: pointer; min-width: 0; }
.rx-person .rx-avwrap { position: relative; }
.rx-person .rx-av { width: 62px; height: 62px; font-size: 20px; transition: transform .35s var(--rx-spring), box-shadow .3s; }
.rx-person > span:not(.rx-avwrap) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-person small { color: var(--rx-mute); font-weight: 500; font-size: 10.5px; display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-person[aria-pressed="true"] .rx-av { transform: scale(.92); box-shadow: 0 0 0 3px var(--rx-paper), 0 0 0 6px var(--rx-brand); }
.rx-person .rx-tick { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--rx-brand); color: var(--rx-brand-ink); display: grid; place-items: center; border: 2px solid var(--rx-paper); transform: scale(0); transition: transform .35s var(--rx-spring); font-size: 11px; }
.rx-person[aria-pressed="true"] .rx-tick { transform: scale(1); }
.rx-selected { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rx-selected span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 5px; border-radius: 999px; background: var(--rx-ink); color: #fff; font-size: 12px; font-weight: 600; }
.rx-selected .rx-av { width: 22px; height: 22px; font-size: 9px; }
.rx-selected button { border: 0; background: rgba(255, 255, 255, .2); color: #fff; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.rx-groups { display: flex; gap: 8px; flex-wrap: wrap; }
.rx-groups .rx-chip { max-width: 100%; }
.rx-values { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rx-value { position: relative; text-align: left; padding: 14px; border: 0; border-radius: 20px; background: var(--rx-card); color: var(--rx-ink); box-shadow: inset 0 0 0 1px var(--rx-line); min-height: 128px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; transition: transform .3s var(--rx-spring), box-shadow .25s, background .3s; overflow: hidden; font: inherit; cursor: pointer; }
.rx-value .rx-vi { width: 44px; height: 44px; border-radius: 14px; background: var(--rx-brand-soft); color: var(--rx-brand-deep); display: grid; place-items: center; overflow: hidden; flex: none; }
.rx-value .rx-vi img { width: 100%; height: 100%; object-fit: contain; }
.rx-value b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; display: block; }
.rx-value small { color: var(--rx-mute); font-size: 12px; line-height: 1.3; display: block; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.rx-value[aria-pressed="true"] { background: var(--rx-ink); color: #fff; box-shadow: none; transform: translateY(-2px); }
.rx-value[aria-pressed="true"] small { color: #c9ccd6; }
.rx-value[aria-pressed="true"] .rx-vi { background: var(--rx-brand); color: var(--rx-brand-ink); }
.rx-levels { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--rx-card); box-shadow: inset 0 0 0 1px var(--rx-line); position: relative; }
.rx-level { position: relative; z-index: 1; padding: 10px 4px; border: 0; background: none; border-radius: 12px; font: inherit; font-size: 13px; font-weight: 700; text-align: center; line-height: 1.2; transition: color .3s; color: var(--rx-ink); cursor: pointer; min-width: 0; }
.rx-level span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-level small { display: block; font-weight: 600; font-size: 11.5px; color: var(--rx-mute); transition: color .3s; }
.rx-level[aria-pressed="true"] { color: #fff; }
.rx-level[aria-pressed="true"] small { color: #ffd9a0; }
.rx-levels .rx-knob { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px - (var(--n, 3) - 1) * 4px) / var(--n, 3)); border-radius: 12px; background: var(--rx-ink); transition: transform .45s var(--rx-spring); transform: translateX(calc(var(--i, 0) * (100% + 4px))); }
.rx-levels.is-list { grid-auto-flow: row; grid-template-columns: 1fr; }
.rx-levels.is-list .rx-knob { display: none; }
.rx-levels.is-list .rx-level[aria-pressed="true"] { background: var(--rx-ink); }
.rx-carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 44px 22px; margin: 0 -16px; perspective: 900px; scrollbar-width: none; }
.rx-carousel::-webkit-scrollbar { display: none; }
.rx-cslide { flex: none; width: 256px; scroll-snap-align: center; text-align: left; border: 0; background: none; padding: 0; font: inherit; color: var(--rx-ink); cursor: pointer; transition: transform .2s linear, opacity .2s; }
.rx-cslide .rx-cimg { display: block; position: relative; aspect-ratio: var(--rx-card-ar); border-radius: 20px; overflow: hidden; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45); background: var(--rx-line); }
.rx-cslide .rx-cimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rx-cslide b { display: block; margin-top: 10px; font-size: 13.5px; text-align: center; }
.rx-cslide small { display: block; text-align: center; color: var(--rx-mute); font-size: 12px; }
.rx-cslide[aria-pressed="true"] .rx-cimg { box-shadow: 0 0 0 3px var(--rx-paper), 0 0 0 6px var(--rx-brand), 0 18px 40px -16px rgba(0, 0, 0, .45); }
.rx-dots { display: flex; justify-content: center; gap: 6px; }
.rx-dots i { width: 6px; height: 6px; border-radius: 3px; background: #cfd2db; transition: all .3s; }
.rx-dots i.is-on { width: 18px; background: var(--rx-brand); }
.rx-msgbox { position: relative; background: var(--rx-card); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--rx-line); padding: 14px 14px 26px; }
.rx-msgbox textarea { width: 100%; min-height: 124px; border: 0; outline: 0; resize: none; font: inherit; font-size: 16px; line-height: 1.5; background: none; color: var(--rx-ink); padding: 0; }
.rx-msgbox .rx-count { position: absolute; right: 14px; bottom: 10px; font-size: 11.5px; color: var(--rx-mute); font-variant-numeric: tabular-nums; }
.rx-assist { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.rx-assist .rx-lab { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--rx-brand-deep); }
.rx-assist button { padding: 8px 12px; border: 0; border-radius: 999px; background: var(--rx-brand-soft); color: var(--rx-brand-deep); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: transform .2s var(--rx-spring); }
.rx-assist button:active { transform: scale(.92); }
.rx-assist button[disabled] { opacity: .5; pointer-events: none; }
.rx-suggest { margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: var(--rx-card); box-shadow: inset 0 0 0 1px var(--rx-brand-light); font-size: 14px; line-height: 1.5; animation: rx-drop .5s var(--rx-spring) both; }
.rx-suggest em { display: block; color: var(--rx-mute); font-size: 12.5px; margin-bottom: 6px; }
.rx-suggest .rx-text { white-space: pre-wrap; }
.rx-suggest .rx-acts { display: flex; gap: 8px; margin-top: 10px; }
.rx-suggest .rx-acts .rx-btn { padding: 10px 14px; font-size: 13.5px; border-radius: 12px; }
.rx-suggest .rx-flag { color: #a15c00; font-size: 12.5px; display: block; }
.rx-fields { margin-top: 16px; }
.rx-fields .row { margin: 0; }
.rx-fields .label { font-weight: 700; font-size: 13px; }
.rx-problems { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: #fff2f0; color: #9b2c1c; font-size: 13.5px; list-style: none; }
.rx-copy { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 18px; background: var(--rx-card); box-shadow: inset 0 0 0 1px var(--rx-line); cursor: pointer; position: relative; }
.rx-copy input { position: absolute; opacity: 0; pointer-events: none; }
.rx-copy .rx-tg { width: 46px; height: 28px; border-radius: 14px; background: #cfd2db; position: relative; flex: none; transition: background .3s; }
.rx-copy .rx-tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .35s var(--rx-spring); }
.rx-copy input:checked + .rx-tg { background: var(--rx-ok); }
.rx-copy input:checked + .rx-tg::after { transform: translateX(18px); }
.rx-copy input:focus-visible + .rx-tg { outline: 3px solid var(--rx-gold); outline-offset: 2px; }
.rx-copy b { display: block; font-size: 14px; }
.rx-copy small { color: var(--rx-mute); font-size: 12.5px; line-height: 1.35; display: block; }
.rx-sheet-foot { flex: none; padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--rx-paper) 30%); display: flex; gap: 10px; }
.rx-hold { position: relative; overflow: hidden; background: var(--rx-brand); color: var(--rx-brand-ink); touch-action: none; user-select: none; -webkit-user-select: none; }
.rx-hold .rx-fill { position: absolute; inset: 0; background: rgba(255, 255, 255, .28); transform: scaleX(var(--p, 0)); transform-origin: left; }
.rx-hold span { position: relative; }
.rx-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 60px 20px; color: var(--rx-mute); }
.rx-flight { position: fixed; inset: 0; z-index: 1502; pointer-events: none; display: grid; place-items: center; }
.rx-flight .rx-env { width: 220px; height: 150px; position: relative; animation: rx-fly 1.5s .55s var(--rx-ease) forwards; }
.rx-flight .rx-env .rx-body { position: absolute; inset: 0; border-radius: 12px; background: var(--rx-brand-deep); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5); }
.rx-flight .rx-env .rx-flap { position: absolute; left: 0; right: 0; top: 0; height: 90px; background: var(--rx-brand); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transform: rotateX(180deg); animation: rx-shut .45s .2s ease forwards; border-radius: 12px 12px 0 0; }
.rx-flight .rx-env .rx-letter { position: absolute; left: 14px; right: 14px; top: -110px; height: 150px; border-radius: 10px; overflow: hidden; animation: rx-tuck .4s ease forwards; }
@keyframes rx-tuck { to { top: 10px; } }
@keyframes rx-shut { to { transform: rotateX(0); } }
@keyframes rx-fly { 30% { transform: translate(-10px, 20px) rotate(-6deg) scale(.95); } 100% { transform: translate(260px, -520px) rotate(18deg) scale(.3); opacity: 0; } }
.rx-success { position: absolute; inset: 0; z-index: 5; background: var(--rx-paper); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 26px calc(30px + env(safe-area-inset-bottom, 0px)); gap: 14px; animation: rx-fade .4s both; overflow-y: auto; }
@keyframes rx-fade { from { opacity: 0; } }
.rx-success .rx-check { width: 84px; height: 84px; border-radius: 50%; background: var(--rx-ok); display: grid; place-items: center; color: #fff; font-size: 38px; animation: rx-pop .7s var(--rx-spring) both; flex: none; }
@keyframes rx-pop { from { transform: scale(0) rotate(-40deg); } }
.rx-success h4 { font-size: 28px; font-weight: 800; letter-spacing: -.025em; margin: 6px 0 0; line-height: 1.05; text-wrap: balance; }
.rx-success p { margin: 0; color: var(--rx-mute); font-size: 14.5px; line-height: 1.5; max-width: 32ch; }
.rx-success .rx-acts { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 14px; }
.rx-success .rx-acts .rx-btn { flex: none; }
@media (min-width: 821px) {
    .rx-sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 440px; max-width: calc(100vw - 32px); height: min(820px, calc(100vh - 40px)); border-radius: 28px; transform: translate(-50%, -50%) translateY(40px) scale(.96); opacity: 0; transition: transform .5s var(--rx-spring), opacity .3s; }
    .rx-sheet.is-on { transform: translate(-50%, -50%); opacity: 1; }
    .rx-grab { display: none; }
    .rx-sheet-h { padding-top: 18px; }
    .rx-flight { display: grid; }
}

/* ---------- The reveal ---------- */
.rx-reveal { position: fixed; inset: 0; z-index: 1510; background: radial-gradient(120% 80% at 50% 30%, var(--rx-brand-deep), #07080c 70%); color: #fff; overflow: hidden; font-size: 14px; line-height: 1.4; animation: rx-fade .5s both; }
.rx-reveal canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }
.rx-stage { position: absolute; inset: 0; }
.rx-rv-top { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); z-index: 8; display: flex; align-items: center; gap: 10px; }
.rx-rv-top .rx-x { background: rgba(255, 255, 255, .12); box-shadow: none; color: #fff; }
.rx-banner { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); font-size: 12.5px; font-weight: 600; min-width: 0; }
.rx-banner .rx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rx-gold); flex: none; }
.rx-banner .rx-dot.is-cool { background: #9ad; }
.rx-banner span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-rays { position: absolute; left: 50%; top: 44%; width: 760px; height: 760px; translate: -50% -50%; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .07) 0 8deg, transparent 8deg 20deg); border-radius: 50%; mask: radial-gradient(closest-side, #000, transparent); -webkit-mask: radial-gradient(closest-side, #000, transparent); animation: rx-spin 40s linear infinite; opacity: 0; transition: opacity 1.2s; pointer-events: none; }
.rx-reveal.is-opened .rx-rays { opacity: 1; }
@keyframes rx-spin { to { rotate: 360deg; } }
.rx-envelope { position: absolute; left: 50%; top: 46%; width: 270px; height: 180px; translate: -50% -50%; perspective: 900px; cursor: pointer; z-index: 3; animation: rx-float 3.2s ease-in-out infinite; border: 0; background: none; padding: 0; color: inherit; font: inherit; }
@keyframes rx-float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.rx-envelope .rx-e-back { position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(160deg, var(--rx-brand), var(--rx-brand-deep)); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.rx-envelope .rx-e-front { position: absolute; inset: 0; border-radius: 14px; z-index: 4; background: linear-gradient(160deg, var(--rx-brand-light), var(--rx-brand)); clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%); }
.rx-envelope .rx-e-flap { position: absolute; left: 0; right: 0; top: 0; height: 112px; z-index: 5; transform-origin: top; background: linear-gradient(180deg, var(--rx-brand-light), var(--rx-brand)); clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform .7s var(--rx-ease), z-index 0s .35s; }
.rx-envelope .rx-e-from { position: absolute; left: 8px; right: 8px; bottom: 18px; z-index: 6; text-align: center; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: rgba(255, 255, 255, .9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-seal { position: absolute; left: 50%; top: 94px; translate: -50% -50%; z-index: 7; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe29a, var(--rx-gold) 45%, #b87b12); box-shadow: 0 6px 14px rgba(0, 0, 0, .35), inset 0 -3px 6px rgba(0, 0, 0, .25); display: grid; place-items: center; color: #5a3a00; transition: transform .5s var(--rx-spring), opacity .4s; overflow: hidden; }
.rx-seal img { width: 34px; height: 34px; object-fit: contain; }
.rx-seal i { font-size: 26px; }
.rx-envelope .rx-e-letter { position: absolute; left: 12px; right: 12px; top: 10px; bottom: 10px; z-index: 2; border-radius: 10px; overflow: hidden; transition: transform .8s var(--rx-ease); background: #fff; }
.rx-tap { position: absolute; left: 0; right: 0; top: calc(46% + 130px); z-index: 3; text-align: center; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .85); animation: rx-breathe 1.8s ease-in-out infinite; pointer-events: none; padding: 0 20px; }
.rx-tap small { display: block; font-weight: 500; opacity: .7; font-size: 12.5px; margin-top: 4px; }
.rx-reveal.is-opening .rx-envelope { animation: none; }
.rx-reveal.is-opening .rx-seal { transform: scale(1.4); opacity: 0; }
.rx-reveal.is-opening .rx-e-flap { transform: rotateX(180deg); z-index: 1; }
.rx-reveal.is-opening .rx-e-letter { transform: translateY(-120px); }
.rx-reveal.is-opening .rx-tap, .rx-reveal.is-opened .rx-tap { opacity: 0; animation: none; }
.rx-reveal.is-opened .rx-envelope { transition: transform .8s var(--rx-ease), opacity .6s; transform: translateY(240px) scale(.8); opacity: 0; pointer-events: none; }
.rx-ecard { position: absolute; left: 50%; top: 44%; width: 280px; max-height: min(600px, calc(100% - 290px)); translate: -50% -50%; perspective: 1200px; z-index: 4; opacity: 0; pointer-events: none; display: flex; flex-direction: column; }
.rx-reveal.is-opened .rx-ecard { opacity: 1; pointer-events: auto; animation: rx-rise 1s var(--rx-spring) both; }
@keyframes rx-rise { from { transform: translateY(160px) scale(.55); } }
.rx-ecard .rx-flip { position: relative; width: 100%; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; transform-style: preserve-3d; transition: transform 1.1s var(--rx-ease); transform: rotateY(180deg) rotateX(var(--rx, 0deg)); }
.rx-reveal.is-flipped .rx-ecard .rx-flip { transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); }
.rx-ecard .rx-face { border-radius: 22px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .8); }
.rx-ecard .rx-back { position: absolute; inset: 0; transform: rotateY(180deg); background: linear-gradient(160deg, var(--rx-brand), var(--rx-brand-deep)); display: grid; place-items: center; }
.rx-ecard .rx-back .rx-seal { position: static; translate: none; width: 80px; height: 80px; }
.rx-ecard .rx-front { position: relative; flex: 1 1 auto; min-height: 0; background: #fff; color: var(--rx-ink); display: flex; flex-direction: column; }
/* The artwork keeps its own shape (gemaRecognition.adapt sets --ar from the picture; a landscape eCard by default) and is never cropped. */
.rx-ecard .rx-front .rx-fa { position: relative; flex: none; aspect-ratio: var(--ar, var(--rx-card-ar)); max-height: 240px; }
.rx-ecard .rx-front .rx-fb { flex: 1 1 auto; min-height: 0; padding: 12px 18px 12px; display: flex; flex-direction: column; gap: 6px; }
.rx-ecard .rx-to { flex: none; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--rx-mute); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The message: a hidden copy of the whole text sizes the card (so it never jumps while the words type in) and the typed copy sits over it.
   gemaRecognition.fitText steps the size down to a floor; past that the typed copy scrolls, never cutting the text. */
.rx-ecard .rx-msgwrap { position: relative; flex: 1 1 auto; min-height: 64px; overflow: hidden; font-family: var(--rx-hand); font-size: var(--msg-fs, 22px); line-height: 1.12; color: #22252e; overflow-wrap: anywhere; }
.rx-ecard .rx-msg-ghost { visibility: hidden; white-space: pre-wrap; }
.rx-ecard .rx-msg { position: absolute; inset: 0; overflow-y: auto; white-space: pre-wrap; scrollbar-width: none; overscroll-behavior: contain; }
.rx-ecard .rx-msg::-webkit-scrollbar { display: none; }
.rx-ecard .rx-msgwrap.is-scroll::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(transparent, #fff); pointer-events: none; transition: opacity .3s; }
.rx-ecard .rx-msgwrap.is-scroll.is-end::after { opacity: 0; }
.rx-ecard .rx-sig { flex: none; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--rx-mute); min-width: 0; }
.rx-ecard .rx-sig .rx-av { width: 26px; height: 26px; font-size: 10px; }
.rx-ecard .rx-sig b { color: var(--rx-ink); }
.rx-ecard .rx-sig span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-sheen { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 45%, transparent 60%); background-size: 250% 100%; background-position: var(--sx, 120%) 0; mix-blend-mode: soft-light; }
.rx-pts { position: absolute; left: 50%; top: -20px; translate: -50% 0; z-index: 7; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--rx-gold); color: #3a2700; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; box-shadow: 0 10px 30px -8px rgba(243, 183, 67, .6); transform: scale(0); transition: transform .6s var(--rx-spring); white-space: nowrap; }
.rx-reveal.is-celebrate .rx-pts { transform: scale(1); }
.rx-rv-acts { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 10px; transform: translateY(110%); visibility: hidden; transition: transform .7s var(--rx-spring), visibility 0s .7s; background: linear-gradient(transparent, rgba(7, 8, 12, .7) 40%); }
.rx-reveal.is-celebrate .rx-rv-acts { transform: none; visibility: visible; transition-delay: 0s; }
.rx-rv-row { display: flex; gap: 8px; justify-content: center; }
.rx-emo { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); font-size: 22px; display: grid; place-items: center; transition: transform .25s var(--rx-spring), background .2s; cursor: pointer; color: #fff; }
.rx-emo:active { transform: scale(.85); }
.rx-emo[aria-pressed="true"] { background: rgba(255, 255, 255, .3); transform: scale(1.1); }
.rx-rv-btns { display: flex; gap: 8px; }
.rx-rv-btns .rx-btn { background: #fff; color: var(--rx-ink); }
.rx-rv-btns .rx-btn:hover, .rx-rv-btns .rx-btn:focus { color: var(--rx-ink); }
.rx-rv-btns .rx-btn.rx-ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
.rx-rv-btns .rx-btn.rx-ghost:hover, .rx-rv-btns .rx-btn.rx-ghost:focus { color: #fff; }
.rx-thanks { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.rx-thanks::-webkit-scrollbar { display: none; }
.rx-thanks button { flex: none; padding: 10px 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.rx-thanks button.is-sent { background: var(--rx-ok); }
.rx-thanks-own { display: flex; gap: 8px; }
.rx-thanks-own input { flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: 10px 14px; background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-size: 14px; outline: 0; }
.rx-thanks-own input::placeholder { color: rgba(255, 255, 255, .6); }
.rx-thanks-own button { flex: none; border: 0; border-radius: 999px; padding: 10px 14px; background: #fff; color: var(--rx-ink); font: inherit; font-weight: 700; cursor: pointer; }
.rx-thanks-own button[disabled] { opacity: .4; }
.rx-status { display: flex; justify-content: center; gap: 16px; font-size: 12.5px; color: rgba(255, 255, 255, .75); flex-wrap: wrap; }
.rx-status span { display: inline-flex; align-items: center; gap: 6px; }
.rx-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--rx-ok); }
.rx-status i.is-wait { background: rgba(255, 255, 255, .35); }
.rx-status i.is-warn { background: var(--rx-gold); }
.rx-rv-note { position: absolute; left: 16px; right: 16px; top: 50%; translate: 0 -50%; z-index: 9; text-align: center; padding: 20px; border-radius: 20px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(12px); }
.rx-rv-note .rx-btn { margin-top: 14px; flex: none; width: 100%; background: #fff; color: var(--rx-ink); }
.rx-modal { position: fixed; inset: 0; z-index: 1520; background: rgba(10, 12, 18, .7); display: grid; place-items: center; padding: 16px; overflow: auto; }
.rx-modal .eaward { position: static; }
@media (min-width: 821px) {
    .rx-reveal .rx-stage { left: 50%; top: 50%; width: 390px; height: min(820px, calc(100vh - 40px)); translate: -50% -50%; border-radius: 40px; overflow: hidden; background: radial-gradient(120% 80% at 50% 30%, var(--rx-brand-deep), #07080c 70%); box-shadow: 0 0 0 1px #2c303c, 0 40px 120px -20px rgba(0, 0, 0, .8); }
    .rx-reveal { background: #0c0e13; }
    .rx-reveal::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(40% 35% at 30% 40%, rgba(var(--rx-brand-rgb, 31, 95, 209), .3), transparent 70%), radial-gradient(30% 30% at 75% 70%, rgba(243, 183, 67, .14), transparent 70%); filter: blur(30px); }
    .rx-rv-top { top: 22px; left: 20px; right: 20px; }
}

/* ---------- The comments sheet on the wall ---------- */
.rx-csheet { position: fixed; z-index: 1501; left: 0; right: 0; bottom: 0; max-height: 86%; background: #fff; color: var(--rx-ink); border-radius: 28px 28px 0 0; display: flex; flex-direction: column; animation: rx-up .5s var(--rx-spring) both; box-shadow: 0 -20px 60px rgba(0, 0, 0, .35); }
@keyframes rx-up { from { transform: translateY(105%); } }
.rx-csheet .rx-sheet-h { padding: 10px 16px 0; }
.rx-csheet .rx-sheet-body { padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.rx-csheet .cv { margin: 8px 0 16px; }
@media (min-width: 821px) {
    .rx-csheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 520px; max-width: calc(100vw - 32px); max-height: min(760px, calc(100vh - 40px)); border-radius: 24px; transform: translate(-50%, -50%); animation: rx-fade .3s both; }
}

/* ---------- The recognition demo: "play both sides" (recognition-demo plugin, demo personas only) ---------- */
.rx-tagdemo { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 3px 6px; border-radius: 6px; background: var(--rx-gold); color: #3a2700; margin-left: 8px; vertical-align: 2px; }
.rx-demo-err { margin: 0; color: #c0392b; font-size: 13px; }
.rx-demo-pill { position: fixed; z-index: 1400; left: max(14px, env(safe-area-inset-left, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 7px; padding: 11px 14px; border: 0; border-radius: 999px; background: var(--rx-gold); color: #3a2700; font: inherit; font-weight: 800; font-size: 13px; letter-spacing: .02em; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); cursor: pointer; transition: transform .25s var(--rx-spring); }
.rx-demo-pill:hover { transform: translateY(-2px) scale(1.03); }
.rx-demo-sheet { z-index: 1503; }
.rx-demo-note { color: var(--rx-mute); font-size: 13.5px; line-height: 1.45; margin: 8px 0 4px; }
.rx-demo-back { width: 100%; margin: 10px 0 4px; }
.rx-demo-person { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 8px; border: 0; border-radius: 16px; background: var(--rx-card); box-shadow: inset 0 0 0 1px var(--rx-line); font: inherit; color: var(--rx-ink); cursor: pointer; transition: transform .2s var(--rx-spring), background .2s; }
.rx-demo-person:hover { background: var(--rx-brand-soft); }
.rx-demo-person:active { transform: scale(.98); }
.rx-demo-person[disabled] { opacity: .5; cursor: default; }
.rx-demo-person.is-me { cursor: default; background: var(--rx-brand-soft); box-shadow: none; }
.rx-demo-person > span:not(.rx-av) { flex: 1; min-width: 0; }
.rx-demo-person b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-demo-person small { display: block; color: var(--rx-mute); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-demo-person > i { color: var(--rx-brand); flex: none; }
/* The "Now viewing as" transition (recognition-fx.js gemaRecognition.switching): full screen, over everything, while the site rebuilds as the persona. */
.rx-switcher { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(12, 14, 19, .78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: #fff; text-align: center; opacity: 0; transition: opacity .35s; pointer-events: none; }
.rx-switcher.is-on { opacity: 1; pointer-events: auto; }
.rx-switcher .rx-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; }
.rx-switcher .rx-av { width: 96px; height: 96px; font-size: 32px; border: 3px solid #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); animation: rx-pop .6s var(--rx-spring) both; }
.rx-switcher b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.rx-switcher small { opacity: .75; font-size: 14px; }
.rx-switcher .rx-tagdemo { margin: 4px 0 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .rx-wall *, .rx-wall *::before, .rx-wall *::after,
    .rx-sheet, .rx-sheet *, .rx-sheet *::before, .rx-sheet *::after,
    .rx-scrim, .rx-flight *, .rx-reveal, .rx-reveal *, .rx-reveal *::before, .rx-reveal *::after,
    .rx-csheet, .rx-fab, .rx-floaty, .rx-burst, .rx-caret, .rx-pill button { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
