/* Fappuccino — Grok-dark + porn pink */
:root {
  --espresso: #000000;
  --espresso-2: #141414;
  --crema: #f4f4f5;
  --foam: #ffffff;
  --latte: #ff2d6a;
  --mocha: #8b8b90;
  --heart: #ff2d6a;
  --dim: rgba(255, 255, 255, 0.55);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --dock: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: var(--crema); }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, a.dock-btn {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; }

.brand-mark {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--foam);
}
.brand-mark.sm { font-size: 1.05rem; }

/* Age gate */
.gate {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: var(--espresso);
  padding: 28px;
}
.gate[hidden], .shell[hidden], .pane[hidden], .toast[hidden], .status[hidden] { display: none !important; }
.gate-inner { max-width: 320px; text-align: center; }
.gate-kicker {
  margin: 18px 0 8px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--latte);
}
.gate-copy { margin: 0 0 22px; color: var(--dim); line-height: 1.4; }
.gate-btn {
  display: block; width: 100%;
  border: 0; border-radius: 999px;
  background: var(--crema); color: var(--espresso);
  padding: 14px 18px; font-size: 0.95rem; font-weight: 600;
  cursor: pointer;
}
.gate-leave {
  margin-top: 12px; background: none; border: 0;
  color: var(--dim); cursor: pointer; font-size: 0.85rem;
}

/* Phone column */
.shell { min-height: 100dvh; }
.phone {
  position: relative;
  height: 100dvh;
  background: var(--espresso);
  overflow: hidden;
}
@media (min-width: 560px) {
  .shell { display: grid; place-items: center; min-height: 100dvh; }
  .phone {
    width: 420px;
    height: min(100dvh, 860px);
    border-radius: 22px;
    box-shadow: 0 0 0 1px #222, 0 24px 70px rgba(0,0,0,.7);
  }
}

.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(20,14,11,.72), transparent);
}

/* Snap feed */
.feed {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.card {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
}
.card > img, .card > video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #111;
}
.card .rg-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; background: #333; flex: none;
}
.card-scrim {
  position: absolute; inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(10,7,6,.92), transparent);
  pointer-events: none;
}
.card-meta {
  position: absolute;
  left: 16px; right: 72px;
  bottom: calc(var(--dock) + var(--safe-b) + 18px);
}
.posted {
  margin: 0 0 6px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--foam);
}
.caption {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--crema);
  max-height: 4.2em;
  overflow: hidden;
}

.heart-btn {
  position: absolute;
  right: 12px;
  bottom: calc(var(--dock) + var(--safe-b) + 36px);
  width: 52px; height: 52px;
  border: 0; background: none;
  color: var(--foam);
  cursor: pointer;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}
.heart-btn svg { width: 36px; height: 36px; }
.heart-btn.on { color: var(--heart); }

.lock {
  position: absolute; top: calc(18px + var(--safe-t)); left: 50%;
  transform: translateX(-50%);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--foam);
  background: rgba(20,14,11,.55);
  border: 1px solid rgba(243,230,208,.18);
  padding: 6px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.dock {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  height: calc(var(--dock) + var(--safe-b));
  padding: 0 8px var(--safe-b);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  background: linear-gradient(to top, rgba(20,14,11,.94), rgba(20,14,11,.55) 70%, transparent);
}
.dock-btn {
  appearance: none;
  background: none; border: 0;
  color: var(--dim);
  text-align: center;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 4px;
  cursor: pointer;
}
.dock-btn.on { color: var(--foam); }

.pane {
  position: absolute; inset: 0;
  background: var(--espresso);
  padding: calc(56px + var(--safe-t)) 24px calc(var(--dock) + 24px);
}
.pane-title { font-size: 1.4rem; margin: 0 0 8px; }
.pane-copy { color: var(--dim); }

.toast {
  position: fixed; left: 50%; bottom: 88px; z-index: 40;
  transform: translateX(-50%);
  background: var(--foam); color: var(--espresso);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.85rem; font-weight: 600;
  padding: 10px 14px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  max-width: 86vw;
  text-align: center;
}

