/* Ridgecrest Raw: dark, gritty, one loud accent. No polish. */
:root {
  --bg: #0b0b0b; --panel: #161616; --panel2: #1e1e1e; --line: #2a2a2a;
  --text: #f4f1ea; --muted: #9b968b; --accent: #ff4d00; --accent-dark: #c23a00;
  --good: #58d13d; --bad: #ff3b30;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
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: #000; 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: #2a0d0a; border: 1px solid var(--bad); color: #ffb3ad; padding: 10px 12px; margin: 0 0 14px; }
.alert { display: flex; align-items: flex-start; gap: 10px; background: #1c1210; 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: #12260c; border: 1px solid var(--good); color: #c9f2bd; 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, #343a33); }
.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; }
.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, #F1EEE6) 22%, transparent); }
.roomwrap .herostatlab { color: var(--room-text, var(--text)); opacity: 0.72; }
.roomwrap .herobtn2 { background: var(--room-surface, #111311); color: var(--room-text, var(--text)); border-color: color-mix(in srgb, var(--room-text, #F1EEE6) 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: #ff8a7a; }
.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 #3d443d; box-shadow: 0 2px 0 rgba(0,0,0,0.4); 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.4); }
.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 #3d443d; border-radius: 12px; padding: 16px; margin-top: 16px; box-shadow: 0 2px 0 rgba(0,0,0,0.4); }
.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.4); 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.4); 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, #8D938B); }
.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.4); }
.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: #000; 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: #F45A1F; 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: #F1EEE6; color: #000; border-color: #F1EEE6; 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: #000; 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: #000; 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: #000; 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: #F45A1F; }
.articlebody { line-height: 1.65; font-size: 17px; }
.articlebody h2 { margin: 26px 0 8px; }
.articlebody a { color: #F45A1F; }
.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: #000; 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; }
.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; }
.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: var(--text); 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: #F1EEE6 !important; color: #000 !important; border: 1px solid #F1EEE6 !important; }
.followbtn.following.followwhite { background: #F1EEE6 !important; color: #000 !important; border: 1px solid #F1EEE6 !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: var(--text); 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 #343A33; 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: #111311; border-top: 1px solid #343A33; 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: #F1EEE6; 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: #242824; }
  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; }
.roomoverlay { position: fixed; inset: 0; z-index: -1; background: var(--room-overlay, rgba(5, 6, 5, 0.62)); pointer-events: none; }
.roomwrap { background: color-mix(in srgb, var(--room-bg, #090a09) 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 #343A33; border-radius: 16px; }
.widgetgrid #room-avatar { background: #111311; }
.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; }
.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: #F1EEE6; 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 #343A33; border-radius: 16px; overflow: hidden; padding: 20px 16px; margin-bottom: 16px; background: #111311; }
.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 rgba(241,238,230,0.22); 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 #343A33; 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: #242824; color: #F1EEE6; border: 1px solid #343A33; 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: #FF7A36; background: none; border: 1px solid #71351F; 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: #FF7A36; 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 #343A33; background: #111311; color: #F1EEE6; 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: #111311; border: 1px solid #343A33; 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: #F1EEE6; 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: #242824; }
.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: #242824; color: #F1EEE6; border: 1px solid #343A33; 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 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; } }
.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.05), 0 2px 4px rgba(0, 0, 0, 0.38), 0 18px 38px rgba(0, 0, 0, 0.46)); }
.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.05), 0 2px 4px rgba(0, 0, 0, 0.38), 0 18px 38px rgba(0, 0, 0, 0.46)); }
.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: #242824; color: #F1EEE6; border: 1px solid #343A33; }
#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: #242824; color: #F1EEE6; border: 1px solid #343A33; }
#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: #111311; 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: #090a09; background-size: cover; background-position: center; }
.tpoverlay { position: absolute; inset: 0; background: #090a09; }
.tpblock { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #111311; color: #f1eee6; }
.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: #111311; }
.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: #111311; width: min(520px, 100%); box-sizing: border-box; padding-left: 16px; padding-right: 16px; border-left: 1px solid rgba(255, 255, 255, 0.07); border-right: 1px solid rgba(255, 255, 255, 0.07); margin-top: 0; margin-bottom: 0; }
.roomwrap .editpanel > :first-child { border-top: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px 12px 0 0; padding-top: 16px; }
.roomwrap .editpanel > :last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.07); 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, #343a33); }
input[type="color"].cpick { -webkit-appearance: none; appearance: none; width: 48px; height: 34px; padding: 0; border: 1px solid var(--line, #343a33); 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(255, 255, 255, 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: #111311; border: none; border-left: 1px solid rgba(255, 255, 255, 0.09); 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, #090A09); 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, #343A33); 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, #343A33); }
.homepanel { background: var(--surface, #111311); border: 1px solid var(--line, #343A33); 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, #343A33); }
}
/* 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 .wallpost { padding: 22px 6px; }
  #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: 14px; }
  #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: #111311; width: min(520px, 100%); box-sizing: border-box; padding-left: 16px; padding-right: 16px; border-left: 1px solid rgba(255, 255, 255, 0.07); border-right: 1px solid rgba(255, 255, 255, 0.07); margin-top: 0; margin-bottom: 0; }
.roomwrap form.walledit > textarea { border-top: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px 12px 0 0; padding-top: 16px; }
.roomwrap form.walledit > :last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.07); 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: #111311; border-left: 1px solid rgba(255, 255, 255, 0.07); border-right: 1px solid rgba(255, 255, 255, 0.07); padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
#widgetpop > :first-child { border-top: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px 12px 0 0; padding-top: 14px; }
#widgetpop > :last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.07); 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.05), 0 2px 4px rgba(0, 0, 0, 0.38), 0 18px 38px rgba(0, 0, 0, 0.46)); 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 var(--line); background: 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(255, 255, 255, 0.04)) 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.05), 0 2px 4px rgba(0, 0, 0, 0.38), 0 18px 38px rgba(0, 0, 0, 0.46)); }
.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: #F1EEE6; color: #090A09; 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(255, 255, 255, 0.07); }
/* 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: 3 / 4; }
.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, #343A33); 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: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 4px 16px; 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, #090A09); 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; }
.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, #111311); border: 2px solid var(--line, #343A33); 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: rgba(0, 0, 0, 0.25); }
.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; }
.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, #343A33); color: var(--text, #F1EEE6); 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: 20px; }
#room-wall .wallpost { background: var(--room-cardbg, var(--panel)); border: 1px solid var(--room-cardline, var(--line)); border-radius: 12px; padding: 16px; 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)); }
.wallhead { display: flex; align-items: center; gap: 12px; }
#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: 8px; }
.wallpostacts { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.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: 12px; margin-left: 12px; padding-left: 16px; border-left: 2px solid var(--room-cardline, var(--line)); display: flex; flex-direction: column; gap: 16px; }
.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; }

/* 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%; }
