:root {
  /* Colours taken from the Velvet Collar logo */
  --charcoal: #1f1f1f;
  --lavender: #988ae3;
  --pink: #ecc5ed;
  --bg: #19191a;
  --bg-2: #222224;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-solid: #262529;
  --line: rgba(236, 197, 237, 0.13);
  --line-strong: rgba(236, 197, 237, 0.26);
  --text: #f4eef5;
  --muted: #bdb6c8;
  --faint: #8f8a9b;
  --gold: #988ae3;          /* accent (named "gold" for history); members can change it */
  --on-gold: #17141f;
  --gold-soft: rgba(152, 138, 227, 0.16);
  --name-color: #ecc5ed;
  --danger: #ff8597;
  --ok: #8fe0b0;
  --v1: #1f1f22;
  --v2: #4a4272;
  --v3: #988ae3;
  --radius: 18px;
  --slab: "Roboto Slab", Rockwell, "Courier New", serif;
  --serif: var(--slab);
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='50 50 800 520'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect x='0' y='0' width='900' height='600' fill='black'/%3E%3Cellipse cx='447' cy='175' rx='388' ry='115' fill='white'/%3E%3Cpath fill='black' d='M40 240H130Q447 170 760 240H860V262L835 258Q447 402 60 258L40 262Z'/%3E%3Cpath fill='white' d='M60 258Q447 402 835 258V370Q447 570 60 370Z'/%3E%3Ccircle cx='447' cy='425' r='140' fill='black'/%3E%3Cpath fill='white' transform='translate(-165 -111) scale(10.2)' d='M60 63.5s-10.5-6.4-10.5-13.1c0-3.3 2.6-5.7 5.6-5.7 2.2 0 3.9 1.2 4.9 3 1-1.8 2.7-3 4.9-3 3 0 5.6 2.4 5.6 5.7 0 6.7-10.5 13.1-10.5 13.1z'/%3E%3C/mask%3E%3C/defs%3E%3Crect x='0' y='0' width='900' height='600' fill='black' mask='url(%23m)'/%3E%3C/svg%3E");
}


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  /* charcoal with a soft light from the top right, like the logo */
  background:
    radial-gradient(1000px 640px at 95% -12%, color-mix(in srgb, #3a3a3d 70%, var(--v3) 30%), transparent 62%),
    radial-gradient(900px 520px at -10% 0%, color-mix(in srgb, var(--v2) 22%, transparent), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
a { color: var(--gold); }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.mark { display: inline-block; flex: none; width: 44px; height: 28px; background: var(--gold); -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
.wordmark { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.wordmark b { font-family: var(--slab); font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; text-transform: uppercase; color: var(--pink); white-space: nowrap; }
.wordmark span { margin-top: 4px; color: var(--faint); font-size: .66rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; }
.topnav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--text);
  text-decoration: none; cursor: pointer; font-weight: 600; font-size: .92rem; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: var(--gold); }
.btn:active { transform: translateY(1px); }
.btn.gold { background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 80%, #fff), var(--gold)); color: var(--on-gold, #2a1406); border-color: transparent; }
.btn.gold:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: .85rem; }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn[disabled] { opacity: .5; cursor: default; }
.iconbtn { width: 36px; min-height: 36px; padding: 0; }

/* ---------- landing ---------- */
.hero { padding: 36px 0 28px; text-align: center; }
.hero .logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 26px; }
.hero .logo .mark { width: 132px; height: 86px; margin-bottom: 14px; }
.hero .logo .name { font-family: var(--slab); font-weight: 800; font-size: clamp(2.3rem, 9vw, 3.6rem); line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: var(--pink); }
.hero .logo .tagline { margin-top: 10px; }
.hero h1 { font-family: var(--slab); font-weight: 600; font-size: clamp(1.4rem, 4.6vw, 1.9rem); line-height: 1.2; margin: 0 0 12px; color: var(--text); }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }
.tg-login { display: flex; justify-content: center; min-height: 48px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 36px 0; }
.feature { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.feature h3 { margin: 0 0 4px; font-size: 1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- panels ---------- */
.panel { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.panel h2, .section-title {
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 0 0 12px; display: flex; align-items: center; gap: 10px;
}
.section-title .count { font-family: var(--sans); font-size: .8rem; color: var(--faint); font-weight: 600; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: .88rem; }

/* ---------- profile ---------- */
.profile-card { border-radius: calc(var(--radius) + 6px); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); margin-bottom: 16px; }
.banner {
  height: 150px; position: relative;
  background-size: var(--pattern-size, auto), auto, auto, auto;
  background-image:
    var(--pattern, none),
    radial-gradient(120% 140% at 20% 0%, var(--v3), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, var(--v2), transparent 60%),
    linear-gradient(135deg, var(--v1), var(--v2));
}
.banner::after { /* velvet sheen */
  content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: overlay;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.08) 0 2px, transparent 2px 7px);
}
.profile-head { padding: 0 20px 22px; margin-top: -64px; position: relative; }
.avatar {
  width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--gold); background: var(--panel-solid);
  box-shadow: 0 0 0 6px var(--bg-2), 0 10px 30px rgba(0,0,0,.5);
  display: grid; place-items: center; font-family: var(--serif); font-size: 3rem; color: var(--gold);
}
.avatar.sm { width: 56px; height: 56px; font-size: 1.5rem; border-width: 2px; box-shadow: none; }
.profile-name { color: var(--name-color, var(--pink)); font-family: var(--name-font, var(--serif)); font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 600; line-height: 1.05; margin: 14px 0 4px; overflow-wrap: anywhere; }
.handle { color: var(--muted); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.chip { padding: 4px 11px; border-radius: 999px; font-size: .82rem; border: 1px solid var(--line-strong); color: var(--text); background: rgba(255,255,255,.03); }
.chip.gold { border-color: color-mix(in srgb, var(--gold) 55%, transparent); color: var(--gold); background: var(--gold-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.bio { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two .panel { margin-bottom: 0; }
.two + .panel, .two + .two { margin-top: 16px; }
.limits h2 { color: #ffb3bf; }

.owner-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between;
  border: 1px dashed color-mix(in srgb, var(--gold) 50%, transparent); background: var(--gold-soft);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; font-size: .92rem;
}

/* jars + links */
.jar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.jar {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px 12px; text-align: center;
  border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.025); text-decoration: none; color: var(--text);
  transition: border-color .15s, transform .15s;
}
.jar:hover { border-color: var(--gold); transform: translateY(-2px); }
.jar-icon { width: 44px; height: 52px; position: relative; }
.jar-icon .lid { position: absolute; left: 8px; right: 8px; top: 0; height: 9px; border-radius: 3px; background: var(--gold); }
.jar-icon .body {
  position: absolute; left: 3px; right: 3px; top: 8px; bottom: 0; border-radius: 10px 10px 13px 13px;
  border: 2px solid color-mix(in srgb, var(--gold) 70%, transparent);
  background: linear-gradient(0deg, color-mix(in srgb, var(--v3) 75%, transparent) 0 55%, transparent 55%);
}
.jar b { font-size: .92rem; line-height: 1.25; overflow-wrap: anywhere; }
.jar small { color: var(--faint); font-size: .75rem; overflow-wrap: anywhere; }

.link-list { display: grid; gap: 8px; }
.link {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--text); text-decoration: none;
}
.link:hover { border-color: var(--gold); }
.link .mono {
  flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .85rem;
  background: linear-gradient(135deg, var(--v2), var(--v3)); color: var(--on-glow, #fff);
}
.link .txt { min-width: 0; flex: 1; }
.link .txt b { display: block; }
.link .txt small { display: block; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link .arrow { color: var(--gold); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--panel-solid); border: 1px solid var(--line); cursor: pointer; padding: 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: filter .25s; }
.ph.nsfw img { filter: blur(22px) saturate(.6) brightness(.7); transform: scale(1.1); }
.ph .veil { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: #fff; pointer-events: none; }
.ph .veil span { padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.25); }
.ph.revealed img { filter: none; transform: none; }
.ph.revealed .veil { display: none; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }

.lightbox { position: fixed; inset: 0; background: rgba(8,3,8,.94); display: none; z-index: 50; padding: 16px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: 12px; }
.lightbox .cap { color: var(--muted); text-align: center; max-width: 600px; }
.lightbox .close { position: absolute; top: 14px; right: 14px; }

/* directory */
.search { width: 100%; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(0,0,0,.2); margin-bottom: 12px; }
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.dir a { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--text); text-decoration: none; min-width: 0; }
.dir a:hover { border-color: var(--gold); }
.dir .meta { min-width: 0; }
.dir .meta b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir .meta small { display: block; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lock { font-size: .7rem; color: var(--faint); }

/* ---------- editor ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .label { font-weight: 700; font-size: .85rem; color: var(--muted); }
.field .hint { font-size: .8rem; color: var(--faint); }
input[type=text], input[type=url], input[type=email], input[type=password], input[type=search], input[type=date], input[type=number], input[type=tel], textarea, select {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: rgba(0,0,0,.25); outline: none;
}
input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
textarea.short { min-height: 64px; }
.slug-row { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(0,0,0,.25); overflow: hidden; }
.slug-row span { padding: 0 2px 0 12px; color: var(--faint); white-space: nowrap; font-size: .9rem; }
.slug-row input { border: 0; background: transparent; padding-left: 2px; min-width: 0; }
.slug-row:focus-within { border-color: var(--gold); }
.status { font-size: .8rem; }
.status.ok { color: var(--ok); } .status.bad { color: var(--danger); }

.avatar-edit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar-edit .avatar { width: 96px; height: 96px; font-size: 2.2rem; box-shadow: none; }

.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; background: linear-gradient(135deg, var(--v1), var(--v3)); }
.swatch[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line-strong); border-radius: 14px; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.seg input { margin-top: 4px; accent-color: var(--gold); }
.seg b { display: block; }
.seg small { color: var(--muted); }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }

.rows { display: grid; gap: 8px; margin-bottom: 10px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 8px; align-items: center; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.ph-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.ph-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(0,0,0,.2); }
.ph-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ph-card .ctl { padding: 8px; display: grid; gap: 6px; }
.ph-card input[type=text] { min-height: 36px; padding: 6px 10px; font-size: .85rem; }
.ph-card .line { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.upload {
  display: grid; place-items: center; text-align: center; min-height: 120px; padding: 16px; cursor: pointer;
  border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--muted);
}
.upload:hover { border-color: var(--gold); color: var(--text); }

.savebar {
  position: sticky; bottom: 0; z-index: 10; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, var(--bg) 70%, transparent); display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap;
}
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 60;
  padding: 10px 16px; border-radius: 999px; background: var(--panel-solid); border: 1px solid var(--gold); transition: .2s; pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.err { border-color: var(--danger); }

.center-msg { text-align: center; padding: 60px 0; }
.center-msg h1 { font-family: var(--serif); font-weight: 600; font-size: 2.2rem; margin: 0 0 10px; }
.footer { text-align: center; color: var(--faint); font-size: .8rem; padding: 34px 0 44px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer p { margin: 0; }
.footer .mark { width: 34px; height: 22px; opacity: .8; }
.tagline { font-size: .72rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: #9a96a8; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 640px) {
  .two, .form-grid, .seg { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr auto; }
  .row input:first-child { grid-column: 1 / -1; }
  .banner { height: 120px; }
  .avatar { width: 108px; height: 108px; }
  .wordmark b { font-size: 1.05rem; }
  .brand .mark { width: 38px; height: 24px; }
  .topnav .btn { padding: 0 12px; }
}

/* overflow guards */
.link-list { grid-template-columns: minmax(0, 1fr); }
.link { min-width: 0; }
.ph-card .line { flex-wrap: wrap; }

/* ---------- look: corners ---------- */
[data-corners="round"] { --radius: 28px; }
[data-corners="sharp"] { --radius: 6px; }
[data-corners="sharp"] .btn, [data-corners="sharp"] .chip { border-radius: 6px; }

/* ---------- look: avatar rings ---------- */
[data-ring="double"] .avatar { box-shadow: 0 0 0 4px var(--bg-2), 0 0 0 7px var(--gold), 0 10px 30px rgba(0,0,0,.5); }
[data-ring="stitched"] .avatar { border-style: dashed; border-width: 4px; }
[data-ring="glow"] .avatar { box-shadow: 0 0 0 5px var(--bg-2), 0 0 26px 8px var(--gold-soft), 0 0 46px 4px color-mix(in srgb, var(--gold) 45%, transparent); }
[data-ring="rainbow"] .avatar {
  border: 5px solid transparent;
  background: linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box,
              conic-gradient(#ff6b9a, #ffd36b, #7bffb0, #6bd0ff, #c08bff, #ff6b9a) border-box;
}
.avatar.sm { box-shadow: none !important; }

/* ---------- mood sticker ---------- */
.mood {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px 6px 8px; max-width: 100%;
  border-radius: 16px 16px 16px 4px; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  font-size: .9rem; overflow-wrap: anywhere;
}
.mood .em { font-size: 1.15rem; line-height: 1; }

/* ---------- particles ---------- */
.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.particles.fixed { position: fixed; z-index: 0; }
.pt { position: absolute; bottom: -30px; color: var(--gold); animation: floatUp linear infinite; text-shadow: 0 0 8px var(--gold-soft); }
.pt.bubble { border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--gold) 70%, transparent); background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 60%); }
@keyframes floatUp {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(var(--drift), -55vh) rotate(25deg); }
  100% { transform: translate(0, -115vh) rotate(-10deg); }
}
.wrap { position: relative; z-index: 1; }

/* ---------- editor tabs ---------- */
.tabs {
  display: flex; gap: 6px; padding: 5px; margin-bottom: 16px; border-radius: 999px; overflow-x: auto; scrollbar-width: none;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 94%, transparent); position: sticky; top: 8px; z-index: 12; backdrop-filter: blur(10px);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--muted);
  font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap;
}
.tab[aria-selected="true"] { background: var(--gold); color: var(--on-gold, #2a1406); }
.tab:not([aria-selected="true"]):hover { color: var(--text); }

/* ---------- settings tab ---------- */
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.preview-col { position: sticky; top: 70px; }
.preview-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; text-align: center; }
.preview { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line); background: var(--bg-2); }
.preview .banner { height: 96px; }
.preview .profile-head { margin-top: -46px; padding: 0 16px 16px; position: relative; z-index: 1; }
.preview .avatar { width: 88px; height: 88px; font-size: 2rem; }
.preview .profile-name { font-size: 1.7rem; margin-top: 10px; }
.preview .jar { margin-top: 12px; padding: 12px 8px 10px; }
.preview .actions { margin-top: 12px; }

.pal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.pal {
  display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 14px; cursor: pointer; text-align: left;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.025); transition: transform .15s, border-color .15s;
}
.pal:hover { transform: translateY(-2px); }
.pal[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.pal .sw { height: 38px; border-radius: 9px; position: relative; overflow: hidden; }
.pal .sw i { position: absolute; right: 7px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid rgba(0,0,0,.25); }
.pal b { font-size: .8rem; line-height: 1.2; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); font-weight: 600; font-size: .86rem;
}
.pill[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); color: var(--text); }
.pill .pv { width: 22px; height: 22px; border-radius: 6px; background-color: var(--v2); border: 1px solid var(--line); flex: none; }

.colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.color-field {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(0,0,0,.2); cursor: pointer;
}
.color-field input[type=color] { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; flex: none; }
.color-field input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type=color]::-webkit-color-swatch { border: 2px solid rgba(255,255,255,.25); border-radius: 50%; }
.color-field input[type=color]::-moz-color-swatch { border: 2px solid rgba(255,255,255,.25); border-radius: 50%; }
.color-field b { display: block; font-size: .85rem; }
.color-field small { color: var(--faint); font-size: .75rem; }

.emoji-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; margin-bottom: 8px; }
.emoji {
  width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03);
  font-size: 1.25rem; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.emoji[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.surprise { font-size: 1rem; }
.subhead { font-weight: 800; font-size: .9rem; margin: 18px 0 8px; display: flex; align-items: baseline; gap: 8px; }
.subhead:first-child { margin-top: 0; }
.subhead small { font-weight: 500; color: var(--faint); }

@media (max-width: 760px) {
  .settings-layout { grid-template-columns: 1fr; }
  .preview-col { position: static; order: -1; }
  .tabs { top: 4px; }
}
@media (prefers-reduced-motion: reduce) { .pal:hover, .jar:hover { transform: none; } }
@media (max-width: 520px) {
  .tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; border-radius: 18px; }
  .tab { padding: 4px 4px; font-size: .74rem; white-space: normal; line-height: 1.15; border-radius: 14px; min-height: 44px; }
}

/* log in / make a profile */
.auth-wrap { max-width: 440px; margin: 20px auto 0; }
.auth-title { font-family: var(--serif); font-weight: 600; font-size: 2.2rem; text-align: center; margin: 0 0 16px; }
.auth-form { display: grid; gap: 14px; }
.auth-form .btn.gold { width: 100%; }
.auth-form .faint { margin: 0; text-align: center; }
.auth-form .status.bad:empty { display: none; }
.pw-form { display: grid; gap: 8px; max-width: 360px; }
.pw-form .btn { justify-self: start; }

.mood[hidden] { display: none; }

