/* Vibes: white base, black text, one loud accent. */
:root {
  --bg: #0c0c0e; --panel: #151519; --panel2: #1f1f24; --line: #34343c;
  --surface: #151519; --surface2: #1f1f24;
  --text: #f2f2ed; --muted: #a6a69d; --accent: #ff4d00; --accent-dark: #c23a00;
  --good: #58d13d; --bad: #ff3b30;
}
body.sitedark { --bg: #0c0c0e; --panel: #151519; --panel2: #1f1f24; --line: #34343c; --text: #f2f2ed; --muted: #a6a69d; }
body.sitedark .udrawer { background: #151519; border-color: #34343c; }
body.sitedark .udrawer a, body.sitedark .udrawer button { color: #f2f2ed; }
body.sitedark .udrawer a:active, body.sitedark .udrawer button:active { background: #1f1f24; }
body.sitedark input, body.sitedark textarea, body.sitedark select { background: #151519; color: #f2f2ed; border-color: #34343c; }
body.sitedark .welcomepop .walkstep input, body.sitedark .welcomepop .walkstep textarea { background: transparent; border-color: transparent; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* No background on html itself: body's background must stay the
   canvas-propagated one. Painting html makes body paint as a
   normal layer ABOVE the Room pages' fixed negative-z backdrop
   layers (.roombg photo, .roomoverlay tint) and buries them.
   The welcome walk repaints the root per screen through inline
   style (paintRoot) when it needs a root color. */
body { background: var(--bg); color: var(--text); font-family: "Helvetica Neue", Arial, "DejaVu Sans", sans-serif; font-size: 16px; line-height: 1.45; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: var(--text); }
h1, h2, .logo, .cardtitle, .watchtitle, .pagetitle, .sectiontitle, button, .badge {
  font-family: "Oswald", "Arial Narrow", "DejaVu Sans Condensed", "Helvetica Neue Condensed", sans-serif;
  text-transform: uppercase; letter-spacing: 0.04em;
}
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 3px solid var(--accent); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.logo { font-size: 24px; font-weight: 700; text-decoration: none; line-height: 1; }
.logo .rawword { color: var(--accent); }
.vibeslogo { font-family: "Baloo 2", "Arial Rounded MT Bold", "Helvetica Rounded", Arial, sans-serif; text-transform: none; letter-spacing: 0.01em; font-weight: 700; font-size: 30px; }
.logo { display: flex; flex-direction: column; }
.logosub { font-size: 10px; font-weight: 300; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
nav a { text-decoration: none; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
nav a:hover { color: var(--accent); }
.navcta { background: var(--accent); color: #000; padding: 6px 12px; }
.navcta:hover { color: #000; background: #ff6a26; }
.navform { display: inline; margin: 0; }
.navbtn { background: none; border: 1px solid var(--line); color: var(--muted); padding: 5px 10px; font-size: 13px; cursor: pointer; text-transform: uppercase; }
.navbtn:hover { color: var(--text); border-color: var(--muted); }
main { max-width: 1100px; margin: 0 auto; padding: 18px 16px 40px; flex: 1 0 auto; width: 100%; box-sizing: border-box; }
footer { border-top: 1px solid var(--line); color: var(--muted); text-align: center; padding: 18px 12px 30px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.pagetitle { font-size: 42px; margin: 2px 0 8px; line-height: 1.05; }
.sectiontitle { font-size: 30px; margin: 34px 0 14px; line-height: 1.1; }
.empty { color: var(--muted); }
.error { background: #fdecea; border: 1px solid var(--bad); color: #8f1d14; padding: 10px 12px; margin: 0 0 14px; }
.alert { display: flex; align-items: flex-start; gap: 10px; background: #fff1e8; border: 1px solid var(--line); border-left: 3px solid var(--accent); color: var(--text); font-family: "Helvetica Neue", Arial, sans-serif; font-size: 15px; font-weight: 400; text-transform: none; letter-spacing: 0; line-height: 1.4; padding: 10px 12px; margin: 0 0 14px; }
.alert[hidden] { display: none; }
.alert .alertx { margin-left: auto; flex: none; background: none; border: none; color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; padding: 1px 3px; text-transform: none; letter-spacing: 0; }
.alert .alertx:hover { color: var(--text); }
.notice { background: #e9f6e3; border: 1px solid var(--good); color: #1e5410; padding: 10px 12px; margin: 0 0 14px; }
.formnote, .altline { color: var(--muted); font-size: 14px; }
.altline a { color: var(--accent); }
.grid { display: grid; gap: 18px 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { text-decoration: none; display: block; }
.thumbwrap { position: relative; background: var(--panel); aspect-ratio: 4 / 5; overflow: hidden; }
.thumbwrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.card:hover .thumbwrap img { outline: 3px solid var(--accent); outline-offset: -3px; }
.dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,0.85); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 6px; }
.cardmeta { padding: 8px 2px 0; }
.cardtitle { font-size: 17px; line-height: 1.15; font-weight: 600; }
.cardsub { color: var(--muted); font-size: 13px; margin-top: 3px; text-transform: none; letter-spacing: 0; font-family: inherit; }
.playerwrap { background: #000; margin: 0 -16px; }
.playerwrap video { width: 100%; max-height: 72vh; display: block; background: #000; }
.watchtitle { font-size: 28px; line-height: 1.1; margin: 16px 0 8px; }
.watchmeta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; align-items: center; }
.watchmeta .creator { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 16px; }
.desc { white-space: pre-wrap; margin: 12px 0 0; max-width: 65ch; }
.aboutstats { list-style: none; margin: 12px 0 0; padding: 0; display: grid; font-size: 14px; }
.aboutstats:empty { display: none; }
.aboutstats li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px solid var(--room-line, #d7d7cf); }
.aboutstats .slabel { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; font-weight: 700; white-space: nowrap; }
.aboutstats .sval { text-align: right; overflow-wrap: anywhere; }
.aboutstats a { color: var(--room-accent, var(--accent)); overflow-wrap: anywhere; text-align: right; }
.roomwrap { --muted: color-mix(in srgb, var(--room-text, #111111) 58%, transparent); }
.roomwrap .aboutstats .slabel { color: color-mix(in srgb, var(--room-text, #111111) 58%, transparent); }
.roomwrap .aboutstats .sval { color: var(--room-text, var(--text)); }
.aboutdetails { padding: 6px 16px 12px; }
.aboutdetails .aboutstats { margin-top: 0; }
body.roomdark { background: #0a0a09; }
body.roomdark header { background: #0d0d0c; color: #f2f1ea; border-bottom-color: #26261f; }
body.roomdark .mainnav a { color: #e9e8e0; }
body.roomdark .logomain { color: #f5f4ee; }
body.roomdark .alphabanner { background: #141412; color: #d8d7cd; border-bottom-color: #26261f; }
body.roomdark footer { background: #0d0d0c; color: #d8d7cd; }
body.roomdark .bottomnav { background: #0d0d0c; color: #e9e8e0; }
.channelsub { color: var(--muted); margin: -8px 0 16px; }
.form { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.form input, .form textarea { background: var(--panel2); border: 1px solid var(--line); color: var(--text); padding: 12px; font-size: 16px; font-family: inherit; text-transform: none; letter-spacing: 0; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.bigbtn { background: var(--accent); color: #000; border: none; cursor: pointer; font-size: 19px; font-weight: 700; padding: 13px 18px; text-transform: uppercase; }
.bigbtn:hover { background: #ff6a26; }
.myrow { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); padding: 10px; margin-bottom: 10px; }
.myrow img { width: 64px; height: 80px; object-fit: cover; object-position: center 30%; flex: none; }
.myinfo { flex: 1; min-width: 0; }
.mytitle { font-weight: 700; font-size: 17px; }
.mytitle a { text-decoration: none; }
.mytitle a:hover { color: var(--accent); }
.mysub { color: var(--muted); font-size: 13px; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 8px; flex: none; }
.b-published { background: var(--good); color: #000; }
.b-pending { background: var(--accent); color: #000; }
.b-rejected { background: var(--bad); color: #000; }
.reviewrow { display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--line); padding: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.reviewrow video { width: 180px; max-width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #000; }
.reviewinfo { flex: 1; min-width: 200px; }
.reviewtitle { font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: 0.03em; }
.reviewsub { color: var(--muted); font-size: 13px; margin: 4px 0; }
.reviewdesc { margin: 8px 0; white-space: pre-wrap; }
.reviewbtns { display: flex; gap: 10px; margin-top: 10px; }
.reviewbtns form { margin: 0; }
.approvebtn, .rejectbtn { border: none; cursor: pointer; font-size: 16px; font-weight: 700; padding: 10px 18px; }
.approvebtn { background: var(--good); color: #000; }
.rejectbtn { background: transparent; color: var(--bad); border: 2px solid var(--bad); padding: 8px 16px; }
.logtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.logtable th, .logtable td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; }
.logtable th { color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; }
.hint { color: var(--muted); font-size: 13.5px; margin: -6px 0 10px; }
.fieldhelp { display: block; font-weight: 400; color: var(--muted); font-size: 16px; line-height: 1.45; margin-top: 8px; }
.pophelp { font-size: 18px; line-height: 1.5; margin: 4px 0 16px; }
.edithelp { font-size: 18px; line-height: 1.5; font-weight: 600; margin: 0 0 16px; }
.wallhint { display: block; color: var(--muted); font-size: 16px; line-height: 1.45; margin: 0 0 8px; }
.setupstep .formnote { font-size: 17px; line-height: 1.55; }
/* Contrast guard: pairs derive from the surface they sit on. */
.roomwrap .herostat { background: var(--room-surface, var(--panel2)); border-color: color-mix(in srgb, var(--room-text, #111111) 22%, transparent); }
.roomwrap .herostatlab { color: var(--room-text, var(--text)); opacity: 0.72; }
.roomwrap .herobtn2 { background: var(--room-surface, #f5f5f2); color: var(--room-text, var(--text)); border-color: color-mix(in srgb, var(--room-text, #111111) 38%, transparent); }
.roomwrap .roomwelcome { background: var(--room-surface, var(--panel)); color: var(--room-text, var(--text)); }
.roomwelcome .paneltext { color: var(--room-text, var(--text)); opacity: 0.78; }
.roomwrap .accentbtn, .roomwrap .followbtn, .roomwrap .heroprimary { color: var(--room-on-accent, #090A09); }
/* Editor chrome lock: tools never wear the Room theme. */
#widgetpop, .roomwrap .editpanel { color: var(--text); }
#widgetpop h3, #widgetpop label, .roomwrap .editpanel h2, .roomwrap .editpanel label, .roomwrap .editpanel .sectiontitle, .roomwrap .editpanel .colorname { color: var(--text); }
#widgetpop .pophelp, .roomwrap .editpanel .edithelp { color: var(--text); }
#widgetpop .popnote, #widgetpop .fieldhelp, .roomwrap .editpanel .formnote, .roomwrap .editpanel .fieldhelp { color: var(--muted); }
.roomwrap .editpanel input, .roomwrap .editpanel select, .roomwrap .editpanel textarea { color: var(--text); }
.setupwrap { color: var(--text); }
.setupwrap .fieldhelp { color: var(--muted); }
.seclist { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.secbtn { display: block; width: 100%; text-align: left; font-size: 20px; font-weight: 700; padding: 20px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text); cursor: pointer; font-family: inherit; box-sizing: border-box; }
.secbtn small { display: block; font-size: 16px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.advfold { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
details.advfold summary { font-size: 18px; font-weight: 700; cursor: pointer; }
/* v38: flow nav (Next step + Finish), containment, clickable cards, emotion wheel, pick grids */
.setupwrap { position: relative; overflow-x: clip; }
.setupx { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--muted); text-decoration: none; z-index: 5; }
.setupwrap .setupnav { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 24px; }
.setupwrap .setupnav[hidden] { display: none; }
.setupwrap .setupnav .followbtn { width: 100%; margin-left: 0; }
.setupwrap .setupnav #su-msg { text-align: center; min-height: 20px; color: #cf2e1e; }
.finishbtn { background: none; border: none; color: var(--muted); font-size: 17px; font-weight: 600; text-decoration: underline; padding: 12px; cursor: pointer; font-family: inherit; align-self: center; }
.setupwrap .pagetitle { overflow-wrap: break-word; }
.setupwrap textarea, .setupwrap select { max-width: 100%; box-sizing: border-box; }
#su-preview { max-width: 100%; box-sizing: border-box; }
.walkbtn { width: 100%; margin: 4px 0 16px; }
.secbtn { position: relative; background: var(--panel2); border: 1.5px solid #c6c6bd; box-shadow: 0 2px 0 rgba(0,0,0,0.18); padding-right: 52px; }
.secbtn::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; border-top: 3px solid var(--muted); border-right: 3px solid var(--muted); transform: translateY(-50%) rotate(45deg); }
.secbtn:active { transform: translateY(2px); box-shadow: none; }
.presetcard { border-width: 2px; box-shadow: 0 2px 0 rgba(0,0,0,0.18); }
.presetcard:active { transform: translateY(2px); box-shadow: none; }
.keepcard { grid-column: 1 / -1; }
/* v40: All Done polish + hero mobile trim */
.goroom { width: 100%; padding: 14px 18px; font-size: 17px; margin-top: 8px; }
.donecard { background: var(--panel2); border: 1.5px solid #c6c6bd; border-radius: 12px; padding: 16px; margin-top: 16px; box-shadow: 0 2px 0 rgba(0,0,0,0.18); }
.donetitle { margin: 0 0 4px; font-size: 19px; }
.donecard .fieldhelp { margin: 0 0 12px; }
.donecard input[type="text"] { width: 100%; box-sizing: border-box; }
.donebtn { text-transform: uppercase; letter-spacing: 0.05em; display: inline-block; margin-top: 12px; }
/* v44: All Done checkmark + extras separation + YouTube nudge */
.donehero { text-align: center; padding-top: 12px; }
.donechk { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 50%; background: var(--accent); margin: 8px auto 16px; animation: chkpop 0.35s ease; }
.donechk svg { width: 52px; height: 52px; }
@keyframes chkpop { from { transform: scale(0.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .donechk { animation: none; } }
.extraszone { margin-top: 64px; border-top: 2px solid var(--line); padding-top: 8px; }
.extrasdiv { margin: 16px 0 4px; }
.extrasdiv span { font-size: 15px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.extraszone .donecard { background: var(--panel); box-shadow: none; }
.ytnudge { position: relative; border: 2px solid var(--room-accent, var(--accent)); background: var(--room-surface, var(--panel)); color: var(--room-text, var(--text)); border-radius: 12px; padding: 20px; margin-bottom: 16px; width: 100%; box-sizing: border-box; }
.ytnudge h3 { margin: 0 28px 8px 0; font-size: 20px; }
.ytnudge p { margin: 0 0 12px; opacity: 0.82; }
/* v45: Colors screen, pinned demo + tier chips */
.colorpin { position: sticky; top: calc(var(--headerh, 64px) + 16px); z-index: 6; background: var(--bg); padding: 16px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.presetcard { position: relative; }
.presettier { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,0.5); color: #f1eee6; z-index: 2; }
/* v46: visitor hero actions wear the visited Room's palette */
.roomheroact .navform { flex: 1; display: flex; }
.roomheroact .navform .followbtn { flex: 1; padding: 12px 20px; font-size: 15px; border-radius: 999px; background: var(--room-accent, var(--accent)); color: var(--room-on-accent, #090a09); border: 2px solid transparent; }
.roomheroact .navform .followbtn.following { background: transparent; color: var(--room-text, var(--text)); border-color: var(--room-accent, var(--accent)); }
.loginfollow { flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 999px; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; background: var(--room-accent, var(--accent)); color: var(--room-on-accent, #090a09); text-decoration: none; border: 2px solid transparent; box-sizing: border-box; }
.visitweb { flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 999px; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; background: transparent; color: var(--room-text, var(--text)); border: 2px solid var(--room-accent, var(--accent)); text-decoration: none; box-sizing: border-box; }
/* v48: verified badge (standard social blue) + visitor pay button */
.verifiedbadge { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; background: #1d9bf0; margin-left: 6px; vertical-align: -3px; flex: none; }
.verifiedbadge svg { width: 12px; height: 12px; }
.paybtn { flex: 0 0 52px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 0; border-radius: 999px; font-weight: 800; font-size: 20px; background: transparent; color: var(--room-text, var(--text)); border: 2px solid var(--room-accent, var(--accent)); text-decoration: none; box-sizing: border-box; }
/* v50: visitor action rows, one shared pill height, labels never wrap */
.roomheroact .navform { flex: 1 1 100%; }
.roomheroact .navform .followbtn { height: 52px; padding: 0 20px; white-space: nowrap; }
.loginfollow { flex: 1 1 100%; height: 52px; padding: 0 20px; white-space: nowrap; }
.visitweb { height: 52px; padding: 0 20px; white-space: nowrap; }
.paybtn { flex: 0 0 64px; height: 52px; padding: 0; }
/* v51: locked (unlock-by-code) character tiles */
.chartile.locked, .picktile.locked { opacity: 0.55; filter: grayscale(0.45); cursor: default; }
.locktag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
/* v53: character dial (arc selector) on the Avatar step */
.chardial { position: relative; height: 216px; margin-top: 8px; overflow: hidden; touch-action: pan-y; perspective: 640px; }
.chardial.snapping .dslide { transition: transform 0.35s ease, opacity 0.35s ease; }
.dslide { position: absolute; left: 50%; top: 4px; width: 104px; margin-left: -52px; background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: inherit; color: var(--text); cursor: pointer; box-sizing: border-box; box-shadow: 0 2px 0 rgba(0,0,0,0.18); will-change: transform; }
.dslide .dimg { width: 100%; background-repeat: no-repeat; border-radius: 8px; display: block; }
.dslide .dname { font-size: 13px; font-weight: 700; text-align: center; }
.dslide.on { border-color: var(--accent); outline: 2px solid var(--accent); }
.dslide.locked .dimg { filter: grayscale(0.45); }
#su-avprev video { border-radius: 8px; }
/* v56: Avatar step condensed to one phone screen (stage + dial + wheel together, no scroll to the wheel) */
.setupwrap #su-avprev { width: 132px; margin: 4px auto; }
.setupwrap #su-avprev.single { width: 92px; }
.setupstep[data-step="1"] .pagetitle { margin-bottom: 4px; }
.setupstep[data-step="1"] .formnote { margin-top: 0; }
.chardial { height: 152px; margin-top: 4px; }
.dslide { width: 84px; margin-left: -42px; padding: 6px; gap: 4px; }
.dslide .dimg { height: 84px; }
.dslide .dname { font-size: 12px; }
.setupstep[data-step="1"] .emowheel { --wr: 248px; margin: 8px auto 0; }
.setupstep[data-step="1"] .wheelseg { transform: rotate(var(--a)) translateY(calc(var(--wr) / -2 + 44px)) rotate(calc(var(--a) * -1)); }
.setupstep[data-step="1"] .wheelhi { top: calc(50% - var(--wr) / 2 + 44px); width: 100px; height: 40px; }
.setupstep[data-step="1"] .wheelhub { width: 84px; height: 84px; font-size: 15px; }
.setupstep[data-step="1"] .wheelhelp { margin: 4px 0 0; }
#su-unlockbox { padding: 12px; margin-top: 8px; }
#su-unlockbox .popbtn { margin-top: 8px; }
/* v60: first-run step 1 fits one screen too (compact welcome + title, tighter dial/wheel) */
.setupwelcome { padding: 8px 12px; margin-bottom: 8px; }
.setupwelcome .formnote { display: none; }
.setupwelcome .pagetitle { font-size: 26px; line-height: 1.15; margin: 0 0 4px; }
.setupwelcome .formnote { font-size: 15px; line-height: 1.4; margin: 0; }
.setupstep[data-step="1"] .pagetitle { font-size: 30px; line-height: 1.1; margin: 0 0 4px; }
.setupstep[data-step="1"] .formnote { display: none; }
.setupstep[data-step="1"] .wheelhub { width: 68px; height: 68px; font-size: 13px; }
/* v59: avatar effects layer + tile margins + wheel pulled up clear of the bottom nav */
.avatarstage { position: relative; }
#room-avatar .avatarstage { padding: 12px; box-sizing: border-box; }
.avstagewrap { position: relative; width: 200px; margin: 4px auto; }
.avstagewrap #su-avprev { margin: 0 auto; }
.avfx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 12px; }
.avfx span { position: absolute; transform: translate(-50%, -50%); line-height: 0; }
.avfx.fx-sparkles span { animation: fxtwinkle 1.9s ease-in-out infinite alternate; }
.avfx.fx-hearts span { animation: fxfloat 3.2s ease-in-out infinite alternate; }
.avfx.fx-kitties span { animation: fxbob 3.6s ease-in-out infinite alternate; }
.avfx.fx-lightning span { animation: fxflick 2.7s steps(1) infinite; }
.avfx.fx-fire span { animation: fxflame 1.1s ease-in-out infinite alternate; transform-origin: bottom center; }
@keyframes fxtwinkle { from { opacity: 0.25; transform: translate(-50%, -50%) scale(0.7) rotate(0deg); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(20deg); } }
@keyframes fxfloat { from { transform: translate(-50%, -54%) scale(0.92); } to { transform: translate(-50%, -44%) scale(1.05); } }
@keyframes fxbob { from { transform: translate(-50%, -50%) rotate(-4deg); } to { transform: translate(-50%, -56%) rotate(4deg); } }
@keyframes fxflick { 0%, 100% { opacity: 0.95; } 8% { opacity: 0.3; } 16% { opacity: 0.9; } 47% { opacity: 0.45; } 55% { opacity: 1; } 78% { opacity: 0.5; } }
@keyframes fxflame { from { transform: translate(-50%, -50%) scaleY(0.86) scaleX(1); } to { transform: translate(-50%, -54%) scaleY(1.12) scaleX(0.94); } }
.fxoff .avfx span { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .avfx span { animation: none !important; } }
.fxpick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fxchip { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px; padding: 8px 4px; background: var(--panel); border: 2px solid var(--line); border-radius: 12px; color: var(--text); font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; box-sizing: border-box; }
.fxchip.on { border-color: var(--accent); outline: 2px solid var(--accent); }
.fxchip .fxmini { height: 28px; display: flex; align-items: center; justify-content: center; }
.setupstep[data-step="1"] .chardial { height: 132px; }
.setupstep[data-step="1"] .emowheel { --wr: 184px; }
.setupstep[data-step="1"] .wheelseg { transform: rotate(var(--a)) translateY(calc(var(--wr) / -2 + 44px)) rotate(calc(var(--a) * -1)); }
.setupstep[data-step="1"] .wheelhi { top: calc(50% - var(--wr) / 2 + 44px); width: 92px; height: 32px; }
.setupstep[data-step="1"] .wheelseg { font-size: 15px; }
/* v69: pet art is always one whole pet, contained, never cropped;
   Luna's transparent GIFs sit on a warm mid-tone matte so a black
   cat stays readable on dark cards. */
.dslide .dframe { display: block; height: 84px; margin: 0 auto; background-repeat: no-repeat; border-radius: 8px; }
.dslide .dimg.lunaimg { background-size: contain; background-position: 50% 50%; background-color: #6f6455; }
.pickimg.lunaimg { background-size: contain; background-position: 50% 50%; background-color: #6f6455; aspect-ratio: 1; }
.petimg.petgif { object-fit: contain; background-color: #6f6455; border-radius: 12px; }
/* v65: the fixed selection pill is decoration; taps pass through it to the wheel */
.wheelhi { pointer-events: none; }
.setupwrap { padding-bottom: 104px; }
/* v55: hero aura sampled from the Room's YouTube video (soft backlight, card untouched) */
.roomhero { --aura1: color-mix(in srgb, var(--room-accent, #f45a1f) 14%, transparent); --aura2: color-mix(in srgb, var(--room-accent, #f45a1f) 9%, transparent); box-shadow: 0 0 44px -8px var(--aura1), 0 0 84px -14px var(--aura2); }
.roomhero.auraon { box-shadow: -28px 4px 72px -16px var(--aura1), 28px 4px 72px -16px var(--aura2), 0 24px 96px -10px var(--aura1); }
/* v54: single-image characters (contain, full body, transparent) + unlock box + bust-up Room cut */
#su-avprev.single { width: 136px; aspect-ratio: 0.458; background-repeat: no-repeat; }
#su-unlockbox { margin-top: 12px; padding: 16px; background: var(--panel); border: 2px solid var(--line); border-radius: 12px; text-align: left; }
#su-unlockbox label { display: block; font-weight: 700; }
#su-unlockbox input { width: 100%; box-sizing: border-box; margin-top: 4px; }
#su-unlockbox .popbtn { margin-top: 12px; }
.avatarsprite.bust { image-rendering: auto; }







/* v42: character scroller on the Avatar step */
.charscroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; margin-top: 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.charscroll::-webkit-scrollbar { display: none; }
.chartile { background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: 8px; cursor: pointer; font-family: inherit; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; box-sizing: border-box; box-shadow: 0 2px 0 rgba(0,0,0,0.18); margin: 0; flex: 0 0 auto; scroll-snap-align: center; }
.chartile:active { transform: translateY(2px); box-shadow: none; }
.chartile.on { border-color: var(--accent); outline: 2px solid var(--accent); }
.chartile .charimg { width: 100%; background-repeat: no-repeat; display: block; border-radius: 8px; }
.chartile .charname { font-size: 13px; font-weight: 700; text-align: center; }

@media (max-width: 700px) {
.roomhero { padding: 14px; gap: 12px; }
.herotop { gap: 12px; }
.roomhero .avatar.hero { width: 76px; height: 76px; font-size: 34px; }
.herostats { gap: 8px; }
.herostat { padding: 10px 6px 8px; }
}

.emowheel { --wr: min(320px, 84vw); position: relative; width: var(--wr); aspect-ratio: 1; margin: 16px auto 4px; }
.emostrip { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; }
.emostriprow { display: flex; gap: 8px; overflow-x: auto; flex: 1 1 auto; padding: 4px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.emostriprow::-webkit-scrollbar { display: none; }
.emochip { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); padding: 0; overflow: hidden; cursor: pointer; font-family: inherit; }
.emochip.on { border-color: var(--room-accent, var(--accent)); box-shadow: 0 0 0 2px var(--room-accent, var(--accent)); }
.emoface { display: block; width: 100%; height: 100%; border-radius: 50%; background-repeat: no-repeat; }
.emofacetext { display: flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1.15; text-align: center; color: var(--text); padding: 2px; box-sizing: border-box; }
.emofeel { margin: 0; white-space: nowrap; font-size: 15px; color: var(--muted, #5f5f58); }
.emofeel span { color: var(--text); font-weight: 600; }
.wheelface { position: absolute; inset: 0; border-radius: 50%; background: var(--panel2); border: 1px solid var(--line); }
.wheelhi { position: absolute; left: 50%; top: calc(50% - var(--wr) / 2 + 56px); transform: translate(-50%, -50%); width: 116px; height: 44px; border-radius: 999px; background: var(--accent); z-index: 1; }
.wheelring { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; transform: rotate(var(--r, 0deg)); transition: transform 0.35s ease; touch-action: none; cursor: grab; z-index: 2; }
.wheelseg { position: absolute; left: 50%; top: 50%; width: 116px; margin: -22px 0 0 -58px; padding: 12px 2px; background: none; border: none; color: var(--text); font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transform: rotate(var(--a)) translateY(calc(var(--wr) / -2 + 56px)) rotate(calc(var(--a) * -1)); }
.wheelseg.on { color: #090a09; }
.wheelseg .wl { display: inline-block; transform: rotate(calc(var(--r, 0deg) * -1)); transition: transform 0.35s ease; }
.wheelhub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 104px; height: 104px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; text-align: center; pointer-events: none; padding: 8px; box-sizing: border-box; z-index: 3; }
.wheelhelp { text-align: center; }
.pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; margin: 12px 0; }
.picktile { background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; font-family: inherit; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: 0 2px 0 rgba(0,0,0,0.18); }
.picktile:active { transform: translateY(2px); box-shadow: none; }
.picktile.on { border-color: var(--accent); outline: 2px solid var(--accent); }
.picktile .pickimg { width: 100%; background-repeat: no-repeat; display: block; border-radius: 8px; }
.picktile .pickname { font-size: 16px; font-weight: 700; }
.roomwelcome { position: relative; }
.welcomex { position: absolute; top: 8px; right: 8px; background: none; border: none; color: inherit; font-size: 20px; cursor: pointer; padding: 10px; line-height: 1; z-index: 2; font-family: inherit; }
.welcomeclose { background: none; border: none; color: inherit; text-decoration: underline; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit; padding: 8px 0; margin-left: 16px; }
.curpic { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; margin: 8px 0; border: 2px solid var(--line); }
@media (max-width: 899px) {
.roomwrap .roomhero { order: 0 !important; }
.roomwrap .ablock[data-bkey="mp3"] { order: 1 !important; }
.roomwrap .ablock[data-bkey="youtube"] { order: 2 !important; }
.roomwrap .widgetrowwrap { order: 3 !important; }
}

.tintopts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tintopt { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-family: inherit; background: var(--panel); color: var(--text); }
.tintopt input { width: 20px; height: 20px; accent-color: var(--accent); }
.tintbtn.on { border-color: var(--accent); outline: 2px solid var(--accent); }
input[type="range"].oprange { width: 100%; margin-top: 8px; accent-color: var(--accent); height: 32px; }
.logoutrow { margin-top: 26px; }
.stepsrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.stepdot { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.stepdot.active { color: #000; background: var(--accent); border-color: var(--accent); }
.stepdot.done { color: var(--accent); border-color: var(--accent); }
.steppanel { animation: stepin 0.28s ease; }
@keyframes stepin { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
#uploadform.stepper-on .steppanel[data-step="2"], #uploadform.stepper-on .steppanel[data-step="3"] { }
.picktarget { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px dashed var(--accent); border-radius: 18px; padding: 44px 20px; font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; cursor: pointer; text-align: center; }
.picktarget input { margin-top: 10px; max-width: 100%; }
.picksub { font-size: 13.5px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
#uppreview { width: 100%; max-height: 320px; background: #000; border-radius: 14px; margin-bottom: 12px; }
.vispick { display: flex; gap: 10px; margin: 6px 0 12px; }
.visopt { flex: 1; }
.visopt input { position: absolute; opacity: 0; pointer-events: none; }
.visopt span { display: block; text-align: center; border: 1.5px solid var(--muted); border-radius: 999px; padding: 12px; font-weight: 700; cursor: pointer; }
.visopt input:checked + span { background: var(--room-accent, var(--accent)); border-color: var(--room-accent, var(--accent)); color: var(--room-on-accent, #090a09); }
.steprow { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.stepnext { margin-left: auto; }
.sumcard { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.sumcard img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; flex: none; background: #000; }
.sumtitle { font-weight: 700; font-size: 17px; }
.summeta { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.sumwhere { font-size: 13.5px; margin-top: 4px; }
.vdesc { color: var(--text); font-size: 13.5px; margin-top: 2px; max-width: 92%; }
.voverlay .tagprint { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.seamlabel { text-align: center; color: var(--muted); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 16px 0; scroll-snap-align: center; opacity: 0; transition: opacity 0.6s ease; }
.seamlabel.in { opacity: 1; }
.alphabanner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg); color: var(--text); border-bottom: 2px solid var(--accent); padding: 7px 16px; font-size: 12.5px; }
.alphabanner[hidden] { display: none; }
.alphabanner > span { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.alphaclose { background: none; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 2px 10px; font-size: 12px; cursor: pointer; flex: none; }
.authwrap { }
.rulespanel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-top: 22px; }
.rulespanel p { margin: 6px 0; }
.ruleshead { color: #c23a00; margin: 0 0 10px; font-size: 20px; }
@media (min-width: 900px) {
  .authwrap { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; gap: 30px; max-width: 1040px; margin: 0 auto; align-items: start; }
  .authwrap .rulespanel { margin-top: 58px; }
  .upwrap { max-width: 720px; margin: 0 auto; }
  #uploadform input, #uploadform textarea { font-size: 17px; padding: 12px 14px; }
}
.ftabs { display: flex; gap: 10px; margin: 14px 0 6px; }
.ftabs a { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.ftabs a.on { background: #111111; color: #ffffff; border-color: #111111; font-weight: 700; }
.frow { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.frowmain { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; }
.frowname { display: flex; flex-direction: column; min-width: 0; }
.frowhandle { color: var(--muted); font-size: 13px; }
.sndflash { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 5; }
.sndflash[hidden] { display: none; }
.sndflash svg { width: 92px; height: 92px; padding: 20px; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff; opacity: 0; box-sizing: border-box; }
.sndflash.go svg { animation: sndflashfade 0.65s ease forwards; }
@keyframes sndflashfade { 0% { opacity: 0; transform: scale(0.8); } 18% { opacity: 1; transform: scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: scale(1.05); } }
.tapforsound { position: absolute; left: 50%; transform: translateX(-50%); bottom: 36%; z-index: 5; display: flex; align-items: center; gap: 8px; background: #F45A1F; color: #000; font-weight: 700; letter-spacing: 0.06em; padding: 10px 18px; border-radius: 999px; font-size: 15px; box-shadow: 0 4px 18px rgba(0,0,0,0.5); pointer-events: none; white-space: nowrap; }
.tapforsound[hidden] { display: none; }
.tapforsound svg { width: 20px; height: 20px; flex: none; }
.vposter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.vseek { position: absolute; left: 12px; right: 12px; bottom: 8px; z-index: 4; display: flex; align-items: center; gap: 8px; font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.04em; color: #F1EEE6; text-shadow: 0 1px 3px rgba(0,0,0,0.85); }
.vseekbar { position: relative; flex: 1; height: 20px; display: flex; align-items: center; cursor: pointer; touch-action: pan-y; }
.vseekbar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: rgba(241,238,230,0.35); border-radius: 2px; }
.vseekfill { position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; width: 0%; background: #F45A1F; border-radius: 2px; pointer-events: none; }
@media (max-width: 700px) {
  .vseek { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .vcard.pip .vseek { position: fixed; left: 50%; right: auto; transform: translate(-50%, -100%); width: min(88vw, 380px); top: calc(62px + env(safe-area-inset-top) + 30dvh); bottom: auto; z-index: 61; }
  body.shellpage .vcard.pip .vseek { top: calc(var(--headerh, 64px) + var(--bannerh, 0px) + 8px + env(safe-area-inset-top) + 30dvh); }
}
.vcard.playing .vposter { display: none; }
.frametile { background: var(--panel2); text-decoration: none; }
.frametile span { display: flex; align-items: center; justify-content: center; height: 100%; padding: 8px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.3; }
body.shellpage { overflow: hidden; overflow-x: hidden; max-width: 100vw; }
body.shellpage .alphabanner { position: fixed; top: 0; left: 0; right: 0; z-index: 90; }
body.shellpage header { position: fixed; top: var(--bannerh, 0px); left: 0; right: 0; z-index: 89; }
body.shellpage .vfeed { position: fixed; top: calc(var(--headerh, 64px) + var(--bannerh, 0px)); left: 0; right: 0; bottom: 0; height: auto; }
body.shellpage footer { display: none; }
body.shellpage .vcard.pip .vvid { top: calc(var(--headerh, 64px) + var(--bannerh, 0px) + 8px + env(safe-area-inset-top)); }
#uploadform.stepper-on .steppanel { padding-bottom: 8px; }
#uploadform.stepper-on .steprow { position: static; background: none; border-top: none; padding: 0; margin-top: 14px; }
#uploadform.stepper-on .steprow[hidden] { display: none; }
#uppreview { width: 100%; max-height: 46dvh; border-radius: 14px; background: #000; margin-top: 14px; }
.pushrow { margin-top: 18px; }

.iosinstall { position: fixed; inset: 0; z-index: 120; background: var(--bg); overflow-y: auto; padding: 18px max(16px, calc(50% - 240px)) calc(30px + env(safe-area-inset-bottom)); }
.iosmock svg { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto; }
.uploadclose { display: none; }
.iosinstall[hidden] { display: none; }
.iosclose { position: sticky; top: 0; float: right; background: var(--panel); border: 1.5px solid #F45A1F; color: #F45A1F; border-radius: 999px; padding: 8px 22px; font-size: 16px; cursor: pointer; z-index: 2; }
.iosh { font-size: 31px; line-height: 1.15; margin: 10px 0 6px; }
.iossub { color: var(--muted); margin: 0 0 24px; font-size: 16px; }
.iosstep, .iosstep0 { display: flex; gap: 14px; margin-bottom: 28px; }
.iosstep0[hidden] { display: none; }
.iosnum { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #F45A1F; color: #000; font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; font-family: "Helvetica Neue", Arial, sans-serif; }
.iosnum0 { background: var(--panel); color: #F45A1F; border: 2px solid #F45A1F; }
.iosbody { flex: 1; min-width: 0; }
.iostext { font-size: 19px; font-weight: 600; margin: 9px 0 10px; }
.iostext2 { font-size: 16px; margin: 0 0 10px; }
.iosmock { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.iosmock svg { width: 100%; height: auto; display: block; }
.iosset[hidden] { display: none; }
.iosmode { font-size: 17px; background: var(--panel); border: 1px solid #F45A1F; border-radius: 12px; padding: 10px 14px; margin: 0 0 22px; }
.iosmode[hidden] { display: none; }
.acards { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 701px) { .acards { grid-template-columns: 1fr 1fr; } }
.acard { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; }
.acard img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; display: block; }
.acardbody { padding: 12px 14px 14px; }
.acardtitle { font-size: 19px; line-height: 1.25; }
.acarddate { color: var(--muted); font-size: 13px; margin-top: 4px; }
.articlewrap { max-width: 680px; margin: 0 auto; }
.articleimg { width: 100%; border-radius: 14px; display: block; }
.creditline { color: var(--muted); font-size: 12.5px; margin: 6px 0 14px; }
.byline { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }
.sourceline { color: var(--muted); font-size: 14px; border-left: 3px solid #F45A1F; padding-left: 10px; margin: 0 0 18px; }
.sourceline a { color: #c23a00; }
.articlebody { line-height: 1.65; font-size: 17px; }
.articlebody h2 { margin: 26px 0 8px; }
.articlebody a { color: #c23a00; }
.articlebody ul { padding-left: 22px; }
.articlebody li { margin: 6px 0; }
.iosrescue { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; }
footer { border-top: 3px solid var(--accent); background: var(--bg); padding: 26px 16px calc(26px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); }
.footlogo { align-items: center; margin-bottom: 14px; }
.footlinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 14px; }
.footlinks a { color: var(--text); text-decoration: none; font-weight: 600; }
.footlinks a:hover { color: var(--accent); }
.copyright { margin: 0; font-size: 13px; color: var(--muted); }
.sharerow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; }
.sharelabel { font-weight: 700; margin-right: 2px; }
.sharebtn2 { display: inline-block; border: 1px solid var(--muted); background: none; color: var(--text); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; font-family: inherit; }
.deletebtn { background: transparent; color: var(--bad); border: 2px solid var(--bad); cursor: pointer; font-size: 16px; font-weight: 700; padding: 8px 16px; }
.deletebtn:hover { background: var(--bad); color: #000; }
.deletebtn.small { font-size: 13px; padding: 5px 10px; }
.myrow form { margin: 0; }
.pwwrap { display: flex; gap: 8px; }
.pwwrap input { flex: 1; min-width: 0; }
.pwtoggle { background: var(--panel); border: 1px solid var(--line); color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 700; padding: 0 14px; text-transform: uppercase; letter-spacing: 0.05em; flex: none; }
.pwtoggle:hover { color: var(--text); border-color: var(--muted); }
.thumbph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--panel2); color: var(--muted); font-family: "Oswald", "Arial Narrow", sans-serif; font-size: 30px; font-weight: 700; letter-spacing: 0.12em; }
.thumbph.small { width: 64px; height: 80px; font-size: 14px; flex: none; }
.uploadprogress { max-width: 480px; margin-bottom: 14px; }
.upbar-track { background: var(--panel2); height: 4px; border-radius: 2px; overflow: hidden; }
.upbar-fill { background: var(--accent); height: 100%; width: 0%; transition: width 0.15s linear; border-radius: 2px; }
.upbar-fill.indet { width: 100%; opacity: 0.55; }
.upbar-fill.failed { background: var(--bad); }
.upbar-text { margin-top: 6px; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.upbar-text .navbtn { text-transform: none; letter-spacing: 0; font-size: 13px; }
/* Upload flow in walk language (v287): one step at a time, the
   Buddy dot hosting each step, underline fields, black pill
   buttons, no all-caps, no orange slabs, no step pills. Scoped
   to the upload page so no other surface inherits the look. */
body.uploadpage .upwrap { position: relative; }
.uphead { display: flex; align-items: center; gap: 14px; margin: 6px 0 20px; }
#uploadform .updot { position: relative; left: auto; bottom: auto; flex: none; width: 18px; height: 18px; }
#uploadform .updot i { background: #FFFFFF; box-shadow: 0 0 18px 6px rgba(255, 255, 255, 0.45); }
.uptitle { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 30px; font-weight: 600; line-height: 1.15; margin: 0; color: var(--text); }
#uploadform .picktarget { border: 1.5px dashed var(--line); background: rgba(255, 255, 255, 0.02); font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 21px; font-weight: 600; }
#uploadform .picktarget:hover { border-color: var(--muted); }
#uploadform .picksub { font-size: 14.5px; }
#uploadform .upbar-fill { background: #FFFFFF; }
#uploadform .upbar-fill.failed { background: var(--bad); }
#uploadform .uplab { display: flex; flex-direction: column; gap: 2px; font-weight: 600; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--muted); font-family: inherit; }
#uploadform .upin, #uploadform .uptext { background: transparent; border: none; border-bottom: 2px solid rgba(255, 255, 255, 0.35); border-radius: 0; color: var(--text); padding: 6px 2px 10px; font-family: inherit; text-transform: none; letter-spacing: 0; width: 100%; box-sizing: border-box; }
#uploadform .upin { font-size: 26px; font-weight: 600; }
#uploadform .uptext { font-size: 18px; font-weight: 400; line-height: 1.45; resize: vertical; }
#uploadform .upin:focus, #uploadform .uptext:focus { outline: none; border-bottom-color: #FFFFFF; }
#uploadform .upin::placeholder, #uploadform .uptext::placeholder { color: rgba(255, 255, 255, 0.30); }
.upbtn { background: #000000; color: #FFFFFF; border: 1.5px solid rgba(255, 255, 255, 0.85); border-radius: 999px; padding: 14px 36px; font-family: inherit; font-size: 17px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; min-height: 52px; }
.upbtn:hover { border-color: #FFFFFF; }
.upbtn:disabled { opacity: 0.45; cursor: default; }
.upback { background: none; border: none; color: var(--muted); font-family: inherit; font-size: 15.5px; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer; padding: 12px 6px; }
.upback:hover { color: var(--text); }
#uploadform .visopt span { text-transform: none; letter-spacing: 0; }
#uploadform .visopt input:checked + span { background: #FFFFFF; border-color: #FFFFFF; color: #000000; }
.upvislab { font-size: 15px; font-weight: 600; color: var(--muted); margin: 4px 0 8px; }
.uptokens { color: var(--text); font-size: 16px; margin-top: 10px; }
#uploadform .sumcard { background: rgba(255, 255, 255, 0.03); }
@media (prefers-reduced-motion: reduce) { #uploadform .updot i { animation: none; } }
/* ASCII clips (v294): recorder, feed player, profile player. */
#uploadform .picktarget[hidden] { display: none !important; }
#clippanel[hidden], .clipstagebox [hidden] { display: none !important; }
.clipopenbtn { width: 100%; text-align: center; cursor: pointer; color: var(--text); margin-bottom: 12px; }
.clipstagebox { position: relative; width: min(100%, 340px); margin: 10px auto 0; aspect-ratio: 9 / 16; background: #000; border-radius: 16px; overflow: hidden; }
.clipstagebox video, .clipstagebox canvas { width: 100%; height: 100%; display: block; }
.clipstagebox video { object-fit: cover; }
.clipstagebox canvas { object-fit: contain; }
.cliphud { position: absolute; top: 12px; right: 12px; width: 56px; height: 56px; }
.clipring { width: 56px; height: 56px; transform: rotate(-90deg); display: block; }
.clipringbg { fill: none; stroke: rgba(255, 255, 255, 0.25); stroke-width: 8; }
.clipringfill { fill: none; stroke: #FFFFFF; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 0; }
.clipcount { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: #FFFFFF; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65); }
.clipcanvas { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.clipstage { background: #000; }
.clipbadge { position: absolute; top: 14px; left: 14px; z-index: 3; background: rgba(0, 0, 0, 0.55); color: #FFFFFF; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.clippreset { position: absolute; top: 14px; right: 14px; z-index: 3; background: var(--accent, #F45A1F); color: #FFFFFF; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.clipthumb { background: #000; }
.clipthumb .clipcanvas { height: 100%; }
.clipkind { background: var(--accent, #F45A1F); color: #FFFFFF; }
/* ASCII clip card (v297): a rigid column, never a full-bleed
   video card. The old card borrowed the video card's structure
   (stage absolute inset 0 inside a height:100% snap card, info
   overlaid at the bottom), so the 4:5 picture letterboxed
   inside a viewport-height box: the card height moved with
   the browser chrome via the feed's 100dvh sizing, the black
   letterbox gaps grew and shrank around the picture, and the
   creator row sat on top of the canvas. Now: header row in
   normal flow, a stage whose height is aspect-ratio alone,
   canvas absolute inside it, meta block in flow below. */
.vcard.clipcard { height: auto; display: flex; flex-direction: column; }
body.shellpage .homewrap .vcard.clipcard { height: auto; width: 100%; margin: 0 auto; }
@media (min-width: 861px) { body.shellpage .homewrap .vcard.clipcard { max-width: min(620px, 56dvh); } }
.cliphead { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding: 12px 14px 10px; flex: none; }
.cliphead .creatorrow { margin-bottom: 0; min-width: 0; }
.clipchips { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.clipcard .clipbadge, .clipcard .clippreset { position: static; }
.clipcard .sndbadge { position: static; cursor: pointer; }
.clipcard .clipstage { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; flex: none; }
.clipcard .clipcanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.clipmeta { padding: 12px 14px 18px; flex: none; }
/* Clean-slate memory feed (v314, Bryan Dec 2): memories only,
   whole screen, 9:16, nothing on the picture. The Buddy in the
   corner is the only door to the details. */
body.shellpage .homewrap.memhome .vcard.clipcard.memcard { height: 100%; max-width: none; width: 100%; margin: 0; display: block; }
.memcard .clipstage { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; overflow: hidden; background: #000; }
.memcard .clipcanvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (min-width: 861px) { .memcard .clipcanvas { width: auto; left: 50%; transform: translateX(-50%); aspect-ratio: 9 / 16; } }
/* One fixed orb for the whole feed (owner, Dec 2): pinned to the
   viewport, it never rides a memory card on swipe or dissolve. */
.membuddy { position: fixed; left: 14px; right: auto; bottom: calc(84px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border: none; background: transparent; color: #fff; padding: 0; overflow: visible; cursor: pointer; z-index: 6; display: flex; align-items: center; justify-content: center; }
.memdot { width: 20px; height: 20px; border-radius: 50%; background: #fff; display: block; box-shadow: 0 0 16px 6px rgba(255,255,255,.5), 0 0 42px 20px rgba(255,255,255,.16); animation: memorb 4.6s ease-in-out infinite; }
.memtry { position: absolute; left: 50%; bottom: calc(50% + 15px); transform: translateX(-50%); font-family: "Helvetica Neue", Arial, "DejaVu Sans", sans-serif; text-transform: none; font-size: 12.5px; font-weight: 500; letter-spacing: .02em; color: rgba(255,255,255,.92); text-shadow: 0 1px 7px rgba(0,0,0,.6), 0 0 12px rgba(255,255,255,.3); white-space: nowrap; pointer-events: none; }
@keyframes memorb { 0%, 100% { transform: scale(1); box-shadow: 0 0 16px 6px rgba(255,255,255,.5), 0 0 42px 20px rgba(255,255,255,.16); } 50% { transform: scale(1.14); box-shadow: 0 0 24px 10px rgba(255,255,255,.66), 0 0 60px 30px rgba(255,255,255,.24); } }
@media (prefers-reduced-motion: reduce) { .memdot { animation: none; } }
/* "you are in someone's memory" (owner, Dec 3): a breathing line
   laid over the memory on screen, atmosphere only, never a
   control. It fades in a beat after a memory settles (the feed
   script adds .trance-on to the current card only), breathes on
   a slow cycle, leaves with the memory, and hides while the
   details panel is open. Lower third, centered: clear of the
   orb bottom-left, the sound pill bottom-right, and the nav. */
.memtrance { position: absolute; left: 50%; top: 63%; transform: translate(-50%, -50%); width: min(80%, 360px); text-align: center; z-index: 5; opacity: 0; transition: opacity 1.6s ease; pointer-events: none; }
.memcard.trance-on .memtrance { opacity: 1; }
.memtrance span { display: block; font-family: "Helvetica Neue", Arial, "DejaVu Sans", sans-serif; font-size: 18px; font-weight: 500; letter-spacing: .015em; color: rgba(255,255,255,.94); animation: trancebreath 5.4s ease-in-out infinite; }
.memtrance .memtrancedate { display: block; margin-top: 7px; font-size: 13px; font-weight: 500; letter-spacing: .05em; opacity: .75; animation: none; }
@keyframes trancebreath { 0%, 100% { opacity: .6; text-shadow: 0 1px 10px rgba(0,0,0,.55), 0 0 14px rgba(255,255,255,.16); } 50% { opacity: 1; text-shadow: 0 1px 10px rgba(0,0,0,.5), 0 0 28px rgba(255,255,255,.4); } }
@media (prefers-reduced-motion: reduce) { .memtrance { transition: none; } .memtrance span { animation: none; opacity: .85; text-shadow: 0 1px 10px rgba(0,0,0,.55), 0 0 18px rgba(255,255,255,.25); } }
/* Feed prompt cards (owner, Dec 3): every so often the feed
   itself asks something of the viewer. Two kinds, both full
   screen dark cards in the memory scroll, both plain anchors.
   Neither is a memory: no player, no sound, no details panel,
   no overlay line, no 3-dot menu. */
.orbcard, .roomcard { display: flex; align-items: center; justify-content: center; text-decoration: none; background: radial-gradient(120% 90% at 50% 42%, #0b0503 0%, #000 62%); }
.orbvoid { display: flex; flex-direction: column; align-items: center; }
.orbwrap { position: relative; width: min(46vw, 196px); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; animation: orbbreath 4.6s ease-in-out infinite; }
/* One breath (owner, Dec 3): the whole assembly, sphere,
   eye, and halo, swells together on the halo's own 4.6s
   cycle, so the card reads as one living thing. */
@keyframes orbbreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.orbhalo { position: absolute; inset: -38%; border-radius: 50%; background: radial-gradient(circle, rgba(244,90,31,.5) 0%, rgba(244,90,31,.18) 28%, rgba(244,90,31,0) 50%); filter: blur(10px); animation: orbhalo 4.6s ease-in-out infinite; }
@keyframes orbhalo { 0%, 100% { transform: scale(.92); opacity: .55; } 50% { transform: scale(1.07); opacity: .95; } }
.orbsphere { position: relative; width: 78%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 34% 28%, rgba(255,220,180,.95) 0%, rgba(255,170,100,.35) 30%, rgba(255,140,70,0) 55%), radial-gradient(circle at 50% 55%, #ffb37a 0%, #ff7d33 38%, #F45A1F 62%, #c93f06 84%, #7c2703 100%); box-shadow: inset -16px -20px 38px rgba(96,22,0,.55), inset 8px 10px 26px rgba(255,196,140,.4), 0 0 54px 14px rgba(244,90,31,.35), 0 0 130px 54px rgba(244,90,31,.13); }
.orbswirl { position: absolute; inset: -12%; border-radius: 50%; mix-blend-mode: screen; opacity: .55; background: radial-gradient(circle at 30% 62%, rgba(255,120,40,.75) 0%, rgba(255,120,40,0) 46%), radial-gradient(circle at 68% 30%, rgba(255,206,150,.8) 0%, rgba(255,206,150,0) 42%), radial-gradient(circle at 58% 74%, rgba(160,50,0,.65) 0%, rgba(160,50,0,0) 50%); animation: orbswirl 21s linear infinite; }
@keyframes orbswirl { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.orbshimmer { position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: overlay; opacity: .16; background: conic-gradient(from 0deg, transparent 0deg, rgba(255,255,255,.8) 24deg, transparent 60deg, transparent 180deg, rgba(255,180,120,.7) 210deg, transparent 250deg); animation: orbswirl 29s linear infinite reverse; }
.orbshine { position: absolute; inset: -6%; animation: orbshine 13s linear infinite; }
.orbshine i { position: absolute; left: 50%; top: 2%; width: 34%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,240,220,.35) 45%, rgba(255,255,255,0) 72%); filter: blur(2px); }
@keyframes orbshine { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.orbline { margin-top: 36px; font-family: "Helvetica Neue", Arial, "DejaVu Sans", sans-serif; font-size: 18px; font-weight: 500; letter-spacing: .015em; color: rgba(255,255,255,.94); text-shadow: 0 1px 10px rgba(0,0,0,.55), 0 0 14px rgba(255,255,255,.16); }
/* The grain (owner, Dec 3, the Black Mirror ask): in the
   middle of the orb, a round window ringed pale like the
   implant in an eye, and inside it a stranger's memory
   replaying. The window is 65% of the sphere across (owner, Dec 3 round 3:
   expand the memory inside all the way). The
   player canvas is zoomed to 150% of the window's width,
   centered, so the memory fills the round edge to edge
   the way a replay fills the grain, the subject large.
   Inside the picture: soft warm streaks of light, and a
   vignette whose blur lives at the rim, so the memory
   melts into the ring instead of ending at a hard crop.
   With no memory to show, the eye is not rendered at all
   and the orb keeps its own glow. */
.orbeye { position: absolute; left: 50%; top: 50%; width: 65%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 42%, rgba(74,26,5,.92) 0%, rgba(24,7,1,.97) 78%); box-shadow: 0 0 0 3px rgba(255,241,222,.48), 0 0 24px 5px rgba(255,238,214,.26), inset 0 0 16px rgba(0,0,0,.5); }
.orbeye canvas { position: absolute; left: 50%; top: 50%; width: 150%; height: auto; transform: translate(-50%, -50%); display: block; }
.orbeyeshade { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(0,0,0,0) 52%, rgba(26,8,2,.42) 100%); box-shadow: inset 0 0 20px rgba(0,0,0,.5), inset 0 3px 7px rgba(255,244,224,.14); }
/* Inner glow of streaks (owner, Dec 3): thin warm rays
   inside the memory itself, over the picture, clipped
   to the circle, drifting slow. Never on the ring. */
.orbeyestreaks { position: absolute; inset: -14%; border-radius: 50%; pointer-events: none; mix-blend-mode: screen; opacity: .5; background: linear-gradient(112deg, rgba(255,226,180,0) 40%, rgba(255,226,180,.34) 48%, rgba(255,226,180,0) 56%), linear-gradient(74deg, rgba(255,176,110,0) 58%, rgba(255,176,110,.26) 66%, rgba(255,176,110,0) 74%), linear-gradient(148deg, rgba(255,240,214,0) 15%, rgba(255,240,214,.2) 22%, rgba(255,240,214,0) 30%); animation: eyestreakdrift 17s ease-in-out infinite alternate; }
@keyframes eyestreakdrift { from { transform: rotate(-2.4deg); } to { transform: rotate(2.4deg); } }
/* Blurry vignette (owner, Dec 3): the rim of the memory
   softens and melts. A warm falloff gradient plus a
   backdrop blur masked to the rim band only, so the
   blur lives at the edge and the middle stays clear.
   The pale ring is the eye's own box-shadow and stays
   readable over it. */
.orbeyevig { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(20,7,2,0) 48%, rgba(20,7,2,.36) 80%, rgba(14,5,1,.6) 100%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,0) 48%, rgba(0,0,0,1) 84%); mask-image: radial-gradient(circle, rgba(0,0,0,0) 48%, rgba(0,0,0,1) 84%); }
/* The orb's motion runs only while its card is on screen:
   MEMFEED_SCRIPT toggles .orb-on by IntersectionObserver, the
   same visibility discipline the clip players keep. */
.orbcard:not(.orb-on) .orbwrap, .orbcard:not(.orb-on) .orbeyestreaks, .orbcard:not(.orb-on) .orbhalo, .orbcard:not(.orb-on) .orbswirl, .orbcard:not(.orb-on) .orbshimmer, .orbcard:not(.orb-on) .orbshine { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .orbwrap, .orbeyestreaks, .orbhalo, .orbswirl, .orbshimmer, .orbshine { animation: none; } .orbhalo { opacity: .75; } }
/* Room-visit prompt card (owner, Dec 3, very sparingly): one
   person, their face, their name, one quiet invitation. */
.roomwho { display: flex; flex-direction: column; align-items: center; padding: 0 22px; text-align: center; }
.roomcard .avatar { width: 96px; height: 96px; font-size: 40px; }
.roomname { margin-top: 20px; font-size: 21px; font-weight: 700; color: #fff; letter-spacing: .01em; }
.roomline { margin-top: 10px; font-family: "Helvetica Neue", Arial, "DejaVu Sans", sans-serif; font-size: 16.5px; font-weight: 500; color: rgba(255,255,255,.78); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.meminfo { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; background: rgba(10,10,10,.96); color: #fff; padding: 18px 18px calc(84px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.22); }
.meminfo[hidden] { display: none !important; }
.meminfo .vcreator { color: #fff; font-size: 19px; font-weight: 700; text-decoration: none; }
.meminfo .memtitle { font-size: 21px; font-weight: 700; margin: 10px 0 6px; }
.meminfo .memcap { font-size: 16px; line-height: 1.45; color: #e8e8e8; margin: 6px 0; white-space: pre-wrap; }
.memletter { margin: 10px 0 4px; max-width: 34em; }
.memletter p { font-size: 16.5px; line-height: 1.55; color: #ececec; margin: 0 0 8px; }
.memletter p.memsign { margin-top: 12px; color: #cfcfcf; font-style: italic; }
.memletter-none { font-size: 15px; line-height: 1.5; color: #bdbdbd; font-style: italic; }
.bledit { margin: 2px 0 6px; }
.bleditbtn { background: none; border: none; padding: 0; font: inherit; font-size: 14.5px; color: #bdbdbd; text-decoration: underline; cursor: pointer; }
.bleditbox { margin-top: 8px; max-width: 34em; }
.bleditarea { width: 100%; box-sizing: border-box; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.25); border-radius: 8px; color: #fff; font: inherit; font-size: 16px; line-height: 1.5; padding: 10px; }
.bleditrow { display: flex; gap: 18px; margin-top: 8px; }
.bleditmsg { font-size: 14px; color: #bdbdbd; margin-top: 6px; min-height: 1em; }
.memletters-head { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 2px; }
.memletters-title { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #cfcfcf; }
.memletters-count { font-size: 13px; color: #9a9a9a; }
.memletter-user { margin-top: 16px; }
.memletterdate { font-size: 12.5px; color: #8f8f8f; margin-top: 2px; }
.memwritebtn { margin-top: 16px; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: 14.5px; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.memeditbtn { background: none; border: none; color: #bdbdbd; font-size: 13px; font-weight: 600; padding: 6px 0 0; cursor: pointer; text-decoration: underline; font-family: inherit; }
.memflagbtn { display: block; background: none; border: none; color: #8f8f8f; font-size: 13px; font-weight: 600; padding: 6px 0 0; cursor: pointer; text-decoration: underline; font-family: inherit; }
.memflagbtn[disabled] { text-decoration: none; cursor: default; }
.memaudiorow { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.memaudiolabel { color: #8f8f8f; font-size: 13px; font-weight: 600; }
.memaudiobtn { background: none; border: none; color: #8f8f8f; font-size: 13px; font-weight: 600; padding: 0; cursor: pointer; text-decoration: underline; font-family: inherit; }
.memaudiobtn[disabled] { text-decoration: none; cursor: default; }
.memeditbox { width: 100%; box-sizing: border-box; background: #171717; border: 1px solid rgba(255,255,255,.25); color: #fff; font: inherit; font-size: 16px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; }
.memeditrow { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.memeditrow .memsavebtn { background: #fff; color: #0a0a0a; border: none; font-size: 14px; font-weight: 700; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.memeditrow .memeditcancel { background: none; border: none; color: #bdbdbd; font-size: 14px; cursor: pointer; font-family: inherit; padding: 8px 0; }
.lettersheet { position: fixed; inset: 0; z-index: 130; background: rgba(0,0,0,.72); display: flex; align-items: flex-end; justify-content: center; }
.lettersheet[hidden] { display: none !important; }
.lettersheet-card { background: #101010; color: #fff; width: 100%; max-width: 560px; border-top: 1px solid rgba(255,255,255,.22); padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); box-sizing: border-box; }
.lettersheet-prompt { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.lettersheet-text { width: 100%; box-sizing: border-box; background: #171717; border: 1px solid rgba(255,255,255,.25); color: #fff; font: inherit; font-size: 16px; line-height: 1.5; padding: 12px; border-radius: 10px; min-height: 132px; }
.lettersheet-row { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.lettersheet-send { background: #fff; color: #0a0a0a; border: none; font-size: 15px; font-weight: 700; padding: 10px 20px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.lettersheet-send[disabled] { opacity: .45; cursor: default; }
.lettersheet-back { background: none; border: none; color: #bdbdbd; font-size: 15px; cursor: pointer; font-family: inherit; padding: 10px 4px; }
.lettersheet-err { color: #ff9a8a; font-size: 14px; margin: 10px 0 0; }
.memaskbtn { display: block; margin-top: 10px; background: none; border: none; color: #bdbdbd; font-size: 14px; font-weight: 600; padding: 4px 0 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-family: inherit; }
.sptalkbtn { margin: 12px auto 2px; display: block; background: none; border: 1px solid rgba(128,128,128,.5); color: inherit; font-size: 14.5px; font-weight: 600; padding: 9px 20px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.sptalk { position: fixed; inset: 0; z-index: 135; background: rgba(0,0,0,.72); display: flex; align-items: flex-end; justify-content: center; }
.sptalk[hidden] { display: none !important; }
.sptalk-card { background: #101010; color: #fff; width: 100%; max-width: 560px; max-height: 86vh; display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.22); padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); box-sizing: border-box; }
.sptalk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sptalk-face { width: 44px; height: 44px; flex: none; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.sptalk-face img { max-width: 44px; max-height: 44px; }
.sptalk-name { font-size: 18px; font-weight: 700; flex: 1; }
.sptalk-x { background: none; border: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 6px; font-family: inherit; }
.sptalk-list { overflow-y: auto; padding: 4px 0; flex: 1 1 auto; min-height: 0; }
.sptalk-greet { font-size: 14.5px; line-height: 1.5; color: #9a9a9a; margin: 0 0 12px; }
.sptalk-msg { font-size: 15.5px; line-height: 1.5; margin: 0 0 10px; max-width: 92%; white-space: pre-wrap; }
.sptalk-user { margin-left: auto; background: #1d1d1d; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 9px 12px; }
.sptalk-sprite { margin-right: auto; color: #f0f0f0; padding: 2px 0; }
.sptalk-prop { border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 12px; margin: 0 0 12px; }
.sptalk-proplabel { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.sptalk-draft { font-size: 15px; line-height: 1.55; color: #e8e8e8; white-space: pre-wrap; background: rgba(255,255,255,.05); border-radius: 8px; padding: 10px 12px; margin: 0 0 10px; }
.sptalk-chips { display: flex; gap: 16px; align-items: center; }
.sptalk-do { background: #fff; color: #0a0a0a; border: none; font-size: 14px; font-weight: 700; padding: 8px 18px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.sptalk-do[disabled], .sptalk-never[disabled] { opacity: .45; cursor: default; }
.sptalk-never { background: none; border: none; color: #bdbdbd; font-size: 14px; cursor: pointer; font-family: inherit; padding: 8px 0; }
.sptalk-done { font-size: 14px; color: #9a9a9a; margin: 6px 0 0; }
.sptalk-err { color: #ff9a8a; font-size: 14px; margin: 8px 0 0; }
.sptalk-row { display: flex; gap: 10px; margin-top: 12px; }
.sptalk-input { flex: 1; box-sizing: border-box; background: #171717; border: 1px solid rgba(255,255,255,.25); color: #fff; font: inherit; font-size: 16px; padding: 11px 12px; border-radius: 10px; min-width: 0; }
.sptalk-send { background: #fff; color: #0a0a0a; border: none; font-size: 15px; font-weight: 700; padding: 10px 18px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.sptalk-send[disabled] { opacity: .45; cursor: default; }
.meminfo .memrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.meminfo .sndbadge { position: static; cursor: pointer; }
.meminfo a.memmore { color: #fff; font-weight: 600; }
.memclose { position: absolute; top: 10px; right: 12px; background: transparent; border: none; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 6px; }
.memempty { color: #fff; text-align: center; padding: 40px 22px; }
.memempty a { color: #fff; font-weight: 700; }
.memdots { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); z-index: 6; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(0,0,0,.45); color: #fff; font-size: 19px; font-weight: 800; line-height: 1; letter-spacing: 1px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 8px; }
/* Sound-state indicator (owner, Dec 2): a persistent pill in the
   free corner (bottom-right, mirroring the Buddy orb) that always
   shows whether the memory is muted or playing out loud: speaker
   icon + state word. Soft and low-opacity at rest per the feed's
   ethereal direction; it brightens for a moment when the state
   changes, then settles back. */
.sndind { position: absolute; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 6; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.20); background: rgba(0,0,0,.30); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; cursor: pointer; opacity: .62; transition: opacity .45s ease, background .45s ease; }
.sndind svg { flex: none; display: block; }
.sndind[data-snd="on"] { background: rgba(0,0,0,.48); }
.sndind.sndpop { opacity: 1; }
.clipstage { position: relative; }
.clipflash { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; pointer-events: none; z-index: 7; opacity: 0; }
.clipflash[hidden] { display: none; }
.clipflash .cfbox { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; }
.clipflash .cfbox svg { width: 40px; height: 40px; }
.clipflash .cftext { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-shadow: 0 1px 8px rgba(0,0,0,.85); }
.clipflash.go { animation: clipflashfade .95s ease forwards; }
@keyframes clipflashfade { 0% { opacity: 0; transform: scale(.85); } 16% { opacity: 1; transform: scale(1); } 68% { opacity: 1; } 100% { opacity: 0; transform: scale(1.04); } }
.sndbadge svg { vertical-align: -3px; margin-right: 6px; }
.sndind:focus-visible, .sndbadge:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: 2px; }
/* Feed-only chrome + ethereal pass (owner, Dec 2): on the feed route
   the banner, header and footer are not emitted at all (page() opts.feed);
   the memory runs edge to edge and melts under a gradient bottom nav.
   Soft light, slow easing, nothing hard sits on the picture. */
body.feedpage { --headerh: 0px; --bannerh: 0px; }
body.feedpage .memdots { background: rgba(0,0,0,.22); opacity: .75; transition: opacity .4s ease, background .4s ease; }
body.feedpage .memdots:active { opacity: 1; background: rgba(0,0,0,.4); }
body.feedpage .meminfo { animation: meminfoin .55s cubic-bezier(.22,.8,.26,1) both; }
@keyframes meminfoin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
body.feedpage .memscrim { animation: memfadein .4s ease both; }
@keyframes memfadein { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body.feedpage .meminfo, body.feedpage .memscrim { animation: none; } }
@media (max-width: 700px) {
  body.feedpage .bottomnav { background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.34) 38%, rgba(0,0,0,.72) 72%, rgba(0,0,0,.94) 100%); border-top: none; padding: 24px 4px calc(5px + env(safe-area-inset-bottom)); }
  body.feedpage .bnitem { opacity: .8; transition: opacity .35s ease; }
  body.feedpage .bnitem:active { background: transparent; opacity: 1; }
}
.memscrim { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.62); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px; }
.memscrim[hidden] { display: none !important; }
.memsheet { background: #141414; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: 18px; width: 100%; max-width: 320px; text-align: center; color: #fff; }
.memsheet[hidden] { display: none !important; }
.memsheet button { display: block; width: 100%; padding: 13px; margin-top: 10px; border-radius: 12px; border: none; font-size: 17px; font-weight: 700; cursor: pointer; }
.memsheet .memdel { background: #b3261e; color: #fff; }
.memsheet .memdel:disabled { opacity: .55; cursor: default; }
.memsheet .memcancel { background: rgba(255,255,255,.12); color: #fff; }
.memsheet .memask { font-size: 19px; font-weight: 700; margin: 2px 0 6px; }
.memsheet .memcost { color: #cfcfcf; margin: 0 0 4px; font-size: 16px; }
.memsheet .memerr { color: #ff9d97; margin: 10px 0 0; font-size: 15px; }
.memsheet .memerr[hidden] { display: none !important; }
.cliproll { font-size: 19px; font-weight: 600; }
.cliprefine { width: min(100%, 340px); margin: 10px auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #101010; color: var(--text); box-sizing: border-box; }
.cliprefine[hidden] { display: none !important; }
.cliprolled { font-weight: 700; margin: 2px 0 8px; }
.cliprefrow { display: grid; grid-template-columns: 88px 1fr 54px; align-items: center; gap: 8px; margin: 9px 0; font-size: 13px; }
.cliprefrow input[type="range"] { width: 100%; }
.cliprefrow b { text-align: right; font-variant-numeric: tabular-nums; }

.form label.checkrow { flex-direction: row; align-items: center; gap: 10px; }
.form label.checkrow input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.kindbadge { position: absolute; left: 6px; bottom: 6px; background: var(--accent); color: #000; font-size: 12px; font-weight: 700; padding: 2px 6px; }
.vfeed { margin: -18px 0 -40px; height: calc(100dvh - var(--headerh, 64px) - var(--bannerh, 0px)); overflow-y: auto; scroll-snap-type: y mandatory; background: #000; }
/* Dreams feed (owner, Dec 3): /cuts is a feed like the
   memories feed, in a black room. One Dream per screen, snap
   scroll. Vertical Dreams fill the screen; horizontal Dreams
   sit in a mini player at their natural aspect, centered,
   and the container throws the color aura (the deck TV's
   recipe: three band-sampled hues, three soft lobes, a small
   canvas upscaled) into the black around it. On a vertical
   Dream the aura rides the picture's edges instead. */
.dreamwrap { position: fixed; inset: 0; background: #000; z-index: 1; }
.dreamfeed { position: relative; height: 100%; }
.dfeed { height: 100%; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; background: #000; scrollbar-width: none; }
.dfeed::-webkit-scrollbar { display: none; width: 0; height: 0; }
.dcard { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; }
.dstage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.daura { position: absolute; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.1s ease; }
.dcard.port .daura { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .daura { transition: none; } }
.dframe { position: relative; z-index: 1; width: 100%; height: 100%; background: #000; flex: none; }
.dcard.land .dframe { border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 18px 50px rgba(0,0,0,.6); }
.dvid { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000; }
.dcard.port .dvid { object-fit: cover; }
.dcard.land .dvid { object-fit: contain; border-radius: 12px; }
.dhair { position: absolute; top: calc(4px + env(safe-area-inset-top)); left: 0; height: 2px; width: 0; background: rgba(255,255,255,.5); z-index: 4; pointer-events: none; }
.dcard.land .dhair { display: none; }
.dseek { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: none; align-items: center; gap: 9px; padding: 18px 12px 9px; background: linear-gradient(transparent, rgba(0,0,0,.55)); border-radius: 0 0 12px 12px; }
.dcard.land .dseek { display: flex; }
.dtime { color: #fff; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; text-shadow: 0 1px 4px rgba(0,0,0,.85); min-width: 30px; }
.dtime.dtot { text-align: right; }
.drange { flex: 1 1 auto; -webkit-appearance: none; appearance: none; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); outline: none; margin: 0; padding: 0; cursor: pointer; }
.drange::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: none; box-shadow: 0 1px 5px rgba(0,0,0,.6); }
.drange::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: none; box-shadow: 0 1px 5px rgba(0,0,0,.6); }
.doverlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 14px 16px calc(88px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.82) 55%); pointer-events: none; }
.dcard.land .doverlay { background: none; }
.dtitle { font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; line-height: 1.15; color: #fff; }
.dby { color: rgba(255,255,255,.75); font-size: 13.5px; margin-top: 4px; }
.dby a { color: #fff; font-weight: 700; text-decoration: none; pointer-events: auto; }
.dupload { position: fixed; right: calc(18px + env(safe-area-inset-right)); bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 40; color: #fff; font-size: 17px; font-weight: 600; text-transform: lowercase; text-decoration: underline; text-underline-offset: 4px; padding: 10px 4px; }
.dempty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; }
.demptybig { font-family: "Oswald", "Arial Narrow", sans-serif; font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; margin: 0; }
.demptysub { color: rgba(255,255,255,.65); margin: 0; font-size: 15px; }
.vcard { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; }
.vstage { position: absolute; inset: 0; }
.vvid { width: 100%; height: 100%; object-fit: cover; display: block; }
.sndbadge { position: absolute; top: calc(30px + env(safe-area-inset-top)); right: calc(14px + env(safe-area-inset-right)); z-index: 3; background: rgba(0,0,0,0.75); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.playerfail { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; background: rgba(9, 10, 9, 0.94); color: #F1EEE6; border: 1px solid var(--accent); padding: 12px 18px; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; max-width: 86%; text-align: center; }
.watchback { position: fixed; top: calc(var(--headerh, 64px) + var(--bannerh, 0px) + 12px + env(safe-area-inset-top)); left: 14px; z-index: 65; background: rgba(0,0,0,0.78); color: #fff; border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 600; cursor: pointer; }
.watchback.flow { position: static; margin: 14px 0 0 14px; }
.voverlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px 14px calc(76px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,0.88) 45%); }
.vtitle { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.15; }
.vmeta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.vmeta a { color: var(--accent); font-weight: 700; text-decoration: none; }
.cmtoggle { background: var(--panel2); color: var(--text); border: 1px solid var(--line); padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer; margin-top: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.vcomments { margin-top: 10px; max-height: 36vh; overflow-y: auto; background: rgba(8,8,8,0.92); border: 1px solid var(--line); padding: 4px 10px 10px; }
.comment { border-bottom: 1px solid var(--line); padding: 8px 0; }
.comment:last-of-type { border-bottom: none; }
.cmeta { color: var(--muted); font-size: 12px; }
.cmeta b { color: var(--accent); }
.cbody { white-space: pre-wrap; margin-top: 2px; font-size: 15px; }
.cform { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; max-width: 560px; }
.cform textarea { background: var(--panel2); border: 1px solid var(--line); color: var(--text); padding: 10px; font-size: 15px; font-family: inherit; }
.cform textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.cform button { align-self: flex-start; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; vertical-align: middle; flex: none; }
.avatar.lg { width: 76px; height: 76px; font-size: 32px; }
.avatar.sm { width: 24px; height: 24px; font-size: 12px; }
.avatarph { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; flex: none; vertical-align: middle; background: var(--accent); color: #000; font-weight: 700; font-family: "Oswald", "Arial Narrow", sans-serif; text-transform: uppercase; }
.avatarph.sm { width: 24px; height: 24px; }
.avatarph.lg { width: 76px; height: 76px; }
.flagged { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.voverlay form { display: inline; }
.creatorrow { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.vcreator { font-weight: 700; font-size: 17px; text-decoration: none; line-height: 1.15; }
.vhandle { color: var(--muted); font-size: 13px; font-weight: 400; }
.followbtn { background: var(--accent); color: #000; border: none; padding: 7px 16px; font-weight: 700; font-size: 13px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.05em; font-family: inherit; }
.followbtn.following { background: transparent; color: var(--text); border: 1px solid var(--muted); }
.watchactions { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.channelhead { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.channelsub { margin-bottom: 22px; }
.chanactions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 6px; }
.chanbtn { padding: 4px 12px !important; font-size: 12px !important; }
.channelhead .navform { margin-left: auto; flex: none; }
.followwhite { background: #ffffff !important; color: #111111 !important; border: 1px solid #d7d7cf !important; }
.followbtn.following.followwhite { background: #ffffff !important; color: #111111 !important; border: 1px solid #d7d7cf !important; }
.pgrid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); background: transparent; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 78px; gap: 10px; margin-top: 10px; }
.mosaic a { display: block; border-radius: 12px; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mosaic a:nth-child(3n+1) { grid-column: span 2; grid-row: span 2; }
.mosaic a:nth-child(5n+3) { grid-row: span 2; }
@media (max-width: 700px) { .mosaic { grid-auto-rows: 62px; } }
.pgrid .card { border-radius: 14px; overflow: hidden; }
.pgrid .thumbwrap { border-radius: 14px; overflow: hidden; }
.channelhead .pagetitle { margin: 0; }
.profilepreview { display: flex; align-items: center; gap: 14px; }
.bigbtn { border-radius: 999px; padding: 11px 26px; }
.navcta { border-radius: 999px; }
.navbtn { border-radius: 999px; padding: 5px 14px; }
.followbtn { border-radius: 999px; padding: 6px 18px; }
.approvebtn, .rejectbtn { border-radius: 999px; padding: 8px 20px; }
.deletebtn { border-radius: 999px; padding: 7px 18px; }
.deletebtn.small { padding: 5px 14px; }
.cmtoggle { border-radius: 999px; padding: 6px 14px; }
.cactionbtn { border: 1px solid var(--line); border-radius: 999px; padding: 3px 13px; }
.pwtoggle { border-radius: 999px; padding: 0 16px; }
.visbtn { border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-weight: 700; font-size: 13px; padding: 6px 18px; text-transform: uppercase; letter-spacing: 0.05em; font-family: inherit; flex: none; }
.visbtn.pub { background: var(--good); color: #000; }
.visbtn.priv { background: transparent; color: var(--muted); border-color: var(--muted); }
.navpill { background: var(--accent); color: #000; border-radius: 999px; padding: 7px 16px; font-weight: 700; }
.navpill:hover { color: #000; background: #ff6a26; }
.navpill.alt { background: transparent; color: var(--text); border: 1px solid var(--muted); }
.navpill.alt:hover { color: var(--accent); border-color: var(--accent); }
.playerbox { position: relative; }
.chatov { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; max-width: 85%; background: none; border: none; padding: 0; margin: 0 0 10px; text-align: left; cursor: pointer; text-decoration: none; font-family: inherit; }
.playerbox .chatov { position: absolute; left: 14px; bottom: 52px; z-index: 3; margin: 0; }
.chatlines { display: flex; flex-direction: column; gap: 4px; max-height: 98px; overflow-y: auto; touch-action: pan-y; scrollbar-width: none; padding: 2px; }
.chatlines::-webkit-scrollbar { display: none; }
.chatline { display: flex; gap: 6px; align-items: center; background: rgba(0,0,0,0.55); color: #F1EEE6; padding: 3px 9px; border-radius: 8px; font-size: 13px; line-height: 1.3; max-width: 100%; flex: none; }
.chatline b { color: var(--accent); flex: none; }
.chattext { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.votes { display: inline-flex; align-items: center; gap: 2px; }
.votes form { display: inline; margin: 0; }
.votebtn { background: none; border: none; color: var(--muted); font-size: 13px; cursor: pointer; padding: 2px 5px; text-decoration: none; font-family: inherit; line-height: 1; }
.votebtn:hover { color: var(--accent); }
.votebtn.on { color: var(--accent); font-weight: 700; }
.score { font-weight: 700; font-size: 13px; min-width: 16px; text-align: center; }
.collapsednote { color: var(--muted); font-size: 13px; font-style: italic; }
#watchbg { position: fixed; inset: 0; z-index: 0; display: none; }
body.watchmin #watchbg { display: block; }
#watchbg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.watchbgov { position: absolute; inset: 0; }
body.watchmin .vfeed { position: relative; z-index: 1; }
.pipclose { display: none; }
.vcard.pip .pipclose { display: flex; position: fixed; top: calc(var(--headerh, 64px) + var(--bannerh, 0px) + 14px + env(safe-area-inset-top)); right: 12px; z-index: 70; width: 34px; height: 34px; border-radius: 50%; background: rgba(9,10,9,0.72); color: #F1EEE6; border: 1px solid #d7d7cf; align-items: center; justify-content: center; font-size: 16px; line-height: 1; cursor: pointer; }
.bottomnav { display: none; }
@media (max-width: 700px) {
  .bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; background: #0d0d0c; border-top: 1px solid #2a2a2e; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-sizing: border-box; }
  .bnitem { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0 2px; color: #b9b9ae; text-decoration: none; -webkit-tap-highlight-color: transparent; border-radius: 10px; }
  .bnicon { width: 22px; height: 22px; display: inline-flex; }
  .bnicon svg { width: 22px; height: 22px; }
  .bnlabel { font-size: 10px; font-weight: 700; letter-spacing: 0.02em; }
  .bnitem.current { color: var(--nav-accent, #F45A1F); }
  .bnitem.bnaccent { color: var(--nav-accent, #F45A1F); }
  .bnitem:active { background: var(--panel2); }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  body.shellpage { padding-bottom: 0; }
  body.shellpage .vfeed { bottom: calc(58px + env(safe-area-inset-bottom)); }
}
.sheet { position: fixed; inset: 0; z-index: 130; }
.sheet[hidden] { display: none; }
.sheetpanel { position: absolute; left: 0; right: 0; bottom: 0; height: 56dvh; background: var(--bg); border-top: 2px solid var(--line); border-radius: 18px 18px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.28s ease; padding-bottom: env(safe-area-inset-bottom); }
.sheet.open .sheetpanel { transform: translateY(0); }
@media (max-width: 700px) { .sheetpanel { bottom: calc(58px + env(safe-area-inset-bottom)); border: 2px solid var(--line); border-bottom: none; } }
@media (min-width: 701px) { .sheetpanel { left: auto; width: 440px; height: 100dvh; border-radius: 0; border-left: 2px solid var(--line); border-top: none; } }
.sheetgrab { width: 42px; height: 4px; border-radius: 999px; background: var(--muted); margin: 10px auto 2px; flex: none; }
.sheethead { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 10px; border-bottom: 1px solid var(--line); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; flex: none; touch-action: none; }
.sheetclose { background: none; border: 1px solid var(--muted); color: var(--text); border-radius: 999px; padding: 6px 14px; font-weight: 700; cursor: pointer; text-transform: uppercase; font-size: 13px; }
.sheetbody { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.sheetlist { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 10px; }
.sheetfoot { flex: none; display: flex; gap: 10px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.sheetfoot .cform { flex: 1; flex-direction: row; align-items: center; margin: 0; max-width: none; }
.sheetfoot .cform textarea { flex: 1; }
.vcard.pip .vvid { position: fixed; top: calc(62px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(88vw, 380px); height: 30dvh; border-radius: 16px; z-index: 60; object-fit: cover; }
.vvid { transition: width 0.28s ease, height 0.28s ease, top 0.28s ease, border-radius 0.28s ease; }
.vcard.pip .voverlay, .vcard.pip .sndbadge { display: none; }


.reply { margin-left: 28px; border-left: 2px solid var(--line); padding-left: 10px; }
.editedmark { color: var(--muted); font-size: 12px; font-style: italic; }
.cactions { display: flex; flex-direction: row; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.cactions form { display: inline; margin: 0; }
.cactionbtn { background: none; border: none; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; padding: 2px 0; font-family: inherit; }
.cactionbtn:hover { color: var(--accent); }
.cpanel { margin-top: 8px; }
.ceditform { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.commentscol { width: 100%; }
.commentscol .cform { max-width: none; width: 100%; }
.commentscol .comment { width: 100%; }
@media (min-width: 700px) { .commentscol { max-width: 720px; } }
.ceditform textarea { background: var(--panel2); border: 1px solid var(--line); color: var(--text); padding: 8px; font-size: 15px; font-family: inherit; }
.tagprint { color: var(--muted); font-size: 12px; }
.catalogthumb { width: 64px; height: 80px; object-fit: cover; flex: none; }
.catalogform { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.catalogform input, .catalogform select { background: var(--panel2); border: 1px solid var(--line); color: var(--text); padding: 9px; font-size: 15px; }
.rowcheck { width: 22px; height: 22px; flex: none; accent-color: var(--accent); margin: 0; }
.bulkbar { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 12px; box-shadow: 0 -6px 18px rgba(0,0,0,0.45); }
.bulkbar .bulkcount { font-weight: 700; margin-right: 4px; }
.bulkbar .selall { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-right: auto; }
.articlepreview { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-top: 14px; background: var(--panel); }
.editbtns { display: flex; gap: 6px; flex: none; flex-wrap: wrap; }
@media (min-width: 900px) {
  /* Desktop: the feed and watch pages are normal pages again. The
     player is a little theatre, never full-screen; header and
     footer stay visible and the page scrolls like a page. Mobile
     keeps the full-screen snap feed untouched. This block sits at
     the end of the sheet on purpose: it must override the shell
     and card rules above it at equal specificity. */
  body.shellpage { overflow: visible; }
  body.shellpage .alphabanner { position: static; }
  body.shellpage header { position: sticky; top: 0; }
  body.shellpage footer { display: block; }
  body.shellpage .vfeed { position: static; height: auto; overflow: visible; scroll-snap-type: none; margin: 0; background: transparent; }
  body.shellpage .vcard.pip .vvid { position: static; width: auto; height: auto; transform: none; }
  .vcard { height: auto; overflow: visible; background: transparent; scroll-snap-align: none; width: fit-content; max-width: min(880px, 100%); margin: 0 auto 38px; }
  .vstage { position: relative; inset: auto; width: fit-content; max-width: 100%; margin: 0; }
  .vvid { width: auto; height: auto; max-width: min(880px, 100%); max-height: 72vh; object-fit: contain; background: #000; border-radius: 12px; margin: 0 auto; }
  .vposter { display: none; }
  .sndbadge { top: 14px; right: 14px; }
  .tapforsound { display: none; }
  .chatov { display: none; }
  .voverlay { position: static; background: none; padding: 12px 0 0; width: 0; min-width: 100%; }
  .seamlabel { scroll-snap-align: none; max-width: 880px; margin: 0 auto; }
  .sheet { position: static; z-index: auto; width: 0; min-width: 100%; }
  .sheetpanel { position: static; transform: none; height: auto; border: 1px solid var(--line); border-radius: 14px; margin-top: 12px; padding-bottom: 0; }
  .sheetlist { max-height: 380px; }
  /* Upload becomes a pop-out experience: a dim backdrop over the
     whole viewport, one centered panel holding the whole wizard,
     actions pinned to the panel's own bottom edge. */
  body.uploadpage header, body.uploadpage footer, body.uploadpage .alphabanner { display: none; }
  body.uploadpage main { position: fixed; inset: 0; z-index: 95; max-width: none; margin: 0; padding: 3.5dvh 16px; background: rgba(4, 4, 4, 0.92); overflow-y: auto; }
  body.uploadpage .upwrap { position: relative; max-width: 680px; min-height: calc(100dvh - 7dvh - 44px); margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px 20px; display: flex; flex-direction: column; box-sizing: border-box; }
  body.uploadpage #uploadform { flex: 1; display: flex; flex-direction: column; }
  body.uploadpage .steppanel:not([hidden]) { flex: 1; display: flex; flex-direction: column; }
  body.uploadpage #uploadform.stepper-on .steprow { margin-top: auto; padding-top: 14px; }
  body.uploadpage .picktarget { min-height: 300px; }
  .uploadclose { display: flex; position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 17px; background: var(--panel2); z-index: 3; }
}

/* Rooms: the profile page as a cozy spot. One composition that
   stacks on phones: profile + bio block up top as the hero, the
   MP3 player as a featured block, the wall in the main column,
   and the person's videos as a small feed in the corner rail,
   deliberately minor. The owner's background picture (if any)
   sits full-bleed behind everything; blocks keep their own
   surfaces so text stays readable on top of it. Theme variables
   (--room-bg / --room-surface / --room-text / --room-accent) are
   the Vibes tint layer, set per room from sanitized values only. */
.roombg { position: fixed; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.ambbg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: #0a0f0a; }
.ambcanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ambgrade { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ambgrade[data-grade="lakeside"] { background: radial-gradient(ellipse 64% 38% at 33% 63%, rgba(255,253,214,0.30), rgba(255,253,214,0) 72%), linear-gradient(180deg, rgba(5,24,12,0.30) 0%, rgba(5,24,12,0) 34%, rgba(3,16,9,0.34) 100%); }
.ambgrade[data-grade="blossom"] { background: radial-gradient(ellipse 60% 36% at 50% 28%, rgba(255,244,248,0.34), rgba(255,244,248,0) 72%), linear-gradient(180deg, rgba(94,32,54,0.20) 0%, rgba(94,32,54,0) 34%, rgba(64,20,38,0.24) 100%); }
.ambgrade[data-grade="harvest"] { background: radial-gradient(ellipse 62% 38% at 34% 61%, rgba(255,217,138,0.32), rgba(255,217,138,0) 72%), linear-gradient(180deg, rgba(62,26,4,0.30) 0%, rgba(62,26,4,0) 34%, rgba(40,16,2,0.36) 100%); }
.ambgrade[data-grade="moonwater"] { background: radial-gradient(ellipse 52% 32% at 82% 20%, rgba(207,224,255,0.28), rgba(207,224,255,0) 72%), linear-gradient(180deg, rgba(2,6,20,0.34) 0%, rgba(2,6,20,0) 34%, rgba(2,4,14,0.40) 100%); }
.ambgrade[data-grade="peaks"] { background: radial-gradient(ellipse 60% 36% at 50% 70%, rgba(255,179,122,0.26), rgba(255,179,122,0) 72%), linear-gradient(180deg, rgba(16,6,28,0.32) 0%, rgba(16,6,28,0) 34%, rgba(10,4,20,0.38) 100%); }
.roomoverlay { position: fixed; inset: 0; z-index: -1; background: var(--room-overlay, rgba(255, 255, 255, 0.45)); pointer-events: none; }
.roomwrap { background: color-mix(in srgb, var(--room-bg, #ffffff) 20%, transparent); }
.roomgrid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .roomgrid { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
.roomblocks { display: flex; flex-direction: column; min-width: 0; }
.roomblocks > * { min-width: 0; }
@media (min-width: 900px) {
  body.roompage main { max-width: none; padding-left: 14px; padding-right: 14px; }
  .roomcols { display: grid; grid-template-columns: minmax(0, 22fr) minmax(0, 40fr) minmax(0, 38fr); gap: 24px; height: calc(100dvh - 150px); min-height: 480px; }
  .roomcol { display: flex; flex-direction: column; gap: 20px; overflow-y: auto; overflow-x: hidden; min-width: 0; scrollbar-width: thin; }
  .roomwrap .roomblock { margin-bottom: 0; }
  .roomwrap .widgetgrid { margin-bottom: 0; }
  .roomcol-center .pgrid { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .roomwrap { display: flex; flex-direction: column; }
  .roomcols, .roomcol { display: contents; }
  .roomcol > * { min-width: 0; }
}
/* Widget grid: 4 tiles across. Widgets (clock, calendar, buddy)
   pack side by side in order; 1 tile is one small cell, 2 is
   wide, 4 takes the whole row. Big room sections stay blocks. */
.widgetgrid { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; justify-content: space-between; }
.widgetgrid.duo { justify-content: flex-start; margin-left: -2px; margin-right: -2px; }
.widgetgrid .roomblock { margin-bottom: 0; box-sizing: border-box; overflow: hidden; }
.widget { min-width: 0; aspect-ratio: 1; }
.tile1 { flex: 0 0 calc((100% - 36px) / 4); }
.widgetgrid.duo .tile1 { flex: 0 0 calc((100% - 12px) / 2); }
.widgetgrid.duo .tile1 { border: 1.5px solid #d7d7cf; border-radius: 16px; }
.widgetgrid #room-avatar { background: #ffffff; }
.tile2 { flex: 2 0 calc((100% - 36px) / 2 + 10px); }
.tile4 { flex: 4 0 calc(100% - 2px); }
.tile4 .clockface { width: 170px; height: 170px; }
.tile4 .clockdig { font-size: 40px; }
.tile4 .calcell { padding: 10px 0; font-size: 15px; }
.tile4 .petimg { max-width: 430px; margin: 0 auto; }
.tile2 .clockface { width: 84px; height: 84px; }
.tile2 .clockdig { font-size: 24px; }
.tile2 .calcell { padding: 3px 0; font-size: 11px; }
.tile2 .petimg { height: 92px; width: auto; max-width: 100%; margin: 0 auto; }
.tile2 .petstats { display: none; }
.petimg { cursor: pointer; }
img.petsingle.pet-mood-happy, [data-petapi].pet-mood-happy img.petsingle { filter: brightness(1.07) saturate(1.18); }
img.petsingle.pet-mood-excited, [data-petapi].pet-mood-excited img.petsingle { filter: brightness(1.1) saturate(1.3); }
.petbg { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.petoverlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; border-radius: inherit; }
.petoverlay.front { z-index: 3; opacity: 0.45; }
#room-game .blockhead, #room-game .petstage, #room-game .petstats, #room-game .petfeedrow, #room-game .editpanel { position: relative; z-index: 2; }
.petoverlay .ovsp { position: absolute; bottom: -8%; opacity: 0; animation-name: ovrise; animation-timing-function: linear; animation-iteration-count: infinite; }
.ov-hearts .ovsp { color: #FF7A36; font-size: 15px; }
.ov-sparkles .ovsp { color: #F5BE41; font-size: 13px; }
.ov-snow .ovsp { top: -4%; bottom: auto; width: 7px; height: 7px; border-radius: 50%; background: #F1EEE6; animation-name: ovfall; }
.ov-stars { background-image: radial-gradient(1.6px 1.6px at 20px 30px, rgba(241,238,230,0.9) 50%, transparent 51%), radial-gradient(1.2px 1.2px at 70px 90px, rgba(241,238,230,0.7) 50%, transparent 51%), radial-gradient(1px 1px at 120px 50px, rgba(245,190,65,0.8) 50%, transparent 51%); background-size: 150px 150px; animation: ovdrift 36s linear infinite; }
@keyframes ovrise { 0% { bottom: -8%; opacity: 0; } 12% { opacity: 0.75; } 85% { opacity: 0.55; } 100% { bottom: 104%; opacity: 0; } }
@keyframes ovfall { 0% { top: -4%; opacity: 0; } 15% { opacity: 0.85; } 100% { top: 102%; opacity: 0.2; } }
@keyframes ovdrift { from { background-position: 0 0; } to { background-position: 150px 300px; } }
@media (prefers-reduced-motion: reduce) { .petoverlay .ovsp, .ov-stars { animation: none; } }
.widget.tile1 { padding: 8px; }
.widget.tile2 { padding: 12px; }
.tile1 .clockface { display: none; }
.tile1 .clockdig { font-size: 15px; text-align: center; }
.tile1 .clockdate { display: none; }
.tile1 .clockloc { font-size: 9px; text-align: center; }
.tile1 .clockwrap { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 2px; }
.tile1 .sectiontitle { display: none; }
.tile1 .petimg { width: auto; height: 100%; max-width: 100%; max-height: 100%; margin: 0 auto; }
.tile1 img.petimg { object-fit: contain; }
.tile1 .petstats { display: none; }
.tile1 .petmsg { display: none; }
.tile1 .petfeedrow { display: none; }
#room-game.tile1 { padding: 6px; }
#room-game.tile1 .blockhead .sectiontitle { display: block; font-size: 30px; font-weight: 700; letter-spacing: 0.05em; line-height: 1; color: var(--room-text, var(--text)); background: none; border: none; border-radius: 0; padding: 0; margin: 0; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile1 .blockhead .sectiontitle { display: block; font-size: 11px; margin-bottom: 2px; }
.tile1 .datetile { padding: 2px 0; }
.tile1 .dtday { font-size: 34px; }
.tile1 .dtmonth { font-size: 10px; }
.tile1 .dtwd { font-size: 10px; }
.datetile { text-align: center; padding: 8px 0; }
.dtmonth { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.dtday { display: block; font-size: 42px; font-weight: 800; line-height: 1.05; }
.dtwd { display: block; font-size: 11px; color: var(--muted); }
.widgetgrid img { -webkit-user-drag: none; }
.gearbadge { z-index: 6; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: #F45A1F; color: #090A09; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(0,0,0,0.55); pointer-events: none; }
.gearbadge svg { width: 30px; height: 30px; }
.widget { position: relative; }
#widgetpop { position: fixed; inset: 0; z-index: 280; background: #090A09; overflow-y: auto; box-sizing: border-box; padding: calc(14px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)); }
.pophead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pophead h3 { margin: 0; }
.popstage { position: relative; border: 1px solid #d7d7cf; border-radius: 16px; overflow: hidden; padding: 20px 16px; margin-bottom: 16px; background: var(--room-bg, #ffffff); }
.stagebg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.stageoverlay { position: absolute; inset: 0; }
.stagecells { position: absolute; inset: 20px 16px; border: 1.5px dashed color-mix(in srgb, var(--room-text, #111111) 22%, transparent); border-radius: 12px; pointer-events: none; }
.stagegrid { position: relative; display: flex; justify-content: center; gap: 12px; }
.stagegrid .roomblock { margin-bottom: 0; box-sizing: border-box; overflow: hidden; }
.stagegrid .widget { flex: 0 0 calc((100% - 36px) / 4); }
.wgear { position: absolute; top: 6px; right: 6px; z-index: 6; width: 30px; height: 30px; border-radius: 50%; background: rgba(9,10,9,0.72); border: 1px solid #d7d7cf; color: #F1EEE6; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; font-family: inherit; }
.wgear svg { width: 17px; height: 17px; }
#room-game .wgear { width: 24px; height: 24px; top: 4px; right: 4px; }
#room-game .wgear svg { width: 14px; height: 14px; }
.wgear { display: none; }
.widgetgrid.editing .wgear { display: flex; }
.weditrow { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.setupwrap { max-width: 560px; margin: 0 auto; padding: 16px 14px 48px; }
.setuphead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.setupprog { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.setupnav { display: flex; gap: 10px; align-items: center; margin-top: 24px; }
.setupnav .followbtn { margin-left: auto; }
#su-preview { position: relative; border: 1px solid var(--line); border-radius: 14px; min-height: 216px; overflow: hidden; padding: 16px; margin-top: 4px; }
#su-previmg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#su-prevshade { position: absolute; inset: 0; }
.su-prevblocks { position: relative; display: flex; flex-direction: column; gap: 8px; }
.su-prevblock { border-radius: 10px; padding: 10px 12px; }
.su-emos { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.su-emo.on { outline: 2px solid var(--accent); }
#su-avprev { width: 100px; aspect-ratio: 0.675; background-repeat: no-repeat; border-radius: 12px; margin: 10px auto; }
.widget.tile1 { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.clockmini { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 2px; text-align: center; }
.tile1 .datetile { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; }
#room-avatar .avatarstage { padding: 0; height: 100%; width: 100%; }
#room-avatar .avatarsprite { height: 100%; width: auto; max-width: 100%; margin: 0 auto; }
#widgetpop[hidden] { display: none; }
#widgetpop h3 { margin: 0 0 10px; font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.poprow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.popbtn { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; }
.popbtn.on { background: #F45A1F; color: #090A09; border-color: #F45A1F; }
.popbtn.arrow { font-size: 17px; padding: 9px 15px; }
.poplabel { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); width: 100%; }
#widgetpop label { display: block; margin: 10px 0; font-size: 13px; font-weight: 700; }
#widgetpop input[type="text"], #widgetpop select { width: 100%; margin-top: 5px; box-sizing: border-box; }
.popnote { color: var(--muted); font-size: 13px; }
.popremove { color: #c23a00; background: none; border: 1px solid #d7d7cf; border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
.draftform { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.draftform input[type="text"] { min-width: 150px; flex: 1 1 150px; }
.drafterr { color: #c23a00; font-size: 13px; }
.ablock { position: relative; min-width: 0; }
.gearbtn { display: inline-flex; margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel2); color: var(--text); align-items: center; justify-content: center; cursor: pointer; flex: none; }
.gearbtn svg { width: 22px; height: 22px; }
.udrawer { position: fixed; top: calc(var(--bannerh, 0px) + 62px); right: 10px; z-index: 300; background: var(--panel); border: 1px solid #d7d7cf; border-radius: 14px; padding: 6px; min-width: 216px; box-shadow: 0 22px 50px rgba(0,0,0,0.65); box-sizing: border-box; }
.udrawer[hidden] { display: none; }
.udrawer a, .udrawer button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; font-size: 15px; text-align: left; box-sizing: border-box; border-radius: 8px; cursor: pointer; }
.udrawer a:active, .udrawer button:active { background: var(--panel2); }
.udrawer form { margin: 0; }
@media (max-width: 700px) {
  header .mainnav { display: none; }
  .gearbtn { display: inline-flex; }
}
.clockloc { font-weight: 700; color: var(--room-text, var(--text)); }
.petsprite { background-repeat: no-repeat; border-radius: 10px; width: 100%; image-rendering: pixelated; }
.avatarstage { display: flex; justify-content: center; padding: 6px 0 2px; cursor: pointer; }
.avatarsprite { background-repeat: no-repeat; border-radius: 10px; width: min(230px, 62vw); image-rendering: pixelated; }
.avatarcap { text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0 2px; }
.avatarcap b { color: var(--room-text, var(--text)); }
.emotrow { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.emotbtn { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
.emotbtn.on { background: var(--room-accent, var(--accent)); color: #090A09; border-color: transparent; }
@keyframes avatarbounce { 0% { transform: translateY(0); } 35% { transform: translateY(-12px); } 70% { transform: translateY(0); } 85% { transform: translateY(-5px); } 100% { transform: translateY(0); } }
.avatarbounce { animation: avatarbounce 0.65s ease; }
@media (prefers-reduced-motion: reduce) { .avatarbounce { animation: none; } }
.petidle { animation: petidle var(--pet-bob, 2.4s) ease-in-out infinite alternate; }
@keyframes petidle { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .petidle { animation: none; } }
.pet-mood-sleepy img, img.pet-mood-sleepy { filter: brightness(.95) saturate(.92); }
.pet-mood-lonely img, img.pet-mood-lonely { filter: brightness(.93) saturate(.88); }
.heropet { position: relative; }
.petmoodwrap { position: relative; }
[data-petapi].pet-mood-sleepy::after, .petmoodwrap.pet-mood-sleepy::after { content: "z Z z"; position: absolute; top: 8px; right: 8px; font-weight: 800; font-size: 12px; letter-spacing: 2px; color: #cfe0ff; background: rgba(9, 10, 9, 0.55); padding: 3px 9px; border-radius: 999px; animation: petzzz 2.8s ease-in-out infinite; pointer-events: none; z-index: 3; }
@keyframes petzzz { 0% { transform: translateY(4px); opacity: .25; } 50% { transform: translateY(-5px); opacity: 1; } 100% { transform: translateY(4px); opacity: .25; } }
.spritecard { margin-top: 14px; border-top: 1px solid var(--room-cardline, var(--line)); padding-top: 12px; text-align: left; }
.scmoodline { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.scmoodname { font-size: 16px; font-weight: 600; }
.scmoodname .scmood { color: var(--room-accent, var(--accent)); }
.scmoodwhy { font-size: 13.5px; opacity: .75; }
.scpillars { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.scpillar { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.sclabel { width: 76px; flex: none; font-weight: 700; }
.sctrack { flex: 1; height: 9px; border-radius: 99px; background: color-mix(in srgb, currentColor 16%, transparent); overflow: hidden; }
.scfill { height: 100%; border-radius: 99px; background: var(--room-accent, var(--accent)); }
.scval { width: 28px; flex: none; text-align: right; font-weight: 700; opacity: .85; }
.sccare { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; opacity: .9; margin-bottom: 12px; }
.sclogtitle { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .6; margin-bottom: 6px; }
.sclogrow { display: flex; justify-content: space-between; font-size: 13.5px; padding: 3px 0; border-top: 1px dashed color-mix(in srgb, currentColor 14%, transparent); }
.sclogrow:first-of-type { border-top: none; }
.sclogtime { opacity: .65; }
.spritecardblock .aboutmerow { display: flex; align-items: center; gap: 10px; }
.spritecardblock .aboutmerow .popbtn { margin-left: auto; }
.scbody { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.scstage { position: relative; width: 168px; flex: none; cursor: pointer; }
.scstage .petimg, .scstage .petsprite { width: 100%; max-width: 168px; display: block; margin: 0 auto; }
.scstage.flipped .petimg, .scstage.flipped .petsprite { transform: scaleX(-1); }
.petrig { position: relative; width: 100%; aspect-ratio: 1 / 1; display: block; }
.petrigin, .petrigtop { position: absolute; inset: 0; transition: transform 75ms linear; }
.petrigl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; transition: transform 75ms linear; }
.scstage.flipped .petrig { transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) { .petrigin, .petrigtop, .petrigl { transition: none; } }
.spritecardblock .spritecard { flex: 1; min-width: 210px; border-top: none; margin-top: 0; padding-top: 0; }
.petmenu { position: fixed; inset: 0; z-index: 130; background: rgba(4, 5, 4, 0.72); display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.petmenu[hidden] { display: none; }
.petmenucard { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 18px; width: min(430px, 94vw); max-height: 86vh; overflow-y: auto; box-sizing: border-box; }
.pmhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pmtitle { margin: 0; font-size: 20px; font-weight: 800; }
.pmfeeling { margin: 0 0 14px; font-size: 15px; }
.pmfeeling .pmmood { color: var(--accent); }
.pmwhy { opacity: .75; }
.pmsection { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .6; margin-bottom: 8px; }
.pmnote { font-size: 13px; opacity: .7; margin: 10px 0 14px; }
.pmrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pmmsg { font-size: 13.5px; opacity: .85; }
.pmcustom { display: block; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.invgrid { width: 168px; flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.invtoken { grid-column: 1 / -1; font-size: 13px; font-weight: 800; letter-spacing: .03em; }
.invtokenn { color: var(--room-accent, var(--accent)); }
.invslot { position: relative; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; font-family: inherit; color: var(--text); }
.invslot img { width: 40px; height: 40px; image-rendering: pixelated; display: block; }
.invslot .invlabel { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.invcount { position: absolute; top: 4px; right: 6px; background: var(--room-accent, var(--accent)); color: #090A09; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 6px; }
.invslot.off { opacity: .45; }
.invfed { grid-column: 1 / -1; font-size: 12.5px; opacity: .8; }
.invmsg { grid-column: 1 / -1; font-size: 12.5px; min-height: 15px; color: var(--room-accent, var(--accent)); }
.wardopts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.wardopt { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: inherit; }
.wardopt.on { background: var(--room-accent, var(--accent)); color: #090A09; border-color: transparent; }
.petovl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.petovl[data-layer="fx"], .petgearl[data-layer="fx"] { animation: petfxfloat 2.6s ease-in-out infinite alternate; }
@keyframes petfxfloat { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .petovl[data-layer="fx"], .petgearl[data-layer="fx"] { animation: none; } }
@media (max-width: 700px) { .scstage { width: 148px; } .scstage .petimg, .scstage .petsprite { max-width: 148px; } .invgrid { flex: 1; width: auto; min-width: 0; } }
.heropet .biosprite { position: relative; }
.pet-react { animation: petreact .45s ease-in-out 3 !important; }
@keyframes petreact { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-9px) scale(1.05); } }
[data-petapi] { cursor: pointer; }
.heropet .biosprite { animation: petidle var(--pet-bob, 2.4s) ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .pet-react, .heropet .biosprite { animation: none; } }
.roomblock { background: var(--room-cardbg, var(--room-surface, var(--panel))); border: 1px solid var(--room-cardline, var(--line)); border-radius: 14px; padding: 16px; margin-bottom: 20px; color: var(--room-text, var(--text)); box-shadow: var(--room-cardshadow, inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.10), 0 18px 38px rgba(0, 0, 0, 0.16)); }
.roomblock.roomhero { box-shadow: 0 0 44px -8px var(--aura1, rgba(244, 90, 31, 0.14)), 0 0 84px -14px var(--aura2, rgba(244, 90, 31, 0.09)), var(--room-cardshadow, inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.10), 0 18px 38px rgba(0, 0, 0, 0.16)); }
.roomwrap .sectiontitle { color: var(--room-text, inherit); }
.roomhero { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.roomhero .pagetitle { margin: 0; }
.roomheromain { flex: 1; min-width: 220px; }
.roomheroact { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.roomwrap[data-header="outline"] .roomhero { background: transparent; border: 2px solid var(--room-accent, var(--accent)); }
.roomwrap[data-header="minimal"] .roomhero { background: transparent; border: none; border-bottom: 1px solid var(--line); border-radius: 0; }
.roomtabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.roomtabs a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-size: 14px; font-weight: 700; color: var(--room-text, var(--text)); background: var(--room-surface, var(--panel)); flex: 1 1 auto; text-align: center; }
.roomnav a { display: block; padding: 12px 14px; text-decoration: none; color: var(--room-text, var(--text)); font-weight: 600; border-radius: 8px; }
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chipbtn { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; text-decoration: none; font-size: 14px; font-weight: 700; color: var(--room-text, var(--text)); background: var(--room-surface, var(--panel)); }
.filepick { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filepickbtn { display: inline-block; cursor: pointer; }
.filepickname { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; text-transform: none; letter-spacing: 0; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.wallopen { display: none; width: 100%; box-sizing: border-box; text-align: left; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); padding: 12px; font-size: 15px; font-family: inherit; border-radius: 10px; cursor: pointer; }
.wallcomposer.collapsed .wallform { display: none; }
.wallcomposer.collapsed .wallopen { display: block; }
.wallimg { display: block; max-width: 100%; border-radius: 10px; margin-top: 8px; }
.imgbox { margin-top: 10px; border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; }
.imgboxlabel { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.songlinkbtn { background: var(--room-accent, var(--accent)); color: #000; border: none; border-radius: 999px; padding: 10px 20px; font-weight: 700; font-size: 15px; cursor: pointer; font-family: inherit; margin-top: 12px; }
.songlinkbtn.ripbtn2 { background: var(--panel2); color: var(--text); border: 1px solid #d7d7cf; }
#popset-song .popbtn { background: var(--room-accent, var(--accent)); color: #090A09; border-color: transparent; }
#widgetpop[data-key="rip"] #popdone, #widgetpop[data-key="song"] #popdone, #widgetpop.riponly #popdone { background: var(--panel2); color: var(--text); border: 1px solid #d7d7cf; }
#widgetpop[data-key="song"] #popdone, #widgetpop[data-key="viz"] #popdone { display: none; }
.myrow { align-items: flex-start; }
.myrow .songcoverthumb { width: 68px; height: 68px; border-radius: 12px; }
.mytitle { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.myacts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.myacts .navbtn { padding: 8px 14px; }
.makebtn { background: var(--accent); color: #000; border: none; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; min-height: 36px; }
.deltext { background: none; border: none; color: var(--bad); font-size: 14px; font-weight: 700; cursor: pointer; padding: 8px 4px; font-family: inherit; min-height: 36px; }
.yoursongbadge { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; }
#popset-cover .popbtn { background: var(--room-accent, var(--accent)); color: #090A09; border-color: transparent; }
#popset-timing .popbtn { background: var(--room-accent, var(--accent)); color: #090A09; border-color: transparent; }
.timingnow { font-size: 16px; margin: 12px 0 8px; }
#popset-viz .popbtn { background: var(--room-accent, var(--accent)); color: #090A09; border-color: transparent; }
.jbviz[data-viz="off"] { display: none; }
.vizdemo { display: block; width: 100%; height: 72px; background: #0C0D0C; border: 1px solid var(--line); border-radius: 12px; margin: 8px 0 0; box-sizing: border-box; }
.popviz { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
/* Visualizer panel (Bryan, Dec 1: menus split, one job
   each; the panel gets the Customize treatment): the demo
   zone pins to the top of the pop while the style list
   scrolls under it. */
.popvizsticky { position: sticky; top: 0; z-index: 3; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.popvizsong { display: flex; align-items: center; gap: 8px; margin-bottom: 0; min-width: 0; }
.popvizsong img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; background: var(--panel2); }
.popvizmeta { min-width: 0; }
.popviztitle { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.popvizartist { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#popset-viz .popbtn { background: var(--room-accent, var(--accent)); color: #090A09; border-color: transparent; }
.popsubhead { font-size: 17px; line-height: 1.3; margin: 0 0 4px; }
.vizopts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.vizopt { display: block; position: relative; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; min-height: 48px; box-sizing: border-box; }
.vizopt input { position: absolute; opacity: 0; pointer-events: none; width: 20px; height: 20px; margin: 0; }
.vizopt .vizoptname { font-weight: 700; font-size: 16px; display: block; }
.vizopt .vizoptdesc { font-size: 13px; color: var(--muted); display: block; margin-top: 2px; }
.vizopt:has(input:checked) { border-color: var(--room-accent, var(--accent)); box-shadow: inset 0 0 0 1px var(--room-accent, var(--accent)); background: color-mix(in srgb, var(--room-accent, var(--accent)) 14%, transparent); }
.vizopt:has(input:focus-visible) { outline: 2px solid var(--room-accent, var(--accent)); outline-offset: 2px; }
#popset-viz form .poprow { margin: 0; }
#popset-viz form .popbtn { width: 100%; }
.songlinkwrap.collapsed .songlinkbody { display: none; }
.editbtn { background: none; border: 1px solid var(--line); color: var(--room-text, var(--text)); border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.blockhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.blockhead .sectiontitle { margin: 0; }
.editpanel { margin-top: 12px; }
.ytblock { margin-bottom: 14px; }
.yteditrow { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.addytbtn { width: 100%; box-sizing: border-box; background: none; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); padding: 22px 16px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px; }
.caldow { text-align: center; color: var(--muted); font-size: 11px; font-weight: 700; padding: 2px 0; }
.calcell { text-align: center; padding: 6px 0; border-radius: 8px; background: var(--panel2); font-size: 13px; color: var(--room-text, var(--text)); }
.calcell.empty { background: none; }
.calcell.caltoday { background: var(--room-accent, var(--accent)); color: #000; font-weight: 700; }
.clockwrap { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 8px; }
.clockface { width: 110px; height: 110px; }
.clockring { fill: none; stroke: var(--line); stroke-width: 2; }
.clockhand { stroke: var(--room-text, var(--text)); stroke-width: 4; stroke-linecap: round; }
.clockhand.mh { stroke-width: 3; }
.clockhand.sh { stroke: var(--room-accent, var(--accent)); stroke-width: 1.5; }
.clockpin { fill: var(--room-accent, var(--accent)); }
.clockdig { font-family: "IBM Plex Mono", monospace; font-size: 28px; font-weight: 700; color: var(--room-text, var(--text)); }
.clockdate { color: var(--muted); font-size: 13px; }
.colorrow { display: flex; align-items: center; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.colorname { flex: 0 0 108px; font-weight: 600; }
.cpick { width: 58px; height: 42px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); cursor: pointer; }
.chex { flex: 1; min-width: 110px; }
.colorrow.cleared .cpick { opacity: .3; }
.stepctl { display: flex; gap: 6px; flex: 1; }
.stepctl label { flex: 1; position: relative; margin: 0; }
.stepctl input { position: absolute; opacity: 0; pointer-events: none; }
.stepctl label span { display: block; text-align: center; padding: 9px 0; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); }
.stepctl input:checked + span { background: var(--room-accent, var(--accent)); color: var(--room-on-accent, #090a09); border-color: var(--room-accent, var(--accent)); }
.stepctl input:focus-visible + span { outline: 2px solid var(--room-accent, var(--accent)); outline-offset: 2px; }
.themepreview { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 14px 0; background: var(--panel); background-size: cover; background-position: center; }
.tpoverlay { position: absolute; inset: 0; background: var(--panel); }
.tpblock { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--panel); color: var(--text); }
.tptitle { font-weight: 800; font-size: 17px; }
.tptext { margin: 6px 0 0; }
.tpbtn { display: inline-block; margin-top: 10px; padding: 8px 14px; border-radius: 999px; font-weight: 700; background: #f45a1f; color: #090a09; }
.framebar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 12px 14px 0; background: var(--panel); }
.framelabel { font-weight: 800; }
.accentbtn { background: var(--room-accent, var(--accent)); color: #090a09; border: 1px solid var(--room-accent, var(--accent)); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; display: inline-block; cursor: pointer; }
.savestate { display: inline-block; margin-left: 10px; font-size: 13px; color: var(--muted); min-height: 16px; }
.petimg { width: 100%; display: block; border-radius: 10px; background: var(--panel2); }
.widget .petimg { background: transparent; }
#room-game.tile1 .petstage { position: absolute; inset: 0 0 46px 0; z-index: 2; display: flex; align-items: flex-end; justify-content: center; }
#room-game.tile1 img.petimg { width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: bottom center; }
#room-game.flipped .petimg { transform: scaleX(-1); }
#room-game.tile1 .blockhead { position: absolute; bottom: 0; left: 0; right: 0; height: 46px; z-index: 5; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.petstats { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.petbar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.petbar .petlabel { flex: none; width: 74px; font-weight: 700; }
.pettrack { flex: 1; height: 8px; border-radius: 999px; background: var(--panel2); overflow: hidden; }
.petfill { height: 100%; border-radius: 999px; background: var(--room-accent, var(--accent)); }
.petfill.happy { background: var(--room-sage, #93A193); }
.petfeedrow { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.petmsg { color: var(--muted); font-size: 13px; }
@keyframes petbounce { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-12px); } 60% { transform: translateY(0); } 80% { transform: translateY(-6px); } }
.petbounce { animation: petbounce 0.6s ease; }
.petstage { position: relative; }
.tile1 .petstage { width: 100%; margin-top: 0; flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: center; }
#room-game.tile1 { justify-content: flex-end; }
.tile1 .blockhead { width: 100%; text-align: center; }
.petheart { position: absolute; bottom: 12px; color: var(--room-accent, var(--accent)); font-size: 22px; pointer-events: none; animation: petheart 1s ease-out forwards; }
@keyframes petheart { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-56px); opacity: 0; } }
.roomnav a:hover { background: var(--panel2); }
.mp3row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mp3btn { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 1px solid var(--accent); background: var(--accent); color: #000; font-size: 19px; font-weight: 700; cursor: pointer; }
.mp3info { flex: 1; min-width: 140px; }
.mp3title { font-weight: 700; font-size: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp3card .mp3title { font-size: 17px; }
.mp3cover { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; display: block; margin: 12px 0 10px; background: var(--panel2); }
.mp3artist { color: var(--muted); font-size: 13px; margin-top: 1px; }
.mp3card .mp3seekrow { margin-top: 8px; }
.wallcomposerblock { border: 1.5px solid var(--room-accent, var(--accent)); }
.wallreplies { margin: 10px 0 4px 28px; border-left: 2px solid var(--line); padding-left: 12px; display: grid; gap: 12px; }
.wallreplybody { font-size: 15px; line-height: 1.45; margin-top: 3px; overflow-wrap: anywhere; }
.wallreplyrow { margin-top: 8px; }
.wallreplyform { margin-top: 8px; }
.wallreplyform textarea { width: 100%; box-sizing: border-box; height: 68px; min-height: 68px; resize: none; }
.wallreplyform .wallactions { display: flex; justify-content: flex-end; margin-top: 8px; }
.wallreplyform .wallactions .followbtn { padding: 9px 26px; font-size: 15px; }
.songcoverthumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; }
.mp3state { color: var(--muted); font-size: 12px; }
.mp3nav { background: none; border: 1px solid var(--line); color: var(--room-text, var(--text)); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 700; font-family: inherit; }
.mp3seekrow { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.mp3seek { flex: 1; min-width: 0; accent-color: var(--room-accent, var(--accent)); height: 24px; cursor: pointer; }
.ytwrap { position: relative; aspect-ratio: 16 / 9; margin-top: 10px; width: 100%; max-width: 100%; overflow: hidden; border-radius: 10px; }
.ytwrap iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: 100%; display: block; border: 0; border-radius: 10px; background: #000; }
.ytunmute { position: absolute; left: 10px; bottom: 10px; z-index: 2; background: var(--room-accent, var(--accent)); color: var(--room-on-accent, #090a09); border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 700; cursor: pointer; }
.mp3time { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); min-width: 34px; }
.mp3time:last-child { text-align: right; }
.wallbox textarea, .wallform textarea { width: 100%; box-sizing: border-box; background: var(--panel2); border: 1px solid var(--line); color: var(--text); padding: 10px; font-size: 15px; font-family: inherit; border-radius: 10px; }
.wallpost { border-bottom: 1px solid var(--line); padding: 10px 0; }
.walledit { margin-top: 10px; }
.walledit textarea { width: 100%; box-sizing: border-box; }
.cropmodal { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.72); display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.cropmodal[hidden] { display: none; }
.cropcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; width: 100%; max-width: 400px; box-sizing: border-box; max-height: calc(100dvh - 32px); overflow-y: auto; }
.crophead { font-weight: 800; font-size: 17px; margin-bottom: 10px; }
#cropcanvas { width: 100%; height: auto; display: block; background: #000; border-radius: 10px; touch-action: none; }
.cropaspects { display: flex; gap: 8px; margin: 12px 0; }
.cropaspects .chipbtn.on { background: var(--room-accent, var(--accent)); color: var(--room-on-accent, #090a09); border-color: var(--room-accent, var(--accent)); }
.cropzoom { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.cropzoom input { flex: 1; }
.cropbtns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.wallpost:last-child { border-bottom: none; }
.wallmeta { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.wallmeta a { color: var(--room-accent, var(--accent)); font-weight: 700; text-decoration: none; }
.wallbody { white-space: pre-wrap; margin-top: 2px; font-size: 15px; }
.wallacts { display: flex; gap: 8px; margin-top: 4px; }
.cornerfeed a { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--room-text, var(--text)); padding: 6px 0; }
.cornerfeed img { width: 54px; height: 68px; object-fit: cover; border-radius: 8px; flex: none; }
.cornerfeed .cftitle { font-weight: 600; font-size: 14px; line-height: 1.25; }
.top8grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.top8grid a { text-align: center; text-decoration: none; color: var(--room-text, var(--text)); font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.top8grid .avatar, .top8grid .avatarph { width: 52px; height: 52px; font-size: 20px; }
.friendrow { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.friendrow a { text-decoration: none; color: var(--room-text, var(--text)); font-weight: 600; }
/* No visible scrollbars on the Room columns; root width
   guards so nothing in a Room can force sideways overflow. */
@media (min-width: 900px) {
  .roomcol { scrollbar-width: none; }
  .roomcol::-webkit-scrollbar { display: none; width: 0; height: 0; }
}
.roomwrap .ablock { min-width: 0; }
.roomwrap .roomblock { min-width: 0; }
.roomwrap img, .roomwrap iframe, .roomwrap video { max-width: 100%; }
.roomwrap .cardtitle, .roomwrap .cftitle, .roomwrap .wallbody { overflow-wrap: anywhere; }
/* Room accent routing (Bryan, Dec 1): controls rendered
   inside a Room wear the Room owner's accent, never the
   platform default. The Wall Post button, the Edit
   Vibes Save button, and the hero Follow button are all
   .followbtn; placeholder avatars and form focus rings
   inside the Room follow too. */
.roomwrap .followbtn { background: var(--room-accent, var(--accent)); color: var(--room-on-accent, #090a09); }
.roomwrap .avatarph { background: var(--room-accent, var(--accent)); color: var(--room-on-accent, #090a09); }
.roomwrap .form input:focus, .roomwrap .form textarea:focus { outline-color: var(--room-accent, var(--accent)); border-color: var(--room-accent, var(--accent)); }
/* Modal edit surfaces: a centered card over a dim backdrop.
   The panel's children stack into the card; the page behind
   never moves. */
.roomwrap .roomblock.editpanel, .roomwrap #room-game .editpanel { position: fixed; inset: 0; z-index: 320; background: rgba(4, 5, 4, 0.72); border: none; border-radius: 0; box-shadow: none; overflow-y: auto; padding: 30px 12px calc(30px + env(safe-area-inset-bottom)); box-sizing: border-box; display: flex; flex-direction: column; align-items: center; margin: 0; }
.roomwrap .roomblock.editpanel[hidden], .roomwrap #room-game .editpanel[hidden] { display: none; }
.roomwrap .editpanel > * { background: var(--panel); width: min(520px, 100%); box-sizing: border-box; padding-left: 16px; padding-right: 16px; border-left: 1px solid rgba(0, 0, 0, 0.08); border-right: 1px solid rgba(0, 0, 0, 0.08); margin-top: 0; margin-bottom: 0; }
.roomwrap .editpanel > :first-child { border-top: 1px solid rgba(0, 0, 0, 0.08); border-radius: 12px 12px 0 0; padding-top: 16px; }
.roomwrap .editpanel > :last-child { border-bottom: 1px solid rgba(0, 0, 0, 0.08); border-radius: 0 0 12px 12px; padding-bottom: 16px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
.roomwrap .editpanel > :only-child { border-radius: 12px; }

/* Job batch Dec 1 (CSS v21): theme Save bar, timed lyrics, room
   inline playback, composer picture preview, color controls,
   Edit Vibes docked editor. */
.themesave { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; margin-top: 16px; z-index: 5; }
.themesavebtn { padding: 13px 38px; font-size: 17px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45); }
.lyricspane .lyrline { display: block; opacity: 0.92; transition: opacity 0.3s, color 0.3s, font-size 0.3s; padding: 0; line-height: 24px; font-size: 15px; cursor: pointer; }
.lyricspane .lyrline.sung { opacity: 0.45; }
.lyricspane .lyrline.on { opacity: 1; font-weight: 700; color: var(--room-accent, var(--accent)); font-size: 17px; }
.roomvcard { cursor: pointer; }
.rvstage { position: relative; }
.rvplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(9, 10, 9, 0.72); color: #F1EEE6; font-size: 20px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.rvstage video, .cfplayerbox video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
.rvstage.playing { aspect-ratio: 16 / 9; background: #000; }
.cfplayerbox { aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; margin: 8px 0; }
.cornerfeed .cfitem { display: flex; gap: 10px; align-items: center; color: var(--room-text, var(--text)); padding: 6px 0; cursor: pointer; }
.cornerfeed .cfitem img { width: 54px; height: 68px; object-fit: cover; border-radius: 8px; flex: none; }
.wallpicprev { margin-top: 10px; }
.wallpicprev img { display: block; max-width: 220px; max-height: 220px; width: auto; height: auto; border-radius: 10px; border: 1px solid var(--room-line, #d7d7cf); }
input[type="color"].cpick { -webkit-appearance: none; appearance: none; width: 48px; height: 34px; padding: 0; border: 1px solid var(--line, #d7d7cf); border-radius: 8px; background: none; cursor: pointer; flex: none; }
input[type="color"].cpick::-webkit-color-swatch-wrapper { padding: 2px; }
input[type="color"].cpick::-webkit-color-swatch { border: none; border-radius: 5px; }
input[type="color"].cpick::-moz-color-swatch { border: none; border-radius: 5px; }
.vswatch { width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(0, 0, 0, 0.25); flex: none; display: inline-block; }
.roomwrap .roomblock.editpanel#edit-vibes:not([hidden]) { inset: 0 0 0 auto; width: min(600px, 96vw); display: block; background: var(--panel); border: none; border-left: 1px solid rgba(0, 0, 0, 0.10); border-radius: 0; box-shadow: -24px 0 60px rgba(0, 0, 0, 0.55); padding: 30px 30px calc(34px + env(safe-area-inset-bottom)); overflow-y: auto; overflow-x: clip; margin: 0; }
.roomwrap .roomblock.editpanel#edit-vibes:not([hidden])::before { content: ""; position: fixed; top: 0; bottom: 0; right: 0; width: min(600px, 96vw); background: rgba(4, 5, 4, 0.58); backdrop-filter: blur(7px) saturate(1.1); -webkit-backdrop-filter: blur(7px) saturate(1.1); z-index: -1; }
.roomwrap #edit-vibes > * { background: transparent; width: 100%; max-width: 100%; box-sizing: border-box; border: none; border-radius: 0; box-shadow: none; padding-left: 0; padding-right: 0; margin-top: 0; margin-bottom: 0; }
.roomwrap #edit-vibes > :first-child { padding-top: 0; }
.roomwrap #edit-vibes > :last-child { padding-bottom: 0; }
.roomwrap #edit-vibes .sectiontitle { margin-top: 0; }
#edit-vibes label { font-size: 15px; }
#edit-vibes .colorname { font-size: 15px; font-weight: 600; }
#edit-vibes .colorrow { gap: 12px; margin: 18px 0; }
#edit-vibes input[type="color"].cpick { width: 58px; height: 42px; }
#edit-vibes .chex { font-size: 15px; padding: 9px 10px; width: 112px; }
#edit-vibes select { font-size: 15px; padding: 9px 10px; }
#edit-vibes .followbtn { padding: 13px 30px; font-size: 16px; }
#edit-vibes .deletebtn { padding: 11px 22px; font-size: 15px; }
#edit-vibes .formnote { font-size: 13.5px; line-height: 1.55; }

/* Header hierarchy (Bryan, Dec 1): My Room is the one filled
   primary, Upload the outlined second tier, Home the
   underlined third tier; everything else lives in the menu
   drawer. Button colors wear the signed-in user's own Room
   accent via --nav-accent on the header (default Signal
   Orange). Buttons pulse once on hover and on press. */
.mainnav { display: flex; align-items: center; gap: 16px; }
.navtier1 { background: var(--nav-accent, #F45A1F); border: 2px solid var(--nav-accent, #F45A1F); color: #141414; font-weight: 800; font-size: 15px; padding: 8px 20px; border-radius: 999px; text-decoration: none; display: inline-block; }
.navtier1:hover { color: #141414; }
.navtier2 { background: transparent; border: 2px solid var(--nav-accent, #F45A1F); color: var(--nav-accent, #F45A1F); font-weight: 700; font-size: 15px; padding: 8px 18px; border-radius: 999px; text-decoration: none; display: inline-block; }
.navtier2:hover { color: var(--nav-accent, #F45A1F); }
.navtier3 { color: var(--text); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; padding: 8px 2px; display: inline-block; }
@keyframes navpulse { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
.mainnav .navtier1:hover, .mainnav .navtier2:hover, .mainnav .navtier3:hover { animation: navpulse 0.45s ease; }
.mainnav .navtier1:active, .mainnav .navtier2:active, .mainnav .navtier3:active { animation: navpulse 0.3s ease; }
@media (prefers-reduced-motion: reduce) { .mainnav .navtier1:hover, .mainnav .navtier2:hover, .mainnav .navtier3:hover, .mainnav .navtier1:active, .mainnav .navtier2:active, .mainnav .navtier3:active { animation: none; } }

/* Home overhaul (Bryan, Dec 1): full-screen two-zone home.
   The video scroller sits on one side; the Room, Home Buddy,
   Chatroom and Online panels sit on the other. The side
   toggle swaps them and the choice persists per user.
   Mobile stacks: feed first, panels below. */
.homewrap { position: fixed; left: 0; right: 0; bottom: 0; top: calc(var(--headerh, 64px) + var(--bannerh, 0px)); display: flex; background: var(--bg); z-index: 1; }
.homefeed { position: relative; flex: 1 1 auto; min-width: 0; background: #000; }
body.shellpage .homewrap .vfeed { position: absolute; inset: 0; height: auto; margin: 0; }
.homefeedempty { display: flex; align-items: center; justify-content: center; background: var(--bg, #090A09); }
.homepanels { width: 380px; flex: none; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--line, #34343c); scrollbar-width: none; box-sizing: border-box; }
.homepanels::-webkit-scrollbar { display: none; }
.homewrap[data-feedside="right"] .homepanels { order: -1; border-left: none; border-right: 1px solid var(--line, #34343c); }
.homepanel { background: var(--surface, #151519); border: 1px solid var(--line, #34343c); border-radius: 14px; padding: 12px 14px; }
.paneltitle { margin: 0 0 8px; font-size: 24px; }
.paneltext, .panelnote { color: var(--muted); font-size: 14px; line-height: 1.5; }
.panelbtns { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.roomcard { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.roomcardname { font-weight: 800; font-size: 17px; }
.roomcardsub { color: var(--muted); font-size: 13px; }
.roomopen { display: inline-block; text-decoration: none; }
.homebuddystage { cursor: pointer; }
.homebuddystage .petsprite { max-width: 132px; margin: 0 auto; }
.homebuddyname { text-align: center; font-weight: 800; font-size: 17px; margin-top: 6px; }
.homebuddyform label { display: block; margin: 10px 0; font-size: 13px; font-weight: 700; }
.homebuddyform input[type="text"], .homebuddyform select { width: 100%; margin-top: 5px; box-sizing: border-box; }
.townchat { display: flex; flex-direction: column; gap: 8px; max-height: 248px; overflow-y: auto; scrollbar-width: thin; }
.townmsg { display: flex; gap: 8px; align-items: flex-start; }
.townmain { min-width: 0; }
.townwho { font-weight: 700; font-size: 13.5px; }
.townbody { font-size: 14.5px; overflow-wrap: anywhere; }
.townform { display: flex; gap: 8px; margin-top: 10px; }
.townform input { flex: 1; min-width: 0; }
.townnote { color: var(--accent); font-size: 13px; min-height: 16px; margin: 6px 0 0; }
.onlinerow { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.onlinemain { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); min-width: 0; flex: 1; }
.onlinename { font-weight: 700; overflow-wrap: anywhere; }
.onlineat { color: var(--muted); font-size: 13px; }
.youtag { color: var(--accent); font-size: 12px; font-weight: 700; }
.onlinebuddy { width: 36px; flex: none; }
.homeswitch { width: 100%; padding: 8px 10px; font-size: 14px; }
.homegreet { font-family: "Oswald", "Arial Narrow", sans-serif; font-size: 32px; font-weight: 600; letter-spacing: 0.02em; padding: 2px 2px 0; }
.greetword { display: inline-block; transition: opacity 0.45s ease; }
.greetword.fade { opacity: 0; }
@media (min-width: 861px) {
  .cardtitle { font-size: 24px; }
  .cardmeta { font-size: 16px; }
}
@media (max-width: 860px) {
  .homeswitch { display: none; }
  .homewrap { flex-direction: column; overflow-y: auto; }
  .homefeed { flex: none; height: calc(100dvh - var(--headerh, 64px) - var(--bannerh, 0px)); }
  .homewrap[data-feedside="right"] .homepanels, .homewrap[data-feedside="left"] .homepanels { order: 0; width: auto; overflow: visible; border-left: none; border-right: none; border-top: 1px solid var(--line, #34343c); }
}
/* Home two-zone lock (Dec 1): the desktop theatre block above was
   written for the standalone feed/watch pages and leaks into the
   home scroller (page-flow feed, fit-content centered cards,
   visible overflow, static sheet). Inside .homewrap the scroller
   keeps its zone at every width, playing or not: its own scroll
   and snap, full-bleed cards, overlay and sheet intact, and the
   panels column beside it. The standalone pages keep the theatre. */
body.shellpage .homewrap .vfeed { overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; background: #000; }
body.shellpage .homewrap .vcard { width: auto; max-width: none; height: 100%; margin: 0; overflow: hidden; background: #000; scroll-snap-align: start; }
body.shellpage .homewrap .vstage { position: absolute; inset: 0; width: auto; max-width: none; margin: 0; }
body.shellpage .homewrap .vvid { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border-radius: 0; object-fit: cover; }
body.shellpage .homewrap .vposter { display: block; }
body.shellpage .homewrap .vcard.playing .vposter { display: none; }
body.shellpage .homewrap .voverlay { position: absolute; left: 0; right: 0; bottom: 0; width: auto; min-width: 0; padding: 14px 14px calc(76px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,0.88) 45%); }
body.shellpage .homewrap .tapforsound { display: flex; }
body.shellpage .homewrap .tapforsound[hidden] { display: none; }
body.shellpage .homewrap .chatov { display: flex; }
body.shellpage .homewrap .seamlabel { max-width: none; margin: 0; scroll-snap-align: start; }
body.shellpage .homewrap .sheet { position: fixed; inset: 0; z-index: 130; width: auto; min-width: 0; }
body.shellpage .homewrap .sheetpanel { position: absolute; left: 0; right: 0; bottom: 0; width: auto; height: 56dvh; transform: translateY(100%); border: none; border-top: 2px solid var(--line); border-radius: 18px 18px 0 0; margin-top: 0; padding-bottom: env(safe-area-inset-bottom); }
body.shellpage .homewrap .sheet.open .sheetpanel { transform: none; }
/* Phone only: inside .homewrap the lock block above parks the
   sheet panel at bottom: 0, which traps the comments composer
   under the fixed bottom nav (the nav also paints above the
   homewrap stacking context). Restore the same nav clearance
   the standalone pages get from the base sheet rule. */
@media (max-width: 700px) { body.shellpage .homewrap .sheetpanel { bottom: calc(58px + env(safe-area-inset-bottom)); } }
body.shellpage .homewrap .vcard.pip .vvid { position: fixed; top: calc(var(--headerh, 64px) + var(--bannerh, 0px) + 8px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(88vw, 380px); height: 30dvh; border-radius: 16px; z-index: 60; object-fit: cover; }
body.shellpage:has(.homewrap) { overflow: hidden; }
body.shellpage:has(.homewrap) footer { display: none; }
/* Wall containment (Dec 1): a post image can never widen
   its card, its column, or the page, at any viewport. */
.wallfeed { min-width: 0; }
.wallpost { min-width: 0; }
#room-wall { overflow: hidden; }
.wallimg { max-width: 100%; width: auto; height: auto; }
/* Wall posts, desktop size-up (Dec 1): Bryan: "this
   section can be a ton bigger." Post text, author/date line,
   avatar, and padding scale up inside the posts block only.
   Mobile keeps the base sizes. */
@media (min-width: 861px) {
  #room-wall .wallfeed .wallpost { padding: 14px 13px; }
  #room-wall .wallpost .avatar.sm, #room-wall .wallpost .avatarph.sm { width: 44px; height: 44px; font-size: 20px; }
  #room-wall .wallpost .wallmeta { font-size: 16px; gap: 9px; }
  #room-wall .wallpost .wallbody { font-size: 21px; line-height: 1.5; margin-top: 8px; }
  #room-wall .wallpost .wallimg { margin-top: 10px; }
  #room-wall .wallpost .wallacts { margin-top: 10px; gap: 10px; }
  #room-wall .wallpost .wallacts .cmtoggle { font-size: 14px; padding: 8px 18px; margin-top: 0; }
}
.roomwrap form.walledit { position: fixed; inset: 0; z-index: 320; background: rgba(4, 5, 4, 0.72); overflow-y: auto; padding: 30px 12px calc(30px + env(safe-area-inset-bottom)); box-sizing: border-box; display: flex; flex-direction: column; align-items: center; margin: 0; }
.roomwrap form.walledit[hidden] { display: none; }
.roomwrap form.walledit > * { background: var(--panel); width: min(520px, 100%); box-sizing: border-box; padding-left: 16px; padding-right: 16px; border-left: 1px solid rgba(0, 0, 0, 0.08); border-right: 1px solid rgba(0, 0, 0, 0.08); margin-top: 0; margin-bottom: 0; }
.roomwrap form.walledit > textarea { border-top: 1px solid rgba(0, 0, 0, 0.08); border-radius: 12px 12px 0 0; padding-top: 16px; }
.roomwrap form.walledit > :last-child { border-bottom: 1px solid rgba(0, 0, 0, 0.08); border-radius: 0 0 12px 12px; padding-bottom: 16px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
#widgetpop { background: rgba(4, 5, 4, 0.72); padding: 30px 12px calc(30px + env(safe-area-inset-bottom)); }
#widgetpop > * { max-width: 560px; margin: 0 auto; background: var(--panel); border-left: 1px solid rgba(0, 0, 0, 0.08); border-right: 1px solid rgba(0, 0, 0, 0.08); padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
#widgetpop > :first-child { border-top: 1px solid rgba(0, 0, 0, 0.08); border-radius: 12px 12px 0 0; padding-top: 14px; }
#widgetpop > :last-child { border-bottom: 1px solid rgba(0, 0, 0, 0.08); border-radius: 0 0 12px 12px; padding-bottom: 16px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
/* Round 7 (Bryan, Dec 1): ChatGPT mockup card system on the Room,
   column rules, Jukebox, Wall composer, tile buttons.
   Cards: 12px radius, 1px white 7% border, layered calm shadows,
   no shouty hover motion (the Room is a leave-it-open page). */
.roomwrap .roomblock { border-radius: 12px; border: 1px solid var(--room-cardline, var(--line)); box-shadow: var(--room-cardshadow, inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.10), 0 18px 38px rgba(0, 0, 0, 0.16)); transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.roomwrap .sectiontitle { font-family: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif; letter-spacing: 0.02em; }
.roomcol-left > *, .roomcol-center > *, .roomcol-right > * { max-width: 100%; }
.roomcol > * { flex: none; }
/* Center compression: denser blocks; videos shorter + skinnier
   and always contained in the center column's single scroll. */
.roomcol-center .roomblock { padding: 12px 14px; }
.roomcol-center .pgrid { gap: 10px; }
.roomcol-center #room-videos .pgrid { max-width: 320px; margin-left: auto; margin-right: auto; }
.roomcol-center .cardmeta { padding: 8px 10px; }
/* Jukebox: title/artist on one compact line above, then the
   cover left and the lyrics pane filling the whole right
   column at the cover's height (Bryan, Dec 1: "Lyrics should
   take up this entire area"). */
.jbtitleline { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; min-width: 0; }
.jbtitleline .mp3title { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.jbtitleline .mp3artist { flex: none; max-width: 45%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0; }
.jukeboxmain { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; }
.jbmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.jbaddbtn { display: block; width: 100%; margin-top: 8px; height: 36px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--room-text, #111111) 30%, transparent); background: var(--room-cardbg, var(--room-surface, var(--panel))); color: var(--room-text, var(--text)); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.roomwrap .jukebox, .roomwrap .jbtex { background-color: var(--room-cardbg, var(--room-surface, var(--panel))); background-image: radial-gradient(ellipse 90% 55% at 50% -10%, var(--room-jbglow, rgba(244, 90, 31, 0.12)), rgba(0, 0, 0, 0) 70%), radial-gradient(var(--room-jbdot, rgba(17, 17, 17, 0.05)) 1px, rgba(0, 0, 0, 0) 1.6px); background-size: 100% 100%, 12px 12px; box-shadow: inset 0 2px 0 0 var(--room-accent, var(--accent)), var(--room-cardshadow, inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.10), 0 18px 38px rgba(0, 0, 0, 0.16)); }
.jukebox .mp3cover { width: 116px; height: 116px; flex: none; margin: 0; border-radius: 8px; }
.lyricspane { flex: 1; min-width: 0; height: 116px; overflow-y: auto; scrollbar-width: none; font-size: 15px; line-height: 24px; color: var(--room-text, var(--text)); white-space: pre-wrap; overflow-wrap: anywhere; background: transparent; border: none; border-radius: 0; padding: 12px 4px; box-sizing: border-box; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%); }
.lyricspane::-webkit-scrollbar { display: none; }
.lyricspane .lyricsnote { color: var(--muted); font-style: italic; }
.jbtransport { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.jbplay { width: 56px; height: 56px; flex: none; border-radius: 50%; border: none; background: var(--room-text, #161616); color: var(--room-surface, #ffffff); font-size: 23px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.jbplay:hover { background: #ffffff; }
.jbnav { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--room-text, var(--text)); font-size: 15px; cursor: pointer; }
.jbtextbtn { border: 1px solid var(--line); background: transparent; color: var(--room-text, var(--text)); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; }
.jbviz { display: block; width: 100%; height: 32px; margin-top: 8px; }
/* Retro full-card mode (Bryan, Dec 1): when the owner's style
   is Retro the visualizer IS the card surface. The canvas
   leaves the flow and fills the card behind the content; the
   spacer keeps the card's outer geometry identical to the
   strip styles, playing or paused. The texture and accent
   top edge step aside (the moving line work is the surface
   now) and return with any other style. */
.jbvizspace { height: 32px; margin-top: 8px; }
.roomwrap .jukebox.jbretro { background: #000; background-image: none; box-shadow: var(--room-cardshadow, inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 4px rgba(0, 0, 0, 0.38), 0 18px 38px rgba(0, 0, 0, 0.46)); position: relative; overflow: hidden; }
.jbretro .jbviz { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 0; pointer-events: none; }
.jbretro .blockhead, .jbretro .jbtitleline, .jbretro .jukeboxmain, .jbretro .jbtransport, .jbretro .mp3seekrow, .jbretro .jbaddbtn { position: relative; z-index: 1; }
/* The Retro card is always black, whatever the Room theme:
   its text and quiet controls go Bone White so a light-theme
   Room never puts dark words on the black card. */
.jbretro .mp3title, .jbretro .mp3artist, .jbretro .lyricspane, .jbretro .mp3time { color: #F1EEE6; }
.jbretro .jbnav, .jbretro .jbtextbtn, .jbretro .jbaddbtn { color: #F1EEE6; border-color: rgba(241, 238, 230, 0.35); }
/* Wall composer: blank dark field, accent placeholder
   that begs to be written in. Fixed size (locked, see below). */
.wallcomposerblock { border: 1px solid rgba(0, 0, 0, 0.08); }
/* Composer sizing LOCKED (Bryan, Dec 1, 00:26): one fixed
   height at every load. No expand-on-focus, no auto-grow,
   no drag resize. The picture row is simply always there. */
.wallcomposer textarea { height: 110px; min-height: 110px; resize: none; }
.wallcomposer textarea::placeholder { color: var(--room-accent, var(--accent)); opacity: 0.9; font-weight: 600; }
.wallcomposer .wallmore { display: block; }
/* About Me row: tile wraps carry the interaction buttons. */
.aboutmehead { margin: 2px 0 10px; }
.tilewrap { flex: 0 0 calc((100% - 12px) / 2); min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tilewrap > .roomblock { flex: none; width: 100%; box-sizing: border-box; }
.tilebtn { display: block; width: 100%; box-sizing: border-box; border: none; border-radius: 12px; cursor: pointer; font-family: inherit; font-weight: 800; font-size: 15px; line-height: 1.2; padding: 16px 12px; color: #090A09; background: var(--room-accent, var(--accent)); }
.popstage .roomblock.flipped .petimg { transform: scaleX(-1); }
.playlistrow a { text-decoration: none; color: var(--room-text, var(--text)); font-weight: 600; }
.wallcomposer .wallactions { display: flex; justify-content: flex-end; margin-top: 10px; }
/* Post button, noticeably bigger (Bryan, Dec 1, 00:26):
   same accent pill, more padding, larger text. */
.wallcomposer .wallactions .followbtn { padding: 13px 36px; font-size: 17px; }
/* Desktop center videos: use the whole column. The media sits
   in a 16:9 frame; portrait frames are contained, never
   stretched or cropped. Single-column scroll stays. */
@media (min-width: 900px) {
  .roomcol-center #room-videos .pgrid { max-width: none; margin: 0; }
  .roomcol-center .pgrid .thumbwrap { aspect-ratio: 16 / 9; background: #000; }
  .roomcol-center .pgrid .thumbwrap img { object-fit: contain; }
}




/* Dec 1 SIZE-UP (Bryan): Raw's UI defaults BIG. Editor pop-ups
   go wide with tall inputs and large type; the About Me section
   fills its panel (elongated duo tiles, bigger stats, nothing
   clipped, no dead gap); the Room hero is composed big; the
   desktop feed player gets a real play/pause button; the home
   scroller shows the whole video over a blurred backdrop of
   itself instead of cropping; the home panels column runs
   tighter so a fifth panel fits. */
/* --- Editor pop-ups: TONS bigger --- */
#widgetpop { padding: 38px 16px calc(38px + env(safe-area-inset-bottom)); }
#widgetpop > * { max-width: 880px; padding-left: 32px; padding-right: 32px; }
#widgetpop > :first-child { padding-top: 24px; }
#widgetpop > :last-child { padding-bottom: 28px; }
#widgetpop h3 { font-size: 27px; margin-bottom: 16px; }
.pophead { margin-bottom: 20px; }
#popdone { font-size: 17px; padding: 13px 30px; }
.popstage { padding: 30px 24px; margin-bottom: 24px; border-radius: 18px; }
.stagecells { inset: 30px 24px; }
#widgetpop label { font-size: 19px; margin: 22px 0; }
#widgetpop input[type="text"], #widgetpop select { margin-top: 10px; font-size: 20px; padding: 15px 16px; border-radius: 12px; }
#widgetpop label.checkrow { display: flex; align-items: center; gap: 12px; }
#widgetpop .checkrow input { width: 24px; height: 24px; flex: none; accent-color: var(--room-accent, var(--accent)); }
.poplabel { font-size: 16px; }
.poprow { gap: 12px; margin: 18px 0; }
.popbtn { padding: 14px 26px; font-size: 18px; }
.popbtn.arrow { font-size: 21px; padding: 14px 22px; }
.popnote { font-size: 16px; line-height: 1.55; }
.popremove { padding: 13px 22px; font-size: 16px; }
.emotbtn { padding: 12px 18px; font-size: 16px; }
#popdetailssave { background: #F45A1F; color: #090A09; border-color: #F45A1F; font-size: 20px; padding: 17px 40px; }
/* --- About Me: filled up --- */
.widgetrowwrap { width: 100%; min-width: 0; box-sizing: border-box; }
.widgetgrid.duo { margin-left: 0; margin-right: 0; }
.widgetgrid.duo .tilewrap > .widget { aspect-ratio: 7 / 8; }
.spritejar { padding: 14px 16px 16px; }
.spritejar .tilewrap > .roomblock { border-color: var(--room-accent, var(--accent)); }
.spritejar .aboutmehead { margin: 0 0 10px; }
.walldetails { padding: 2px 16px 6px; }
.walldetails .aboutstats { margin-top: 0; font-size: 15px; padding-top: 0; }
.walldetails .aboutstats li { padding: 7px 2px; }
.aboutstats { font-size: 18px; margin-top: 18px; padding: 4px 4px 0; }
.aboutstats li { padding: 12px 2px; gap: 16px; min-width: 0; }
.aboutstats .slabel { font-size: 14px; }
.aboutstats .sval, .aboutstats a { min-width: 0; }
/* --- Room hero: composed and big --- */
.roomhero { flex-direction: column; align-items: stretch; gap: 18px; padding: 24px; }
.herotop { display: flex; align-items: center; gap: 20px; min-width: 0; }
.roomhero .avatar.hero { width: 118px; height: 118px; font-size: 52px; border: 3px solid var(--room-accent, var(--accent)); box-sizing: border-box; }
.heroid { min-width: 0; }
.roomhero .pagetitle { font-family: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif; font-size: 60px; line-height: 0.95; margin: 0 0 6px; overflow-wrap: anywhere; }
.herohandle { margin: 0; font-size: 17px; color: var(--muted); }
.herohandle .heroat { color: var(--room-accent, var(--accent)); font-weight: 700; }
.herostats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.herostat { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 6px 12px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; min-width: 0; box-sizing: border-box; }
.herostatnum { font-family: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif; font-size: 34px; line-height: 1; color: var(--room-text, var(--text)); }
.herostatlab { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); text-align: center; }
a.herostat:hover { border-color: var(--room-accent, var(--accent)); }
.roomhero .desc { font-size: 18px; line-height: 1.55; margin: 0; max-width: none; }
.roomheroact { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.roomheroact .navform { flex: 1 1 100%; display: flex; margin: 0; }
.roomheroact .followbtn, .roomheroact .accentbtn { flex: 0 1 auto; text-align: center; font-size: 15px; padding: 11px 26px; min-height: 44px; box-sizing: border-box; }
@media (max-width: 700px) {
  .roomhero { padding: 18px; }
  .roomhero .pagetitle { font-size: 46px; }
  .roomhero .avatar.hero { width: 92px; height: 92px; font-size: 40px; }
  #widgetpop > * { padding-left: 20px; padding-right: 20px; }
}
/* --- Dec 1 hero condense (Bryan steer): photo ~68px, one-line
   name, slim inline stat row (no boxes), tighter bio, slimmer
   buttons that keep 44px tap targets. Nothing removed. --- */
.roomhero { gap: 8px; padding: 12px 16px; }
.herotop { gap: 12px; }
.roomhero .avatar.hero { width: 68px; height: 68px; font-size: 30px; border-width: 2px; }
.roomhero .pagetitle { font-size: 30px; line-height: 1.05; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.herohandle { font-size: 15px; }
.herostats { display: flex; flex-wrap: nowrap; gap: 20px; align-items: baseline; }
.herostat { flex-direction: row; align-items: baseline; gap: 6px; padding: 0; background: transparent; border: none; border-radius: 0; }
.roomwrap .herostat { background: transparent; border: none; }
.herostatnum { font-size: 20px; }
.herostatlab { font-size: 13px; text-transform: none; letter-spacing: 0; text-align: left; }
.roomhero .desc { font-size: 15px; line-height: 1.4; }
.roomheroact { gap: 8px; }
.roomheroact .followbtn, .roomheroact .accentbtn { min-height: 44px; padding: 8px 20px; }
.roomheroact .herobtn2 { min-height: 44px; }
@media (max-width: 700px) {
  .roomhero { padding: 12px 14px; }
  .roomhero .pagetitle { font-size: 28px; }
  .roomhero .avatar.hero { width: 68px; height: 68px; font-size: 30px; }
}
/* --- Desktop feed play/pause button --- */
.vplaypause { display: none; }
@media (min-width: 861px) {
  .vplaypause { display: flex; position: absolute; left: 14px; bottom: 46px; z-index: 6; width: 54px; height: 54px; border-radius: 50%; background: rgba(9, 10, 9, 0.72); border: 1px solid rgba(241, 238, 230, 0.35); color: #F1EEE6; align-items: center; justify-content: center; cursor: pointer; padding: 0; font-family: inherit; }
  .vplaypause svg { width: 26px; height: 26px; flex: none; }
  .vplaypause .ic-play { display: none; }
  .vplaypause.paused .ic-play { display: block; }
  .vplaypause.paused .ic-pause { display: none; }
  .vplaypause:hover { background: rgba(9, 10, 9, 0.92); border-color: #F45A1F; }
  .vcard.pip .vplaypause { display: none; }
}
/* --- Home scroller: whole video, blurred backdrop --- */
body.shellpage .homewrap .vvid { object-fit: contain; background: transparent; position: relative; z-index: 1; }
body.shellpage .homewrap .vposter { object-fit: contain; background: transparent; z-index: 2; }
.vblurbg { display: none; }
body.shellpage .homewrap .vblurbg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(46px) brightness(0.42) saturate(1.15); transform: scale(1.25); z-index: 0; pointer-events: none; background: #000; }
/* --- Dec 1 late fixes (Bryan): About Me header line-up with
   slightly smaller Edit/Details buttons, Details pop padding,
   left column packed with the Jukebox under About Me, lyrics
   first line clear, player overlay raised clear of the pause
   button, bigger uploader row on the desktop player. --- */
.aboutmerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.aboutmerow .aboutmehead { margin: 0; min-width: 0; }
.aboutmerow .weditrow { margin-bottom: 0; gap: 8px; flex: none; }
.aboutmerow .weditrow .popbtn { font-size: 16px; padding: 12px 24px; }
#popset-details { padding: 16px 32px 32px; }
@media (max-width: 700px) { #popset-details { padding: 12px 20px 24px; } }
.roomcol-left { justify-content: flex-start; align-content: flex-start; }
.roomcol-left .ablock[data-bkey="mp3"] { margin: 0; }
.lyricspane { padding-top: 12px; }
.hovervid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
@media (min-width: 861px) {
  body.shellpage .homewrap .voverlay, .vfeed .vcard .voverlay { padding-bottom: 120px; }
  .creatorrow { gap: 16px; margin-bottom: 12px; }
  .creatorrow .avatar { width: 56px; height: 56px; font-size: 24px; }
  .vcreator { font-size: 24px; }
  .creatorrow .followbtn { font-size: 16px; padding: 12px 24px; }
}
/* --- Articles home panel --- */
.panelarticles { display: flex; flex-direction: column; }
.panelarticle { display: flex; flex-direction: column; gap: 1px; padding: 8px 0; border-top: 1px solid var(--line, #34343c); text-decoration: none; }
.panelarticle:first-child { border-top: none; padding-top: 0; }
.panelarticletitle { font-weight: 700; font-size: 16px; color: var(--text); line-height: 1.3; }
.panelarticle:hover .panelarticletitle { color: var(--accent); }
.panelarticledate { color: var(--muted); font-size: 13px; }
/* --- Mobile Room Videos: single-column scroll (Bryan) --- */
@media (max-width: 899px) {
  .roomcol-center #room-videos .pgrid { grid-template-columns: 1fr; max-width: none; margin: 0; gap: 14px; }
  .roomwrap #room-videos .cardtitle { overflow-wrap: normal; word-break: normal; }
  .roomwrap #room-videos .thumbwrap { aspect-ratio: 16 / 9; background: #000; }
  .roomwrap #room-videos .thumbwrap img { object-fit: contain; }
}
/* --- Dec 1 gap fix + Wall isolation (Bryan): the duo tiles
   were sized by a leftover grid-era flex-basis (.widgetgrid.duo
   .tile1, from when tiles were direct items of the row grid).
   Inside the column-direction .tilewrap that basis lands on the
   HEIGHT axis: the wrap reserved the 3/4 aspect-ratio height
   but the tile rendered at half the wrap height minus 6px,
   leaving a band of dead space under the tile buttons. flex:
   none lets the aspect-ratio set the tile height so the tile
   fills its wrap and the block packs tight. Stats rows get
   real side padding so values never touch the panel edge.
   Wall: the posts feed sits in its own inset card, and
   the stacked layout gets real air between composer and
   posts. --- */
.widgetgrid .tilewrap > .widget.tile1 { flex: none; }
.aboutstats { padding: 4px 0 0; }
.aboutstats li { padding: 12px 16px; }
#room-wall .wallfeed { background: transparent; border: none; border-radius: 0; padding: 0; margin-top: 12px; }
@media (max-width: 899px) {
  .ablock[data-bkey="wall"] { margin-top: 24px; }
}
.welcomepop { position: fixed; inset: 0; z-index: 400; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; box-sizing: border-box; }
.welcomepop[hidden] { display: none; }
.welcomecard { max-width: 560px; width: 100%; }
.welcometitle { font-size: 64px; line-height: 1.02; margin: 0 0 24px; }
@media (max-width: 700px) { .welcometitle { font-size: 44px; } }
.welcometext { font-size: 20px; line-height: 1.5; margin: 0 0 16px; }
.welcomerule { font-weight: 800; }
.welcomeprimary { display: block; width: 100%; text-align: center; box-sizing: border-box; margin-top: 28px; text-decoration: none; }
.welcomelook { display: block; width: 100%; text-align: center; margin-top: 12px; }
.welcomealt { margin-top: 20px; color: var(--muted); font-size: 16px; }
/* v133 (Bryan, Dec 1): welcome step 1 goes white bg / black text,
   stripped down: no dots, no buttons, one added line, Log in
   pinned to the bottom right of the screen, and a tap anywhere
   else on step 1 advances the walk. Steps 2-3 unchanged: the
   .w1 state class comes off the moment the walk advances. */
.welcomepop { transition: background .6s cubic-bezier(.33,.66,.34,1); }
.welcomepop.w1 { background: #07130a; color: #FFFFFF; cursor: pointer; }
.welcomepop.w1 .walkdots, .welcomepop.w1 .welcomelook { display: none; }
.welcomepop.w1 .welcometitle { color: #000000; -webkit-text-stroke: 1px #000000; }
.welcomepop.w1 .welcometext { color: #000000; }
.welcomelogin { position: absolute; right: 24px; bottom: 24px; z-index: 2; font-size: 16px; font-weight: 600; color: var(--text); padding: 8px 0 8px 12px; }
.welcomepop.w1 .welcomelogin { color: #000000; }
.handlepreview { font-family: var(--mono, monospace); color: var(--muted); font-size: 14px; margin: 4px 0 0; min-height: 20px; }
.policiesline { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }
.presetgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0; }
.presetcard { background: var(--surface, #151519); border: 2px solid var(--line, #34343c); border-radius: 12px; padding: 12px; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.presetcard.on { border-color: var(--accent); }
.presetswatches { display: flex; gap: 6px; margin-bottom: 8px; }
.presetsw { width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.25); flex: none; }
.presetname { font-weight: 800; font-size: 16px; }
.roomwelcome { border: 1px solid var(--room-accent, var(--accent)); border-radius: 12px; padding: 20px; margin-bottom: 16px; background: color-mix(in srgb, var(--room-text, #111111) 6%, transparent); }
.roomwelcome .bigbtn { display: inline-block; text-decoration: none; margin-top: 8px; }
.firstvideo { text-align: center; padding: 32px 16px; }
.firstvideo .followbtn { display: inline-block; text-decoration: none; margin-top: 12px; }
.jbplay { display: flex; align-items: center; justify-content: center; }
.jbplay svg { width: 28px; height: 28px; flex: none; }
.jbnav { display: flex; align-items: center; justify-content: center; }
.jbnav svg { width: 22px; height: 22px; flex: none; }
.rvplay svg { width: 22px; height: 22px; flex: none; margin-left: 2px; }
.setupwrap #su-avprev { width: 168px; }
/* v57: avatar format: bust-up, one uniform square box + height on stage, dial, and Room */
.setupwrap #su-avprev { width: 200px; aspect-ratio: 1; }
.setupwrap #su-avprev.single { width: 200px; aspect-ratio: 1; }
.chardial .dslide { width: 96px; margin-left: -48px; }
.chardial .dslide .dimg { height: 84px; }
/* v61: Avatar-step stage height 180 (uniform per character) so stage+dial+wheel fit one screen */
.setupwrap .avstagewrap { width: 160px; }
.setupwrap #su-avprev { width: 160px; }
.setupwrap #su-avprev.single { width: 160px; }
.setupwrap .stagecells { display: none; }
#su-stage .widget { flex: 0 0 264px; width: 264px; max-width: 84%; aspect-ratio: 3 / 4; }
.bgthumb { width: 120px; border-radius: 10px; display: block; margin-top: 12px; }
.presetprev { display: block; border-radius: 8px; padding: 8px; margin-bottom: 8px; }
.presetblock { display: block; border-radius: 6px; padding: 8px; }
.presetline { display: block; height: 8px; border-radius: 4px; width: 70%; margin-bottom: 8px; }
.presetbtn { display: block; height: 12px; border-radius: 6px; width: 40%; }
.roomheroact { gap: 8px; }
.roomheroact .heroprimary { flex: 1 1 100%; }
.roomheroact .heropair { display: flex; gap: 8px; flex: 1 1 100%; }
.roomheroact .heropair .herobtn2 { flex: 1 1 0; }
.walkdots { display: flex; gap: 8px; margin: 0 0 28px; }
.walkdot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--muted, #5f5f58); box-sizing: border-box; }
.walkdot.on { background: var(--accent, #F45A1F); border-color: var(--accent, #F45A1F); }
.walkstep { animation: walkfade .3s ease both; }
@keyframes walkfade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .walkstep { animation: none; } }
.walkback { display: block; margin: 14px auto 0; background: none; border: none; color: var(--muted, #5f5f58); font-size: 16px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.welcomecard .welcomelook { margin-top: 32px; }
.vidrow { border: 1px solid var(--line, #d7d7cf); border-radius: 8px; padding: 12px 16px; margin-top: 12px; }
.vidrow label { display: block; font-weight: 700; }
.vidrow input[type="text"] { width: 100%; box-sizing: border-box; margin-top: 4px; }
.vidstat { color: var(--muted, #5f5f58); font-size: 14px; margin: 8px 0 0; }
.vidbar { height: 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.10); margin-top: 8px; overflow: hidden; }
.vidbar span { display: block; height: 100%; width: 0; background: var(--accent, #F45A1F); border-radius: 999px; transition: width .2s ease; }
.vidrow.posted { border-color: var(--accent, #F45A1F); }
#su-vidup { margin-top: 16px; width: 100%; }
.herobtn2 { text-align: center; font-size: 15px; padding: 11px 26px; min-height: 44px; box-sizing: border-box; border-radius: 999px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line, #d7d7cf); color: var(--text); font-weight: 700; cursor: pointer; font-family: inherit; }
/* Job S (Dec 1): the Wall leads the Room and the composer
   is a Google-style search bar: a narrow one-line pill
   floating at the highest surface level with a layered
   shadow; the + at its left is Add a picture. Expanding
   opens the Job L composer card in place. */
.wallcomposerblock { background: none; border: none; box-shadow: none; padding: 0; }
.wallcomposer { position: relative; z-index: 3; }
.wallcomposer.collapsed .wallopen { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 20px 0 16px; border-radius: 999px; background: color-mix(in srgb, var(--room-cardbg, var(--panel)) 84%, #ffffff); border: 1px solid var(--room-cardline, var(--line)); color: var(--room-muted, var(--muted)); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.42), 0 16px 32px rgba(0, 0, 0, 0.48); font-size: 15px; text-align: left; }
.wallbarplus { flex: none; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: var(--room-accent, var(--accent)); }
.wallbarplus svg { width: 20px; height: 20px; }
.wallbartext { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wallcomposer:not(.collapsed) { background: var(--room-cardbg, var(--panel)); border: 1px solid var(--room-cardline, var(--line)); border-radius: 16px; padding: 16px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.42), 0 16px 32px rgba(0, 0, 0, 0.48); }

/* Job Q (Dec 1): the music pop's action row (Get the Song
   primary + Back, one row, one height) and the Manage
   Music hub inside the Add a Song pop. */
.popactrow { display: flex; gap: 8px; align-items: stretch; flex-wrap: nowrap; }
.popactrow .popbtn { flex: 1 1 auto; }
.backbtn { flex: 0 0 104px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 700; font-family: inherit; color: var(--room-text, var(--text)); background: var(--room-surface, var(--panel)); cursor: pointer; }
.musichub { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.hubh { font-size: 18px; margin: 0 0 12px; }
.hubrow { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hubcover { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; }
.hubinfo { flex: 1; min-width: 0; }
.hubtitle { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hubsub { color: var(--muted); font-size: 13px; }
.hubacts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.hubacts .navform { display: flex; }
.hubbtn { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--room-text, var(--text)); font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; }
.hubbtn-accent { border-color: var(--room-accent, var(--accent)); color: var(--room-accent, var(--accent)); }
.hubbtn-quiet { border: none; color: var(--muted); padding: 0 6px; }
.hubbadge { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--room-accent, var(--accent)); color: #090A09; font-size: 13px; font-weight: 800; }
.hubpl { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 12px; }
.hubplhead { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hubpltitle { font-weight: 800; font-size: 15px; }
.hubitem { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 0; }
.hubitem .navform { display: flex; }
.hubitemname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hubaddform { display: flex; gap: 8px; margin-top: 8px; }
.hubaddform select { flex: 1; min-width: 0; }
.hubplrow { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.hubrename { display: flex; gap: 8px; flex: 1; min-width: 200px; }
.hubrename input { flex: 1; min-width: 0; }
.hubcreate { margin-top: 16px; }

/* Job P (Dec 1): the Jukebox rim glow canvas. Sits on the
   card edge (4px out), points of light drawn by the player
   script; never intercepts taps, never moves the card. */
.jbglow { position: absolute; inset: -4px; pointer-events: none; z-index: 6; }

/* Job O (Dec 1): every Wall post is its own card with a
   real gap between cards; replies nest inside their post;
   author headers are real blocks (60px posts, 48px
   replies); one action row per post and per reply. */
.wallfeed { display: flex; flex-direction: column; gap: 12px; }
#room-wall .wallpost { background: color-mix(in srgb, var(--room-bg, #ffffff) 45%, transparent); border: 1px solid var(--room-cardline, var(--line)); border-radius: 12px; padding: 13px; box-shadow: var(--room-cardshadow, inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.10), 0 18px 38px rgba(0, 0, 0, 0.16)); }
.wallhead { display: flex; align-items: center; gap: 10px; }
#room-wall .wallpost .wallhead .avatar, #room-wall .wallpost .wallhead .avatarph { width: 60px; height: 60px; font-size: 26px; flex: none; }
#room-wall .wallreply .wallhead .avatar, #room-wall .wallreply .wallhead .avatarph { width: 48px; height: 48px; font-size: 20px; flex: none; }
.wallwho { min-width: 0; }
.wallname { display: block; font-size: 17px; font-weight: 800; color: var(--room-text, var(--text)); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wallhead-sm .wallname { font-size: 15px; }
.walldate { display: block; font-size: 13px; color: var(--room-muted, var(--muted)); margin-top: 2px; }
#room-wall .wallbody { margin-top: 6px; }
.wallpostacts { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.wallreplybtn { height: 32px; display: inline-flex; align-items: center; padding: 0 6px; background: none; border: none; color: var(--room-text, var(--text)); font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; text-decoration: none; }
.wallminibtn { height: 32px; display: inline-flex; align-items: center; padding: 0 6px; background: none; border: none; color: var(--room-muted, var(--muted)); font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; text-transform: uppercase; letter-spacing: 0.04em; }
.wallpostacts .navform, .wallreplyacts .navform { display: flex; }
.wallpostacts .flagged { font-size: 13px; color: var(--room-muted, var(--muted)); }
.wallreplies { margin-top: 10px; margin-left: 10px; padding-left: 13px; border-left: 2px solid var(--room-cardline, var(--line)); display: flex; flex-direction: column; gap: 12px; }
.wallreplyacts { display: flex; justify-content: flex-end; margin-top: 4px; }
#room-wall .wallreplybody { margin-top: 6px; }

/* Job N (Dec 1): Pet background swatches in Customize. */
.bgswatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.bgswatch { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; padding: 8px 4px; box-sizing: border-box; border-radius: 10px; border: 2px solid var(--line); background: transparent; color: var(--text); font-family: inherit; cursor: pointer; }
.bgswatch.sel { border-color: var(--accent); }
.bgswatch .bgsw { width: 52px; height: 40px; border-radius: 6px; border: 1px solid var(--line); display: block; }
.bgswatch .bgname { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.15; }
.ambgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 4px; }
.ambcard { padding: 0; overflow: hidden; border: 2px solid var(--line, #34343c); border-radius: 12px; background: var(--surface, #151519); cursor: pointer; text-align: left; color: inherit; font: inherit; }
.ambcard.on { border-color: var(--accent); }
.ambcard canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0a0f0a; }
.ambcard .ambname { display: block; padding: 8px 10px; font-weight: 700; font-size: 14px; }
.ambcard .ambnonebox { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--panel2, #1f1f24); }

/* Job M (Dec 1): transport sits centered over the scrubber
   with real air around it; Reset is gone; the Add to
   Playlist pill rides in the transport row. */
.jbtransport { justify-content: center; gap: 16px; margin-top: 16px; margin-bottom: 12px; width: 100%; box-sizing: border-box; }
.mp3card .mp3seekrow { margin-top: 0; }
.jbaddpl { display: inline-flex; align-items: center; gap: 6px; height: 40px; box-sizing: border-box; border: 1px solid var(--line); background: transparent; color: var(--room-text, var(--text)); border-radius: 999px; padding: 0 16px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; text-decoration: none; white-space: nowrap; }
.jbaddpl svg { width: 14px; height: 14px; flex: none; }
.jbretro .jbaddpl { color: #F1EEE6; border-color: rgba(241, 238, 230, 0.35); }
.jbtoast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 90; background: var(--room-accent, var(--accent)); color: var(--room-on-accent, #090A09); font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); white-space: nowrap; }
.jbplpop { position: fixed; inset: 0; z-index: 95; background: rgba(0, 0, 0, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.jbplpop[hidden] { display: none; }
.jbplcard { background: var(--room-cardbg, var(--panel)); color: var(--room-text, var(--text)); border: 1px solid var(--room-cardline, var(--line)); border-radius: 14px; padding: 20px; width: 100%; max-width: 360px; box-sizing: border-box; }
.jbpltitle { margin: 0 0 4px; font-size: 19px; }
.jbplhelp { margin: 0 0 4px; font-size: 13px; color: var(--room-muted, var(--muted)); }
.jbplrow { display: block; width: 100%; text-align: left; margin-top: 8px; min-height: 44px; padding: 8px 14px; box-sizing: border-box; border-radius: 8px; border: 1px solid var(--room-cardline, var(--line)); background: transparent; color: var(--room-text, var(--text)); font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; }
.jbplcancel { margin-top: 16px; }

/* Job L (Dec 1): Wall composer polish. One 44px action row
   (picture left, Cancel + Post right), inset textarea with a
   quiet accent focus ring instead of the browser slab, no
   dead file text, the picked picture becomes a chip in the
   row with a remove x. Reply composer inherits it. */
.wallcomposer textarea, .wallreplyform textarea { display: block; background: color-mix(in srgb, var(--room-cardbg, var(--panel)) 55%, #000); border: 1px solid var(--room-cardline, var(--line)); border-radius: 8px; padding: 16px; }
.wallreplyform textarea { padding: 12px; }
.wallcomposer textarea::placeholder, .wallreplyform textarea::placeholder { color: var(--room-muted, var(--muted)); opacity: 1; font-weight: 400; }
.wallcomposer textarea:focus, .wallreplyform textarea:focus { outline: none; border-color: var(--room-accent, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--room-accent, var(--accent)) 22%, transparent); }
.wallactrow { display: flex; align-items: center; gap: 4px; margin-top: 12px; }
.wallreplyform .wallactrow { margin-top: 8px; }
.wallactgap { flex: 1; }
.wallpickbtn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; height: 44px; box-sizing: border-box; padding: 0 12px; font-size: 13px; border-radius: 8px; border: 1px solid var(--room-cardline, var(--line)); background: transparent; color: var(--room-text, var(--text)); font-size: 14px; font-weight: 700; cursor: pointer; }
.wallpicprev { display: inline-flex; align-items: center; gap: 8px; height: 44px; max-width: 44%; min-width: 0; }
.wallpicprev[hidden] { display: none; }
.wallpicprev img { width: 44px; height: 44px; max-width: 44px; max-height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--room-cardline, var(--line)); }
.wallpicname { font-size: 13px; color: var(--room-muted, var(--muted)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wallpicx { flex: none; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--room-cardline, var(--line)); background: transparent; color: var(--room-text, var(--text)); font-size: 15px; line-height: 1; cursor: pointer; padding: 0; }
.wallcancelbtn { height: 44px; box-sizing: border-box; padding: 0 14px; border-radius: 8px; border: 1px solid var(--room-cardline, var(--line)); background: transparent; color: var(--room-text, var(--text)); font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; }
.wallactrow .followbtn.wallpostbtn { height: 44px; box-sizing: border-box; padding: 0 20px; border-radius: 8px; font-size: 15px; display: inline-flex; align-items: center; }
.wallopen { border-radius: 8px; border-color: var(--room-cardline, var(--line)); }

/* Job K (Dec 1): Home shows the Room Buddy. Stage carries
   the Room tile background and flip; img buddies size like
   the sprite did. */
.homebuddystage { border-radius: 12px; padding: 8px; }
.homebuddystage .petimg { max-width: 132px; width: 100%; margin: 0 auto; display: block; }
.homebuddystage.flipped .petimg, .homebuddystage.flipped .petsprite { transform: scaleX(-1); }
.onlinebuddy img { width: 100%; display: block; border-radius: 6px; }
.panelbtns a.popbtn { text-decoration: none; display: inline-flex; align-items: center; }

/* Job J part 6: visitor row gaps tighten to 4px and the $
   pill compacts to a 48px basis (52px outer, still an easy
   tap target), closing the label fit at 430px. */
.roomheroact.visitoract { gap: 4px; }
.roomheroact.visitoract .paybtn { flex-basis: 48px; }

/* Job J part 5: the visitor row borrows 8px of the card
   padding on each side and trims its label padding, so the
   long labels get their room back. */
.roomheroact.visitoract { margin-left: -8px; margin-right: -8px; }
.roomheroact .loginfollow, .roomheroact .visitweb { padding-left: 10px; padding-right: 10px; }

/* Job J part 4: letter-spacing is what pushes the two long
   labels over; near-zero tracking in the visitor row lets
   both labels render in full at phone width. */
.roomheroact .navform .followbtn, .roomheroact .loginfollow, .roomheroact .visitweb { letter-spacing: 0.01em; }

/* Job J part 3: a touch tighter so the three-control row
   keeps its labels at phone width. */
.roomheroact .navform .followbtn, .roomheroact .loginfollow, .roomheroact .visitweb { font-size: 14px; }
.roomheroact .paybtn { flex-basis: 60px; }

/* Job J part 2: the visitor row never wraps. Line-breaking
   used max-content bases, so three items still spilled to a
   second row; nowrap + shrink + ellipsized labels keeps one
   row at phone width. */
.roomheroact.visitoract { flex-wrap: nowrap; }
.roomheroact .loginfollow, .roomheroact .visitweb { padding-left: 12px; padding-right: 12px; }
.roomheroact .followbtn, .roomheroact .loginfollow span, .roomheroact .visitweb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roomheroact .loginfollow span, .roomheroact .visitweb span { min-width: 0; }

/* Job J (Dec 1): visitor hero actions are ONE adaptive row.
   The follow form had flex-basis 100%, so it owned a row and
   orphaned the $ pill (and website) onto a second row. Now:
   Follow/Unfollow/Log in to follow flexes as the primary,
   Visit website sits beside it as a secondary, the $ pill is
   a compact 64px at the row's end; all share the 52px height.
   Owner items (Customize/Edit Bio) keep their own rules. */
.roomheroact .navform { flex: 1 1 auto; min-width: 0; }
.roomheroact .loginfollow { flex: 1 1 auto; min-width: 0; }
.roomheroact .visitweb { flex: 0 1 auto; min-width: 0; }

/* Job I (Dec 1): hero overflow + name heading auto-fit. The
   hero was a row flexbox, so its rows sized to their content
   and the 60px heading forced the card's content 33px past
   the desktop column, where overflow-x:hidden clipped the
   heading and the buttons. The hero is a column now, and
   [data-fit] headings step their font down until they fit. */
.roomhero { flex-direction: column; align-items: stretch; }
.roomhero > * { min-width: 0; max-width: 100%; }
.herostats { flex-wrap: wrap; min-width: 0; }
.herohandle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
[data-fit] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Job H (Dec 1): dial ghosting + step fit. The 3D arc
   (perspective + rotateY to 62deg + will-change layers)
   smeared and doubled slide labels on tablet Safari; the arc
   is flat now (translate/scale/opacity). Flex children that
   can force width get pinned so the step cannot overflow. */
.chardial { perspective: none; max-width: 100%; }
.dslide { will-change: auto; }
.emostrip { max-width: 100%; }
.emostriprow { min-width: 0; }
.setupwrap .fxpick { max-width: 100%; }

/* v134: light-base inheritance guards + walk story beats */
.vcard { color: #F1EEE6; }
.vcard a { color: #F1EEE6; }
.vcard .vmeta, .vcard .cmeta, .vcard .vhandle, .vcard .votebtn { color: #b9b4a8; }
.vcard .cform textarea { background: #111311; color: #F1EEE6; border-color: #343A33; }
.homewrap .seamlabel { color: #b9b4a8; }
.roomwrap .herohandle, .roomwrap .mp3artist, .roomwrap .mp3time, .roomwrap .mp3state, .roomwrap .avatarcap, .roomwrap .clockdate, .roomwrap .petmsg, .roomwrap .petbar, .roomwrap .lyricsnote { color: var(--room-text, var(--text)); opacity: .68; }
.roomwrap .calcell { background: color-mix(in srgb, var(--room-text, #111111) 8%, transparent); }
.roomwrap .pettrack { background: color-mix(in srgb, var(--room-text, #111111) 12%, transparent); }
.roomwrap .clockring { stroke: var(--room-cardline, var(--line)); }
.roomwrap .wallcomposer textarea { background: color-mix(in srgb, var(--room-bg, #ffffff) 55%, transparent); color: var(--room-text, var(--text)); border-color: var(--room-cardline, var(--line)); }
.widgetgrid #room-avatar { background: var(--room-cardbg, var(--panel)); }
.heyscroll { height: 1.3em; display: flex; align-items: center; justify-content: center; font-size: clamp(37px, 15.2vw, 59px); font-weight: 800; line-height: 1.06; text-align: center; color: #000000; }
.heyword { white-space: nowrap; transition: opacity 0.45s ease; }
.heyword.fade { opacity: 0; }
.invwrap { position: absolute; left: 50%; bottom: 43%; transform: translateX(-50%); z-index: 3; opacity: 0; border-radius: 999px; }
.bfly { position: fixed; width: 27px; height: 20px; z-index: 500; pointer-events: none; }
.bfly i { position: absolute; top: 1px; width: 13.5px; height: 18px; background: var(--bfc, #F43F5E); }
.bfly .wl { left: 0; border-radius: 90% 90% 60% 90%; transform-origin: 100% 50%; animation: bflap .16s ease-in-out infinite alternate; }
.bfly .wr { right: 0; border-radius: 90% 90% 90% 60%; transform-origin: 0% 50%; animation: bflap .16s ease-in-out infinite alternate-reverse; }
.bfly::after { content: ""; position: absolute; left: 50%; top: 2px; width: 3px; height: 15px; margin-left: -1.5px; border-radius: 2px; background: rgba(20, 10, 10, 0.85); }
@keyframes bflap { from { transform: scaleX(1) rotate(-8deg); } to { transform: scaleX(0.3) rotate(6deg); } }
.welcomepop.w1.soulfade .buddydot { width: 22px; height: 22px; transition: width .5s ease, height .5s ease; }
.welcomepop.w1.soulfade .buddydot i { background: #FFFFFF; box-shadow: 0 0 22px 8px rgba(255, 255, 255, 0.5); }
.soulcap { position: absolute; left: 50%; top: 56.5%; transform: translateX(-50%); color: #FFFFFF; font-size: 17px; font-weight: 500; letter-spacing: .05em; white-space: nowrap; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; z-index: 4; }
.soulcap.show { animation: soulcaplife 3.9s ease forwards; }
@keyframes soulcaplife { 0%, 18% { opacity: 0; } 32%, 86% { opacity: 1; } 100% { opacity: 0; } }
.welcomepop.w2 .soulcap, .welcomepop.w3 .soulcap, .welcomepop.w4 .soulcap, .welcomepop.w5 .soulcap, .welcomepop.w6 .soulcap, .welcomepop.w7 .soulcap { display: none; }
@media (prefers-reduced-motion: reduce) { .soulcap.show { animation: none; } }
.welcomepop.souloff .step1stage { display: none; }
.soulveil { position: fixed; inset: 0; background: #000000; opacity: 0; pointer-events: none; z-index: 1; transition: opacity 1.65s cubic-bezier(.33,.66,.34,1); }
.welcomepop.soulfade { background: #000000; }
.welcomepop.soulfade .soulveil { opacity: 1; }
.welcomepop.soulfade .invwrap { animation: none !important; }
.welcomepop.soulfade .walkstep[data-wstep="1"] { animation: none !important; }
.welcomepop.soulfade .step1logo, .welcomepop.soulfade .walkstep[data-wstep="1"], .welcomepop.soulfade .invwrap, .welcomepop.soulfade .welcomelogin, .welcomepop.soulfade .welcomesandbox, .welcomepop.soulfade .walkdots, .welcomepop.soulfade .welcomelook { opacity: 0 !important; transition: opacity .7s cubic-bezier(.33,.66,.34,1); }
.invhalo { position: absolute; inset: -24px; border-radius: 999px; background: conic-gradient(from var(--ringa), #FF3131, #FF5E3A, #FF7518, #FFB03A, #EEFF00, #8DFF57, #39FF14, #2BFFC4, #00CFFF, #3D7BFF, #7A3DFF, #BF00FF, #E83DFF, #FF10F0, #FF3D7E, #FF3131); opacity: 0; pointer-events: none; }
.gobtn { position: relative; background: #FFFFFF; color: #0a0a0c; border: none; font: inherit; font-size: 17px; font-weight: 700; letter-spacing: .02em; text-transform: none; white-space: nowrap; padding: 15px 32px; min-height: 50px; border-radius: 999px; cursor: pointer; z-index: 3; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); transition: filter 3.4s ease-in; }
.welcomepop.w1 .invwrap { animation: goin .9s ease 1.25s forwards, gopulse 2.2s ease-in-out 2.15s infinite; }
.welcomepop.w1 .gobtn { background: rgba(244, 63, 94, 0.58); color: #FFFFFF; border: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.orbdot { position: fixed; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; z-index: 600; pointer-events: none; }
.bfly { position: fixed; width: 27px; height: 20px; z-index: 500; pointer-events: none; }
.bfly i { position: absolute; top: 1px; width: 13.5px; height: 18px; background: var(--bfc, #F43F5E); }
.bfly .wl { left: 0; border-radius: 90% 90% 60% 90%; transform-origin: 100% 50%; animation: bflap .16s ease-in-out infinite alternate; }
.bfly .wr { right: 0; border-radius: 90% 90% 90% 60%; transform-origin: 0% 50%; animation: bflap .16s ease-in-out infinite alternate-reverse; }
.bfly::after { content: ""; position: absolute; left: 50%; top: 2px; width: 3px; height: 15px; margin-left: -1.5px; border-radius: 2px; background: rgba(20, 10, 10, 0.85); }
@keyframes bflap { from { transform: scaleX(1) rotate(-8deg); } to { transform: scaleX(0.3) rotate(6deg); } }
.welcomepop.w2 .invwrap, .welcomepop.w3 .invwrap, .welcomepop.w4 .invwrap, .welcomepop.w5 .invwrap, .welcomepop.w6 .invwrap, .welcomepop.w7 .invwrap { display: none; }
@keyframes goin { to { opacity: 1; } }
@keyframes gopulse { 0%, 100% { transform: translateX(-50%) scale(1); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(244, 63, 94, 0.50), 0 0 22px 4px rgba(244, 63, 94, 0.30); } 50% { transform: translateX(-50%) scale(1.09); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 0 18px rgba(244, 63, 94, 0), 0 0 42px 13px rgba(244, 63, 94, 0.46); } }
@property --ringa { syntax: "<angle>"; initial-value: 0deg; inherits: false; }






.invwrap.ignited .gobtn { filter: brightness(1.9) saturate(1.1); background: rgba(244, 63, 94, 0.94); }
.invglow { position: absolute; inset: 0; border-radius: 999px; pointer-events: none; }
.invlabel { position: relative; z-index: 1; }
.invglow::before { content: ""; position: absolute; inset: -3px; border-radius: 999px; padding: 3px; background: #FFFFFF; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s ease; }

.invwrap.ignited .invglow::before { opacity: 0; animation: none; }
.invwrap.ignited .invhalo { animation: hueambience 3.4s cubic-bezier(.55, .06, .85, .4) forwards; }
@keyframes whiteline { 0% { filter: brightness(1.6) drop-shadow(0 0 3px rgba(255, 255, 255, 0.35)); } 12% { filter: brightness(2.2) drop-shadow(0 0 5px rgba(255, 255, 255, 0.45)); } 24% { filter: brightness(1.5) drop-shadow(0 0 6px rgba(255, 255, 255, 0.5)); } 36% { filter: brightness(2.6) drop-shadow(0 0 8px rgba(255, 255, 255, 0.58)); } 47% { filter: brightness(1.8) drop-shadow(0 0 9px rgba(255, 255, 255, 0.64)); } 57% { filter: brightness(2.9) drop-shadow(0 0 10px rgba(255, 255, 255, 0.7)); } 66% { filter: brightness(2.1) drop-shadow(0 0 11px rgba(255, 255, 255, 0.74)); } 74% { filter: brightness(3.1) drop-shadow(0 0 12px rgba(255, 255, 255, 0.78)); } 81% { filter: brightness(2.4) drop-shadow(0 0 13px rgba(255, 255, 255, 0.82)); } 87% { filter: brightness(3.3) drop-shadow(0 0 14px rgba(255, 255, 255, 0.86)); } 93% { filter: brightness(2.7) drop-shadow(0 0 14px rgba(255, 255, 255, 0.9)); } 100% { filter: brightness(3.6) drop-shadow(0 0 16px rgba(255, 255, 255, 0.95)); } }
@keyframes hueambience { 0% { --ringa: 0deg; opacity: 0; filter: hue-rotate(0deg) saturate(1.9) blur(23px); } 30% { opacity: 0.78; filter: hue-rotate(80deg) saturate(1.9) blur(27px); } 55% { opacity: 0.88; filter: hue-rotate(170deg) saturate(1.95) blur(30px); } 78% { opacity: 0.92; filter: hue-rotate(260deg) saturate(1.95) blur(32px); } 90% { opacity: 0.88; filter: hue-rotate(320deg) saturate(1.95) blur(33px); } 100% { --ringa: 360deg; opacity: 0; filter: hue-rotate(360deg) saturate(1.95) blur(35px); } }
@media (prefers-reduced-motion: reduce) { .invwrap.ignited .invglow::before, .invwrap.ignited .invhalo { animation: none; } }

 }
.welcomepop.w2, .welcomepop.w3, .welcomepop.w4, .welcomepop.w5, .welcomepop.w6, .welcomepop.w7 { background: #000000; color: #FFFFFF; }
.welcomepop.w2 .walkdots, .welcomepop.w2 .welcomelook, .welcomepop.w2 .welcomelogin, .welcomepop.w2 .welcomesandbox, .welcomepop.w3 .walkdots, .welcomepop.w3 .welcomelook, .welcomepop.w3 .welcomelogin, .welcomepop.w3 .welcomesandbox, .welcomepop.w4 .walkdots, .welcomepop.w4 .welcomelook, .welcomepop.w4 .welcomelogin, .welcomepop.w4 .welcomesandbox, .welcomepop.w5 .walkdots, .welcomepop.w5 .welcomelook, .welcomepop.w5 .welcomelogin, .welcomepop.w5 .welcomesandbox, .welcomepop.w6 .walkdots, .welcomepop.w6 .welcomelook, .welcomepop.w6 .welcomelogin, .welcomepop.w6 .welcomesandbox, .welcomepop.w7 .welcomesandbox { display: none; }
.welcomepop.w5 .buddydot { left: 50%; top: 12%; bottom: auto; width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.welcomepop.w5 .buddydot i { background: #FFFFFF; box-shadow: 0 0 22px 8px rgba(255, 255, 255, 0.5); }
.welcomepop.w4 .buddydot { left: 50%; top: 43%; bottom: auto; width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.welcomepop.w4 .buddydot i { background: #FFFFFF; box-shadow: 0 0 22px 8px rgba(255, 255, 255, 0.5); }
.welcomepop.w2 .walkstep[data-wstep="2"], .welcomepop.w3 .walkstep[data-wstep="3"] { display: flex; flex-direction: column; justify-content: space-between; height: clamp(300px, 40dvh, 380px); position: relative; }
.welcomepop.w4 .walkstep[data-wstep="4"] { display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: clamp(340px, 46dvh, 430px); position: relative; }
.walkq { font-family: "Helvetica Neue", Arial, "DejaVu Sans", sans-serif; font-size: 25px; font-weight: 500; line-height: 1.3; margin: 0; text-transform: none; letter-spacing: 0; color: #FFFFFF; text-align: center; }
.walkname { display: flex; align-items: baseline; justify-content: center; width: min(320px, 84vw); margin-left: auto; margin-right: auto; border-bottom: 2px solid rgba(255, 255, 255, 0.85); animation: walknamein .55s ease .35s both; }
.walkpwwrap { width: min(320px, 84vw); margin-left: auto; margin-right: auto; }
.walkpw { display: flex; align-items: baseline; justify-content: center; border-bottom: 2px solid rgba(255, 255, 255, 0.85); animation: walknamein .55s ease .35s both; }
.walkpw:focus-within { border-bottom-color: #FFFFFF; }
.walkpw input { width: 100%; box-sizing: border-box; background: transparent; border: none; border-radius: 0; color: #FFFFFF; caret-color: #FFFFFF; font-size: 38px; font-weight: 600; padding: 0 2px 12px; text-align: center; text-transform: none; letter-spacing: .18em; }
.walkpw input:focus { outline: none; }
.walkpwfoot { display: flex; justify-content: flex-end; margin-top: 8px; }
.walkpwshow { background: none; border: none; color: rgba(255, 255, 255, 0.55); font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .04em; cursor: pointer; padding: 2px 0; text-transform: none; }
.walkpwmeta { position: absolute; left: 0; right: 0; top: calc(100% + 28px); text-align: center; z-index: 3; }
.walkpwhelp { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.45; color: rgba(255, 255, 255, 0.62); text-transform: none; letter-spacing: 0; }
.walkpwcontinue { position: absolute; left: 50%; top: calc(100% + 84px); transform: translateX(-50%); background: #FFFFFF; color: #111111; border: none; font: inherit; font-size: 18px; font-weight: 700; letter-spacing: .02em; text-transform: none; padding: 16px 56px; border-radius: 999px; cursor: pointer; white-space: nowrap; max-width: calc(100vw - 48px); box-sizing: border-box; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s ease, visibility .35s ease; z-index: 3; }
.welcomepop.pwok .walkpwcontinue { opacity: 1; visibility: visible; pointer-events: auto; }
.cityq { font-size: clamp(27px, 8.6vw, 34px); font-weight: 600; }
.cityslot { white-space: nowrap; border-bottom: 2px solid rgba(255, 255, 255, 0.85); padding-bottom: 5px; }
.cityscroll { height: 162px; overflow-y: auto; scrollbar-width: none; width: min(340px, 88vw); text-align: center; }
.cityscroll::-webkit-scrollbar { display: none; }
.cityopt { display: block; width: 100%; height: 54px; scroll-snap-align: start; transition: opacity .3s ease; background: none; border: none; color: #FFFFFF; font: inherit; font-size: 25px; font-weight: 600; line-height: 54px; text-align: center; cursor: pointer; padding: 0; text-transform: none; letter-spacing: 0; }
.cityopt.on { color: #FFFFFF; font-size: 29px; }
.citypad { height: 108px; }
.walkcitycontinue { position: absolute; left: 50%; top: calc(100% + 36px); transform: translateX(-50%); background: #FFFFFF; color: #111111; border: none; font: inherit; font-size: 18px; font-weight: 700; letter-spacing: .02em; text-transform: none; padding: 16px 56px; border-radius: 999px; cursor: pointer; white-space: nowrap; max-width: calc(100vw - 48px); box-sizing: border-box; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s ease, visibility .35s ease; z-index: 3; }
.welcomepop.cityok .walkcitycontinue { opacity: 1; visibility: visible; pointer-events: auto; }
.welcomepop.w5 .walkstep[data-wstep="5"] { display: flex; flex-direction: column; justify-content: space-between; height: clamp(360px, 50dvh, 480px); position: relative; }
.walkalpha { max-width: 340px; margin: 0 auto; }
.walkalphap { margin: 0 0 22px; font-size: 21px; font-weight: 500; line-height: 1.55; text-align: center; color: #FFFFFF; text-transform: none; letter-spacing: 0; }
.walkalphap:last-child { margin-bottom: 0; }
.walkokay { position: absolute; left: 0; right: 0; top: calc(100% + 40px); margin: 0 auto; width: fit-content; max-width: calc(100vw - 48px); box-sizing: border-box; background: #FFFFFF; color: #111111; border: none; font: inherit; font-size: 18px; font-weight: 700; letter-spacing: .02em; text-transform: none; padding: 16px 40px; border-radius: 999px; cursor: pointer; white-space: normal; text-align: center; line-height: 1.35; animation: welcomepulse 1.6s ease-in-out infinite; z-index: 3; }
.walkpopback { position: absolute; left: 24px; bottom: 24px; z-index: 2; background: none; border: none; color: rgba(255, 255, 255, 0.55); font-size: 15px; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 8px 12px 8px 0; display: none; }
.welcomepop.w3 #walkpwback { display: block; }
.welcomepop.w4 #walkcityback { display: block; }
.welcomesandbox { position: absolute; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 2; font-size: 13px; font-weight: 600; color: var(--muted, #5f5f58); padding: 8px 12px; }
.welcomepop.w1 .welcomesandbox { color: rgba(0, 0, 0, 0.45); }
.sandboxpill { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 60px); right: 10px; z-index: 450; display: flex; align-items: center; gap: 8px; background: #111111; color: #FFFFFF; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; padding: 6px 6px 6px 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25); }
.sandboxpill form { margin: 0; display: flex; }
.sandboxpill button { background: #FFFFFF; color: #111111; border: none; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; padding: 5px 10px; cursor: pointer; }
.walkname:focus-within { border-bottom-color: #FFFFFF; }
.walkat { font-size: 38px; font-weight: 600; line-height: 1.2; color: #FFFFFF; }
.walkname input { width: 24px; box-sizing: border-box; background: transparent; border: none; border-radius: 0; color: #FFFFFF; caret-color: #FFFFFF; font-size: 38px; font-weight: 600; padding: 0 2px 12px; text-align: left; text-transform: none; letter-spacing: 0; }
.walkname input:focus { outline: none; }
.walkmeta { position: absolute; left: 0; right: 0; top: calc(100% + 28px); text-align: center; z-index: 3; }
.walkhandle { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.45; color: rgba(255, 255, 255, 0.62); text-transform: none; letter-spacing: 0; }
.walkchips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.walkchip { font: inherit; font-size: 15px; font-weight: 600; color: #111111; background: #FFFFFF; border: none; border-radius: 999px; padding: 9px 18px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.walkcontinue { position: absolute; left: 50%; top: calc(100% + 84px); transform: translateX(-50%); background: #FFFFFF; color: #111111; border: none; font: inherit; font-size: 18px; font-weight: 700; letter-spacing: .02em; text-transform: none; padding: 16px 56px; border-radius: 999px; cursor: pointer; white-space: nowrap; max-width: calc(100vw - 48px); box-sizing: border-box; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s ease, visibility .35s ease; z-index: 3; }
.welcomepop.handleok #walkcontinue { opacity: 1; visibility: visible; pointer-events: auto; }
@keyframes walknamein { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.buddydot { position: absolute; left: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); width: 16px; height: 16px; z-index: 460; }
.buddydot i { display: block; width: 100%; height: 100%; border-radius: 50%; background: #111111; box-shadow: 0 0 16px 5px rgba(0, 0, 0, 0.28); transition: background .45s ease, box-shadow .45s ease; }
.welcomepop.w2 .buddydot, .welcomepop.w3 .buddydot { left: 50%; top: 50%; bottom: auto; width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.welcomepop.w2 .buddydot i, .welcomepop.w3 .buddydot i { background: #FFFFFF; box-shadow: 0 0 22px 8px rgba(255, 255, 255, 0.5); }
.buddydot[data-state="idle"] i { animation: bdpulse 2.6s ease-in-out infinite; }
.buddydot[data-state="guide"] i { animation: bdguide 1.5s ease-in-out infinite; }
.buddydot[data-state="happy"] i { animation: bdhop .39s ease-in-out 2; }
@keyframes bdpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.16); } }
@keyframes bdguide { 0%, 100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.13) translateY(3px); } }
@keyframes bdhop { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-15px) scale(1.1); } 70% { transform: translateY(0) scale(0.94); } }

/* Step 1 lakeside (Dec 1, the approved v4 prototype wired in):
   the code-drawn Summer Lakeside scene lives behind beat 1 of
   the walk. The stage shows only in the w1 state; the CSS
   gradient under the canvas is the fallback backdrop if the
   scene script never paints. The greeting, Go, Buddy dot and
   Log in are the walk's own elements, restyled white over the
   scene; the bottom grade runs black at the base to transparent
   halfway up, with the sun bloom layered over the canvas. */
.step1stage { position: fixed; inset: 0; overflow: hidden; z-index: 0; display: none; background: #000000; }
.welcomepop.w1 .step1stage { display: block; }
.step1stage video { display: block; width: 100%; height: 100%; object-fit: cover; }
.step1bloom { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.step1grade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0.34) 52%, rgba(0, 0, 0, 0.55) 74%, rgba(0, 0, 0, 0.88) 100%); }
.step1stage.wide .step1grade { background: linear-gradient(180deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0.24) 52%, rgba(0, 0, 0, 0.40) 74%, rgba(0, 0, 0, 0.68) 100%); }
.welcomecard { position: relative; z-index: 1; }
.welcomepop.w1 .heyscroll { color: #FFFFFF; position: relative; }
.welcomepop.w1 .heyscroll::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 135%; height: 230%; background: radial-gradient(ellipse at center, rgba(4, 26, 10, 0.34) 0%, rgba(4, 26, 10, 0.13) 55%, rgba(4, 26, 10, 0) 72%); filter: blur(4px); pointer-events: none; }
.welcomepop.w1 .welcomecard { transform: translateY(-11vh); }
.heyword { position: relative; text-shadow: 0 2px 18px rgba(6, 30, 10, 0.35), 0 0 4px rgba(6, 30, 10, 0.25); }
/* "come inside." (owner, Dec 3): one breathing line under
   the greeting hero on the Hello screen. It fades in once,
   gently (comeinsidein, the done line's arrival manner),
   then only breathes: comeinsidebreath is trancebreath's
   exact character (5.4s ease-in-out, opacity .6 to 1, the
   glow swelling with it). Reduced motion: static at .85,
   the done line's still treatment. */
.comeinside { margin: 20px 0 0; padding: 0 24px; text-align: center; font-family: "Helvetica Neue", Arial, "DejaVu Sans", sans-serif; font-size: 19px; font-weight: 500; letter-spacing: .015em; line-height: 1.3; color: #FFFFFF; animation: comeinsidein 1.6s ease both; }
.comeinside span { display: block; animation: comeinsidebreath 5.4s ease-in-out infinite; }
@keyframes comeinsidein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes comeinsidebreath { 0%, 100% { opacity: .6; text-shadow: 0 1px 10px rgba(0,0,0,.55), 0 0 14px rgba(255,255,255,.16); } 50% { opacity: 1; text-shadow: 0 1px 10px rgba(0,0,0,.5), 0 0 28px rgba(255,255,255,.4); } }
@media (prefers-reduced-motion: reduce) { .comeinside { animation: none; } .comeinside span { animation: none; opacity: .85; text-shadow: 0 1px 10px rgba(0,0,0,.55), 0 0 18px rgba(255,255,255,.25); } }
.welcomepop.w1 .welcomelogin { color: #FFFFFF; text-shadow: 0 1px 10px rgba(6, 30, 10, 0.45), 0 0 3px rgba(6, 30, 10, 0.35); }
.welcomepop.w1 .welcomesandbox { color: rgba(255, 255, 255, 0.55); }
.welcomepop.w1 .buddydot i { background: #FFFFFF; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.22), 0 2px 10px rgba(0, 0, 0, 0.4); }
.step1logo { display: none; }
.walkfade { position: fixed; inset: 0; background: #000000; opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 450; }
.walkfade.on { opacity: 1; }
.walkglow { position: fixed; left: 0; top: 0; width: 240vmax; height: 240vmax; margin: -120vmax 0 0 -120vmax; border-radius: 50%; background: radial-gradient(circle, #ffffff 0%, #ffffff 52%, rgba(255, 255, 255, 0.92) 64%, rgba(255, 255, 255, 0) 78%); opacity: 0; pointer-events: none; z-index: 455; }
@media (prefers-reduced-motion: reduce) { .walkglow { display: none; } }
.welcomepop.w1 .step1logo { display: block; position: fixed; top: calc(env(safe-area-inset-top, 0px) + 20px); left: 0; right: 0; text-align: center; color: #FFFFFF; font-size: 34px; z-index: 5; pointer-events: none; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); }
@media (prefers-reduced-motion: reduce) { .welcomepop.w1 .invwrap { animation: none; opacity: 1; } }


/* v144: statement exit scene + in-walk unlock layer */
.walkalpha, .walkokay { transition: opacity .45s cubic-bezier(.33,.66,.34,1); }
.welcomepop.walkexit .walkalpha, .welcomepop.walkexit .walkokay { opacity: 0; }
.walkunlock { position: absolute; inset: 0; z-index: 1; min-height: 0; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity .35s cubic-bezier(.33,.66,.34,1); }
.walkunlock.on { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .orbitspin { animation: none !important; } .walkunlock { transition: none; } }

/* v143: password dot ghosts, statement orbit ring, Buddy unlock screen */
.pwghost { position: fixed; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.5); z-index: 60; pointer-events: none; }
.orbitring { position: absolute; left: 50%; top: 12%; width: 96px; height: 96px; margin: -48px 0 0 -48px; z-index: 2; opacity: 0; transition: opacity .6s ease .3s; pointer-events: none; }
.welcomepop.w5 .orbitring { opacity: 1; }
.orbitring .orbitspin { position: absolute; inset: 0; }
.orbitring .orbitspin.go { animation: orbitspin 3.4s linear infinite; }
.orbitdot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.45); }
@keyframes orbitspin { to { transform: rotate(360deg); } }
body.unlockpage { background: #000000; }
.unlockwrap { min-height: 100dvh; background: #000000; color: #FFFFFF; display: flex; flex-direction: column; align-items: center; padding: 30px 20px 44px; box-sizing: border-box; font-family: "Helvetica Neue", Arial, "DejaVu Sans", sans-serif; }
.unlockh { font-size: 30px; font-weight: 700; line-height: 1.2; text-align: center; margin: 0 0 18px; text-transform: none; letter-spacing: 0; color: #FFFFFF; }
.unlockstage { position: relative; width: min(84vw, 320px); height: min(74vw, 300px); border-radius: 26px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.unlockflash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.9), rgba(255,255,255,0) 65%); opacity: 0; pointer-events: none; }
.unlockwrap.converted .unlockflash { animation: unlockflash .6s ease-out .05s both; }
@keyframes unlockflash { 0% { opacity: 0; transform: scale(0.55); } 35% { opacity: 0.85; } 100% { opacity: 0; transform: scale(1.15); } }
.unlockdot { left: 50%; top: 50%; bottom: auto; width: 22px; height: 22px; margin: -11px 0 0 -11px; z-index: 3; }
.unlockdot i { background: #FFFFFF; box-shadow: 0 0 22px 8px rgba(255, 255, 255, 0.5); }
.unlockwrap.converted .unlockdot { animation: unlockdotout .5s ease both; }
@keyframes unlockdotout { to { transform: scale(2.6); opacity: 0; } }
.unlockpet { width: min(64vw, 250px); opacity: 0; transform: scale(0.45); background-color: transparent; cursor: default; }
.unlockstage img.unlockpet { object-fit: contain; }
.unlockwrap.converted .unlockpet { animation: unlockpop .55s cubic-bezier(.25,.7,.3,1.28) .05s both; }
.unlockpet.revealed { animation: none; opacity: 1; transform: none; }
@keyframes unlockpop { 0% { opacity: 0; transform: scale(0.45); } 100% { opacity: 1; transform: scale(1); } }
.unlockcap { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; font-size: 17px; font-weight: 600; color: #FFFFFF; text-shadow: 0 1px 10px rgba(0,0,0,0.45); opacity: 0; pointer-events: none; z-index: 2; }
.unlockwrap.converted .unlockcap { animation: unlockcap 2.6s ease .15s both; }
@keyframes unlockcap { 0% { opacity: 0; } 18% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }
.unlockpetname { margin: 14px 0 0; font-size: 18px; font-weight: 700; text-align: center; opacity: 0; transition: opacity .5s ease .1s; }
.unlockwrap.converted .unlockpetname { opacity: 1; }
.unlockform { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 430px; }
.unlocksay { display: flex; align-items: center; gap: 12px; margin-top: 22px; max-width: 340px; }
.unlockface { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none; background-repeat: no-repeat; border: 2px solid rgba(255,255,255,0.65); box-sizing: border-box; }
.unlockface img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.unlockline { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.35; }
.unlockname { width: min(320px, 84vw); border-bottom: 2px solid rgba(255,255,255,0.85); margin-top: 20px; }
.unlockname:focus-within { border-bottom-color: #FFFFFF; }
.unlockname input { width: 100%; box-sizing: border-box; background: transparent; border: none; border-radius: 0; color: #FFFFFF; caret-color: #FFFFFF; font-size: 30px; font-weight: 600; padding: 0 2px 10px; text-align: center; text-transform: none; letter-spacing: 0; }
.unlockname input:focus { outline: none; }
.unlockname input::placeholder { color: rgba(255,255,255,0.35); }
.unlocklabel { margin: 30px 0 0; font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.72); text-align: center; }
.unlockwrap .pickgrid { width: 100%; max-width: 430px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.unlockwrap .picktile { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.28); color: #FFFFFF; box-shadow: none; }
.unlockwrap .picktile.on { border-color: #FFFFFF; outline: 2px solid #FFFFFF; }
.unlockwrap .bgswatches { justify-content: center; }
.unlockwrap { transition: background-color .7s ease, color .7s ease; }
.unlockwrap.born { background: #FFFFFF; color: #111111; }
.unlockwrap.born .unlockh { color: #111111; }
.unlockwrap.born .unlockname input { color: #111111; caret-color: #111111; }
.unlockwrap.born .unlockname input::placeholder { color: rgba(0,0,0,0.35); }
.unlockwrap.born .unlockcontinue { background: #111111; color: #FFFFFF; }
.walkwhy { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; align-items: center; padding: 0 22px; box-sizing: border-box; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.walkwhy.on { opacity: 1; }
.walkwhy.out { opacity: 0; }
.walkwhyq { margin: 12dvh 0 0; font-size: 25px; font-weight: 700; color: #FFFFFF; text-align: center; line-height: 1.25; }
.walkwhyopts { margin-top: auto; margin-bottom: 15dvh; width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 10px; }
.walkwhyopt { pointer-events: auto; appearance: none; background: transparent; border: 1px solid rgba(255,255,255,0.4); color: #FFFFFF; font: inherit; font-size: 16.5px; font-weight: 600; padding: 13px 18px; border-radius: 999px; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.walkwhyopt.picked { background: #FFFFFF; color: #111111; border-color: #FFFFFF; }
.walkwhyopts.grid { display: grid; grid-template-columns: 1fr 1fr; width: min(440px, 88vw); align-content: end; }
.whyswatch { display: inline-block; width: 13px; height: 13px; border-radius: 50%; margin-right: 9px; vertical-align: -1px; border: 1px solid rgba(255, 255, 255, 0.45); }
body.barewizard .alphabanner, body.barewizard header, body.barewizard .udrawer, body.barewizard footer, body.barewizard .bottomnav { display: none !important; }
body.barewizard main { padding-top: 10px; }
.unlockwrap .bgswatch { border-color: rgba(255,255,255,0.28); color: #FFFFFF; }
.unlockwrap .bgswatch.sel { border-color: #FFFFFF; outline: 2px solid #FFFFFF; }
.unlockwrap .bgswatch .bgsw { border-color: rgba(255,255,255,0.28); }
.unlockcontinue { margin-top: 36px; background: #FFFFFF; color: #111111; border: none; font: inherit; font-size: 18px; font-weight: 700; letter-spacing: .02em; text-transform: none; padding: 16px 64px; border-radius: 999px; cursor: pointer; white-space: nowrap; max-width: calc(100vw - 48px); box-sizing: border-box; }
.unlockui { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.unlockwrap.converted .unlockui { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .unlockpet, .unlockdot, .unlockflash, .unlockcap, .unlockui, .unlockpetname { animation: none !important; transition: none !important; } .unlockui, .unlockpetname { opacity: 1; transform: none; } .unlockpet { opacity: 1; transform: none; } .unlockdot { display: none; } .unlockcap { opacity: 1; } .orbitring { animation: none !important; } }


/* v145: the ready line, spoken on the black during the exit scene */
.walkready { position: fixed; left: 16px; right: 16px; margin: 0; text-align: center; font-family: "Helvetica Neue", Arial, "DejaVu Sans", sans-serif; font-size: 24px; font-weight: 600; line-height: 1.35; color: #FFFFFF; opacity: 0; transition: opacity .35s ease; z-index: 5; pointer-events: none; }
.walkready.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .walkready { transition: none; } }


/* v146: name chars collected, city credential orbs, soul ring */
.nameghost { position: fixed; z-index: 60; pointer-events: none; color: #FFFFFF; line-height: 1.2; text-shadow: 0 0 12px rgba(255, 255, 255, 0.45); }
.walkname { transition: border-color .3s ease; }
.walkmeta { transition: opacity .3s ease; }
.welcomepop.namecollect .walkname { border-bottom-color: transparent; }
.welcomepop.namecollect .walkmeta { opacity: 0; }
.welcomepop.namecollect #walkcontinue { opacity: 0; visibility: hidden; pointer-events: none; }
.credorbit { position: absolute; left: 50%; top: 43%; width: 76px; height: 76px; margin: -38px 0 0 -38px; z-index: 2; opacity: 0; transition: opacity .6s ease .3s; pointer-events: none; }
.welcomepop.w4 .credorbit { opacity: 1; }
.credorbit .credspin { position: absolute; inset: 0; }
.credorbit .credspin.go { animation: orbitspin 3.4s linear infinite; }
.credball { position: absolute; width: 11px; height: 11px; border-radius: 50%; }
.credball.red { background: #F40000; box-shadow: 0 0 12px 4px rgba(244, 0, 0, 0.55); }
.credball.cyan { background: #00E5FF; box-shadow: 0 0 12px 4px rgba(0, 229, 255, 0.55); }
@media (prefers-reduced-motion: reduce) { .credorbit .credspin { animation: none !important; } }

/* v147: password-beat orb (red from the name beat; cyan joins at collection),
   unlock body pick, three beats, aliveness, save celebration */
.pworbit { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; z-index: 2; opacity: 0; transition: opacity .6s ease .3s; pointer-events: none; }
.welcomepop.w3 .pworbit { opacity: 1; }
.pworbit .credspin { position: absolute; inset: 0; }
.pworbit .credspin.go { animation: orbitspin 3.4s linear infinite; }
.pworbit .credball.cyan { opacity: 0; transform: scale(0.3); transition: opacity .55s ease, transform .55s ease; }
.pworbit.paired .credball.cyan { opacity: 1; transform: scale(1); }
.unlockpet { display: none; }
.unlockpet.chosen { display: block; }
.unlockface { display: none; }
.unlockface.chosen { display: block; }
[data-outfitbox] { display: none; }
[data-outfitbox].chosen { display: block; }
.beatpanel { display: none; flex-direction: column; align-items: center; width: 100%; }
.unlockwrap.b1 .bp1 { display: flex; }
.unlockwrap.b2 .bp2 { display: flex; }
.unlockwrap.b3 .bp3 { display: flex; }
.bodyopts { display: flex; gap: 14px; justify-content: center; width: 100%; max-width: 430px; margin-top: 26px; }
.bodyopt { flex: 1; max-width: 196px; background: rgba(255,255,255,0.07); border: 2px solid rgba(255,255,255,0.28); border-radius: 20px; padding: 16px 10px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; font: inherit; color: #FFFFFF; }
.bodyopt:active { border-color: #FFFFFF; }
.bodyart { width: 118px; height: 118px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.bodyart .petsprite { display: block; width: 118px; }
.bodyart img { width: 118px; height: 118px; object-fit: contain; display: block; }
.bodyname { font-size: 19px; font-weight: 700; pointer-events: none; text-transform: none; }
.bodyopt { text-transform: none; }
.unlockglow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.30), rgba(255,255,255,0) 62%); opacity: 0.45; animation: unlockglowpulse 2.8s ease-in-out infinite; pointer-events: none; }
@keyframes unlockglowpulse { 0%, 100% { opacity: 0.30; transform: scale(0.92); } 50% { opacity: 0.62; transform: scale(1.05); } }
.unlockwrap.converted .unlockpet.chosen { animation: unlockpop .55s cubic-bezier(.25,.7,.3,1.28) .05s both, unlockalive 3.8s ease-in-out 1s infinite; }
.unlockpet.revealed { animation: unlockalive 3.8s ease-in-out infinite !important; opacity: 1; transform: none; }
@keyframes unlockalive { 0%, 100% { transform: scale(1) translateY(0); } 12% { transform: scale(1) translateY(-7px); } 24% { transform: scale(1) translateY(0); } 46% { transform: scale(1) translateY(0); } 54% { transform: scale(-1, 1) translateY(-5px); } 64% { transform: scale(-1, 1) translateY(0); } 88% { transform: scale(-1, 1) translateY(0); } 96% { transform: scale(1) translateY(-5px); } }
.unlockwrap.celebrating .unlockpet.chosen { animation: unlockcelebrate .48s ease-in-out infinite !important; }
@keyframes unlockcelebrate { 0% { transform: scale(1) translateY(0); } 25% { transform: scale(1) translateY(-16px); } 50% { transform: scale(-1, 1) translateY(0); } 75% { transform: scale(-1, 1) translateY(-16px); } 100% { transform: scale(1) translateY(0); } }
.celebring { position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; margin: -65px 0 0 -65px; border: 3px solid rgba(255,255,255,0.75); border-radius: 50%; animation: ringexpand 1.15s ease-out both; pointer-events: none; z-index: 4; }
@keyframes ringexpand { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pworbit .credspin { animation: none !important; } .pworbit .credball.cyan { transition: none; } .unlockglow { animation: none; } .unlockwrap.converted .unlockpet.chosen { animation: none !important; opacity: 1; } .unlockpet.revealed { animation: none !important; } .celebring { display: none; } }

/* v147 age beat: step renumber overrides (4 password, 5 city, 6 statement); v149: 6 is about-you, 7 is statement */
.welcomepop.w7 { background: #000000; color: #FFFFFF; }
.welcomepop.w7 .walkdots, .welcomepop.w7 .welcomelook, .welcomepop.w7 .welcomelogin, .welcomepop.w7 .welcomesandbox { display: none; }
.welcomepop.w4 .buddydot { left: 50%; top: 50%; bottom: auto; width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.welcomepop.w4 .buddydot i { background: #FFFFFF; box-shadow: 0 0 22px 8px rgba(255, 255, 255, 0.5); }
.welcomepop.w5 .buddydot { left: 50%; top: 43%; bottom: auto; width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.welcomepop.w5 .buddydot i { background: #FFFFFF; box-shadow: 0 0 22px 8px rgba(255, 255, 255, 0.5); }
.welcomepop.w7 .buddydot { left: 50%; top: calc(50% + 110px); bottom: auto; width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.welcomepop.w7 .buddydot i { background: #FFFFFF; box-shadow: 0 0 22px 8px rgba(255, 255, 255, 0.5); }
.welcomepop.w3 .walkstep[data-wstep="3"] { display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: clamp(340px, 46dvh, 430px); position: relative; }
.welcomepop.w4 .walkstep[data-wstep="4"] { display: flex; flex-direction: column; justify-content: space-between; height: clamp(300px, 40dvh, 380px); position: relative; }
.welcomepop.w5 .walkstep[data-wstep="5"] { display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: clamp(340px, 46dvh, 430px); position: relative; }
.welcomepop.w7 .walkstep[data-wstep="7"] { display: flex; flex-direction: column; justify-content: space-between; height: clamp(360px, 50dvh, 480px); position: relative; }
.welcomepop.w5 .credorbit { opacity: 1; }
.welcomepop.w4 .credorbit { opacity: 0; }
.welcomepop.w7 .orbitring { opacity: 1; }
.welcomepop.w5 .orbitring { opacity: 0; }

/* v149: about-you beat (w6) + Buddy page entrance */
.welcomepop.w6 .buddydot { left: 50%; top: 32%; bottom: auto; width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.welcomepop.w6 .buddydot i { background: #FFFFFF; box-shadow: 0 0 22px 8px rgba(255, 255, 255, 0.5); }
.welcomepop.w6 .walkstep[data-wstep="6"] { display: flex; flex-direction: column; justify-content: flex-start; height: clamp(430px, 58dvh, 560px); position: relative; }
.welcomepop.w6 .ayfields { margin-top: 126px; }
.welcomepop.w6 .aycontinue { margin-top: 22px; }
.ayfields { display: flex; flex-direction: column; gap: 16px; width: min(320px, 84vw); margin: 0 auto; }
.aylabel { display: block; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); text-align: left; }
.aylabel input { display: block; width: 100%; box-sizing: border-box; background: transparent; border: none; border-bottom: 2px solid rgba(255, 255, 255, 0.85); border-radius: 0; color: #FFFFFF; caret-color: #FFFFFF; font: inherit; font-size: 23px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 3px 2px 7px; margin-top: 3px; }
.aylabel input:focus { outline: none; border-bottom-color: #FFFFFF; }
#walkayhome { background: #EDEDED; border: none; border-radius: 12px; color: #111111; caret-color: #111111; padding: 12px 14px; }
/* v258: one character system (the Soul Sprite). Avatar hidden from menus; sprite lives in the bio on mobile. */
.widgetgrid.solo { justify-content: center; }
.biosprite { display: none; }
.heropet { display: none; }
@media (max-width: 700px) { .herogrid.haspet { display: grid; grid-template-columns: minmax(0, 1fr) clamp(84px, 27%, 132px); gap: 0; align-items: stretch; } .heromain { min-width: 0; } .herogrid.haspet .heromain { padding: 16px 14px 16px 16px; } .heropet { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 12px; border-left: 1px solid color-mix(in srgb, var(--room-text, #111111) 14%, transparent); background: color-mix(in srgb, var(--room-text, #111111) 5%, transparent); } .heropet .biosprite { display: block; width: 100%; } .biospriteimg { display: block; width: 100%; height: auto; background-repeat: no-repeat; } .roomhero:has(.herogrid.haspet) { padding: 0; overflow: hidden; } .roomhero:has(.herogrid.haspet) .roomheroact { padding: 0 16px 16px; } }
/* v284: hero pet is a square stage tile, not a full-height side column.
   Phone: tile sits top-aligned beside the identity block. Wider layouts
   (the hero lives in a narrow rail) stack the tile under the identity. */
.herogrid.haspet { display: flex; flex-direction: row; gap: 12px; align-items: flex-start; }
.herogrid.haspet .heromain { flex: 1 1 auto; min-width: 0; padding: 0; }
.herogrid.haspet .heropet { display: block; position: relative; flex: none; width: clamp(120px, 36%, 152px); aspect-ratio: 1 / 1; padding: 0; border: 1px solid var(--room-cardline, var(--line)); border-radius: 14px; background: var(--room-surface, var(--panel2)); overflow: hidden; }
.herogrid.haspet .heropet .biosprite { display: block; position: absolute; inset: 0; }
.herogrid.haspet .heropet .biospriteimg, .herogrid.haspet .heropet .biosprite > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.roomhero:has(.herogrid.haspet) { padding: 12px 16px; overflow: visible; flex-wrap: nowrap; }
.roomhero:has(.herogrid.haspet) .roomheroact { padding: 0; }
@media (min-width: 701px) { .herogrid.haspet { flex-direction: column; } .herogrid.haspet .heromain { width: 100%; } .herogrid.haspet .heropet { width: min(100%, 264px); } }
@media (max-width: 700px) { .roomhero:has(.herogrid.haspet) { padding: 12px 14px; } }
.roomheroact .loginfollow { height: 38px; padding: 0 10px; font-size: 13px; }
.roomheroact .visitweb { flex: 0 0 38px; height: 38px; padding: 0; }
.roomheroact .visitweb svg { width: 17px; height: 17px; display: block; }
.roomheroact .heroprimary { flex: 1 1 auto; }
.roomheroact .heropair { flex: 0 1 auto; }
.roomheroact .accentbtn { height: 38px; display: inline-flex; align-items: center; justify-content: center; }
.roomheroact .paybtn { flex: 0 0 38px; height: 38px; padding: 0; font-size: 16px; }
.roomheroact .navform .followbtn { height: 38px; padding: 0 10px; font-size: 13px; }
.roomheroact .accentbtn { min-height: 38px; padding: 8px 18px; font-size: 13px; }
.roomheroact .herobtn2 { min-height: 38px; padding: 8px 18px; font-size: 13px; }
@media (max-width: 480px) { .roomheroact { gap: 6px; } .roomheroact .loginfollow, .roomheroact .navform .followbtn { height: 36px; padding: 0 8px; font-size: 12px; } .roomheroact .visitweb { flex: 0 0 36px; height: 36px; } .roomheroact .paybtn { flex: 0 0 36px; height: 36px; font-size: 15px; } .herostatnum { font-size: 19px; } .herostatlab { font-size: 12px; } }
#walkayhome:focus { outline: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.65); }
.aychips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.aychip { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.35); color: #FFFFFF; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.aychip.on { background: #FFFFFF; color: #111111; border-color: #FFFFFF; }
.aycontinue { position: relative; left: auto; top: auto; transform: none; opacity: 1; visibility: visible; pointer-events: auto; margin: 0 auto; display: block; }
.unlockgleam { position: absolute; left: 50%; top: 50%; width: 340px; height: 340px; margin: -170px 0 0 -170px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.55) 34%, rgba(255, 255, 255, 0) 68%); opacity: 0; pointer-events: none; z-index: 4; }
.unlockgleam.go { animation: unlockgleam .8s ease-out both; }
@keyframes unlockgleam { 0% { opacity: 0; transform: scale(0.12); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
.unlockstreak { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; pointer-events: none; z-index: 4; opacity: 0; }
.unlockstreak i { position: absolute; left: 50%; top: 50%; width: 84px; height: 10px; margin: -5px 0 0 -6px; border-radius: 999px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0)); filter: blur(1px); transform-origin: 6px 50%; }
.unlockstreak.go { opacity: 1; }
@keyframes unlockspin { to { transform: rotate(360deg); } }
.unlockwrap.preenter .unlockh, .unlockwrap.preenter .beatpanel { opacity: 0; pointer-events: none; }
.unlockwrap.entered .unlockh { animation: unlockuiin .5s ease both; }
.unlockwrap.entered .beatpanel { animation: unlockuiin .5s ease .08s both; }
@keyframes unlockuiin { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
/* v149: Buddy introduction lines inside the stage, desktop scale */
.buddyintro { position: absolute; left: 12px; right: 12px; bottom: 20px; margin: 0; text-align: center; font-size: 23px; font-weight: 600; line-height: 1.35; color: #FFFFFF; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity .18s ease; z-index: 5; pointer-events: none; }
.buddyintro.on { opacity: 1; }
@media (min-width: 900px) {
  .unlockh { font-size: 46px; margin-bottom: 28px; }
  .unlockstage { width: 580px; height: 460px; border-radius: 36px; }
  .unlockpet { width: 460px; }
  .unlockdot { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .unlockdot i { box-shadow: 0 0 42px 18px rgba(255, 255, 255, 0.55); }
  .bodyopts { max-width: 780px; gap: 24px; margin-top: 38px; }
  .bodyopt { max-width: 350px; padding: 30px 18px 26px; border-radius: 28px; gap: 18px; }
  .bodyart { width: 200px; height: 200px; }
  .bodyart .petsprite { width: 200px; }
  .bodyart img { width: 200px; height: 200px; }
  .bodyname { font-size: 24px; }
  .buddyintro { font-size: 32px; bottom: 30px; }
  .unlockgleam { width: 640px; height: 640px; margin: -320px 0 0 -320px; }
  .unlockstreak { width: 210px; height: 210px; margin: -105px 0 0 -105px; }
  .unlockstreak i { width: 150px; height: 14px; margin: -7px 0 0 -6px; }
  .unlockform { max-width: 660px; }
  .unlockname { width: 460px; }
  .unlockcap { font-size: 23px; bottom: 18px; }
  .unlockintro { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .unlockgleam, .unlockstreak { display: none !important; } .unlockwrap.entered .unlockh, .unlockwrap.entered .beatpanel { animation: none !important; } }
.welcomepop.w4 .pworbit { opacity: 1; }
.welcomepop.w3 #walkpwback { display: none; }
.welcomepop.w4 #walkpwback { display: block; }
.welcomepop.w5 #walkcityback { display: block; }
.credball.green { background: #00C000; box-shadow: 0 0 12px 4px rgba(0, 192, 0, 0.55); }
.pworbit .credball.green { opacity: 0; transform: scale(0.3); transition: opacity .55s ease, transform .55s ease; }
.pworbit.aged .credball.green { opacity: 1; transform: scale(1); }
.agescroll { margin-top: 15dvh; height: 190px; overflow-y: auto; scroll-snap-type: y mandatory; width: min(320px, 84vw); padding: 80px 0; box-sizing: border-box; scrollbar-width: none; }
.agescroll::-webkit-scrollbar { display: none; }
.ageopt { display: block; width: 100%; background: none; border: none; color: rgba(255,255,255,0.38); font: inherit; font-size: 28px; font-weight: 700; line-height: 1.25; padding: 9px 0; scroll-snap-align: center; cursor: pointer; text-align: center; }
.ageopt.on { color: #FFFFFF; font-size: 42px; }
.walkagecontinue { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease; }
.welcomepop.ageok .walkagecontinue { opacity: 1; visibility: visible; pointer-events: auto; }
.agepanel { max-width: 330px; text-align: center; margin: auto; }
.agepaneltext { font-size: 20px; font-weight: 600; line-height: 1.4; margin: 0 0 24px; }
.agestopback { background: none; border: none; color: rgba(255,255,255,0.65); font: inherit; font-size: 16px; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 10px; }
.ageghost { position: fixed; z-index: 60; width: 14px; height: 14px; border-radius: 50%; background: #F40000; box-shadow: 0 0 12px 4px rgba(244, 0, 0, 0.55); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .pworbit .credball.green { transition: none; } .agescroll { scroll-snap-type: none; } }

@media (prefers-reduced-motion: reduce) { .buddydot i, .walkname, .walkpw, .walkokay { animation: none; } .welcomepop.w1 .invwrap { animation: none; opacity: 1; } .welcomepop { transition: none; } .heyword { transition: none; } .walkcontinue, .walkpwcontinue, .walkcitycontinue { transition: none; } }

/* v148: persistent orb ring bound to the Buddy, gate-screen
   clearance, age type-in field, fake cursor and ghost text
   on the input beats, idle nudge, unlock suspense and intro
   beat, button width clamps. */
.orbring { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; pointer-events: none; }
.orbspin { position: absolute; inset: 0; animation: orbitspin 3.4s linear infinite; }
.orbball { position: absolute; width: 11px; height: 11px; border-radius: 50%; }
@keyframes orbfloat { from { transform: translate(0, 0); } 50% { transform: translate(3px, -4px); } to { transform: translate(-2.5px, 2.5px); } }
@media (prefers-reduced-motion: reduce) { .orbball { animation: none !important; } }
.orbpulse { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; border: 2px solid #FFFFFF; opacity: 0; pointer-events: none; }
.welcomepop { overflow-x: hidden; }
.unlockwrap { overflow-x: hidden; }
.welcomepop.gate .buddydot { top: calc(50% + 30px); }

/* Login walk: the login page in the signup walk's language
   (owner spec, Dec 2). Black stage, the orb center screen as
   host, underline fields revealed one at a time, quiet
   corners: Sign up bottom right back into the walk, Policies
   a small link bottom left, help behind the orb. */
.loginwalk { position: fixed; inset: 0; z-index: 400; background: #000000; color: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; overflow-y: auto; font-family: "Helvetica Neue", Arial, "DejaVu Sans", sans-serif; }
.lwcenter { display: flex; flex-direction: column; align-items: center; width: min(340px, 88vw); }
.lworb { position: relative; left: auto; bottom: auto; width: 22px; height: 22px; margin: 0 auto 30px; background: none; border: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lworb i { background: #FFFFFF; box-shadow: 0 0 22px 8px rgba(255, 255, 255, 0.5); }
.lwq { margin: 0 0 34px; }
.lwform { width: 100%; margin: 0; }
.lwstep { display: flex; flex-direction: column; align-items: center; width: 100%; }
.lwstep[hidden] { display: none !important; }
.lwreveal { animation: walknamein .55s ease both; }
.loginwalk .lwstep input { background: transparent; border-color: transparent; }
.loginwalk .lwname .fakecursor { animation: cursorblink 1.1s linear infinite; }
.loginwalk .lwpw input::placeholder { color: rgba(255, 255, 255, 0.35); }
.lwhelp { color: rgba(255, 255, 255, 0.55); font-size: 14px; line-height: 1.45; text-align: center; margin: 10px 0 24px; }
.lwgo { background: #FFFFFF; color: #111111; border: none; font: inherit; font-size: 18px; font-weight: 700; letter-spacing: .02em; padding: 15px 52px; border-radius: 999px; cursor: pointer; margin-top: 2px; }
.lwgo:disabled { opacity: .55; cursor: default; }
.lwerr { background: none; border: none; color: #FF9D8A; padding: 0; margin: 18px 0 0; font-size: 15px; line-height: 1.45; text-align: center; }
.lwerr[hidden] { display: none !important; }
.lwsignup { position: absolute; right: 24px; bottom: calc(22px + env(safe-area-inset-bottom)); color: #FFFFFF; font-size: 16px; font-weight: 600; text-decoration: none; padding: 8px 0 8px 12px; }
.lwpolicies { position: absolute; left: 24px; bottom: calc(22px + env(safe-area-inset-bottom)); color: rgba(255, 255, 255, 0.55); font-size: 14px; text-decoration: none; padding: 8px 12px 8px 0; }
.lwscrim { position: fixed; inset: 0; z-index: 500; background: rgba(0, 0, 0, 0.72); display: flex; align-items: center; justify-content: center; padding: 22px; box-sizing: border-box; }
.lwscrim[hidden] { display: none !important; }
.lwcard { background: #101010; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; padding: 26px 24px; width: min(360px, 92vw); box-sizing: border-box; color: #FFFFFF; text-align: center; }
.lwcard h2 { font-size: 22px; font-weight: 600; margin: 0 0 14px; text-transform: none; letter-spacing: 0; }
.lwcard p { color: rgba(255, 255, 255, 0.75); font-size: 15px; line-height: 1.55; margin: 0 0 14px; }
.lwcard a { color: #FFFFFF; }
.lwclose { background: #FFFFFF; color: #111111; border: none; font: inherit; font-size: 16px; font-weight: 700; padding: 12px 28px; border-radius: 999px; cursor: pointer; margin-top: 4px; }
.welcomepop.gate .agepanel:not([hidden]) { position: absolute; inset: 0; max-width: none; margin: 0; display: flex; flex-direction: column; align-items: center; }
.welcomepop.gate .agepaneltext { margin-top: 8dvh; max-width: 300px; }
.welcomepop.gate .agepanel .walkokay { position: static; margin-top: auto; margin-bottom: 1.5dvh; }
.welcomepop.gate .agepanel .agestopback { margin-top: auto; margin-bottom: 1.5dvh; }
.agefieldwrap:not([hidden]) { display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: 100%; width: 100%; }
.walkage { display: flex; align-items: baseline; justify-content: center; width: min(320px, 84vw); border-bottom: 2px solid rgba(255, 255, 255, 0.85); transition: border-color .3s ease; }
.walkage:focus-within { border-bottom-color: #FFFFFF; }
.walkage input { width: 24px; box-sizing: border-box; background: transparent; border: none; border-radius: 0; color: #FFFFFF; caret-color: #FFFFFF; font-size: 38px; font-weight: 600; padding: 0 2px 12px; text-align: center; text-transform: none; letter-spacing: 0; }
.walkage input:focus { outline: none; }
.fakecursor { flex: none; width: 2px; height: 30px; background: #FFFFFF; }
@keyframes cursorblink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
.walkghost { font-size: 38px; font-weight: 600; color: rgba(255, 255, 255, 0.33); white-space: nowrap; }
.welcomepop.w2 .walkname { animation: namefadein .45s ease both; }
@keyframes namefadein { from { opacity: 0; } to { opacity: 1; } }
.walkstep[data-wstep="2"] .walkq { position: relative; }
.walkomen { position: absolute; left: 50%; bottom: calc(100% + 14px); transform: translateX(-50%); white-space: nowrap; margin: 0; text-align: center; font-size: 12.5px; font-weight: 500; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.42); opacity: 0; pointer-events: none; }
.welcomepop.w2 .walkomen { animation: omenin 2.6s ease 1.6s both; }
@keyframes omenin { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .welcomepop.w2 .walkomen { animation: none; opacity: 1; } }
.walkname.hastext .fakecursor, .walkname.hastext .walkghost, .walkage.hastext .fakecursor, .walkage.hastext .walkghost { display: none; }
.walkname:not(.hastext) input, .walkage:not(.hastext) input { caret-color: transparent; }
.walkpw { position: relative; }
.pwcursor { position: absolute; left: calc(50% - 84px); bottom: 13px; top: auto; transform: none; }
.pwghostword { position: absolute; left: 50%; top: 0; transform: translateX(-50%); pointer-events: none; }
.walkpw.hastext .pwghostword, .walkpw:focus-within .pwghostword { display: none; }
.walkpw:focus-within .pwcursor, .walkpw.hastext .pwcursor { display: none; }
.walkname.nudging, .walkage.nudging, .walkpw.nudging { animation: fieldnudge 1.2s ease; }
@keyframes fieldnudge { 0%, 100% { border-bottom-color: rgba(255, 255, 255, 0.85); box-shadow: 0 2px 0 0 rgba(255, 255, 255, 0); } 35% { border-bottom-color: #FFFFFF; box-shadow: 0 2px 0 0 rgba(255, 255, 255, 0.85); } 65% { border-bottom-color: rgba(255, 255, 255, 0.85); box-shadow: 0 2px 0 0 rgba(255, 255, 255, 0); } }
.cityghost { position: fixed; z-index: 60; pointer-events: none; color: #FFFFFF; font-weight: 700; text-shadow: 0 0 14px rgba(255, 230, 0, 0.65); white-space: nowrap; }
.cityghost.cityfly { text-shadow: 0 0 14px rgba(199, 36, 214, 0.65); }
.bodyopt.pickfade { opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.bodyopt.pickack { animation: pickack .55s ease both; pointer-events: none; }
@keyframes pickack { 0% { transform: scale(1); } 35% { transform: scale(1.06); border-color: #FFFFFF; box-shadow: 0 0 26px rgba(255, 255, 255, 0.35); } 100% { transform: scale(1.02); opacity: 0; } }
.unlockintro { font-size: 27px; font-weight: 700; line-height: 1.3; text-align: center; margin: 26px 0 0; text-transform: none; letter-spacing: 0; }
.unlockwrap.b2 .unlockcap, .unlockwrap.b3 .unlockcap, .walkunlock.b2 .unlockcap, .walkunlock.b3 .unlockcap { opacity: 0 !important; }
.invwidget { margin: 18px 0; }
.invlink { font-weight: 700; word-break: break-all; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.invwidget { margin-top: 18px; }
.invlink { font-size: 17px; font-weight: 600; word-break: break-all; background: var(--panel2); border-radius: 12px; padding: 12px 14px; }
@media (prefers-reduced-motion: reduce) { .orbspin { animation: none !important; } .fakecursor { animation: none; } .bodyopt.pickack { animation: none; opacity: 0; } .walkname.nudging, .walkage.nudging, .walkpw.nudging { animation: none; } }
