:root {
  --bg: #050505;
  --bg-2: #0c0c0e;
  --panel: #111114;
  --ink: #f7f7f8;
  --muted: #8b8d92;
  --line: #222226;
  --lime: #d1fe17;
  --lime-dim: #a8c912;
  --ok: #9dff6a;
  --bad: #ff5c5c;
  --warn: #ffc14d;
  --sans: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
/* The hidden attribute must win. A class that sets display (.modal { display: flex })
   outranks the browser's own [hidden] rule, which left the fan modal open on load and
   made its close button do nothing. */
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); max-width: 100%; }
img, svg, video { max-width: 100%; }
h1, h2, h3 { overflow-wrap: anywhere; }
body {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: -0.01em;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: var(--ink); text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.04em; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 88px); line-height: 0.92; text-transform: uppercase; }
h1 em { font-style: normal; color: var(--lime); }
h2 { font-size: clamp(22px, 3vw, 32px); text-transform: uppercase; }
.kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.meta { color: var(--muted); line-height: 1.55; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(5,5,5,.78);
  backdrop-filter: blur(16px);
}
.brand {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand strong { color: var(--lime); font-weight: 600; }
.brand i {
  width: 8px; height: 8px;
  background: var(--lime);
  display: inline-block;
  box-shadow: 0 0 12px var(--lime);
}
.steps {
  display: flex;
  gap: 4px;
  margin-left: 12px;
  flex: 1;
}
.steps button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font: 600 11px var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 999px;
}
.steps button.on {
  color: #111;
  background: var(--lime);
}
.topbar .spacer { flex: 1; }
.ghost, a.ghost, button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.stage {
  flex: 1;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 0;
}
@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; }
  .rail { display: none; }
  h1 { font-size: 42px; }
}
.rail {
  border-right: 1px solid var(--line);
  padding: 28px 18px;
}
.rail ol { list-style: none; margin: 0; padding: 0; }
.rail li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.rail li.on { color: var(--ink); }
.rail li b {
  display: block;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--lime);
  margin-bottom: 4px;
}
.work { padding: 36px 40px 120px; max-width: 1180px; }
@media (max-width: 860px) { .work { padding: 22px 16px 140px; } }

.step { display: none; animation: in .35s ease; }
.step.on { display: block; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }

label, .lbl {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 8px;
}
input, textarea, select {
  width: 100%;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font: 500 16px var(--sans);
  outline: none;
}
input:focus, textarea:focus { border-color: var(--lime); }
input.giant {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 56px);
  padding: 8px 0 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
textarea { min-height: 88px; resize: vertical; }
.age-row { display: flex; align-items: center; gap: 16px; }
.age-row input[type=range] { accent-color: var(--lime); }
.age-num {
  font-family: var(--display);
  font-size: 42px;
  color: var(--lime);
  min-width: 70px;
}

.voice-grid, .swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 640px) { .voice-grid { grid-template-columns: 1fr; } }
.vcard, .chip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  font: 500 13px var(--sans);
}
.vcard b {
  display: block;
  font-family: var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 6px;
}
.vcard span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.vcard.on, .chip.on {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime), 0 0 24px rgba(209,254,23,.12);
}
.looks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.looks.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.look {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font: 600 13px/1.3 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
#step-look .dock { position: static; margin-top: 8px; }
.look img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #1a1a1a;
}
#eyes .look img { aspect-ratio: 7 / 2; }
.look span { padding: 8px 10px 10px; }
.look.on {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime), 0 0 24px rgba(209,254,23,.12);
}
@media (max-width: 800px) {
  .looks, .looks.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px 8px 8px;
}
.dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  flex: 0 0 auto;
}