/* ===================== profile page: tag + side column ===================== */
.profile-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "main side"; gap: 28px; align-items: start; margin-top: 8px; }
.profile-body.no-side { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
.profile-body .main { grid-area: main; min-width: 0; }
.profile-body .side { grid-area: side; position: sticky; top: 16px; display: grid; gap: 18px; }

.prose { margin: 0 0 30px; }
.prose h2, .keyring h2, .limits-box h2 { font-family: var(--slab); font-weight: 600; font-size: 1.2rem; margin: 0 0 10px; color: var(--text); }
.prose .bio { max-width: 62ch; line-height: 1.65; color: #e6dfe9; }

.into-limits { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 30px; align-items: start; }
.into-limits .prose { margin: 0; }
.limits-box {
  padding: 16px 18px; border-radius: var(--radius);
  background: rgba(255, 133, 151, 0.07); border: 1px solid rgba(255, 133, 151, 0.32);
}
.limits-box h2 { color: #ffb3c0; }
.limits-box .bio { margin: 0; line-height: 1.65; }

/* keyring: jars + links as compact rows */
.keyring { padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.keyring h2 { font-size: 1.05rem; margin-bottom: 8px; }
.key-list { display: grid; gap: 4px; }
.key {
  display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 12px;
  color: var(--text); text-decoration: none; min-width: 0;
}
a.key:hover, a.key:focus-visible { background: var(--gold-soft); }
.key .txt { min-width: 0; flex: 1; }
.key .txt b { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.key .txt small { display: block; color: var(--faint); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.key .mono {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .8rem;
  background: linear-gradient(135deg, var(--v2), var(--v3)); color: var(--on-glow, #fff);
}
.key .ext { color: var(--faint); font-size: .9rem; }
.key .jar-icon { flex: none; width: 34px; height: 38px; display: block; position: relative; }
.key .jar-icon .lid { position: absolute; left: 7px; right: 7px; top: 0; height: 7px; border-radius: 3px; background: var(--gold); }
.key .jar-icon .body {
  position: absolute; left: 3px; right: 3px; top: 6px; bottom: 0; border-radius: 8px 8px 11px 11px;
  border: 2px solid color-mix(in srgb, var(--gold) 70%, transparent);
  background: linear-gradient(0deg, color-mix(in srgb, var(--v3) 75%, transparent) 0 55%, transparent 55%);
}

.photos .toggle-row { margin-bottom: 12px; }

/* profile header: name block beside the avatar on wider screens */
@media (min-width: 761px) {
  .profile-card .profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 22px; row-gap: 0; align-items: start; }
  .profile-card .profile-head > .avatar,
  .profile-card .profile-head > .avatar-wrap { grid-column: 1; grid-row: 1 / span 5; align-self: start; }
  .profile-card .profile-head > .profile-name { grid-column: 2; grid-row: 1; margin: 76px 0 2px; }
  .profile-card .profile-head > .handle { grid-column: 2; grid-row: 2; }
  .profile-card .profile-head > .looking { grid-column: 2 / span 2; grid-row: 3; }
  .profile-card .profile-head > .mood { grid-column: 2; grid-row: 4; justify-self: start; }
  .profile-card .profile-head > .chips { grid-column: 2; grid-row: 5; }
  .profile-card .profile-head > .actions { grid-column: 3; grid-row: 1 / span 2; margin: 80px 0 0; align-self: start; }
}

@media (max-width: 760px) {
  .profile-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; gap: 22px; }
  .profile-body .side { position: static; }
  .into-limits { grid-template-columns: 1fr; }
}

/* ===================== landing: sample tag + points ===================== */
.hero h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.showcase { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 40px; align-items: center; max-width: 820px; margin: 18px auto 10px; }
.sample { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.sample .banner { height: 86px; }
.sample .profile-head { margin-top: -42px; padding: 0 18px 18px; position: relative; }
.sample .avatar { width: 80px; height: 80px; font-size: 2rem; font-family: var(--slab); }
.sample .profile-name { font-size: 1.7rem; margin: 10px 0 0; color: var(--name-color); font-family: var(--slab); }
.sample .mood { font-size: .82rem; }
.sample .chips { margin-top: 10px; }
.sample .key-list { margin-top: 12px; }
.sample .key { margin: 0; padding: 6px 0; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.points li { padding-left: 22px; position: relative; color: var(--muted); line-height: 1.6; max-width: 46ch; }
.points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50% 50% 0 50%; transform: rotate(45deg); background: var(--lavender); }
.points li b { color: var(--text); }
@media (max-width: 760px) {
  .showcase { grid-template-columns: 1fr; gap: 30px; }
  .sample { max-width: 320px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .sample { transform: none; } }

/* ===================== playroom ===================== */
.btn.current { border-color: var(--gold); color: var(--text); }
.playroom-head { padding: 20px 0 18px; }
.playroom-head h1 { font-family: var(--slab); font-weight: 800; font-size: clamp(2rem, 7vw, 2.8rem); color: var(--pink); margin: 0 0 6px; }
.playroom-head p { margin: 0; max-width: 52ch; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.game {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 16px; row-gap: 14px;
  padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; transition: border-color .15s, background .15s;
}
.game:hover, .game:focus-visible { border-color: var(--gold); background: var(--gold-soft); }
.game-emoji {
  grid-row: 1 / span 2; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.8rem;
  background: linear-gradient(135deg, var(--v2), var(--v3));
}
.game-txt b { display: block; font-family: var(--slab); font-weight: 600; font-size: 1.15rem; margin-bottom: 4px; }
.game-txt span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.game-go {
  justify-self: start; display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 999px;
  background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: .85rem;
}
@media (max-width: 520px) { .topnav .btn.small { padding: 0 10px; font-size: .8rem; } }

/* fill in from Kink Jars */
.panel.kj { border-color: color-mix(in srgb, var(--gold) 40%, transparent); background: linear-gradient(135deg, var(--gold-soft), var(--panel) 60%); }
.kj-row { display: flex; gap: 8px; }
.kj-row input { flex: 1; min-width: 0; }
.kj-out { display: grid; gap: 10px; margin-top: 12px; justify-items: start; }
.kj-out .status { margin: 0; font-size: .9rem; }
.kj-preview { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: rgba(0,0,0,.2); }
.kj-preview summary { cursor: pointer; font-weight: 700; font-size: .88rem; }
.kj-preview .bio { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.kj-boxes { display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media (max-width: 520px) { .kj-row { flex-direction: column; } .kj-row .btn { align-self: flex-start; } }

/* playroom on profiles and in the editor */
.key .mono.emoji { font-size: 1.1rem; }
.games.compact { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.games.compact .game { padding: 14px; }
.games.compact .game-emoji { width: 46px; height: 46px; font-size: 1.5rem; border-radius: 13px; }
.game-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.game-actions .btn.small { min-height: 34px; }
div.game:hover { border-color: var(--line); background: var(--panel); }
@media (max-width: 520px) {
  .tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tab { font-size: .68rem; padding: 4px 2px; }
}
.game-go { text-decoration: none; }
@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; row-gap: 10px; padding-bottom: 12px; }
  .topnav { width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav .btn.small { flex: none; }
}

/* Playroom tab: one box per game */
.play-games { display: grid; gap: 12px; }
.play-game { display: grid; gap: 10px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(0,0,0,.18); }
.pg-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.pg-head .game-emoji { width: 46px; height: 46px; font-size: 1.5rem; border-radius: 13px; grid-row: auto; }
.pg-head .game-txt b { font-size: 1.05rem; margin-bottom: 2px; }
.pg-head .game-txt span { font-size: .86rem; }
.pg-link { display: flex; gap: 8px; flex-wrap: wrap; }
.pg-link input { flex: 1 1 260px; min-width: 0; }
.play-game .kj-out { margin-top: 0; }
.play-game .kj-out:empty { display: none; }
.pg-other { margin-top: 14px; }
.pg-other summary { cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
@media (max-width: 520px) { .pg-head { grid-template-columns: auto minmax(0, 1fr); } .pg-head .game-go { grid-column: 2; justify-self: start; } }

/* looking for */
.looking { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; }
.looking .lk-label { color: var(--muted); font-size: .85rem; font-weight: 600; margin-right: 2px; }
.lk { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: .88rem; border: 1px solid transparent; }
.lk-friends  { background: rgba(120, 214, 196, .14); border-color: rgba(120, 214, 196, .45); color: #b9efe4; }
.lk-partners { background: rgba(236, 197, 237, .14); border-color: rgba(236, 197, 237, .5);  color: #f6dcf6; }
.lk-play     { background: rgba(255, 150, 110, .14); border-color: rgba(255, 150, 110, .45); color: #ffd2bf; }
.lk.nothing  { background: rgba(255, 255, 255, .05); border-color: var(--line-strong); color: var(--muted); }
.looking.compact { margin-top: 6px; gap: 4px; }
.looking.compact .lk { padding: 2px 8px; font-size: .74rem; }
.lk-pill[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); }
.sample .looking { margin-top: 8px; }
.sample .looking .lk-label { font-size: .78rem; }
.sample .looking .lk { font-size: .78rem; padding: 3px 9px; }

/* member list: profile photos instead of initials */
.link .mono.photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; padding: 0; border: 2px solid var(--gold); background: var(--panel-solid); }
.link-list .link .mono:not(.photo) { width: 44px; height: 44px; border-radius: 50%; }
.lk-open { background: rgba(152, 138, 227, .16); border-color: rgba(152, 138, 227, .55); color: #d9d2ff; }

/* interests & limits as tags */
.into-limits { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.tag-group + .tag-group { margin-top: 14px; }
.tag-label { margin: 0 0 6px; font-family: var(--sans); font-size: .8rem; font-weight: 700; color: var(--muted); }
.tag-row { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; transition: opacity .25s ease; }
.tags.fading { opacity: 0; }
.tag { padding: 4px 11px; border-radius: 999px; font-size: .85rem; line-height: 1.4; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: var(--text); }
.tag-love    { border-color: color-mix(in srgb, var(--gold) 60%, transparent); background: var(--gold-soft); }
.tag-enjoy   { border-color: var(--line-strong); }
.tag-curious { border-style: dashed; color: var(--muted); }
.tag-limit   { border-color: rgba(255, 133, 151, .4); background: rgba(255, 133, 151, .08); color: #ffd6dd; }
.see-all { background: none; border: 0; padding: 2px 0; color: var(--gold); font-weight: 700; font-size: .82rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.limits-box .see-all { color: #ffb3c0; }
.bio.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .tags { transition: none; } }
@media (max-width: 760px) { .into-limits { grid-template-columns: 1fr; } }

/* collar charm hanging off the avatar */
.avatar-wrap { position: relative; display: inline-block; width: max-content; }
.charm { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; animation: charmSwing 3.2s ease-in-out infinite; transform-origin: 50% 0; }
.charm-loop { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--gold); margin-bottom: -3px; background: var(--bg-2); }
.charm-tag { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; background: var(--bg-2); border: 2px solid var(--gold); box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.preview .charm { bottom: -22px; } .preview .charm-tag { width: 28px; height: 28px; font-size: .9rem; }
@keyframes charmSwing { 0%, 100% { transform: translateX(-50%) rotate(-6deg); } 50% { transform: translateX(-50%) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .charm { animation: none; } }
.profile-card .profile-head > .avatar-wrap { margin-bottom: 26px; }

/* ask-me-about cards */
.prompt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.prompt-card { padding: 14px 16px; border-radius: 16px; background: linear-gradient(160deg, var(--gold-soft), rgba(255,255,255,.03)); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.prompt-card .pq { display: block; font-family: var(--slab); font-weight: 600; font-size: .95rem; color: var(--name-color, var(--pink)); margin-bottom: 6px; }
.prompt-card .pa { margin: 0; line-height: 1.55; color: #e6dfe9; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .prompt-card { transform: none; } }

/* care & communication card */
.care-card { margin: 0 0 30px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid rgba(120, 214, 196, .35); background: rgba(120, 214, 196, .06); }
.care-card h2 { font-family: var(--slab); font-weight: 600; font-size: 1.2rem; margin: 0 0 10px; color: #b9efe4; }
.care-card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; }
.care-card dt { color: var(--muted); font-weight: 700; font-size: .88rem; }
.care-card dd { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 560px) { .care-card dl { grid-template-columns: 1fr; gap: 2px; } .care-card dd { margin-bottom: 8px; } }

/* editor: prompt rows */
.prompt-rows { display: grid; gap: 10px; margin-bottom: 10px; }
.prompt-row { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.15); }
.prompt-top { display: flex; gap: 8px; align-items: center; }
.prompt-top select { flex: 1; min-width: 0; }
.prompt-row textarea { min-height: 64px; }

/* reactions */
.react-holder:empty { display: none; }
.reactions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; grid-column: 1 / -1; }
.react { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); color: var(--text); font-weight: 700; cursor: pointer; transition: transform .1s, border-color .15s; }
.react:not([disabled]):hover { border-color: var(--gold); }
.react:not([disabled]):active { transform: scale(.94); }
.react[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); }
.react[disabled] { cursor: default; opacity: 1; }
.react .n { font-size: .85rem; color: var(--muted); }
.react-hint { color: var(--faint); font-size: .78rem; margin-left: 4px; }
@media (min-width: 761px) { .profile-card .profile-head > .react-holder { grid-column: 2 / span 2; grid-row: 6; } }

/* kind words */
.kind-words .notes { display: grid; gap: 10px; }
.note { padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.note p { margin: 0 0 6px; line-height: 1.55; overflow-wrap: anywhere; }
.note-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; color: var(--faint); font-size: .82rem; }
.note-foot a { color: var(--muted); }
.note-actions { display: flex; gap: 10px; align-items: center; }
.pending { margin-bottom: 14px; padding: 12px; border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--gold) 50%, transparent); display: grid; gap: 8px; }
.note-form { display: grid; gap: 8px; margin-top: 12px; }
.note-form textarea { min-height: 70px; }

/* compatibility */
.compat { margin: 0 0 30px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: linear-gradient(140deg, var(--gold-soft), transparent 70%); }
.compat h2 { font-family: var(--slab); font-weight: 600; font-size: 1.2rem; margin: 0 0 4px; color: var(--name-color, var(--pink)); }
.compat > .faint { margin: 0 0 12px; }
.compat.nudge p { margin: 0; color: var(--muted); }

/* badges */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 8px; font-size: .78rem; font-weight: 700; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); cursor: default; }
@media (min-width: 761px) {
  .profile-card .profile-head > .badges { grid-column: 2 / span 2; grid-row: 6; }
  .profile-card .profile-head > .react-holder { grid-row: 7; }
}

/* member list extras */
.dir-filters { margin: -2px 0 14px; }
.dir-filters .pill { min-height: 34px; font-size: .82rem; }
.new-pill { margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: .7rem; font-weight: 800; background: rgba(120, 214, 196, .18); color: #b9efe4; vertical-align: 2px; }

/* profile card modal */
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(8, 6, 10, .82); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal-box { width: min(460px, 100%); display: grid; gap: 14px; padding: 16px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line-strong); }
.card-preview { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }

/* keep the header buttons from squeezing the name */
@media (min-width: 761px) {
  .profile-card .profile-head > .actions { max-width: 330px; justify-content: flex-end; flex-wrap: wrap; }
}

/* share-in-Telegram dialog */
.tag-hobby { border-color: color-mix(in srgb, var(--pink) 45%, transparent); background: color-mix(in srgb, var(--pink) 8%, transparent); }
.share-box { width: min(600px, 100%); }
.share-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.share-opt { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .85rem; cursor: pointer; }
.share-opt:has(input:checked) { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.share-opt input { width: 15px; height: 15px; accent-color: var(--gold); margin: 0; }
.share-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.share-ph { position: relative; aspect-ratio: 1; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--panel-solid); cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; }
.share-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.share-ph.nsfw img { filter: blur(10px) brightness(.75); transform: scale(1.1); }
.share-ph.on { opacity: 1; border-color: var(--gold); }
.share-ph:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.share-num { position: absolute; top: 5px; right: 5px; min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--gold); color: var(--on-gold); }
.share-tag { position: absolute; left: 5px; bottom: 5px; padding: 1px 6px; border-radius: 6px; font-size: .65rem; font-weight: 800; letter-spacing: .04em; background: rgba(0,0,0,.65); color: #ffd6dd; }
.share-text { width: 100%; min-height: 220px; font-size: .9rem; line-height: 1.45; }
.share-count { margin: 6px 0 0; }
.share-count.warn { color: #ffd38a; }
.share-actions { justify-content: center; flex-wrap: wrap; }
.share-tip { text-align: center; margin: 0; }
.share-box .status { margin: 8px 0 0; }

/* ---------- batch 4: seasonal pack ---------- */
.season-tag { margin-left: 4px; font-size: .8em; }
.pill.seasonal, .pal.seasonal { border-color: rgba(255, 140, 40, .55); }
.season-note { margin: -4px 0 12px; padding: 8px 12px; border-radius: 12px; font-size: .88rem; background: rgba(255, 122, 26, .1); border: 1px dashed rgba(255, 140, 40, .5); color: #ffd7b0; }

/* up for a chat */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .22); flex: none; }
.mono-wrap { position: relative; display: inline-flex; flex: none; }
.mono-wrap .dot { position: absolute; right: -2px; bottom: -2px; border: 2px solid var(--bg-2); box-shadow: none; }

/* glow-up meter */
.glow-meter { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 12px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.glow-ring { --pct: 0; width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--pct) * 1%), rgba(255,255,255,.08) 0); }
.glow-ring span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-weight: 800; font-size: .85rem; }
.glow-meter.full .glow-ring { box-shadow: 0 0 18px var(--gold-soft); }
.glow-txt { display: grid; gap: 2px; font-size: .9rem; }
.glow-txt b { font-size: 1rem; }

/* vibe song */
.song-frame { width: 100%; border: 0; border-radius: 12px; display: block; background: rgba(0,0,0,.25); }

/* people chips */
.mini-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--gold-soft); color: var(--text); flex: none; }
.person { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); color: var(--text); text-decoration: none; font-size: .88rem; }
.person:hover { border-color: var(--gold); }
.people { display: flex; flex-wrap: wrap; gap: 6px; }

/* crushes */
.btn.crush.on { background: linear-gradient(180deg, #ff8fc8, #e0559e); color: #2a0718; border-color: transparent; }
.match-banner { margin: 10px auto 0; padding: 8px 14px; border-radius: 999px; width: fit-content; max-width: 100%; text-align: center; font-weight: 700; font-size: .92rem; background: linear-gradient(90deg, rgba(255,143,200,.2), rgba(152,138,227,.25)); border: 1px solid rgba(255,143,200,.45); }
.crush-panel .match-banner { margin: 0 0 10px; }
.admirers { margin: 8px 0; }
.heart-burst { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.heart-burst span { position: absolute; bottom: -40px; animation: heart-rise 2.6s ease-out forwards; }
@keyframes heart-rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-105vh) scale(1.2) rotate(20deg); opacity: 0; } }

/* question of the week */
.qotw-card { padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(135deg, var(--gold-soft), rgba(255,255,255,.03)); border: 1px solid var(--line-strong); }
.qotw-card .pq, .qotw-hero .pq, .week-card .pq { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.qotw-card .qq { margin: 6px 0 4px; font-family: var(--serif); font-size: 1.05rem; }
.qotw-card .pa { margin: 0 0 6px; }
.qotw-card.empty { display: grid; gap: 6px; justify-items: start; }
.qotw-hero { text-align: center; padding: 18px 8px 8px; }
.qotw-hero h1 { margin: 8px 0 14px; font-size: clamp(1.4rem, 4vw, 2rem); }
.answers { display: grid; gap: 10px; }
.answer { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.answer.mine { border-color: var(--gold); }
.answer p { margin: 8px 0 0; }

/* vouches */
.vouch-count { margin: 0 0 10px; font-weight: 600; }
.vouches { display: grid; gap: 8px; margin-bottom: 10px; }
.vouch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.vouch p { margin: 0; color: var(--muted); font-style: italic; flex: 1 1 200px; }
.vouch-form textarea { min-height: 60px; }

/* events */
.events { display: grid; gap: 12px; }
.event { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.event.past { opacity: .75; }
.event-emoji { font-size: 2rem; line-height: 1; flex: none; }
.event-body { min-width: 0; flex: 1; }
.event-body h2 { margin: 0 0 4px; font-size: 1.15rem; }
.event-when { margin: 0; color: var(--gold); font-weight: 600; font-size: .9rem; }
.event-when span { color: var(--muted); font-weight: 400; }
.event-desc { margin: 8px 0 0; color: var(--muted); white-space: pre-line; }
.event-people { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.past-events { margin-top: 18px; }
.past-events summary { cursor: pointer; color: var(--muted); margin-bottom: 10px; }

/* this week on the member list */
.this-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 12px; }
.this-week:empty { display: none; }
.week-card { display: grid; gap: 3px; padding: 14px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.week-card:hover { border-color: var(--gold); }
.week-card small { color: var(--muted); }

/* kink twins */
.twin-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.twin-list li { display: grid; gap: 4px; justify-items: start; }
.twin-stats { font-size: .88rem; }
@media (max-width: 560px) {
  .event { padding: 14px 12px; gap: 10px; }
  .event-emoji { font-size: 1.6rem; }
  .glow-meter { padding: 10px 12px; }
}

/* profile header with batch-4 rows (status, badges, match banner, chat control) */
.profile-head > .hold { display: contents; }
@media (min-width: 761px) {
  .profile-card .profile-head > .avatar,
  .profile-card .profile-head > .avatar-wrap { grid-row: 1 / span 6; }
  .profile-card .profile-head > .actions { grid-row: 1 / span 5; }
  .profile-card .profile-head > .looking { grid-row: 4; }
  .profile-card .profile-head > .mood { grid-row: 5; }
  .profile-card .profile-head > .chips { grid-row: 6; }
  .profile-card .profile-head .badges { grid-column: 2 / span 2; grid-row: 7; }
  .profile-card .profile-head .match-banner { grid-column: 2 / span 2; grid-row: 8; justify-self: start; margin-left: 0; }
  .profile-card .profile-head > .react-holder { grid-column: 2 / span 2; grid-row: 10; }
}

/* ---------- The Hunt ---------- */
.hunt-hero { text-align: center; padding: 10px 8px 4px; }
.hunt-hero h1 { margin: 4px 0 8px; font-size: clamp(2rem, 6vw, 2.8rem); }
.hunt-hero p { max-width: 560px; margin: 0 auto 10px; color: var(--muted); }
.hunt-moon { font-size: 2.6rem; filter: drop-shadow(0 0 18px rgba(255, 240, 190, .55)); }
.hunt-list { display: grid; gap: 8px; }
.hunt-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text); text-decoration: none; }
.hunt-row.hot { border-color: var(--gold); background: var(--gold-soft); }
.hunt-row .txt { flex: 1; min-width: 0; display: grid; }
.hunt-row small { color: var(--muted); }
.hunt-row .arrow { color: var(--gold); }
.hunt-done { margin-top: 18px; }
.hunt-done h3 { margin: 0 0 8px; font-size: .95rem; color: var(--muted); font-weight: 600; }
.hunt-row.done { padding: 7px 12px; opacity: .85; }
.hunt-row.done b { font-size: .95rem; }
.hunt-row.done .avatar, .hunt-row.done img { width: 28px; height: 28px; }
.hunt-players .person { cursor: pointer; font: inherit; }
.hunt-start { display: grid; gap: 8px; }
.hunt-start .label { margin-top: 6px; font-weight: 700; font-size: .88rem; }
.hunt-rules ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.week-card.hot { border-color: var(--gold); background: var(--gold-soft); }
.game.hunt-game { border-color: color-mix(in srgb, var(--gold) 55%, transparent); }

.hunt-head { text-align: center; display: grid; gap: 8px; justify-items: center; margin-bottom: 14px; }
.hunt-head > .see-all { justify-self: start; }
.vs { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.vs .side { display: grid; gap: 4px; justify-items: center; }
.vs .role { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.vs-x { font-family: var(--slab); font-size: 1.3rem; color: var(--faint); }
.hunt-meta { margin: 0; color: var(--muted); font-size: .9rem; }
.hunt-action { display: grid; gap: 10px; }
.hunt-action h2 { margin: 0; }
.hunt-action.your-turn { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.hunt-action.over.caught h2, .hunt-action.over.escaped h2 { font-size: 1.4rem; }
.hunt-action .final, .hunt-action .say { font-style: italic; }

.hunt-map { position: relative; width: min(340px, 100%); aspect-ratio: 1; margin: 6px auto; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 240, 190, .08), transparent 35%), radial-gradient(circle, #0f1f17 0%, #0b140f 70%, transparent 71%); }
.hunt-map.theme-manor { background: radial-gradient(circle at 50% 50%, rgba(255, 210, 160, .08), transparent 35%), radial-gradient(circle, #23141c 0%, #170c12 70%, transparent 71%); }
.hunt-map.theme-city { background: radial-gradient(circle at 50% 50%, rgba(170, 200, 255, .09), transparent 35%), radial-gradient(circle, #111a2b 0%, #0b101b 70%, transparent 71%); }
.hunt-map .trail { position: absolute; inset: 17%; border-radius: 50%; border: 2px dashed rgba(255,255,255,.14); }
.hunt-map .spot { --r: 37%; position: absolute; width: 86px; height: 86px; margin: -43px 0 0 -43px;
  left: calc(50% + var(--r) * sin(calc(var(--i) * 60deg))); top: calc(50% - var(--r) * cos(calc(var(--i) * 60deg)));
  display: grid; place-items: center; align-content: center; gap: 2px; padding: 4px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.12); background: #18241d; color: var(--text); font: inherit; cursor: pointer; transition: transform .15s, border-color .15s; }
.hunt-map .spot:not([disabled]):hover { transform: scale(1.06); border-color: var(--gold); }
.hunt-map .spot[disabled] { cursor: default; opacity: .75; }
.hunt-map .spot.chosen { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); opacity: 1; }
.hunt-map .spot.hiding { border-color: #ff9fd6; opacity: 1; }
.hunt-map .se { font-size: 1.5rem; line-height: 1; }
.hunt-map .sn { font-size: .66rem; line-height: 1.15; text-align: center; color: var(--muted); }
.hunt-map .spot-mark { position: absolute; top: -6px; right: -6px; font-size: 1rem; }
.hunt-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hunt-log li { padding-left: 14px; border-left: 2px solid var(--line-strong); }
.hunt-log .hour { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.hunt-log p { margin: 4px 0; }
.hunt-log .say { font-style: italic; color: var(--muted); }
.hunt-log .narr.caught { color: #ffb3c7; font-weight: 600; }
.hunt-log .narr.close { color: #ffe0a3; }
.hunt-log .narr.escaped { color: #b8f5d0; font-weight: 600; }
.hunt-log .hide-line { color: #ffc6e8; }
.hunt-limits summary { cursor: pointer; font-weight: 700; }
.center { text-align: center; }
@media (max-width: 420px) { .hunt-map .spot { width: 74px; height: 74px; margin: -37px 0 0 -37px; } .hunt-map .sn { font-size: .6rem; } }
.hunt-random { display: grid; gap: 8px; }
.hunt-random h2 { margin: 0; }
.hunt-random .label { margin-top: 4px; font-weight: 700; font-size: .88rem; }
.queue-on { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.queue-on .dot { margin-top: 6px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(61, 220, 132, .08); } }
.quick-picker { display: grid; gap: 8px; margin-top: -2px; }
.quick-picker > .faint { font-size: .8rem; }
.quick-lines { display: flex; flex-wrap: wrap; gap: 6px; }
.quick { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: var(--text); font: inherit; font-size: .85rem; cursor: pointer; text-align: left; }
.quick:hover { border-color: var(--gold); background: var(--gold-soft); }
.quick.more { padding: 6px 10px; }
.quick.hint, .quick.tease { border-style: dashed; }
.quick.hint::before { content: "📍 "; }
.quick.tease::before { content: "🫙 "; }
.quick.hint { border-color: rgba(140, 200, 255, .45); }
.quick.tease { border-color: rgba(255, 159, 214, .5); }
.quick-emoji { display: flex; flex-wrap: wrap; gap: 4px; }
.quick-emoji button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 1.15rem; cursor: pointer; }
.quick-emoji button:hover { border-color: var(--gold); transform: scale(1.08); }
/* The Hunt: the 4×4 forest */
.hunt-map.grid { aspect-ratio: auto; width: min(460px, 100%); border-radius: 18px; padding: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 240, 190, .07), transparent 55%), linear-gradient(180deg, #0f1f17, #0b140f); }
.hunt-map.grid .spot { position: relative; left: auto; top: auto; margin: 0; width: auto; height: auto; aspect-ratio: 1; border-radius: 14px; }
.hunt-map.grid .spot:not([disabled]):hover { transform: scale(1.04); }
.hunt-map.grid .sn { font-size: .62rem; }
@media (max-width: 420px) { .hunt-map.grid { gap: 5px; padding: 6px; } .hunt-map.grid .spot { width: auto; height: auto; margin: 0; } .hunt-map.grid .se { font-size: 1.25rem; } .hunt-map.grid .sn { font-size: .55rem; } }

/* ---------- Whispers ---------- */
.whisper-av { width: 34px; height: 34px; font-size: 1.1rem; }
.whisper-settings, .whisper-find { display: grid; gap: 8px; }
.whisper-settings h2, .whisper-find h2 { margin: 0; }
.whisper-settings .label { font-weight: 700; font-size: .88rem; margin-top: 4px; }
.whisper-head { text-align: center; display: grid; gap: 6px; justify-items: center; margin-bottom: 12px; }
.whisper-head > .see-all { justify-self: start; }
.whisper-head h1 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.2rem); }
.whisper-head .faint { margin: 0; max-width: 520px; }
.whisper-reveal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 auto 12px; }
.whisper-chat { display: grid; gap: 10px; }
.whisper-thread { display: flex; flex-direction: column; gap: 8px; max-height: min(60vh, 520px); min-height: 180px; overflow-y: auto; padding: 4px 2px; }
.wempty { text-align: center; margin: auto 0; }
.wmsg { position: relative; max-width: 80%; min-width: 64px; padding: 9px 13px 6px; border-radius: 18px; line-height: 1.45; overflow-wrap: anywhere; }
.wmsg p { margin: 0; white-space: pre-wrap; }
.wmsg.big-emoji p { font-size: 2rem; line-height: 1.2; }
.wmsg.theirs { min-width: 88px; align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.wmsg.mine { align-self: flex-end; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-bottom-right-radius: 6px; }
.wtime { display: block; margin-top: 2px; text-align: right; white-space: nowrap; font-size: .65rem; color: var(--faint); }
.wreport { position: absolute; left: 8px; bottom: 1px; border: 0; background: none; color: var(--faint); font-size: .7rem; cursor: pointer; padding: 0; opacity: .6; }
.wreport:hover { color: var(--danger); opacity: 1; }
.whisper-compose { display: grid; gap: 8px; }
.whisper-compose textarea { min-height: 64px; }
.whisper-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
/* The Hunt: the trail forest (12 spots on a loop with shortcuts) */
.hunt-map.trail12 { width: min(380px, 100%); }
.hunt-map.trail12 .trail-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hunt-map.trail12 .trail-lines .path { stroke: rgba(255,255,255,.16); stroke-width: .9; stroke-dasharray: 2 1.6; }
.hunt-map.trail12 .trail-lines .shortcut { stroke: rgba(255, 224, 163, .28); }
.hunt-map.trail12 .spot { --r: 38%; width: 66px; height: 66px; margin: -33px 0 0 -33px;
  left: calc(50% + var(--r) * sin(calc(var(--i) * 30deg))); top: calc(50% - var(--r) * cos(calc(var(--i) * 30deg))); }
.hunt-map.trail12 .se { font-size: 1.3rem; }
.hunt-map.trail12 .sn { font-size: .56rem; }
.hunt-map .spot.far { opacity: .3; }
.hunt-map.trail12 .spot.hiding, .hunt-map.trail12 .spot.chosen { opacity: 1; }
@media (max-width: 420px) { .hunt-map.trail12 .spot { width: 56px; height: 56px; margin: -28px 0 0 -28px; } .hunt-map.trail12 .se { font-size: 1.1rem; } .hunt-map.trail12 .sn { font-size: .5rem; } }

/* Something waiting for you: nav count and Playroom tile flags */
.playroom-link { position: relative; }
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px;
  background: #ff5fa2; color: #fff; font-size: .7rem; font-weight: 700; line-height: 1; box-shadow: 0 0 0 2px rgba(255, 95, 162, .25); animation: navPulse 2s ease-in-out infinite; }
@keyframes navPulse { 50% { box-shadow: 0 0 0 5px rgba(255, 95, 162, .08); } }
@media (prefers-reduced-motion: reduce) { .nav-badge { animation: none; } }
.game.waiting { border-color: #ff5fa2; box-shadow: 0 0 0 3px rgba(255, 95, 162, .18); }
.game-txt .game-badge { display: table; align-self: flex-start; margin-bottom: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 95, 162, .16);
  border: 1px solid rgba(255, 95, 162, .5); color: #ffb3d4; font-size: .78rem; font-weight: 600; }
.whisper-report { margin-top: 12px; border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.report-preview { margin: 0 0 10px; padding-left: 18px; color: var(--muted); font-size: .9rem; }
.report-preview li { margin: 2px 0; }

/* Mod page */
.mod-head h1 { margin-bottom: 4px; }
.mod-groups { margin: 12px 0 0; }
.mod-groups .pill, .mod-tabs .pill { text-decoration: none; }
.mod-groups .pill { font-weight: 600; }
.mod-tabs { margin: 8px 0 16px; padding: 8px 10px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.mod-tabs .pill { font-size: .88rem; padding-top: 4px; padding-bottom: 4px; }
.mod-tabs[hidden] { display: none; }
.mod-tabs[hidden] + div { margin-top: 16px; }
.mod-report.handled { opacity: .7; }
.mod-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mod-transcript { background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; max-height: 260px; overflow: auto; }
.mod-transcript p { margin: 2px 0; font-size: .9rem; white-space: pre-wrap; }
.mod-transcript p.them { color: #ffb3d4; }
.mod-transcript p.rep { color: var(--muted); }
.mod-member { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-top: 10px; display: grid; gap: 8px; }
.mod-member.is-hidden, .mod-event.is-hidden { opacity: .6; }
.mod-row2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mod-pw { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--gold-soft); border-radius: 10px; padding: 8px 10px; }
.mod-pw p { margin: 0; }
.mod-pw code { font-size: 1.05rem; user-select: all; }
.mod-event { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mod-event:last-child { border-bottom: 0; }
.mod-event.past { opacity: .7; }
.mod-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mod-photos figure { margin: 0; display: grid; gap: 6px; }
.mod-photos figure > a img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.mod-photos figure > a img.nsfw { filter: blur(14px); }
.mod-photos figure > a img.nsfw:hover { filter: none; }
.mod-photos figcaption { display: grid; gap: 4px; justify-items: start; }
input[type=date] { color-scheme: dark; }
select option, select optgroup { background: #1d1a22; color: #f1ecf7; }

/* Whispers reactions */
.wmsg.reactable { cursor: pointer; }
.wmsg .wreact { position: absolute; bottom: -12px; font-size: 1rem; line-height: 1; padding: 3px 5px; border-radius: 999px; background: var(--bg, #1c1b1f); border: 1px solid var(--line); }
.wmsg.theirs .wreact { right: -6px; }
.wmsg.picking { margin-bottom: 52px; }
.wmsg.mine .wreact { left: -6px; }
.wmsg[data-reaction]:not([data-reaction=""]) { margin-bottom: 10px; }
.wpicker { position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; display: flex; gap: 2px; padding: 4px 6px; border-radius: 999px;
  background: #241f2b; border: 1px solid var(--line-strong); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.wpicker button { border: 0; background: none; font-size: 1.25rem; padding: 4px; border-radius: 50%; cursor: pointer; line-height: 1; }
.wpicker button:hover, .wpicker button.on { background: var(--gold-soft); transform: scale(1.12); }

/* Vetting */
.staff-vet { margin-top: 8px; padding: 6px 10px; border-radius: 10px; border: 1px dashed var(--line-strong); font-size: .85rem; text-align: left; }
.staff-vet.s-vetted { border-color: rgba(120, 220, 150, .5); }
.staff-vet.s-needs, .staff-vet.s-renew { border-color: rgba(255, 210, 120, .55); }
.staff-vet.s-hold { border-color: rgba(255, 120, 140, .6); }
.staff-vet.s-denied { border-color: rgba(150, 150, 160, .6); }
.vet-group { margin: 16px 0 4px; font-size: .95rem; }
.vet-row.s-vetted { border-color: rgba(120, 220, 150, .45); }
.vet-row.s-needs, .vet-row.s-renew { border-color: rgba(255, 210, 120, .45); }
.vet-row.s-hold { border-color: rgba(255, 120, 140, .5); }
.vet-row.s-denied { border-color: rgba(150, 150, 160, .5); opacity: .85; }
.vet-row .mod-row2 input { flex: 1; min-width: 200px; }

/* vetting form */
.vf-cta { margin: 6px 0 0; font-size: .9rem; }
.vf-cta a { color: var(--gold); font-weight: 700; }
.vf-status { border-color: rgba(255, 210, 120, .45); }
.vf-status.ok { border-color: rgba(120, 220, 150, .5); }
.vf-photo { display: flex; gap: 14px; align-items: center; }
.vf-photo .avatar { flex: none; width: 64px; height: 64px; }
.vf-photo.missing { border-color: rgba(255, 120, 140, .6); }
.vf-form { display: flex; flex-direction: column; gap: 4px; }
.vf-q { padding: 12px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.vf-q:last-of-type { border-bottom: 0; }
.vf-q.missing .vf-label { color: #ff8fa3; }
.vf-q.missing input, .vf-q.missing textarea { border-color: rgba(255, 120, 140, .7); }
.vf-label { display: block; line-height: 1.4; font-size: .92rem; color: var(--text, inherit); }
.vf-req { color: #ff8fa3; }
.vf-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.vf-set legend { padding: 0; margin-bottom: 8px; }
.vf-opts { display: flex; flex-direction: column; gap: 8px; }
.vf-opts.row { flex-direction: row; gap: 22px; }
.vf-opts .check input[type=radio] { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.vf-opts .check input[type=text] { flex: 1; min-width: 0; margin-left: 4px; }
.vf-scale { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; font-size: .8rem; }
.vf-scale > span:last-child { text-align: right; }
.vf-nums { display: flex; gap: 6px; }
.vf-nums label { display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; font-size: .85rem; }
.vf-nums input { width: 20px; height: 20px; accent-color: var(--gold); margin: 0; }
.vf-bullets { margin: 0 0 10px; padding-left: 20px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.vf-again summary { cursor: pointer; color: var(--muted); margin-bottom: 10px; }
@media (max-width: 560px) {
  .vf-scale { grid-template-columns: 1fr 1fr; }
  .vf-nums { grid-column: 1 / -1; grid-row: 1; justify-content: space-between; }
}
/* vetting forms on the Admin page */
.vf-admin { border-color: rgba(255, 210, 120, .45); }
.vf-admin.read { border-color: var(--line); }
.vf-admin .vf-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.vf-admin .vf-head img.avatar, .vf-admin .vf-head .avatar { width: 72px; height: 72px; flex: none; }
.vf-answers { margin: 10px 0 0; display: grid; gap: 8px; }
.vf-answers dt { font-size: .8rem; color: var(--faint); }
.vf-answers dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.vf-answers dd.empty { color: var(--faint); font-style: italic; }

/* events calendar */
:root { --k-going: #f2c45a; --k-hosted: #ff9fd2; --k-vet: #7fdca6; --k-vetonly: #b0245f; --k-other: #8f8a9b; }
.cal { padding: 16px; }
.cal-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-bar .cal-title { margin: 0; flex: 1; text-align: center; font-size: 1.2rem; }
.cal-bar .btn { min-width: 40px; font-size: 1.1rem; }
.cal-bar .cal-today { font-size: .85rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: .75rem; color: var(--faint); font-weight: 700; padding-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }
.cal-day { min-height: 92px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); padding: 5px; display: flex; flex-direction: column; gap: 3px; text-align: left; color: var(--text); font: inherit; min-width: 0; }
.cal-day.empty { border: 0; background: none; }
.cal-day.gone { opacity: .55; }
.cal-day.has { cursor: pointer; }
.cal-day.has:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .05); }
.cal-day.today { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.cal-day.today .cal-num { background: var(--gold); color: var(--on-gold); }
.cal-day.picked { background: var(--gold-soft); border-color: var(--gold); opacity: 1; }
.cal-num { font-size: .8rem; font-weight: 700; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; }
.cal-evs { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-ev { display: flex; align-items: center; gap: 3px; font-size: .72rem; line-height: 1.2; padding: 2px 5px; border-radius: 6px; min-width: 0;
  background: color-mix(in srgb, var(--kc) 28%, transparent); border-left: 3px solid var(--kc); }
.cal-ev-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-more { font-size: .7rem; color: var(--faint); padding-left: 4px; }
.k-going { --kc: var(--k-going); } .k-hosted { --kc: var(--k-hosted); } .k-vet { --kc: var(--k-vet); } .k-vetonly { --kc: var(--k-vetonly); } .k-other { --kc: var(--k-other); }
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 12px; font-size: .82rem; color: var(--muted); }
.cal-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; background: var(--kc); margin-right: 6px; vertical-align: -1px; }
.cal-legend .btn { margin-left: auto; }
.cal-list-head { margin: 22px 0 12px; }
.event { border-left: 4px solid var(--kc, var(--line)); }
.event-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.event-tags:empty { display: none; }
.ev-tag { font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; text-decoration: none; color: color-mix(in srgb, var(--kc) 65%, white);
  background: color-mix(in srgb, var(--kc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--kc) 45%, transparent); }
.ev-tag.going { --kc: var(--k-going); } .ev-tag.hosted { --kc: var(--k-hosted); } .ev-tag.vet { --kc: var(--k-vet); } .ev-tag.vetonly { --kc: var(--k-vetonly); }
.cal-add-menu { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.cal-add-menu[hidden] { display: none; }
@media (max-width: 640px) {
  .cal { padding: 10px 8px; }
  .cal-grid { gap: 3px; }
  .cal-day { min-height: 54px; padding: 3px; align-items: center; }
  .cal-evs { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 3px; }
  .cal-ev { padding: 0; width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--kc); }
  .cal-ev-e, .cal-ev-t { display: none; }
  .cal-more { padding: 0; font-size: .62rem; }
  .cal-legend .btn { margin-left: 0; }
}
/* owner vetting tab */
.vet-tabs { margin: 4px 0 12px; }
.vet-row { display: flex; flex-direction: column; gap: 10px; }
.vet-row .vf-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.vet-row .vf-head img.avatar, .vet-row .vf-head .avatar { width: 72px; height: 72px; flex: none; }
.vet-row.has-new { border-color: rgba(255, 210, 120, .7); box-shadow: 0 0 0 1px rgba(255, 210, 120, .25); }
.vet-new { margin-left: 8px; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 210, 120, .18); color: #ffd98a; border: 1px solid rgba(255, 210, 120, .5); }
.vet-form { border-top: 1px solid var(--line); padding-top: 8px; }
.vet-form summary { cursor: pointer; font-weight: 700; }
.vet-noform { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* community guidelines */
.gl-box { width: min(640px, 100%); max-height: calc(100vh - 32px); grid-template-rows: auto 1fr auto; }
.gl-body { overflow-y: auto; padding-right: 6px; line-height: 1.55; font-size: .93rem; color: var(--muted); }
.gl-body p { margin: 0 0 10px; }
.gl-body h3 { margin: 16px 0 4px; color: var(--text); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; }
.gl-body h4 { margin: 14px 0 4px; color: var(--name-color); font-size: .98rem; }
.gl-body ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.gl-body ol ol { margin-top: 6px; }
.gl-note { padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); color: var(--text); border: 1px solid var(--line-strong); }
.gl-agree .check { align-items: flex-start; font-weight: 600; color: var(--text); }
.gl-agree .check input { margin-top: 2px; flex: none; }
.gl-agree a { color: var(--gold); }
.gl-agree.missing .check { color: var(--danger); }
.warn-text { color: #ffd98a; font-size: .85rem; }
.gl-head { flex-wrap: nowrap; align-items: center; }
.gl-head h2 { font-size: 1.25rem; }
.gl-head .btn { flex: none; }
/* Question of the week on a profile: same spacing as the other sections */
.profile-body .qotw-card { margin-bottom: 30px; }
/* show / hide password */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 68px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--gold); font: inherit; font-size: .82rem; font-weight: 700; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.pw-eye:hover, .pw-eye:focus-visible { background: var(--gold-soft); }

/* bigger, easier fields on phones (16px text also stops iPhones zooming in) */
@media (max-width: 640px) {
  input[type=text], input[type=url], input[type=email], input[type=password], input[type=search], input[type=date], input[type=number], input[type=tel], textarea, select { font-size: 16px; padding: 12px 14px; }
  input[type=text], input[type=url], input[type=email], input[type=password], input[type=search], input[type=number], input[type=tel], select { min-height: 48px; }
  textarea { min-height: 160px; }
  textarea.short { min-height: 80px; }
}
/* "Interested" on events */
.ev-tag.interested { --kc: var(--k-going); border-style: dashed; }
.interested-btn.on { border-color: var(--k-going); color: var(--k-going); background: color-mix(in srgb, var(--k-going) 14%, transparent); }
.interested-row { margin-top: 6px; }
.cal-ev.int { outline: 1px dashed var(--k-going); outline-offset: -1px; }
@media (max-width: 640px) { .cal-ev.int { outline: 0; box-shadow: 0 0 0 2px var(--k-going); } }
.cal-legend i.k-int { background: transparent; border: 1.5px dashed var(--k-going); box-sizing: border-box; }

/* ---------- Admin: Activity tab ---------- */
.act-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.act-stat { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; align-content: start; }
.act-stat b { font-family: var(--serif); font-size: 2rem; line-height: 1.1; color: var(--gold); }
.act-stat span { color: var(--muted); font-size: .9rem; }
.act-trend { font-size: .78rem; color: var(--muted); }
.act-trend.up { color: #7fdca6; }
.act-trend.down { color: #ff9fb0; }
.act-heatwrap { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 20px; align-items: start; margin-top: 10px; }
.act-heat { display: grid; gap: 2px; }
.act-hrow { display: grid; grid-template-columns: 34px repeat(7, 1fr); gap: 2px; align-items: center; }
.act-hrow.head span { font-size: .72rem; color: var(--muted); text-align: center; }
.act-hlabel { font-size: .7rem; color: var(--muted); text-align: right; padding-right: 4px; }
.act-cell { height: 14px; border-radius: 3px; background: rgba(255,255,255,.04); }
.act-cell[style] { background: color-mix(in srgb, var(--gold) calc(var(--a) * 100%), transparent); }
.act-sum { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.act-bars-wrap { margin: 6px 0 16px; }
.act-bars-label { margin: 0 0 6px; font-size: .92rem; }
.act-bars { display: flex; align-items: flex-end; gap: 2px; height: 90px; border-bottom: 1px solid var(--line); }
.act-bars span { flex: 1; min-width: 2px; background: var(--gold); opacity: .75; border-radius: 3px 3px 0 0; }
.act-bars-axis { display: flex; justify-content: space-between; font-size: .75rem; margin-top: 4px; }
.act-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.act-two h3 { margin: 0 0 8px; font-size: 1rem; }
.act-meter { display: grid; grid-template-columns: minmax(120px, 1.3fr) 2fr auto; gap: 8px; align-items: center; margin: 6px 0; font-size: .9rem; }
.act-meter > small { grid-column: 2 / -1; margin-top: -6px; font-size: .75rem; }
.act-meter i { height: 10px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.act-meter em { display: block; height: 100%; background: var(--gold); border-radius: 6px; }
.act-meter b { min-width: 2ch; text-align: right; }
.act-table { display: grid; margin-top: 8px; }
.act-tr { display: grid; grid-template-columns: 36px minmax(0, 2.4fr) repeat(3, minmax(56px, .7fr)) minmax(90px, 1fr); gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.act-tr.head { font-size: .78rem; color: var(--muted); padding-top: 0; }
.act-tr:last-child { border-bottom: 0; }
.act-rank { text-align: center; font-weight: 600; }
.act-who { display: grid; gap: 2px; justify-items: start; min-width: 0; }
.act-did { font-size: .75rem; }
.act-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 8px; }
.act-person { display: grid; gap: 2px; justify-items: start; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.act-quiet summary { cursor: pointer; }
@media (max-width: 720px) {
  .act-heatwrap, .act-two { grid-template-columns: 1fr; }
  .act-tr.head { display: none; }
  .act-tr { grid-template-columns: 30px 1fr 1fr 1fr; row-gap: 4px; }
  .act-tr .act-who { grid-column: 2 / -1; }
  .act-tr > span[data-l] { font-size: .82rem; }
  .act-tr > span[data-l]::before { content: attr(data-l) ": "; color: var(--muted); }
  .act-tr > span[data-l]:nth-child(3) { grid-column: 2; }
  .act-tr > span[data-l="Last seen"] { grid-column: 2 / -1; }
}

/* Birthday */
.bday-row { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 8px; }
.bday-row select, .bday-row input { min-width: 0; }
.field .check { margin-top: 8px; }
.new-pill.bday { background: var(--gold-soft); color: var(--gold); }

/* Birthdays on the Events calendar: a party-rainbow look */
:root { --bday-rainbow: linear-gradient(90deg, #ff7eb3, #ffb36e, #ffe46e, #7fdca6, #7ec8ff, #c49bff); }
.k-bday { --kc: #ff7eb3; }
.cal-ev.k-bday { border-left: 0; color: #2a1030; font-weight: 700; background: var(--bday-rainbow); }
.cal-day.bday .cal-num { box-shadow: 0 0 0 2px #ffb36e; }
.cal-legend i.k-bday { background: conic-gradient(#ff7eb3, #ffe46e, #7fdca6, #7ec8ff, #c49bff, #ff7eb3); border-radius: 50%; }
.event.k-bday { border-left: 0; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 126, 179, .16), rgba(255, 228, 110, .10) 40%, rgba(126, 200, 255, .12) 75%, rgba(196, 155, 255, .16)), var(--panel); }
.event.k-bday::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, #ff7eb3, #ffe46e, #7fdca6, #7ec8ff, #c49bff); }
.ev-tag.bday { color: #2a1030; background: var(--bday-rainbow); border-color: transparent; }
@media (max-width: 640px) {
  .cal-ev.k-bday { background: conic-gradient(#ff7eb3, #ffe46e, #7fdca6, #7ec8ff, #c49bff, #ff7eb3); }
}
.check[hidden] { display: none; }

/* Relationships */
.rel-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.rel-link { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 159, 210, .07); }
.rel-lbl { font-size: .8rem; color: var(--muted); white-space: nowrap; }
@media (min-width: 761px) { .profile-card .profile-head > .rel-row { grid-column: 2 / span 2; grid-row: 9; } }
.rel-group { margin: 10px 0 14px; }
.rel-group h3 { margin: 0 0 6px; font-size: .95rem; }
.rel-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rel-item:last-child { border-bottom: 0; }
.rel-item.pending .rel-what { color: var(--muted); }
.rel-what { flex: 1; min-width: 140px; font-size: .92rem; }
.rel-btns { display: flex; gap: 6px; }
.rel-add { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; align-items: center; margin-top: 8px; }
@media (max-width: 640px) { .rel-add { grid-template-columns: 1fr; } }

/* Admin: event attendance */
.mod-event-wrap { border-bottom: 1px solid var(--line); }
.mod-event-wrap:last-child { border-bottom: 0; }
.mod-event-wrap > .mod-event { border-bottom: 0; }
.att-holder[hidden] { display: none; }
.att-panel { background: rgba(0, 0, 0, .18); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; }
.att-sum { margin-bottom: 8px; font-size: .92rem; color: var(--muted); }
.att-sum b { color: var(--text); }
.att-list { display: grid; }
.att-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.att-row:last-child { border-bottom: 0; }
.att-row > .person { justify-self: start; }
.att-row.came { background: linear-gradient(90deg, rgba(127, 220, 166, .10), transparent 60%); }
.att-came { margin: 0; font-size: .85rem; white-space: nowrap; }
.att-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.att-tag { font-size: .72rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.att-tag.going { color: var(--k-going); border-color: color-mix(in srgb, var(--k-going) 45%, transparent); }
.att-tag.walkin { color: var(--k-vet); border-color: color-mix(in srgb, var(--k-vet) 45%, transparent); }
.att-meta { white-space: nowrap; }
.att-x { padding: 4px 9px; }
.att-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
@media (max-width: 640px) {
  .att-row { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 4px; }
  .att-tags { grid-column: 2; }
  .att-meta { grid-column: 2; white-space: normal; }
  .att-x { grid-column: 3; grid-row: 1; }
  .att-add { grid-template-columns: 1fr; }
}

/* The group page */
.group-banner { background-size: cover; background-position: center; height: 190px; }
.group-mark { display: grid; place-items: center; }
.group-mark .mark { width: 76px; height: 48px; }
.group-tagline { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--muted); }
.group-events { display: grid; gap: 8px; }
.group-ev { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--text); border-left: 3px solid var(--k-hosted); }
.group-ev:hover { border-color: var(--line-strong); }
.group-ev b, .group-ev small { display: block; }
.group-ev-e { font-size: 1.4rem; line-height: 1; }
.group-team { display: grid; gap: 8px; }
.group-tm { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.profile-body .main > .panel + .panel { margin-top: 0; }
/* Admin: group page editor */
.gp-img { border: 1px dashed var(--line-strong); border-radius: 12px; min-height: 90px; display: grid; place-items: center; overflow: hidden; background: rgba(0,0,0,.2); }
.gp-img img { display: block; width: 100%; max-height: 180px; object-fit: cover; }
.gp-logo { width: 120px; height: 120px; min-height: 0; border-radius: 50%; }
.gp-logo img { height: 100%; max-height: none; }
.gp-list { display: grid; gap: 10px; }
.gp-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.gp-item-btns { display: flex; gap: 4px; }
.gp-item-btns .btn { padding: 4px 9px; }
.gp-link { display: grid; grid-template-columns: 64px 1fr 1.3fr; gap: 8px; }
.gp-link .gp-note { grid-column: 2 / -1; }
.gp-sec { display: grid; gap: 8px; }
.gp-sec-top { display: grid; grid-template-columns: 64px 1fr; gap: 8px; }
.gp-emoji { text-align: center; }
@media (max-width: 640px) {
  .gp-item { grid-template-columns: 1fr; }
  .gp-link { grid-template-columns: 64px 1fr; }
  .gp-link input[type=url] { grid-column: 1 / -1; }
  .gp-link .gp-note { grid-column: 1 / -1; }
}
.group-p + .group-p { margin-top: 12px; }
/* Group page pinned on the member list */
.link.group-row { border-color: color-mix(in srgb, var(--k-hosted) 45%, transparent); background: linear-gradient(90deg, rgba(255, 159, 210, .10), transparent 70%), var(--panel); }
.group-mono { display: grid; place-items: center; background: var(--panel-solid); border: 2px solid var(--k-hosted); }
.group-mono .mark { width: 26px; height: 17px; }
.new-pill.group-pill { background: rgba(255, 159, 210, .16); color: var(--k-hosted); }

/* How-to guide */
.ht-box { width: min(480px, 100%); gap: 10px; padding: 18px 20px 20px; }
.ht-top { display: flex; justify-content: space-between; align-items: center; }
.ht-emoji { font-size: 3rem; text-align: center; line-height: 1.1; }
.ht-title { text-align: center; margin: 0; font-family: var(--serif); color: var(--pink); }
.ht-body { min-height: 150px; color: var(--muted); line-height: 1.55; }
.ht-body p { margin: 0 0 10px; }
.ht-tip { padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); color: var(--text); border: 1px solid var(--line-strong); font-size: .92rem; }
.ht-dots { display: flex; justify-content: center; gap: 8px; }
.ht-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line-strong); cursor: pointer; }
.ht-dot.on { background: var(--gold); transform: scale(1.25); }
.ht-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }

/* One Share button: the menu */
.share-sheet { width: min(420px, 100%); }
.share-choices { display: grid; gap: 8px; }
.share-choice { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.share-choice:hover, .share-choice:focus-visible { border-color: var(--gold); outline: none; }
.share-choice-e { font-size: 1.4rem; line-height: 1.2; }
.share-choice b { display: block; }
.share-choice small { display: block; color: var(--muted); font-size: .84rem; margin-top: 2px; }

/* ---------- The Confession Box ---------- */
.cb-head h1 { margin-bottom: 4px; }
.cb-rules summary, .cb-mine summary { cursor: pointer; }
.cb-rules ul { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; color: var(--muted); }
.cb-composer { display: grid; gap: 8px; }
.cb-composer h2 { margin-bottom: 0; }
.cb-idea-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cb-prompt { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.cb-prompt:empty { display: none; }
.cb-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cb-mine-list { display: grid; gap: 10px; margin-top: 12px; }
.cb-mine-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.cb-mine-item p { margin: 0 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cb-st { font-weight: 700; }
.cb-st-approved { color: var(--k-vet); } .cb-st-pending { color: var(--k-going); } .cb-st-hidden { color: var(--muted); }
.cb-wall-head { margin: 22px 0 10px; display: grid; gap: 8px; }
.cb-wall-head h2 { margin: 0; }
.cb-wall { columns: 2 280px; column-gap: 14px; }
.cb-card { break-inside: avoid; margin: 0 0 14px; padding: 16px 16px 12px; border-radius: 6px 18px 6px 18px; position: relative;
  background: linear-gradient(170deg, #f6ecdc, #eadbc4); color: #2a1a20; box-shadow: 0 8px 22px rgba(0,0,0,.35); border-top: 5px solid #e8a7c3; }
.cb-card.heat-spicy { border-top-color: #ff8a5c; } .cb-card.heat-fire { border-top-color: #e0245e; }
.cb-card.featured { columns: auto; margin-bottom: 18px; border-top-width: 7px; box-shadow: 0 0 0 2px var(--gold), 0 10px 30px rgba(0,0,0,.4); }
.cb-feat { font-weight: 800; color: #8a5a00; margin-bottom: 6px; letter-spacing: .02em; }
.cb-meta { display: flex; gap: 8px; align-items: center; font-size: .8rem; margin-bottom: 6px; }
.cb-meta .faint { color: #7b6672; margin-left: auto; font-size: .8rem; }
.cb-heat { font-weight: 800; }
.cb-yours { font-size: .7rem; padding: 1px 7px; border-radius: 999px; background: #2a1a20; color: #f6ecdc; }
.cb-from-prompt { margin: 0 0 4px; color: #7b6672; font-size: .82rem; }
.cb-text { margin: 0 0 10px; font-family: var(--serif); font-size: 1.08rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.cb-text.blurred { filter: blur(7px); user-select: none; }
.cb-cw { display: block; width: 100%; margin: 0 0 6px; padding: 6px 10px; border-radius: 10px; border: 1px dashed #b07a90; background: rgba(255,255,255,.4); color: #5a2a40; font: inherit; font-size: .85rem; cursor: pointer; }
.cb-reacts { display: flex; flex-wrap: wrap; gap: 5px; }
.cb-rx { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(42,26,32,.18); background: rgba(255,255,255,.45); color: #2a1a20; font: inherit; font-size: .85rem; cursor: pointer; }
.cb-rx.on { background: #2a1a20; color: #f6ecdc; border-color: #2a1a20; }
.cb-rx b { font-size: .78rem; }
.cb-foot { text-align: center; margin-top: 10px; }
.mod-cb-list { display: grid; gap: 10px; margin-top: 10px; }
.mod-cb { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.mod-cb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mod-cb-text { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--serif); font-size: 1.02rem; }

/* Online now */
.online-now { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-size: .85rem; color: #8ff0b8; font-weight: 600; }
.handle > .online-now:first-child { margin-left: 0; }
.online-now .dot { width: 9px; height: 9px; animation: online-pulse 2.4s ease-in-out infinite; }
@keyframes online-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(61, 220, 132, .22); } 50% { box-shadow: 0 0 0 6px rgba(61, 220, 132, .05); } }
@media (prefers-reduced-motion: reduce) { .online-now .dot { animation: none; } }
.link .mono-wrap .dot { width: 13px; height: 13px; }

/* ---------- Networking ---------- */
.net-how { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; color: var(--muted); }
.net-picker { display: grid; gap: 12px; }
.net-realm h3 { margin: 0 0 6px; font-size: 1rem; }
.pill.net-sugg { border-style: dashed; border-color: var(--gold); }
.net-tips { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.net-list { display: grid; gap: 14px; margin-top: 12px; }
.net-card { margin: 0; display: grid; gap: 6px; }
.net-head { display: flex; align-items: flex-start; gap: 12px; }
.net-av { position: relative; flex: none; }
.net-av .mini-av { width: 54px; height: 54px; font-size: 1.3rem; border: 2px solid var(--gold); }
.net-av .dot { position: absolute; right: 0; bottom: 0; width: 13px; height: 13px; border: 2px solid var(--bg-2); box-shadow: none; }
.net-who { display: grid; gap: 2px; min-width: 0; flex: 1; }
.net-name { font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.net-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.net-tag { font-size: .72rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.net-tag.style { color: var(--k-hosted); border-color: color-mix(in srgb, var(--k-hosted) 40%, transparent); }
.net-score { width: 110px; flex: none; display: grid; gap: 2px; justify-items: end; }
.net-score i { width: 100%; height: 8px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.net-score em { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--k-hosted)); border-radius: 6px; }
.net-intro { margin: 2px 0; font-style: italic; color: var(--muted); }
.net-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: .88rem; }
.net-row > b { margin-right: 4px; font-size: .82rem; }
.net-chip { font-size: .78rem; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.net-chip.love { border-color: color-mix(in srgb, var(--k-hosted) 50%, transparent); background: rgba(255,159,210,.1); }
.net-chip.circle { border-color: color-mix(in srgb, var(--gold) 50%, transparent); background: var(--gold-soft); }
.net-circles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.net-circ { display: grid; gap: 2px; justify-items: start; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.net-circ:hover { border-color: var(--gold); }
.net-circ.in { border-color: var(--gold); background: var(--gold-soft); }
.net-circ-e { font-size: 1.5rem; }
.net-circ small { color: var(--muted); font-size: .75rem; }
.net-people { display: grid; gap: 12px; margin-top: 10px; }
.net-person { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
@media (max-width: 560px) { .net-score { width: 70px; } }
.net-block { display: grid; gap: 5px; padding-top: 6px; border-top: 1px dashed var(--line); }
.net-block-h { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }

/* Progress meter: highlight the spot it sends you to */
.glow-target { animation: glow-target 2.4s ease-out; border-radius: 14px; }
@keyframes glow-target { 0%, 35% { box-shadow: 0 0 0 3px var(--gold), 0 0 24px var(--gold-soft); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .glow-target { animation: none; outline: 2px solid var(--gold); outline-offset: 4px; } }

/* The Hunt: what kind of game it is, at a glance */
.hunt-hero .hunt-tagline { font-family: var(--serif); font-size: 1.15rem; color: var(--text); margin-bottom: 12px; }
.hunt-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 620px; margin: 0 auto 14px; }
.hunt-facts span { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); font-size: .82rem; font-weight: 600; }
.hunt-facts span:nth-child(2) { border: 0; background: none; color: var(--muted); padding: 4px 0; }

/* One-time 21+ and guidelines check for older accounts */
.consent-modal { z-index: 80; }
.consent-box { width: min(460px, 100%); gap: 12px; }
.consent-e { font-size: 2.4rem; text-align: center; }
.modal.gl-modal { z-index: 90; }

/* ---------- feedback ---------- */
.fb-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--gold); background: var(--v2); color: var(--text);
  font: inherit; font-size: .9rem; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.fb-float:hover, .fb-float:focus-visible { background: var(--gold-soft); }
.fb-float[hidden] { display: none; }
@media (max-width: 600px) { .fb-float { padding: 10px; right: 12px; bottom: 12px; } .fb-float-t { display: none; } }
.fb-box { display: grid; gap: 12px; }
.fb-box textarea { width: 100%; }
.fb-note { display: flex; gap: 8px; margin-top: 8px; }
.fb-note input { flex: 1; min-width: 0; }
.fb-item.fb-bug { border-left: 3px solid #e0605a; }
.fb-item.fb-love { border-left: 3px solid #c77dff; }
.fb-item.fb-idea { border-left: 3px solid var(--gold); }

/* ---------- backlog ---------- */
.bl-add { display: grid; gap: 8px; margin: 4px 0 14px; }
.bl-add-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bl-list { display: grid; gap: 8px; margin-top: 12px; }
.bl-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.bl-item.done { opacity: .7; }
.bl-item.done .bl-title b { text-decoration: line-through; }
.bl-tick { padding-top: 2px; }
.bl-tick input { width: 22px; height: 22px; accent-color: var(--gold); cursor: pointer; }
.bl-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.bl-title { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bl-notes { margin: 0; white-space: pre-wrap; }
.bl-fb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bl-quote { flex-basis: 100%; margin: 0; font-style: italic; }
.att-tag.bl-high { border-color: #e0605a; }
.att-tag.bl-doing { border-color: var(--gold); }
.bl-item select, .bl-add select { width: auto; padding: 4px 8px; font-size: .85rem; }

/* ---------- volunteering ---------- */
.ev-tag.vol { border-color: #5fd3a0; color: var(--text); text-decoration: none; }
.vol-expect details { border-top: 1px solid var(--line); padding: 8px 0; }
.vol-expect details:first-of-type { border-top: 0; }
.vol-expect summary { cursor: pointer; font-weight: 600; }
.vol-expect ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.vol-mine { display: grid; gap: 8px; }
.vol-row { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.vol-row.approved { border-color: #5fd3a0; }
.vol-st { margin-top: 2px; }
.vn-msg { margin: 6px 0 0; font-style: italic; white-space: pre-wrap; }
.vn-item { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.vn-item.approved { border-color: #5fd3a0; }
.vo-group { margin-top: 16px; }
.vo-group h3 { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin: 0 0 8px; }
.vo-card.vo-approved { border-left: 3px solid #5fd3a0; }
.vo-card.vo-pending { border-left: 3px solid var(--gold); }
.vo-contact { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vo-qa { margin-top: 6px; }
.vo-qa p { margin: 0; white-space: pre-wrap; }
.vo-decide { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.vo-roles { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- vetting: possible matches with the old application sheet ---------- */
.vm-member { display: grid; gap: 10px; }
.vm-cand { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.vm-cand.t-strong { border-color: rgba(120, 220, 150, .45); }
.vm-cand.t-close { border-color: rgba(255, 210, 90, .45); }
.att-tag.close { border-color: rgba(255, 210, 90, .7); }
.vm-cmp { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vm-f { font-size: .82rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.vm-f.ok { border-color: rgba(120, 220, 150, .6); }
.vm-f.close { border-color: rgba(255, 210, 90, .7); }
.vm-f.no { border-color: rgba(255, 120, 140, .6); }
.vm-f.none { opacity: .6; }
.vm-find { display: grid; gap: 8px; justify-items: start; }
.vm-search, .vm-results { width: 100%; }
.vm-search { display: grid; gap: 8px; }
.vm-results { display: grid; gap: 8px; }
.vm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.att-tag.hit { border-color: rgba(120, 220, 150, .6); }
.att-tag.weak { border-color: rgba(255, 190, 90, .6); }
.vm-ans summary { cursor: pointer; margin-top: 6px; }

/* ---------- vibe playlist ---------- */
.songs-ed { display: grid; gap: 8px; justify-items: start; }
.song-rows { display: grid; gap: 8px; width: 100%; }
.song-row { display: flex; gap: 8px; align-items: center; }
.song-row input { flex: 1; min-width: 0; }
.song-cap { margin: 6px 0 0; font-size: .88rem; color: var(--muted, inherit); opacity: .85; }
.song-playlist { display: grid; gap: 8px; }
.song-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.song-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.song-item:hover, .song-item:focus-visible { border-color: var(--gold); }
.song-item.on { border-color: var(--gold); background: var(--gold-soft); }
.song-n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; border: 1px solid var(--line); }
.song-item.on .song-n { background: var(--gold); color: #1a1420; border-color: var(--gold); }
.song-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.song-src { flex: none; font-size: .75rem; opacity: .65; }

/* ---------- applicants without a profile ---------- */
.np-list { display: grid; gap: 8px; }
.np-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
/* Long unbroken text from the old sheet (handles, notes, emails) wraps inside the card instead of stretching the list. */
.np-list, .vm-results, .vm-member, .song-list { grid-template-columns: minmax(0, 1fr); }
.np-row, .vm-cand, .np-main { min-width: 0; overflow-wrap: anywhere; }
.vm-tags .att-tag { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }

a.att-tag.link-tag { color: inherit; text-decoration: none; cursor: pointer; }
a.att-tag.link-tag:hover, a.att-tag.link-tag:focus-visible { border-color: var(--gold); background: var(--gold-soft); }
.vf-answers a.ans-link { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* Member list: search and sort side by side */
.dir-search-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px; }
.dir-search-row .search { flex: 1; min-width: 0; margin-bottom: 0; }
.dir-search-row .dir-sort { width: auto; flex: none; min-height: 44px; border-radius: 999px; padding: 0 12px; }

/* ---------- Admin guide ---------- */
.guide-box { width: min(640px, 100%); max-width: 100%; max-height: min(88vh, 760px); display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.guide-box > * { min-width: 0; max-width: 100%; }
.guide-select { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel-solid); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.guide-page { overflow-y: auto; min-height: 0; flex: 1; padding: 2px 4px 8px 0; overscroll-behavior: contain; }
.guide-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.guide-steps { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; line-height: 1.5; }
.guide-tips { margin-top: 14px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.guide-tips ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.mod-head .toggle-row h1 { margin: 0; }

/* ---------- hobby picker ---------- */
.hobby-field { display: grid; gap: 8px; }
.hobby-picker summary { cursor: pointer; font-weight: 600; font-size: .92rem; padding: 8px 12px; border: 1px dashed var(--gold); border-radius: 12px; width: fit-content; }
.hobby-picker[open] summary { margin-bottom: 4px; }
.hobby-groups { display: grid; gap: 12px; margin-top: 8px; }
.hobby-group > b { display: block; font-size: .85rem; margin-bottom: 6px; opacity: .85; }
.hobby-pill { font-size: .85rem; }
.hobby-count { font-weight: 400; margin-left: 6px; }
.net-chip.hobby { border-color: rgba(120, 200, 255, .55); }

/* Relationship style picker */
.rel-groups { display: grid; gap: 8px; }
.rel-group-h { font-size: .85rem; opacity: .85; margin-top: 4px; }
.rel-help summary { cursor: pointer; font-size: .88rem; opacity: .85; }
.rel-help dl { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 4px 12px; margin: 8px 0 0; font-size: .88rem; }
.rel-help dt { font-weight: 600; }
.rel-help dd { margin: 0; opacity: .85; }
@media (max-width: 600px) { .rel-help dl { grid-template-columns: minmax(0, 1fr); } .rel-help dd { margin-bottom: 6px; } }

/* ---------- Admin → People: member list and member card ---------- */
.mb-filters { margin-top: 8px; }
.mb-sort { width: auto; flex: none; min-height: 44px; border-radius: 999px; padding: 0 12px; }
.mb-panel { padding: 6px; }
.mb-list { display: grid; }
.mb-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; width: 100%; padding: 10px; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 12px; }
.mb-row:last-child { border-bottom: 0; }
.mb-row:hover, .mb-row:focus-visible { background: rgba(255, 255, 255, .04); }
.mb-row.is-hidden { opacity: .6; }
.mb-av { position: relative; display: inline-flex; }
.mb-av .mini-av { width: 40px; height: 40px; font-size: 1rem; }
.mb-av.big .mini-av { width: 64px; height: 64px; font-size: 1.5rem; }
.mb-av .dot { position: absolute; right: 0; bottom: 0; }
.mb-main { display: grid; min-width: 0; }
.mb-main b, .mb-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-meta { display: grid; text-align: right; font-size: .88rem; }
.mb-seen.on { color: #7be0a3; }
.mb-flags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 220px; }
.att-tag.warn { border-color: rgba(255, 190, 90, .7); }
.mb-row .arrow { opacity: .5; font-size: 1.3rem; }
.mb-pager { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 10px 0 4px; }
@media (max-width: 640px) {
  .mb-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .mb-meta { grid-column: 2 / 3; text-align: left; }
  .mb-flags { grid-column: 2 / 4; justify-content: flex-start; max-width: none; }
  .mb-row .arrow { grid-row: 1; grid-column: 3; }
}
.mb-card { width: min(720px, 100%); max-width: 100%; max-height: 90vh; overflow-y: auto; display: grid; gap: 14px; }
.mb-card > * { min-width: 0; }
.mb-card-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.mb-card-who small { display: block; }
.mb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.mb-tile { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.mb-tile b { font-size: 1.05rem; }
.mb-sec { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; }
.mb-sec h3 { margin: 0; font-size: 1rem; }
.mb-bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; align-items: end; height: 70px; }
.mb-bars i { display: block; background: var(--gold); border-radius: 3px 3px 0 0; min-height: 2px; }
.mb-bars i.zero { background: var(--line); }
.mb-hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; height: 22px; }
.mb-hours i { display: block; background: var(--gold); border-radius: 3px; }
.mb-hours-l { display: flex; justify-content: space-between; font-size: .72rem; }
.mb-counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.mb-counts > div { display: grid; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.mb-counts > div.zero { opacity: .5; }
.mb-counts b { font-size: 1.1rem; }
.mb-counts small { font-size: .78rem; opacity: .8; }
.mb-flag { font-size: .8rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); }
.mb-flag.ok { border-color: rgba(120, 220, 150, .55); }
.mb-flag.no { border-color: rgba(255, 120, 140, .55); opacity: .85; }
.mb-row2 { display: grid; gap: 4px; }

/* Events marked "Not interested" */
.not-int-box { margin-top: 8px; border: 1px dashed var(--line); border-radius: 16px; padding: 10px 12px; }
.not-int-box summary { cursor: pointer; font-weight: 600; }
.event.not-int { opacity: .7; }
.not-int-btn[aria-pressed="true"] { border-color: var(--gold); }

/* Profile header: buttons stay top right; everything under the name uses the full width so rows line up. */
@media (min-width: 761px) {
  .profile-card .profile-head > .actions { grid-row: 1 / span 2; }
  .profile-card .profile-head > .looking,
  .profile-card .profile-head > .mood,
  .profile-card .profile-head > .chips,
  .profile-card .profile-head > .badges,
  .profile-card .profile-head > .staff-vet,
  .profile-card .profile-head > .rel-row,
  .profile-card .profile-head > .react-holder { grid-column: 2 / span 2; }
  .profile-card .profile-head > .mood { justify-self: start; }
}

/* ---------- photos & videos in the side column, and the viewer ---------- */
.gallery-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.gallery-side .ph { border-radius: 10px; }
.ph img, .ph video, .ph-media img, .ph-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.nsfw video { filter: blur(22px) saturate(.6) brightness(.7); transform: scale(1.1); }
.ph .veil span { font-size: .7rem; }
.ph-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 4, 14, .62); color: #fff; font-weight: 700; font-size: 1.3rem; }
.vid-thumb { position: relative; display: block; width: 100%; height: 100%; }
.vid-thumb video { pointer-events: none; }
.vid-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.4rem; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.ph-media { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; }
.mod-photos video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.mod-photos video.nsfw { filter: blur(12px); }
.viewer { position: fixed; inset: 0; z-index: 80; background: rgba(8, 3, 8, .95); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 12px; gap: 8px; }
.viewer-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; color: #ddd; }
.viewer-count { font-size: .9rem; opacity: .8; }
.viewer-stage { grid-column: 2; grid-row: 2; height: 100%; display: grid; place-items: center; min-height: 0; touch-action: pan-y; }
.viewer-media { position: relative; max-width: 100%; max-height: 100%; display: grid; place-items: center; }
.viewer-media img, .viewer-media video { max-width: 100%; max-height: calc(100vh - 160px); border-radius: 12px; display: block; }
.viewer-media.veiled img, .viewer-media.veiled video { filter: blur(30px) brightness(.6); }
.viewer-reveal { position: absolute; inset: 0; margin: auto; width: fit-content; height: fit-content; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.45); color: #fff; font: inherit; cursor: pointer; }
.viewer-nav { grid-row: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font-size: 1.6rem; cursor: pointer; }
.viewer-nav.prev { grid-column: 1; } .viewer-nav.next { grid-column: 3; }
.viewer-cap { grid-column: 1 / -1; text-align: center; color: #ccc; min-height: 1.2em; }
@media (max-width: 600px) { .viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.35); } .viewer-nav.prev { left: 6px; } .viewer-nav.next { right: 6px; } .viewer-stage { grid-column: 1 / -1; } }
.ph-card .ph-media { border-radius: 0; }
.viewer { background: rgba(8, 3, 8, .98); }
.viewer-media { overflow: hidden; border-radius: 12px; }
.ph.nsfw .vid-play { display: none; }

/* Photo upload rules, full gallery, reports */
.photo-rules { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 4px 0 12px; background: rgba(255,255,255,.02); }
.photo-rules ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: .9rem; }
.upload.locked { opacity: .65; }
.photos-title { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.photos-title:hover h2, .photos-title:focus-visible h2 { text-decoration: underline; text-underline-offset: 4px; }
.ph-flag { position: absolute; left: 4px; right: 4px; bottom: 4px; font-size: .68rem; padding: 2px 6px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; text-align: center; }
.ph-media { position: relative; }
.gallery-all-box { width: min(980px, 100%); max-width: 100%; max-height: 90vh; overflow-y: auto; display: grid; gap: 12px; }
.gallery-all-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.gallery-all-grid .ph { border-radius: 10px; }
.viewer-report { color: #fff; border-color: rgba(255,255,255,.35); }
.mod-sec-h { margin: 6px 0 10px; font-size: 1.05rem; }
.pr-grid { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 600px) { .pr-grid { grid-template-columns: minmax(0, 1fr); } }
.pr-media { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--panel-solid); }
.pr-media img, .pr-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-media.blurred img, .pr-media.blurred video { filter: blur(24px) brightness(.6); }
.pr-reveal { position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.5); color: #fff; font: inherit; font-size: .8rem; cursor: pointer; }
.pr-list { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; }

/* ---------- Truth or Dare Roulette ---------- */
.tod { display: grid; gap: 16px; }
.tod > * { min-width: 0; }
.tod .panel { margin: 0; }
.tod-join { text-align: center; display: grid; gap: 10px; justify-items: center; }
.tod-join .pills { justify-content: center; }
.tod-hero { display: flex; gap: 14px; justify-content: center; margin: 4px 0 6px; }
.tod-card-back { width: 74px; height: 104px; border-radius: 12px; display: grid; place-items: center; font-size: 2rem;
  background: linear-gradient(150deg, #4a4272, #2a2340); border: 2px solid var(--gold); box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.tod-card-back.t { transform: rotate(-8deg); } .tod-card-back.d { transform: rotate(8deg); background: linear-gradient(150deg, #7a2848, #3b1424); border-color: #ff8fb6; }
.tod-status { display: grid; gap: 8px; }
.tod-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tod-stat { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font: inherit; text-align: center; }
.tod-stat b { font-size: 1.15rem; } .tod-stat small { color: var(--faint); font-size: .72rem; }
.tod-stat-btn { cursor: pointer; } .tod-stat-btn:hover { border-color: var(--gold); }
.tod-heat .pills { justify-content: center; }
.tod-today { display: grid; gap: 12px; }
.tod-today h2 { margin: 0; }
.tod-wheel { position: relative; width: 150px; height: 150px; margin: 6px auto 0; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#4a4272 0 33.3%, #7a2848 0 66.6%, #988ae3 0); border: 4px solid var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.tod-wheel span { position: absolute; font-size: 1.8rem; }
.tod-wheel span:nth-child(1) { transform: translate(-34px, -22px); } .tod-wheel span:nth-child(2) { transform: translate(34px, -22px); } .tod-wheel span:nth-child(3) { transform: translate(0, 38px); }
.tod-wheel::after { content: ""; position: absolute; top: -14px; left: 50%; margin-left: -9px; border: 9px solid transparent; border-top: 14px solid var(--pink); }
.tod-wheel.spinning { animation: tod-spin 1.1s cubic-bezier(.2,.7,.3,1) both; }
@keyframes tod-spin { to { transform: rotate(1440deg); } }
.tod-pick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; }
.tod-pick .btn { justify-content: center; }
.tod-truth { border-color: #988ae3; } .tod-dare { border-color: #ff8fb6; }
@media (max-width: 520px) { .tod-pick { grid-template-columns: 1fr 1fr; } .tod-pick .tod-spin { grid-column: 1 / -1; order: -1; } .tod-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tod-card { border-radius: 16px; padding: 16px 18px; background: linear-gradient(165deg, #f6ecdc, #eadbc4); color: #2a1a20; border-top: 6px solid #988ae3; box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.tod-card.kind-dare { border-top-color: #e0245e; }
.tod-card-top { display: flex; justify-content: space-between; font-weight: 800; font-size: .85rem; letter-spacing: .03em; text-transform: uppercase; color: #5a2a40; }
.tod-card-text { margin: 10px 0 2px; font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; overflow-wrap: anywhere; }
.tod-card.big.dealt { animation: tod-deal .5s ease-out both; }
@keyframes tod-deal { from { transform: rotateY(90deg) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.tod-answer { display: grid; gap: 8px; }
.tod-photo-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tod-file-btn { position: relative; overflow: hidden; cursor: pointer; }
.tod-file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tod-preview { display: flex; align-items: center; gap: 8px; }
.tod-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.tod-my-answer { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--serif); font-size: 1.05rem; }
.tod-proof { position: relative; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; width: min(100%, 260px); }
.tod-proof img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.tod-proof.nsfw img { filter: blur(20px) brightness(.7); transform: scale(1.1); }
.tod-nsfw { position: absolute; inset: auto 0 0 0; padding: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: .78rem; font-weight: 700; text-align: center; }
.tod-leaders { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.tod-leaders li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); }
.tod-leaders li.first { border-color: var(--gold); background: var(--gold-soft); }
.tod-rank { width: 26px; text-align: center; font-weight: 800; }
.tod-crown h2 { margin-bottom: 8px; }
.tod-wall-sec { display: grid; gap: 10px; }
.tod-wall { columns: 2 280px; column-gap: 14px; }
.tod-post { break-inside: avoid; margin: 0 0 14px; padding: 12px 14px; border-radius: 6px 18px 6px 18px; background: linear-gradient(170deg, #f6ecdc, #eadbc4); color: #2a1a20; border-top: 5px solid #988ae3; box-shadow: 0 8px 22px rgba(0,0,0,.35); display: grid; gap: 8px; }
.tod-post.kind-dare { border-top-color: #e0245e; }
.tod-post-head { display: flex; align-items: center; gap: 8px; }
.tod-post-head .person { color: #2a1a20; font-weight: 700; }
.tod-post-head .faint { color: #7b6672; margin-left: auto; }
.tod-report { padding: 2px 8px; color: #7b6672; border-color: rgba(42,26,32,.18); }
.tod-post-card { margin: 0; color: #5a2a40; font-size: .85rem; }
.tod-post-card span { font-weight: 800; }
.tod-post-answer { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--serif); font-size: 1.05rem; line-height: 1.45; }
.tod-post .tod-proof { width: 100%; }
.tod-idea { display: grid; gap: 8px; }
.tod-idea summary, .tod-add summary { cursor: pointer; }
.tod-idea[open] > :not(summary) { margin-top: 8px; }
.tod-add { margin: 8px 0; display: grid; gap: 8px; }
.tod-add[open] > :not(summary) { margin-top: 8px; }
.tod-edit { display: grid; gap: 6px; margin-top: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.linkish { background: none; border: 0; padding: 0; color: var(--faint); text-decoration: underline; font: inherit; cursor: pointer; }

/* ---------- Kink Bingo ---------- */
.bingo { display: grid; gap: 14px; }
.bingo > * { min-width: 0; }
.bingo .panel { margin: 0; }
.tod-stat-btn.active { border-color: var(--gold); background: var(--gold-soft); }
.tod-stat-btn:disabled { opacity: .5; cursor: default; }
.bingo-banner { text-align: center; font-weight: 800; font-size: 1.15rem; padding: 10px; border-radius: 14px; background: linear-gradient(90deg, #4a4272, #7a2848); border: 1px solid var(--gold); }
.bingo-grid { width: 100%; max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 10px; border-radius: 18px; background: linear-gradient(160deg, #2b2540, #1f1a2b); border: 2px solid var(--line-strong); }
.bingo-sq { position: relative; aspect-ratio: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel-solid); color: var(--text); font: inherit; cursor: pointer; overflow: hidden; text-align: center; transition: transform .12s, background .2s; }
.bingo-sq:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--gold); }
.bingo-sq.k-spicy { border-color: rgba(255, 120, 150, .35); }
.bingo-sq.k-free { background: linear-gradient(150deg, #988ae3, #ecc5ed); color: #17141f; font-weight: 800; cursor: default; }
.bingo-emo { font-size: 1.35rem; line-height: 1; }
.bingo-txt { font-size: .74rem; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.bingo-auto { position: absolute; top: 3px; right: 4px; font-size: .65rem; }
.bingo-sq.on:not(.k-free) { background: linear-gradient(150deg, #4a4272, #6b3a63); border-color: var(--gold); }
.bingo-dab { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(236, 197, 237, .38), rgba(236, 197, 237, .12) 60%, transparent 70%); pointer-events: none; animation: bingo-dab .3s ease-out both; }
@keyframes bingo-dab { from { transform: scale(1.6); opacity: 0; } to { transform: none; opacity: 1; } }
.bingo-sq.win { box-shadow: 0 0 0 2px #f2c45a, 0 0 14px rgba(242, 196, 90, .45); }
.bingo-grid.swapping .bingo-sq:not(.on):not(.k-free) { animation: bingo-wiggle .6s ease-in-out infinite; border-style: dashed; }
@keyframes bingo-wiggle { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@media (max-width: 520px) { .bingo-grid { gap: 4px; padding: 6px; } .bingo-txt { font-size: .58rem; -webkit-line-clamp: 3; } .bingo-emo { font-size: 1.1rem; } .bingo-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .bingo-stats .tod-stat small { font-size: .62rem; } }
.bingo-legend { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0; font-size: .8rem; }
.bingo-shout h2 { margin-bottom: 8px; }
.bingo-full { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.bingo-burst { position: fixed; inset: 0; pointer-events: none; z-index: 120; overflow: hidden; }
.bingo-burst span { position: absolute; top: -40px; animation: bingo-fall 2.2s ease-in forwards; }
@keyframes bingo-fall { to { transform: translateY(110vh) rotate(540deg); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .bingo-burst, .bingo-dab, .bingo-grid.swapping .bingo-sq { animation: none !important; } .bingo-burst { display: none; } .tod-wheel.spinning, .tod-card.big.dealt { animation: none; } }

/* ---------- Mystery Match ---------- */
.mm { display: grid; gap: 14px; }
.mm > * { min-width: 0; }
.mm .panel { margin: 0; }
.mm-join, .mm-wait { text-align: center; display: grid; gap: 10px; justify-items: center; }
.mm-join .pills { justify-content: center; }
.mm-masks { font-size: 3rem; line-height: 1; filter: drop-shadow(0 6px 14px rgba(152, 138, 227, .45)); }
.mm-rules { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 6px; color: var(--muted); text-align: left; }
.mm-chat { display: grid; gap: 10px; }
.mm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mm-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mm-who > div { display: grid; min-width: 0; }
.mm-who b { font-size: 1.15rem; font-family: var(--serif); overflow-wrap: anywhere; }
.mm-avatar { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 1.4rem; background: linear-gradient(150deg, #4a4272, #7a2848); border: 2px solid var(--gold); }
.mm-clues { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.mm-reveal { padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line-strong); color: var(--muted); }
.mm-reveal.open { border-style: solid; border-color: var(--gold); background: var(--gold-soft); color: var(--text); }
.mm-reveal.done { border-style: solid; border-color: #f2c45a; background: rgba(242, 196, 90, .1); color: var(--text); display: block; }
.mm-msgs { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; min-height: 140px; overflow-y: auto; padding: 8px; border-radius: 14px; background: rgba(0,0,0,.18); border: 1px solid var(--line); }
.mm-msg { max-width: 82%; align-self: flex-start; padding: 7px 11px; border-radius: 14px 14px 14px 4px; background: var(--panel-solid); border: 1px solid var(--line); }
.mm-msg.mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: linear-gradient(150deg, #4a4272, #5a3a6b); border-color: transparent; }
.mm-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.mm-msg small { display: block; font-size: .68rem; color: var(--faint); margin-top: 2px; }
.mm-empty { margin: auto; text-align: center; }
.mm-send { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.mm-send textarea { resize: vertical; min-height: 44px; }
.mm-menu { position: relative; }
.mm-menu summary { list-style: none; cursor: pointer; }
.mm-menu summary::-webkit-details-marker { display: none; }
.mm-menu-box { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: grid; gap: 6px; padding: 8px; min-width: 240px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--line-strong); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.mm-menu-box .btn { justify-content: flex-start; }
.mm-sub { margin: 6px 0 -4px; }
.mm-settings { display: grid; gap: 8px; }
.mm-settings[open] > :not(summary) { margin-top: 4px; }
.mm-settings summary { cursor: pointer; }

/* ---------- Events: coming up strip, and the page visitors land on ---------- */
.guest-head .actions { margin: 10px 0 6px; }
.coming-up { margin: 4px 0 16px; }
.coming-up h2 { margin: 0 0 10px; font-size: 1.15rem; }
.cu-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cu-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px; border-radius: 14px; text-align: left; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--kc, var(--gold)); color: var(--text); font: inherit; transition: transform .12s, border-color .2s; }
.cu-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.cu-date { flex: none; width: 46px; display: grid; justify-items: center; padding: 4px 0; border-radius: 10px; background: var(--gold-soft); line-height: 1.1; }
.cu-date b { font-size: 1.25rem; } .cu-date small { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cu-txt { display: grid; min-width: 0; gap: 2px; }
.cu-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-txt small { color: var(--faint); font-size: .78rem; }
.event.flash { animation: ev-flash 1.6s ease-out; }
@keyframes ev-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--gold); } 100% { box-shadow: none; } }
.guest-head .actions { align-items: center; gap: 12px; }
.coming-up .events { margin-top: 0; }
.browse-month { margin: 8px 0 0; }
.browse-month > summary { cursor: pointer; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); list-style: none; }
.browse-month > summary::-webkit-details-marker { display: none; }
.browse-month > summary::after { content: "▾"; float: right; color: var(--faint); }
.browse-month[open] > summary { margin-bottom: 12px; }
.browse-month[open] > summary::after { content: "▴"; }
.guest-rsvp { display: inline-flex; align-items: center; gap: 4px; }
.guest-rsvp .linkish { color: var(--gold); }

/* ---------- Announcements ---------- */
.ann-modal { z-index: 96; }
.ann-box { position: relative; width: min(480px, 100%); text-align: center; display: grid; gap: 10px; padding-top: 26px; }
.ann-modal.fun .ann-box { background: linear-gradient(165deg, #2e2546, #3a1f35); border-color: var(--gold); }
.ann-modal.ack .ann-box { border-color: #f2c45a; }
.ann-x { position: absolute; top: 10px; right: 10px; }
.ann-emoji { font-size: 3rem; line-height: 1; }
.ann-modal.fun .ann-emoji { animation: ann-pop .6s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes ann-pop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ann-kicker { margin: 0; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.ann-box h2 { margin: 0; font-family: var(--serif); }
.ann-body { text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; max-height: 45vh; overflow-y: auto; padding: 4px 2px; }
.ann-by { margin: 0; text-align: right; }
.ann-box .check { justify-content: center; text-align: left; }
.ann-actions { justify-content: center; margin: 4px 0 0; flex-wrap: wrap; }
.ann-preview-tag { margin: 0; font-size: .8rem; color: #f2c45a; font-weight: 700; }
.ann-compose { display: grid; gap: 8px; }
.ann-title-row { display: grid; grid-template-columns: 70px 1fr; gap: 8px; }
.ann-emoji-in { text-align: center; font-size: 1.2rem; }
.ann-ends { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ann-ends input { width: auto; }
.ann-row.ended { opacity: .7; }
.ann-meter { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 8px; }
.ann-meter span { display: block; height: 100%; background: var(--gold); border-radius: 6px; }
.ann-missing { margin-top: 4px; }
.ann-missing summary { cursor: pointer; }
.ann-missing .pills { margin-top: 6px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.ann-box .form-msg:empty { display: none; }
.see-cal { justify-content: center; margin: 14px 0 4px; }

/* ---------- Visitor landing page ---------- */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(18px, 4vw, 48px) 0 clamp(28px, 4vw, 52px); }
.lp-intro { min-width: 0; }
.lp-where { margin: 0 0 12px; color: var(--muted); font-weight: 600; }
.lp-hero h1 { margin: 0; font-family: var(--slab); font-weight: 700; font-size: clamp(2.3rem, 5.2vw, 3.7rem); line-height: 1.04; letter-spacing: -0.015em; color: var(--name-color); max-width: 14ch; }
.lp-lede { margin: 18px 0 0; max-width: 44ch; font-size: 1.08rem; line-height: 1.6; color: var(--text); opacity: .86; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lp-link { color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
/* The next event as an invitation: a stub with the date, torn off along a perforation. */
.lp-ticket { --kc: var(--gold); position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); border-radius: 22px; overflow: hidden; min-width: 0;
  background: linear-gradient(150deg, #4a4272 0%, #34284f 55%, #3d2038 100%); box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 0 0 1px rgba(236,197,237,.18); animation: lp-arrive .7s cubic-bezier(.2,.8,.2,1) both .1s; }
@keyframes lp-arrive { from { transform: translateY(18px) rotate(-1.5deg); opacity: 0; } to { transform: none; opacity: 1; } }
.lp-ticket.empty { display: block; }
.lp-stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 22px 8px; background: var(--kc); color: #1d1626; text-align: center; }
.lp-ticket.k-other .lp-stub { background: #c9c2d8; } .lp-ticket.k-vetonly .lp-stub { color: #fff; }
.lp-stub::after { content: ""; position: absolute; top: 10px; bottom: 10px; right: -1px; border-right: 2px dashed rgba(25,25,26,.55); }
.lp-ticket:not(.empty)::before, .lp-ticket:not(.empty)::after { content: ""; position: absolute; left: 112px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--bg); z-index: 1; }
.lp-ticket::before { top: -11px; } .lp-ticket::after { bottom: -11px; }
.lp-stub-dow { font-size: .8rem; font-weight: 700; }
.lp-stub-day { font-family: var(--slab); font-size: 3.6rem; font-weight: 800; line-height: .95; }
.lp-stub-mon { font-family: var(--slab); font-size: 1rem; font-weight: 700; }
.lp-ticket-body { min-width: 0; padding: 22px 22px 20px; display: grid; gap: 8px; align-content: start; }
.lp-next { margin: 0; color: var(--pink); font-weight: 700; font-size: .9rem; }
.lp-ticket h2 { margin: 0; font-family: var(--slab); font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.15; overflow-wrap: anywhere; }
.lp-time { margin: 0; font-weight: 700; color: var(--text); }
.lp-desc { margin: 0; color: var(--muted); line-height: 1.5; }
.lp-tag { justify-self: start; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; }
.lp-tag.hosted { color: var(--k-hosted); } .lp-tag.vet { color: var(--k-vet); } .lp-tag.vetonly { color: #ff8fb6; }
.lp-ticket-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 6px; }
.lp-ticket-actions .cal-add-menu { flex-basis: 100%; }
/* The run of dates after the next one. */
.lp-run { padding: 8px 0 20px; }
.lp-run-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.lp-run-head h2, .lp-join h2 { margin: 0; font-family: var(--slab); font-size: 1.5rem; }
.lp-dates { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lp-date-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 8px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; border-radius: 0; }
.lp-date-row:hover, .lp-date-row:focus-visible { background: rgba(236,197,237,.05); }
.lp-d { display: grid; justify-items: center; line-height: 1; border-left: 3px solid var(--kc, var(--gold)); padding: 2px 0; }
.lp-d b { font-family: var(--slab); font-size: 1.7rem; } .lp-d small { color: var(--muted); font-weight: 700; margin-top: 3px; }
.lp-r { display: grid; gap: 3px; min-width: 0; }
.lp-r b { font-size: 1.05rem; overflow-wrap: anywhere; } .lp-r small { color: var(--muted); }
.lp-more { margin: 10px 0 0; }
/* How to join: a real sequence, so it's numbered. */
.lp-join { margin: 18px 0 8px; padding: clamp(20px, 3vw, 30px); border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.lp-steps { list-style: none; counter-reset: lp; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lp-steps li { counter-increment: lp; display: grid; gap: 4px; align-content: start; }
.lp-steps li::before { content: counter(lp); font-family: var(--slab); font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--gold); }
.lp-steps span { color: var(--muted); line-height: 1.5; }
.lp-join-foot { margin: 18px 0 0; }
@media (max-width: 820px) {
  .lp-hero { grid-template-columns: 1fr; }
  .lp-hero h1 { max-width: none; }
  .lp-steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .lp-ticket { grid-template-columns: 88px minmax(0, 1fr); }
  .lp-ticket:not(.empty)::before, .lp-ticket:not(.empty)::after { left: 88px; }
  .lp-stub-day { font-size: 2.8rem; }
  .lp-ticket-body { padding: 18px 16px; }
  .lp-date-row { grid-template-columns: 50px minmax(0, 1fr); }
  .lp-date-row .lp-tag { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .lp-ticket { animation: none; } }

/* ---------- Hot Seat ---------- */
.hs { display: grid; gap: 16px; }
.hs > * { min-width: 0; }
.hs .panel { margin: 0; }
.hs-join { text-align: center; display: grid; gap: 10px; justify-items: center; }
.hs-chair { font-size: 3rem; line-height: 1; }
.hs-inbox { display: grid; gap: 12px; border-color: var(--gold); }
.hs-inbox.empty { border-color: var(--line); }
.hs-inbox h2, .hs-ask h2 { margin: 0; }
.hs-q { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: linear-gradient(150deg, rgba(74,66,114,.55), rgba(61,32,56,.55)); border: 1px solid var(--line-strong); }
.hs-from { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--muted); }
.hs-question { margin: 0; font-family: var(--slab); font-size: 1.25rem; line-height: 1.35; overflow-wrap: anywhere; }
.hs-q .actions { margin: 0; align-items: center; }
.hs-flag { margin-left: auto; padding: 2px 8px; }
.hs-ask { display: grid; gap: 10px; }
.hs-deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.hs-card { border-radius: 14px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.hs-card.open { grid-column: 1 / -1; border-color: var(--gold); background: var(--gold-soft); }
.hs-card-q { display: block; width: 100%; text-align: left; padding: 12px 14px; background: none; border: 0; color: var(--text); font: inherit; line-height: 1.4; cursor: pointer; overflow-wrap: anywhere; }
.hs-card-q:hover { background: rgba(236,197,237,.05); }
.hs-card.open .hs-card-q { font-family: var(--slab); font-size: 1.15rem; }
.hs-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 14px 14px; }
.hs-send select { flex: 1 1 200px; min-width: 0; }
.hs-wall-sec { display: grid; gap: 10px; }
.hs-wall { columns: 2 300px; column-gap: 14px; }
.hs-post { break-inside: avoid; margin: 0 0 14px; padding: 14px 16px; border-radius: 6px 18px 6px 18px; background: linear-gradient(170deg, #f6ecdc, #eadbc4); color: #2a1a20; border-top: 5px solid #e0245e; box-shadow: 0 8px 22px rgba(0,0,0,.35); display: grid; gap: 8px; }
.hs-post-head { display: flex; align-items: center; gap: 8px; }
.hs-post-head .person { color: #2a1a20; font-weight: 700; }
.hs-post-head .faint { color: #7b6672; margin-left: auto; }
.hs-post-head .hs-flag { margin-left: 0; color: #7b6672; border-color: rgba(42,26,32,.18); }
.hs-seat { display: inline-flex; align-items: center; gap: 4px; }
.hs-post-q { margin: 0; color: #5a2a40; font-weight: 700; font-size: .92rem; }
.hs-post-a { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--serif); font-size: 1.06rem; line-height: 1.45; }
.hs-post-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hs-post-foot .faint { color: #7b6672; }
.hs-post-act { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.hs-post .linkish { color: #7b6672; }
.hs-anon { font-weight: 700; }
.hs-hist { display: block; margin-top: 4px; }
.tod-edit[hidden] { display: none; }
/* Hot Seat deck: the whole card is the button, so the tap area and highlight fill it top to bottom. */
.hs-card { display: flex; flex-direction: column; }
.hs-card-q { flex: 1 1 auto; background: transparent !important; }
.hs-card:not(.open):hover { background: rgba(236,197,237,.06); border-color: var(--line-strong); }
.hs-card-q:hover { background: transparent; }
@media (hover: none) { .hs-card:not(.open):hover { background: var(--panel); border-color: var(--line); } }
.hs-heat { margin-right: 6px; }
.qb-list { display: grid; gap: 0; margin-top: 10px; border-top: 1px solid var(--line); max-height: 520px; overflow-y: auto; }
.qb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.qb-text { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .qb-row { flex-direction: column; align-items: stretch; } }
.photo-needed { margin: 10px 0 2px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--gold); background: var(--gold-soft); color: var(--text); }
label.check.is-off { opacity: .5; cursor: not-allowed; }

/* Photos and videos: no long-press "Save image", no dragging them out, no selecting them. */
img, video { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; }
.ph, .viewer-media, .tod-proof, .pr-media, .mod-photos, .gallery-side, .hs-post { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.card-preview, .allow-save { -webkit-touch-callout: default; -webkit-user-drag: auto; }
/* Messages inside the two-column walls span the full width instead of breaking across the columns. */
.hs-wall > p, .tod-wall > p, .cb-wall > p { column-span: all; margin: 0; }

/* ---------- Peekaboo ---------- */
.pk { display: grid; gap: 16px; }
.pk > * { min-width: 0; }
.pk .panel { margin: 0; }
.pk-join { text-align: center; display: grid; gap: 10px; justify-items: center; }
.pk-hero { font-size: 3rem; line-height: 1; }
.pk-feed-sec { display: grid; gap: 10px; }
.pk-feed-sec h2 { margin: 0; }
.pk-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pk-card { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.pk-card.solved { border-color: var(--k-vet); }
.pk-card-top { display: flex; align-items: center; gap: 8px; }
.pk-card-top .faint { margin-left: auto; }
.pk-mode { font-weight: 800; font-size: .85rem; }
.pk-media { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #111; -webkit-touch-callout: none; user-select: none; }
.pk-img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.pk-media.veiled .pk-img { filter: blur(24px) brightness(.7); transform: scale(1.15); }
.pk-reveal { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.55); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.pk-hint { margin: 0; color: var(--muted); }
.pk-solved { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--k-vet); }
.pk-pick { width: min(560px, 100%); display: grid; gap: 10px; }
.pk-faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; max-height: 60vh; overflow-y: auto; padding: 2px; }
.pk-face { display: grid; justify-items: center; gap: 6px; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.pk-face:hover, .pk-face:focus-visible { border-color: var(--gold); background: var(--gold-soft); }
.pk-face .mini-av { width: 64px; height: 64px; font-size: 1.4rem; }
.pk-face span { font-size: .85rem; overflow-wrap: anywhere; text-align: center; }
.pk-post { display: grid; gap: 10px; }
.pk-post h2 { margin: 0; }
.pk-canvas { width: 100%; max-width: 560px; height: auto; border-radius: 14px; touch-action: none; cursor: crosshair; justify-self: center; }
.pk-size { display: flex; align-items: center; gap: 10px; }
.pk-size input { flex: 1; }
.pk-mine-list { display: grid; gap: 10px; }
.pk-mine-item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; border: 1px solid var(--line); }
.pk-thumb { width: 72px; height: 72px; flex: none; border-radius: 10px; overflow: hidden; background: #111; }
.pk-thumb .pk-img { filter: blur(6px); }
.pk-mine-txt { display: grid; gap: 2px; min-width: 0; justify-items: start; }