/* Submit */
.page-form, .page-admin { background: #000; }
.form-phone { overflow: auto; }
.form-wrap {
  padding: calc(56px + var(--safe-t)) 22px calc(var(--dock) + 28px);
}
.form-wrap h1 { margin: 0 0 8px; font-size: 1.6rem; }
.lead { color: var(--dim); margin: 0 0 22px; line-height: 1.4; }
label {
  display: block; margin: 0 0 16px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem; color: var(--latte);
}
.help, .opt { display: block; color: var(--dim); font-weight: 400; margin: 4px 0 8px; }
.opt { display: inline; margin: 0; }
input[type="email"], input[type="file"], textarea {
  display: block; width: 100%;
  background: var(--espresso-2);
  color: var(--foam);
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
}
.terms {
  background: var(--espresso-2);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--crema);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.86rem;
  margin: 8px 0 16px;
}
.terms ul { margin: 8px 0 0; padding-left: 1.1em; }
.agree {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--crema); font-size: 0.9rem; margin-bottom: 18px;
}
.agree input { margin-top: 3px; }
.status { margin-top: 14px; color: var(--latte); }

/* Admin */
.admin-wrap { max-width: 880px; margin: 0 auto; padding: 28px 16px 60px; }
.admin-list { list-style: none; margin: 0; padding: 0; }
.admin-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #222;
}
.admin-row.is-hidden { opacity: 0.45; }
.admin-thumb { width: 72px; height: 72px; overflow: hidden; border-radius: 8px; background: #111; }
.admin-thumb img, .admin-thumb video { width: 100%; height: 100%; object-fit: cover; }
.admin-who { margin: 0; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.88rem; }
.admin-cap { margin: 4px 0; font-size: 0.95rem; }
.admin-sub { margin: 0; color: var(--dim); font-size: 0.75rem; font-family: ui-sans-serif, sans-serif; }
.hide-btn {
  border: 1px solid var(--latte); background: none; color: var(--crema);
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.admin-hidden { color: var(--mocha); font-size: 0.78rem; }

.posted { text-decoration: none; pointer-events: auto; }
.posted:active { opacity: 0.7; }
.topbar.live { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; }
.back { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.82rem; font-weight: 600; text-decoration: none; color: var(--foam); }
.profile-phone { overflow: hidden; }
.profile {
  height: 100%;
  overflow-y: auto;
  padding: calc(52px + var(--safe-t)) 0 calc(var(--dock) + var(--safe-b) + 8px);
}
.profile-head { text-align: center; padding: 8px 20px 18px; }
.avatar {
  width: 86px; height: 86px; margin: 0 auto 10px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 2rem; font-weight: 700;
  color: var(--foam);
  border: 2px solid rgba(243,230,208,.28);
}
.profile-name { margin: 0; font-size: 1.45rem; }
.profile-handle {
  margin: 4px 0 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  color: var(--latte);
  font-size: 0.92rem;
}
.profile-count { margin: 8px 0 0; color: var(--dim); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.82rem; }
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  background: #000;
}
.tile {
  position: relative;
  aspect-ratio: 1;
  padding: 0; border: 0; background: #111;
  cursor: pointer;
}
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-tag {
  position: absolute; top: 6px; right: 6px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.68rem; color: var(--foam);
  background: rgba(20,14,11,.55);
  padding: 2px 6px; border-radius: 6px;
}
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(8,6,5,.94);
  display: grid; place-items: center;
  padding: 48px 16px 28px;
}
.lightbox[hidden] { display: none !important; }
.lightbox-x {
  position: absolute; top: calc(12px + var(--safe-t)); right: 14px;
  background: none; border: 0; color: var(--foam);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem; cursor: pointer;
}
#lightbox-media { max-width: min(100%, 520px); max-height: 78dvh; }
#lightbox-media img, #lightbox-media video {
  max-width: 100%; max-height: 78dvh;
  object-fit: contain; display: block;
}
.lightbox-cap { color: var(--crema); text-align: center; max-width: 36rem; }