.grid { display: grid; gap: 10px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.six { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .grid.four, .grid.six { grid-template-columns: 1fr 1fr; }
}
.thumb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #16161a;
  aspect-ratio: 3/4;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { transform: translateY(-3px); }
.thumb.picked {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px var(--lime), 0 20px 50px rgba(209,254,23,.12);
}
.thumb .cap {
  position: absolute;
  left: 10px; bottom: 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(0,0,0,.55);
  padding: 4px 8px;
  border-radius: 999px;
}
.thumb .check {
  display: none;
  position: absolute;
  top: 10px; right: 10px;
  width: 22px; height: 22px;
  background: var(--lime);
  color: #111;
  border-radius: 50%;
  font-size: 12px;
  align-items: center;
  justify-content: center;
}
.thumb.picked .check { display: flex; }

.dock {
  position: sticky;
  bottom: 18px;
  margin-top: 28px;
  background: rgba(17,17,20,.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.dock input { border-radius: 12px; }
button, a.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 13px var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  background: var(--ink);
  color: #111;
}
button.lime, a.lime, button.rose {
  background: var(--lime);
  color: #111;
  box-shadow: 0 0 28px rgba(209,254,23,.25);
}
button.ghost, a.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
a.fanvue-login,
.legal a.fanvue-login {
  background: #49F264;
  color: #000;
  text-decoration: none;
  text-underline-offset: 0;
  text-transform: none;
  letter-spacing: 0;
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 14px;
  height: 40px;
  padding: 0 16px 0 10px;
  box-shadow: none;
  gap: 8px;
}
a.fanvue-login:hover,
.legal a.fanvue-login:hover {
  background: rgba(73, 242, 100, 0.2);
  color: #fff;
  text-decoration: none;
}
a.auth-logout,
.legal a.auth-logout {
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 0;
}
button:disabled { opacity: .4; cursor: wait; }

.err { color: var(--bad); font-size: 13px; margin-top: 10px; min-height: 1.1em; }
.busy { color: var(--lime); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5,5,5,.82);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 24px;
}
.overlay.on { display: flex; }
.spin {
  width: 48px; height: 48px;
  border: 2px solid var(--line);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin-bottom: 18px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.overlay h3 {
  font-size: 28px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.skels {
  width: min(720px, 100%);
  margin-top: 28px;
}
.skel {
  background: linear-gradient(90deg, #16161a 0%, #222 50%, #16161a 100%);
  background-size: 200% 100%;
  animation: shine 1.2s infinite;
  border-radius: 14px;
  aspect-ratio: 3/4;
}
@keyframes shine { to { background-position: -200% 0; } }
.beat-skel {
  height: 56px;
  margin-top: 10px;
  border-radius: 12px;
  background: linear-gradient(90deg, #16161a 0%, #222 50%, #16161a 100%);
  background-size: 200% 100%;
  animation: shine 1.2s infinite;
}
.lime.busy-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.lime.busy-btn .spin {
  width: 14px;
  height: 14px;
  margin: 0;
  border-width: 2px;
}

.hero-home {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 28px 28px 48px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-home::after {
  content: "";
  position: absolute;
  inset: -30% auto auto -10%;
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse at top left, rgba(209,254,23,.18), transparent 62%);
  pointer-events: none;
}
.hero-home .inner { position: relative; z-index: 1; max-width: 1100px; }
.hero-home h1 { font-size: clamp(48px, 9vw, 104px); }
.hero-home p { max-width: 520px; font-size: 16px; color: var(--muted); margin: 16px 0 28px; }
.status-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.pill {
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pill.on { border-color: var(--lime); color: var(--lime); }
.pill.warn { border-color: var(--warn); color: var(--warn); }

.projects { padding: 28px; }
.girls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.girl-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  transition: transform .2s ease;
}
.girl-card:hover { transform: translateY(-4px); }
.girl-card .kill {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  border: 1px solid var(--line);
  background: rgba(10,10,11,.78);
  color: var(--text);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.girl-card .kill:hover {
  border-color: var(--bad);
  color: var(--bad);
}
.girl-card img, .girl-card .ph {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  background: #16161a;
}
.girl-card .pad { padding: 12px 14px 16px; }
.girl-card strong {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.build {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px 22px;
  align-items: center;
  margin-top: 16px;
}
@media (max-width: 640px) {
  .build { grid-template-columns: 1fr; justify-items: center; }
}
.gauge, .ring {
  position: relative;
  width: 148px;
  height: 148px;
}
.ring { width: 84px; height: 84px; margin: 0 auto 6px; }
.gauge svg, .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .num, .ring .num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.gauge .num b {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.ring .num b {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1;
}
.gauge .num span, .ring-cap {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.rings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  text-align: center;
}
.arc-track { fill: none; stroke: #222226; stroke-width: 8; }
.arc-val { fill: none; stroke: var(--lime); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.arc-val.warn { stroke: var(--warn); }
.arc-val.bad { stroke: var(--bad); }

.dash {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 14px;
  padding: 22px;
}
@media (max-width: 980px) { .dash { grid-template-columns: 1fr; } }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.hero-mini {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 14px;
  background: #16161a;
  display: block;
}
.beat {
  display: grid;
  grid-template-columns: 70px 1fr auto auto;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  font-size: 13px;
}
.beat-thumb {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  border: 1px solid var(--line);
  background: #111;
}
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,.86);
  align-items: center;
  justify-content: center;
  padding: 28px;
  cursor: zoom-out;
}
.lightbox.on {
  display: flex;
  flex-direction: column;
}
.lightbox img {
  max-width: min(92vw, 820px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,.65);
  cursor: default;
}
.ai-tag {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lightbox .ai-tag {
  margin-top: 12px;
  color: #eee;
  letter-spacing: 0.14em;
}
.thumb .ai-tag,
.strip .ai-tag,
.girl-card .ai-tag {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  padding: 3px 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-align: center;
}
.girl-card .ai-tag {
  right: auto;
  top: 8px;
  left: 8px;
  border-radius: 999px;
  padding: 4px 8px;
}
.beat time {
  font-family: var(--display);
  color: var(--lime);
  letter-spacing: 0.08em;
}
.thread { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; margin: 10px 0; }
.bubble {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
}
.bubble.in { background: #1a1a1e; align-self: flex-start; } /* her */
.bubble.out { background: #1f2610; align-self: flex-end; border: 1px solid rgba(209,254,23,.2); } /* you */
.bubble.typing {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  align-self: flex-start;
  padding: 14px 16px;
  min-width: 62px;
  background: #1a1a1e;
  border: 1px solid rgba(209,254,23,.18);
}
.bubble.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime), 0 0 18px rgba(209,254,23,.55);
  animation: typing-dot 1.05s ease-in-out infinite;
}
.bubble.typing i:nth-child(2) { animation-delay: .18s; }
.bubble.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typing-dot {
  0%, 70%, 100% { opacity: .22; transform: translateY(0) scale(.8); }
  35% { opacity: 1; transform: translateY(-4px) scale(1.05); }
}
.price {
  font-family: var(--display);
  font-size: 56px;
  color: var(--lime);
  letter-spacing: -0.05em;
  line-height: 1;
}
.lock-box {
  display: grid;
  grid-template-columns: minmax(200px, 0.72fr) 1fr;
  gap: 22px 36px;
  margin-top: 22px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  align-items: start;
}
.lock-price .meta { max-width: 280px; margin-top: 10px; }
.pack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.pack li {
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}
.pack b {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--lime);
  margin-bottom: 3px;
}
.lock-box .actions {
  grid-column: 1 / -1;
  margin-top: 4px;
  justify-content: flex-end;
}
.merchant { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.merchant b { color: var(--ink); font-weight: 600; }
.consents { grid-column: 1 / -1; display: grid; gap: 8px; }
.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
}
.check-row input { width: auto; margin: 3px 0 0; accent-color: var(--lime); flex: none; padding: 0; }
.lock-box button:disabled,
#renewConsent:disabled,
#enter:disabled { opacity: 0.45; cursor: not-allowed; }
.gate { padding-top: 28px; }
.gate-form { display: grid; gap: 12px; margin: 18px 0; }
.gate-err:empty { display: none; }
.gate-err { color: var(--bad); margin: 0; }
.report-form { display: grid; gap: 8px; max-width: 520px; margin-top: 8px; }
@media (max-width: 720px) {
  .lock-box { grid-template-columns: 1fr; padding: 18px; }
  .lock-box .actions { justify-content: stretch; }
  .lock-box .actions .lime { flex: 1; }
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* Connect button when the Fanvue app credentials are missing */
.btn.disabled,
a.btn.disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

/* --- Her numbers: earnings, stills, threads ------------------------------ */
.hero-money {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 10px 0 2px;
}
.money-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  width: 100%;
}
/* Hero figure: sans, not the display face, and the only one on the page. */
.money-value {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--lime);
}
.money-sub { font-size: 13px; }
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.tile {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px 11px;
}
.tile b {
  display: block;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.tile span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.tile i { font-style: normal; font-size: 12px; color: var(--muted); }
.tile.ok b { color: var(--ok); }
.tile.warn b { color: var(--warn); }
.tile.bad b { color: var(--bad); }
.strip-head { margin-top: 20px; }
.strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-top: 10px;
}
.strip figure {
  position: relative;
  margin: 0;
  flex: 0 0 84px;
  height: 108px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  background: var(--bg-2);
}
.strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip .sent {
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 2px rgba(5, 5, 5, 0.7);
}
.threads { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.thread-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
}
.thread-row .who { font-weight: 600; }
.thread-row .who em {
  font-style: normal;
  color: var(--warn);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-left: 8px;
}
.thread-row .said {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thread-row .side { color: var(--muted); font-size: 12px; text-align: right; }
.thread-row .side b { color: var(--lime); font-weight: 600; }
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .money-value { font-size: 42px; }
}

/* Roster summary on the projects page */
.roster { margin: 18px 0 20px; }
.girl-card .earned {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--lime);
}

/* Sign-in slot in the topbar */
/* Always the last thing in the bar, and always hard right. */
#auth { display: flex; align-items: center; gap: 10px; margin-left: auto; order: 99; }
#auth .google::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  background: no-repeat center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill='%23FFC107' d='M43.6 20.5H42V20H24v8h11.3C33.7 32.7 29.3 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.9 1.2 8 3.1l5.7-5.7C34.0 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.2-.1-2.3-.4-3.5z'/><path fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.9 1.2 8 3.1l5.7-5.7C34.0 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/><path fill='%234CAF50' d='M24 44c5.2 0 9.8-2 13.3-5.2l-6.2-5.2C29.1 35.1 26.7 36 24 36c-5.3 0-9.7-3.3-11.3-8l-6.5 5C9.6 39.6 16.2 44 24 44z'/><path fill='%231976D2' d='M43.6 20.5H42V20H24v8h11.3c-.8 2.2-2.2 4.1-4.1 5.5l6.2 5.2C39.9 36.7 44 31 44 24c0-1.2-.1-2.3-.4-3.5z'/></svg>");
}

/* --- Legal pages --------------------------------------------------------- */
.legal { max-width: 760px; padding: 32px 22px 60px; margin: 0 auto; }
.legal h1 { font-size: clamp(30px, 5vw, 52px); margin-bottom: 10px; }
.legal h2 {
  font-size: 18px;
  text-transform: none;
  letter-spacing: -0.02em;
  margin: 34px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.legal p, .legal li { line-height: 1.65; color: #d7d8db; }
.legal .lead { font-size: 16px; color: var(--ink); margin: 14px 0 6px; }
.legal .updated { font-size: 12px; margin-bottom: 26px; }
.legal a { color: var(--lime); text-decoration: underline; text-underline-offset: 2px; }
.legal ul, .legal ol { padding-left: 20px; }
.legal li { margin-bottom: 7px; }
.legal code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 12px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.legal-table th, .legal-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; }
.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  background: var(--bg-2);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 20px 0;
  line-height: 1.6;
}
.notice.bad { border-left-color: var(--bad); }
.legal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0 8px; }
.legal-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 12px;
  padding: 14px 15px;
  text-decoration: none;
}
.legal-card:hover { border-color: var(--lime-dim); }
.legal-card b { display: block; margin-bottom: 5px; }
.legal-card span { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.foot.slim { padding: 26px 22px 40px; margin-top: 30px; border-top: 1px solid var(--line); }
.foot.slim .foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot.slim .foot-links a { color: var(--muted); font-size: 12.5px; }
.foot.slim .foot-links a:hover { color: var(--ink); }
@media (max-width: 700px) { .legal-grid { grid-template-columns: 1fr; } }

/* --- Phones -------------------------------------------------------------- */
@media (max-width: 640px) {
  .topbar { padding: 12px 16px; gap: 8px 12px; }
  .topbar .btn, .topbar a.btn, .topbar button.ghost { padding: 9px 12px; font-size: 11px; }
  .legal { padding: 24px 16px 48px; }
  /* A table cannot reflow, so let it scroll inside itself instead of widening the page. */
  .legal-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .legal-table thead, .legal-table tbody, .legal-table tr { display: table; width: 100%; table-layout: fixed; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .thread-row { grid-template-columns: 1fr; }
  .thread-row .side { text-align: left; }
  .dash { padding: 0 16px 60px; }
  .pills { flex-wrap: wrap; }
  .money-value { font-size: 38px; }
  .hero-money { gap: 6px 10px; }
}

/* --- One fan's conversation ---------------------------------------------- */
.thread-row.open { cursor: pointer; }
.thread-row.open:hover, .thread-row.open:focus-visible {
  border-color: var(--lime-dim);
  outline: none;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(3, 3, 4, 0.74);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modal-in 0.14s ease-out;
}
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
.modal-sheet {
  width: min(620px, 100%);
  max-height: min(84vh, 760px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-head h3 { font-size: 22px; text-transform: none; letter-spacing: -0.02em; }
.modal-head .meta { font-size: 12.5px; margin-top: 4px; }
.fan-thread {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}
.fan-msg { max-width: 82%; display: flex; flex-direction: column; gap: 6px; }
.fan-msg.him { align-self: flex-start; }
.fan-msg.her { align-self: flex-end; align-items: flex-end; }
.fan-text {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.fan-msg.her .fan-text { background: #17180f; border-color: #2d3316; }
.fan-msg audio, .bubble audio { display: block; width: min(260px, 70vw); height: 36px; margin-top: 8px; }
.prompt-still {
  width: min(280px, 100%);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 12px;
  cursor: zoom-in;
  background: #111;
  border: 1px solid var(--line);
}
.prompt-still:not([hidden]) { display: block; }
.fan-when { font-size: 11px; color: var(--muted); }
.fan-media { position: relative; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.fan-media img { display: block; width: 100%; max-width: 260px; cursor: zoom-in; }
.fan-media .ppv {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(5, 5, 5, 0.82);
  border: 1px solid var(--warn);
  color: var(--warn);
  border-radius: 999px;
  padding: 3px 8px;
}
.fan-media .ppv.bought { border-color: var(--ok); color: var(--ok); }
@media (max-width: 640px) {
  .modal { padding: 12px; align-items: flex-end; }
  .modal-sheet { width: 100%; max-height: 92vh; padding: 16px 14px 18px; border-radius: 16px; }
  .fan-msg { max-width: 92%; }
}

/* How far she goes */
.heat { margin: 4px 0 18px; }
.heat-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.heat-row label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.heat-row b { font-family: var(--display); letter-spacing: -0.02em; color: var(--lime); }
.heat input[type="range"] { width: 100%; margin: 10px 0 4px; accent-color: var(--lime); }
.heat-scale { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.heat .meta { font-size: 12px; margin-top: 8px; }