.hint {
  position: absolute; top: 42%;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 800; letter-spacing: 0.08em;
  font-size: 0.85rem;
  padding: 10px 14px; border-radius: 12px;
  opacity: 0; pointer-events: none;
  border: 2px solid currentColor;
}
.hint-left { left: 16px; color: #f3e6d0; }
.hint-right { right: 16px; color: #9ad3a5; }
.dock.four { grid-template-columns: 1fr 1fr 1fr 1fr; }
.msg-btn {
  display: inline-block; margin-top: 14px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--crema); color: var(--espresso);
  text-decoration: none;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 700; font-size: 0.88rem;
}
.inbox { list-style: none; margin: 0; padding: 0; }
.inbox-row {
  display: block; padding: 14px 0;
  border-bottom: 1px solid #222;
  text-decoration: none;
}
.inbox-row strong { display: block; }
.inbox-row span { color: var(--dim); font-size: 0.86rem; }
.thread {
  height: calc(100dvh - 140px);
  overflow-y: auto;
  padding: calc(56px + var(--safe-t)) 16px 80px;
}
.bubble {
  max-width: 78%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 14px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.92rem;
}
.bubble.mine { margin-left: auto; background: #2a1220; }
.bubble.theirs { background: var(--espresso-2); }
.composer {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr auto;
  gap: 8px; padding: 10px 12px calc(10px + var(--safe-b));
  background: var(--espresso);
}
.composer input {
  background: var(--espresso-2); color: var(--foam);
  border: 1px solid #2a2a2a; border-radius: 999px;
  padding: 10px 14px; font-size: 1rem;
}
.send { width: auto; padding: 10px 16px; }

.explore {
  height: 100%;
  overflow-y: auto;
  padding: calc(48px + var(--safe-t)) 0 calc(var(--dock) + var(--safe-b));
}
.xgrid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}
.xtile {
  position: relative;
  aspect-ratio: 1;
  background: #111;
  display: block;
}
.xtile img, .xtile video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.xplay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff;
  font-size: 1.1rem;
  text-shadow: 0 1px 8px #000;
  pointer-events: none;
}
.follow-btn {
  display: inline-block; margin-top: 12px; margin-right: 8px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--latte);
  background: none; color: var(--foam);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 700; font-size: 0.88rem;
  cursor: pointer;
}
.follow-btn.on { background: var(--latte); color: #fff; border-color: transparent; }

.dock.four { grid-template-columns: 1fr 1fr 1fr 1fr; }
.dock-btn i { font-size: 1.25rem; display: block; }
.dock-btn { padding: 10px 4px; }

.who-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.who-row .posted { margin: 0; }
.reel-follow {
  border: 1px solid var(--foam);
  background: transparent;
  color: var(--foam);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.reel-follow.on { background: var(--latte); color: #fff; border-color: transparent; }

.dock.five { grid-template-columns: 1fr 1fr 1fr 1fr 1fr; }
.dock-btn.plus {
  width: 42px; height: 42px; padding: 0; margin: 0 auto;
  border-radius: 13px;
  background: var(--latte); color: #fff;
  display: grid; place-items: center;
  font-size: 1.05rem;
}
.dock-btn.plus.on { color: #fff; }

.cam-shell { position: relative; height: 100dvh; background: #000; overflow: hidden; }
.cam-live, .cam-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.cam-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(12px + var(--safe-t)) 16px 12px;
}
.cam-x, .cam-flip {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.4); color: #fff;
  display: grid; place-items: center; text-decoration: none; font-size: 1.1rem;
}
.cam-stage {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 22px calc(22px + var(--safe-b));
}
.cam-lib {
  width: 52px; height: 52px; justify-self: start;
  border: 2px solid #fff; border-radius: 12px;
  background: rgba(255,255,255,.12); color: #fff;
  font-size: 1.2rem; display: grid; place-items: center;
}
.cam-shutter {
  width: 74px; height: 74px; border-radius: 50%;
  border: 4px solid #fff; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.22);
}
.cam-slot { width: 52px; }
.cam-edit {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 16px 16px calc(18px + var(--safe-b));
  background: linear-gradient(to top, rgba(0,0,0,.82), transparent);
}
.cam-edit textarea {
  width: 100%; min-height: 72px; resize: none;
  background: rgba(20,14,11,.7); color: #fff6e8;
  border: 1px solid #2a2a2a; border-radius: 12px;
  padding: 10px 12px; font-size: 1rem;
}
.cam-edit-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 10px; }
.cam-retake {
  border: 1px solid #fff6e8; background: none; color: #fff6e8;
  border-radius: 999px; font-weight: 700;
}

.theme-panel {
  margin: 0 16px 16px;
  padding: 14px;
  background: var(--espresso-2);
  border-radius: 14px;
}
.theme-colors { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.theme-panel select, .theme-panel input[type="color"] {
  display: block; width: 100%; margin-top: 4px;
  background: var(--espresso); color: var(--foam);
  border: 1px solid #2a2a2a; border-radius: 8px; padding: 6px;
}
.avatar { overflow: hidden; background-size: cover; background-position: center; }
.avatar-pick { cursor: pointer; }
.avatar-pick input { display: block; margin-top: 6px; }

.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px 16px; margin: 0 0 18px;
  border-radius: 999px; text-decoration: none;
  background: #fff; color: #1f1f1f;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 700; font-size: 0.95rem;
}
.google-btn i { color: #4285f4; }
.more-auth { margin: 8px 0 16px; color: var(--dim); }
.more-auth summary { cursor: pointer; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.86rem; }
.more-auth form { margin-top: 14px; }

#account-tools { padding: 22px 20px 8px; text-align: center; }
.acct-link {
  display: inline-block; margin: 0 10px 12px;
  color: var(--foam); font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 700; font-size: 0.92rem;
}
.acct-del {
  display: block; margin: 8px auto 0;
  background: none; border: 0; color: #ff5a7a;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem; cursor: pointer;
}

.later-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 10px;
}
.later-head h2 {
  margin: 0; font-size: 1.05rem; font-weight: 750;
  display: flex; align-items: center; gap: 8px;
}
.later-head a, .later-count {
  color: var(--latte);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem; font-weight: 700; text-decoration: none;
}
.later-row {
  display: flex; gap: 10px;
  overflow-x: auto;
  padding: 0 16px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.later-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 20px;
}
.later-card {
  position: relative;
  flex: 0 0 44%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  scroll-snap-align: start;
  display: block;
}
.later-page .later-card { flex: none; width: 100%; }
.later-card img, .later-card video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.later-card .who {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 10px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
  color: #fff; font-size: 0.74rem; font-weight: 700;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.later-card .x {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 1.1rem;
  line-height: 1; cursor: pointer;
}
.later-empty {
  margin: 0 16px 16px;
  padding: 28px 16px;
  border: 1px dashed #2a2a2a;
  border-radius: 16px;
  color: var(--dim);
  text-align: center;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.88rem;
}
#c-name, #c-handle {
  display: block; width: 100%;
  background: var(--espresso); color: var(--foam);
  border: 1px solid #2a2a2a; border-radius: 8px;
  padding: 8px 10px; margin-top: 4px; font-size: 1rem;
}

.reacts {
  position: absolute;
  right: 10px;
  bottom: calc(var(--dock) + var(--safe-b) + 28px);
  display: flex; flex-direction: column; gap: 14px;
  z-index: 3;
}
.react-btn {
  width: 48px; border: 0; background: none;
  color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.55));
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.7rem; font-weight: 700;
}
.react-btn i { font-size: 1.7rem; }
.react-btn.on { color: var(--heart); }
.react-btn.on .fa-face-grin-tongue { color: #ff8ad4; }

/* —— Desktop RedGifs-style chrome (1100px+) —— */
:root {
  --rg-yellow: #f5d000;
  --rg-red: #e10600;
  --rg-panel: #121212;
  --rg-line: #222;
}
.rg-left, .rg-top, .rg-right, .rg-niches, .rg-tabs { display: none; }
.rg-desktop-feed { display: none; }

@media (min-width: 1100px) {
  html, body { height: 100%; overflow: hidden; }
  .shell {
    display: grid !important;
    place-items: stretch;
    grid-template-columns: 220px minmax(320px, 1fr) 300px;
    grid-template-rows: 58px minmax(0, 1fr) auto;
    height: 100dvh;
    min-height: 100dvh;
    background: #000;
  }
  .rg-left {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1 / -1;
    background: #0a0a0a;
    border-right: 1px solid var(--rg-line);
    padding: 18px 14px 16px;
    z-index: 8;
  }
  .rg-logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--rg-red);
    text-decoration: none;
    margin: 0 8px 22px;
  }
  .rg-nav { display: flex; flex-direction: column; gap: 4px; }
  .rg-nav-item {
    display: flex; align-items: center; gap: 12px;
    color: #eee; text-decoration: none;
    padding: 11px 12px; border-radius: 12px;
    font-weight: 650; font-size: 0.95rem;
  }
  .rg-nav-item i { width: 1.2em; text-align: center; color: #cfcfcf; }
  .rg-nav-item.on, .rg-nav-item:hover { background: #1a1a1a; }
  .rg-left-foot {
    margin-top: auto; display: flex; gap: 12px; padding: 12px 8px 0;
    font-size: 0.72rem; color: #777;
  }
  .rg-left-foot a { color: #777; text-decoration: none; }
  .rg-top {
    display: flex; align-items: center; justify-content: center;
    grid-column: 2 / -1; grid-row: 1;
    padding: 8px 24px; background: #000;
    border-bottom: 1px solid var(--rg-line);
    z-index: 7;
  }
  .rg-search {
    display: flex; align-items: center; gap: 10px;
    width: min(420px, 70%);
    background: #1c1c1c; border-radius: 999px;
    padding: 8px 16px; color: #888;
  }
  .rg-search input {
    flex: 1; border: 0; background: transparent; color: #fff;
    font-size: 0.95rem; outline: none; padding: 0;
  }
  .phone {
    grid-column: 2; grid-row: 2;
    width: min(430px, 100%);
    height: 100%;
    max-height: none;
    justify-self: center;
    border-radius: 18px;
    box-shadow: none;
    overflow: hidden;
    background: #000;
  }
  .shell .dock, .shell .topbar { display: none !important; }
  .rg-desktop-feed { display: block; height: 100%; }
  body.rg-home-desktop .explore { display: none; }
  .rg-tabs {
    display: flex; gap: 22px; justify-content: center;
    position: absolute; top: 10px; left: 0; right: 0; z-index: 6;
    pointer-events: none;
  }
  .rg-tabs a, .rg-tabs button {
    pointer-events: auto;
    background: none; border: 0; color: #888;
    font-size: 1.02rem; font-weight: 700; cursor: pointer;
    padding: 6px 2px; border-bottom: 2px solid transparent;
  }
  .rg-tabs .on { color: #fff; border-bottom-color: #fff; }
  .rg-right {
    display: flex; flex-direction: column;
    grid-column: 3; grid-row: 2;
    overflow: auto;
    padding: 8px 16px 16px;
    background: #000;
  }
  .rg-right-h {
    margin: 8px 0 12px;
    font-size: 0.92rem; font-weight: 650; color: #ddd;
  }
  .rg-creator {
    display: grid; grid-template-columns: 56px 1fr;
    gap: 10px; align-items: center;
    margin: 0 0 14px; text-decoration: none;
  }
  .rg-creator img {
    width: 56px; height: 56px; object-fit: cover;
    border-radius: 10px; background: #222;
  }
  .rg-creator .who { font-weight: 700; font-size: 0.88rem; color: #fff; }
  .rg-visit {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 4px; width: 100%;
    background: #111; color: #fff; border: 1px solid #333;
    border-radius: 8px; padding: 6px 8px;
    font-size: 0.78rem; font-weight: 700; text-decoration: none;
  }
  .rg-niches {
    display: block;
    grid-column: 2; grid-row: 3;
    padding: 10px 8px 14px;
    background: #000;
  }
  .rg-niches-h {
    display: flex; justify-content: space-between; align-items: center;
    margin: 0 4px 8px;
  }
  .rg-niches-h h2 { margin: 0; font-size: 0.95rem; }
  .rg-niches-h a { color: #aaa; font-size: 0.8rem; text-decoration: none; }
  .rg-niches-row {
    display: flex; gap: 10px; overflow-x: auto;
    padding-bottom: 4px;
  }
  .rg-niche {
    flex: 0 0 160px;
    background: #171717; border-radius: 12px; overflow: hidden;
    text-decoration: none; color: #fff;
  }
  .rg-niche img { width: 100%; height: 72px; object-fit: cover; display: block; }
  .rg-niche .meta { padding: 8px 10px 10px; }
  .rg-niche .name { font-weight: 700; font-size: 0.82rem; }
  .rg-niche .n { color: #888; font-size: 0.72rem; margin: 2px 0 8px; }
  .rg-watch {
    display: block; text-align: center;
    background: var(--rg-yellow); color: #111;
    font-weight: 800; font-size: 0.75rem;
    border-radius: 8px; padding: 6px 8px;
  }
  .card-meta { right: 78px; bottom: 22px; }
  .reacts { bottom: 28px; }
  .reel-follow {
    background: var(--rg-yellow); color: #111; border-color: transparent;
    font-weight: 800;
  }
  .reel-follow.on { background: #333; color: #fff; }
  .who-row { align-items: center; }
  .rg-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover; background: #333; flex: none;
  }
  .rg-overlay {
    position: absolute; right: 10px; top: 18%;
    display: flex; flex-direction: column; gap: 14px;
    z-index: 4;
  }
  .rg-ov {
    width: 44px; border: 0; background: none; color: #fff;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    cursor: pointer; filter: drop-shadow(0 2px 6px #000);
    font-size: 0.68rem; font-weight: 700;
  }
  .rg-ov i { font-size: 1.25rem; }
  .caption .hash { color: #d0d0d0; }
  .explore { padding-top: 8px; }
  .form-phone, .profile-phone { overflow: auto; }
  .rg-zoom {
    display: none;
    grid-column: 2;
    grid-row: 2;
    z-index: 12;
    overflow: hidden;
    background: #000;
    pointer-events: none;
    min-width: 0;
    min-height: 0;
  }
  .rg-zoom.on { display: block; pointer-events: auto; cursor: zoom-in; }
  .rg-zoom .rg-zoom-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
  }
}

/* Attract / idle show */
body.page-show {
  background: #000;
  overflow: hidden;
  height: 100%;
  min-height: 100dvh;
}
body.page-show .show-root {
  position: fixed;
  inset: 0;
  background: #000;
  cursor: pointer;
}
.show-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 6;
  background: linear-gradient(90deg, var(--rg-red) 0 42%, var(--rg-yellow) 42% 100%);
}
.show-brand {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rg-red);
  text-shadow: 0 2px 12px #000;
  pointer-events: none;
}
.show-back {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 12px;
  z-index: 7;
  border: 0;
  border-radius: 999px;
  background: var(--rg-yellow);
  color: #111;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
}
.show-stage {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
}
.show-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
  background: #000;
}
.show-layer.cut { transition: none; }
.show-layer.on { opacity: 1; }
.show-layer video,
.show-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.show-vig {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(0,0,0,.55) 100%),
    linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 38%);
}
.show-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
  text-shadow: 0 2px 10px #000;
}
.show-who {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}
.show-hint {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rg-yellow);
  opacity: 0.9;
}
.show-layer img.kb { transform-origin: center center; }
.show-layer img.kb-1 { animation: show-kb1 12s ease-in-out forwards; }
.show-layer img.kb-2 { animation: show-kb2 11s ease-in-out forwards; }
.show-layer img.kb-3 { animation: show-kb3 13s ease-in-out forwards; }
.show-layer img.kb-4 { animation: show-kb4 10s ease-in-out forwards; }
@keyframes show-kb1 {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.18) translate(-3%, 2%); }
}
@keyframes show-kb2 {
  from { transform: scale(1.12) translate(-2%, 1%); }
  to { transform: scale(1.04) translate(2%, -2%); }
}
@keyframes show-kb3 {
  from { transform: scale(1.06) translate(2%, 0); }
  to { transform: scale(1.2) translate(-1%, -3%); }
}
@keyframes show-kb4 {
  from { transform: scale(1.1) translate(0, 2%); }
  to { transform: scale(1.22) translate(3%, -1%); }
}
@media (min-width: 1100px) {
  html:has(body.page-show), body.page-show { overflow: hidden; height: 100%; }
  body.page-show .show-who { font-size: 1.25rem; }
  body.page-show .show-brand { font-size: 0.9rem; }
  .clothed-badge { bottom: 24px; }
  .clothed-hint { bottom: 12px; }
}

.clothed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.clothed-count {
  font-variant-numeric: tabular-nums;
  color: var(--dim);
  font-size: 0.85rem;
}
.clothed-deck {
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.clothed-deck::-webkit-scrollbar { display: none; }
.clothed-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #111;
  cursor: pointer;
}
.clothed-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  -webkit-user-drag: none;
  transition: opacity 160ms ease;
}
.clothed-slide .original { opacity: 0; }
.clothed-slide.is-nude .clothed { opacity: 0; }
.clothed-slide.is-nude .original { opacity: 1; }
.clothed-badge {
  position: absolute;
  left: 14px;
  bottom: calc(var(--dock) + 28px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.72);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}
.clothed-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8b273;
}
.clothed-slide.is-nude .dot { background: var(--latte); }
.clothed-slide .label-nude { display: none; }
.clothed-slide.is-nude .label-clothed { display: none; }
.clothed-slide.is-nude .label-nude { display: inline; }
.clothed-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--dock) + 8px);
  margin: 0;
  text-align: center;
  color: var(--dim);
  font-size: 0.78rem;
  pointer-events: none;
  z-index: 5;
}
