/* thnx4add demo: an original look. Thick ink outlines, sticker shadows,
   bubblegum pink + lime on a cream page. */
:root {
  --ink: #1a0b2e;
  --cream: #fff8ec;
  --paper: #ffffff;
  --pink: #ff2e88;
  --lime: #c6ff3d;
  --grape: #7a3cff;
  --sky: #7af0ff;
  --sun: #ffd36e;
  --muted: #6b5d78;
  --line: 3px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --r: 14px;
  --font: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --head: "Arial Black", "Trebuchet MS", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--cream);
  background-image: radial-gradient(#ffd9ec 1.6px, transparent 2px); background-size: 22px 22px;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--grape); font-weight: 600; }
a:hover { color: var(--pink); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; }
h3 { font-size: 1rem; margin-top: 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
code { background: #f3ecff; padding: 0 4px; border-radius: 4px; font-size: .9em; }
.tiny { font-size: .82rem; color: var(--muted); }
.muted { color: var(--muted); }
.empty { color: var(--muted); font-style: italic; margin: .3em 0; }
.grow { flex: 1; min-width: 0; }
.loading { text-align: center; padding: 60px 16px; }
[hidden] { display: none !important; }

/* ---------- demo banner ---------- */
.demo-banner { background: var(--lime); border-bottom: var(--line); text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .04em; padding: 4px 12px; }
.demo-banner .link-btn { font-size: .8rem; margin-left: 8px; }

/* ---------- top bar ---------- */
#topbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 3px 0 var(--pink); }
.bar-inner { max-width: 1120px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; }
.brand .word { font: 900 1.45rem/1 var(--head); letter-spacing: -.02em; }
.brand em { font-style: normal; color: var(--lime); }
.logo-mark { flex: none; }
.search { display: flex; flex: 1; min-width: 160px; max-width: 360px; }
.search input { flex: 1; min-width: 0; border: 2px solid var(--pink); border-right: 0; border-radius: 999px 0 0 999px; padding: 6px 12px; background: #fff; color: var(--ink); }
.search button { border: 2px solid var(--pink); background: var(--pink); color: #fff; border-radius: 0 999px 999px 0; padding: 0 14px; font-weight: 800; cursor: pointer; }
.acct { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.acct-me { display: flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; }
.acct .link-btn { color: var(--lime); }
.tabs { max-width: 1120px; margin: 0 auto; padding: 0 12px 8px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; padding: 4px 12px; border-radius: 999px; border: 2px solid transparent; }
.tab:hover { border-color: var(--lime); color: var(--lime); }
.tab.on { background: var(--lime); color: var(--ink); }
.count { display: inline-block; min-width: 1.4em; padding: 0 5px; border-radius: 999px; background: var(--pink); color: #fff; font-size: .72rem; text-align: center; line-height: 1.4em; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 8px 16px; border: var(--line); border-radius: 999px; background: var(--pink); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .08s, box-shadow .08s; }
.btn:hover { color: #fff; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-alt { background: var(--paper); color: var(--ink); }
.btn-alt:hover { color: var(--ink); background: var(--sun); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; border-width: 2px; }
.btn-ghost:hover { color: var(--ink); background: #ffe3ef; box-shadow: none; }
.btn-done { background: var(--lime); color: var(--ink); }
.btn-done:hover { color: var(--ink); }
.btn-small { padding: 5px 12px; font-size: .88rem; }
.btn-tiny { padding: 2px 9px; font-size: .78rem; box-shadow: 2px 2px 0 var(--ink); border-width: 2px; }
.btn-big { padding: 11px 22px; font-size: 1.05rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--grape); font-weight: 700; cursor: pointer; text-decoration: underline; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin: .6em 0; }
.btn-col { display: flex; flex-direction: column; gap: 6px; }
.file-btn { cursor: pointer; }

.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 4px; font-weight: 700; font-size: .9rem; }
.form input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]), .form select, .form textarea {
  width: 100%; border: 2px solid var(--ink); border-radius: 10px; padding: 8px 10px; background: #fff; font-weight: 400;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--grape); outline-offset: 2px; }
.form .check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.form.inline { display: flex; gap: 8px; align-items: center; }
.form.inline input { flex: 1; min-width: 0; }
.form.inline.wrap { flex-wrap: wrap; }
.hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
.form-err { color: #c0003c; font-weight: 700; min-height: 1.2em; margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.seg legend { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.seg label { display: flex; gap: 6px; align-items: center; font-weight: 600; }
.addr { display: flex; align-items: stretch; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: #fff; }
.addr span { background: #f3ecff; padding: 8px; font-weight: 600; font-size: .85rem; white-space: nowrap; }
.form .addr input { border: 0 !important; border-radius: 0 !important; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips legend, .currently legend { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.chip { display: inline-flex !important; align-items: center; gap: 4px; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; font-weight: 600 !important; cursor: pointer; background: #fff; font-size: .85rem !important; }
.chip:has(input:checked) { background: var(--lime); }
.chip input { margin: 0; }
.mood-pick { display: flex; flex-wrap: wrap; gap: 6px; font-weight: 400; }
.currently { border: 2px dashed var(--ink); border-radius: 10px; padding: 8px 10px; }

/* ---------- layout ---------- */
#main { flex: 1; width: 100%; }
.page { max-width: 1120px; margin: 0 auto; padding: 18px 16px 40px; }
.page.narrow { max-width: 760px; }
.page-title { font: 900 1.8rem/1.1 var(--head); margin: .2em 0 .3em; }
.lead { font-size: 1.05rem; }
.crumbs { margin: 0 0 10px; font-size: .9rem; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.cols-2.wide-left { grid-template-columns: 1.6fr 1fr; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }

/* ---------- boxes (site look) ---------- */
.box { background: var(--paper); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 14px; background: var(--sun); border-bottom: var(--line); }
.box-head h2 { font: 900 1.05rem/1.2 var(--head); margin: 0; }
.box-head h2 a { color: inherit; }
.box-head select { border: 2px solid var(--ink); border-radius: 8px; font-weight: 800; }
.box-body { padding: 12px 14px; }
.box-body > :first-child { margin-top: 0; }
.box-body > :last-child { margin-bottom: 0; }

/* ---------- pics & people ---------- */
.pic { display: block; object-fit: cover; border: 3px solid var(--ink); background: #fff; aspect-ratio: 1; }
.pic-xs { width: 28px; height: 28px; border-width: 2px; border-radius: 8px; }
.pic-sm { width: 48px; height: 48px; border-radius: 10px; }
.pic-md { width: 84px; height: 84px; border-radius: 14px; }
.pic-lg { width: 110px; height: 110px; border-radius: 18px; }
.pic-xl { width: 170px; height: 170px; border-radius: 24px; box-shadow: 5px 5px 0 var(--ink); }
.pic-link { display: inline-block; }
.grid-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.grid-people.small { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.person-name { font-size: .88rem; overflow-wrap: anywhere; }
.person .btn-tiny { margin-top: 2px; }
.name-link { font-weight: 800; }
.tag { display: inline-block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 6px; border: 2px solid var(--ink); background: #fff; color: var(--ink); vertical-align: middle; }
.tag-band { background: var(--sky); }
.tag-mascot { background: var(--lime); }
.tag-label { background: var(--sun); }
.on-now { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 800; color: #0a7a2a; background: #d9ffe3; border: 2px solid #0a7a2a; border-radius: 999px; padding: 0 7px; vertical-align: middle; }
.on-now i { width: 8px; height: 8px; border-radius: 50%; background: #18c84a; animation: t4a-pulse 1.4s infinite; }
.seen { font-size: .78rem; color: var(--muted); }
.kv { width: 100%; border-collapse: collapse; font-size: .9rem; }
.kv th { text-align: left; vertical-align: top; width: 36%; padding: 4px 8px 4px 0; color: var(--muted); font-weight: 700; }
.kv td { padding: 4px 0; overflow-wrap: anywhere; }
.kv tr + tr th, .kv tr + tr td { border-top: 1px dashed rgba(0,0,0,.15); }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.plain li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.checks li::before { content: "✔"; color: var(--pink); font-weight: 900; }
.addr-box { font-family: "Courier New", monospace; background: #f3ecff; border: 2px dashed var(--ink); border-radius: 10px; padding: 6px 10px; margin-bottom: 8px; overflow-wrap: anywhere; font-size: .9rem; }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: center; background: var(--paper); border: var(--line); border-radius: 26px; box-shadow: 6px 6px 0 var(--ink); padding: 28px; margin-bottom: 22px; position: relative; overflow: hidden; }
.hero h1 { font: 900 clamp(1.9rem, 4.6vw, 3.1rem)/1.05 var(--head); letter-spacing: -.02em; }
.hl { background: linear-gradient(transparent 55%, var(--lime) 55%); }
.sticker-stack { display: grid; gap: 14px; justify-items: center; transform: rotate(-4deg); }
.sticker-stack .sticker { font-size: 1.4rem; }
.sticker-stack .sticker:nth-child(2) { transform: rotate(7deg); }
.demo-logins { display: grid; gap: 8px; }
.demo-login { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 6px 10px; font-weight: 700; cursor: pointer; text-align: left; }
.demo-login:hover { background: var(--lime); }

/* ---------- home ---------- */
.home-grid { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.me-card .me-top { display: flex; gap: 12px; padding: 14px; align-items: center; }
.hello { font: 900 1.3rem/1.1 var(--head); margin: 0 0 4px; }
.views { margin-top: 4px; }
.views b { font-size: 1.2rem; color: var(--pink); }
.quick { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--line); }
.quick a { padding: 8px 12px; text-decoration: none; border-bottom: 1px dashed rgba(0,0,0,.2); font-size: .9rem; }
.quick a:nth-child(odd) { border-right: 1px dashed rgba(0,0,0,.2); }
.quick a:hover { background: #fff0f7; }
.alerts { display: grid; gap: 8px; margin-bottom: 16px; }
.alert { background: var(--lime); border: var(--line); border-radius: 12px; padding: 8px 14px; font-weight: 700; box-shadow: 3px 3px 0 var(--ink); }
.alert a { color: var(--ink); }
.updates, .blast-list, .mail-list, .req-list, .group-list, .event-list, .chart { list-style: none; margin: 0; padding: 0; }
.updates li, .blast-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.updates li + li, .blast-list li + li, .group-list li + li, .event-list li + li, .chart li + li { border-top: 1px dashed rgba(0,0,0,.18); }
.upd { color: var(--ink); }
.blast-subj { font-weight: 800; }
.feat { display: flex; gap: 12px; align-items: flex-start; }

/* ---------- stickers (comment greetings, our own CSS designs) ---------- */
.sticker { display: inline-block; font: 900 1.05rem/1.1 var(--head); padding: 8px 14px; border-radius: 14px; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); margin: 4px 0; color: #fff; text-shadow: 2px 2px 0 var(--ink); letter-spacing: .01em; }
.st-pop { background: var(--pink); }
.st-glitter { background: linear-gradient(120deg, #ff7ac6, #ffd36e, #7af0ff, #c9a7ff, #ff7ac6); background-size: 300% 100%; animation: t4a-shimmer 3s linear infinite; }
.st-sunset { background: linear-gradient(180deg, #ffd36e, #ff7a5a 60%, #a03aff); }
.st-neon { background: #150a33; color: var(--lime); text-shadow: 0 0 6px var(--lime), 0 0 12px var(--lime); border-color: var(--lime); }
.st-heart { background: #ff4f8b; }
.st-heart::before, .st-heart::after { content: "♥"; color: #fff; margin: 0 4px; }
.st-party { background: repeating-linear-gradient(45deg, #7a3cff 0 10px, #ff2e88 10px 20px); }
.st-scene { background: #111; color: #ff3cc8; text-shadow: 2px 2px 0 #00e5ff; border-style: dashed; }
.st-chill { background: #18c8d6; }
.sticker-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.sticker-pick label { display: inline-flex; cursor: pointer; position: relative; }
.sticker-pick input { position: absolute; opacity: 0; }
.sticker-pick .sticker { font-size: .72rem; padding: 4px 8px; box-shadow: 2px 2px 0 var(--ink); border-width: 2px; margin: 0; }
.sticker-pick input:checked + .sticker, .sticker-pick input:checked + .tiny { outline: 3px solid var(--grape); outline-offset: 2px; }
.sticker-pick input:focus-visible + * { outline: 3px dashed var(--grape); outline-offset: 2px; }

/* ---------- music player ---------- */
/* ---------- music player: brushed-silver case, glossy buttons, black glass screen ---------- */
.player { --chrome: linear-gradient(180deg, #fbfbfb 0%, #e4e4e4 45%, #cfcfcf 55%, #e9e9e9 100%); display: flex; align-items: center; gap: 8px; background: var(--chrome); color: #222; border: 1px solid #8a8a8a; border-radius: 7px; padding: 6px 8px 6px 6px; box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.35); margin-bottom: 16px; font-family: Tahoma, Verdana, "Segoe UI", sans-serif; }
.play-btn { flex: none; width: 42px; height: 42px; border-radius: 5px; border: 1px solid #6d6d6d; background: linear-gradient(180deg, #ffffff 0%, #eaeaea 48%, #cdcdcd 52%, #e2e2e2 100%); color: #3a3a3a; font-size: .95rem; cursor: pointer; font-weight: 900; box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.35); text-shadow: 0 1px 0 #fff; }
.play-btn:hover { background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 48%, #dadada 52%, #ececec 100%); color: #000; }
.play-btn:active { background: linear-gradient(180deg, #cfcfcf, #e9e9e9); box-shadow: inset 0 2px 3px rgba(0,0,0,.35); }
.lcd { position: relative; flex: 1; min-width: 0; background: linear-gradient(180deg, #2a2a2a, #050505 60%); border: 1px solid #2b2b2b; border-radius: 5px; padding: 4px 7px; box-shadow: inset 0 2px 4px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.8); overflow: hidden; }
.lcd::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 45%; background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.02)); pointer-events: none; }
.lcd-screen { display: block; width: 100%; height: 39.6px; }
.player-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.player-label { font: 700 .58rem/1 Tahoma, Verdana, sans-serif; text-transform: uppercase; letter-spacing: .1em; color: #6b6b6b; white-space: nowrap; text-shadow: 0 1px 0 #fff; }
.p-chip { font: 700 .68rem/1 Tahoma, Verdana, sans-serif; text-transform: lowercase; color: #333; background: none; border: 0; padding: 2px 0; cursor: pointer; text-decoration: none; white-space: nowrap; text-shadow: 0 1px 0 #fff; }
.p-chip::before { content: "+"; color: #888; margin-right: 1px; }
.p-chip::after { content: "+"; color: #888; margin-left: 1px; }
.p-chip:hover, .p-chip:focus-visible { color: #000; text-decoration: underline; }
.p-chip.done { color: #2e8b2e; cursor: default; }
.song-row { display: flex; align-items: center; gap: 10px; }
.song-row .player { flex: 1; margin-bottom: 8px; }
.plays { font-size: .8rem; font-weight: 700; white-space: nowrap; }
.chart li { display: flex; gap: 12px; padding: 10px 0; align-items: flex-start; }
.chart .player { margin: 8px 0 0; }

/* ---------- comments ---------- */
.comments { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.comment { display: flex; gap: 12px; padding: 10px; border: 2px solid rgba(0,0,0,.12); border-radius: 12px; background: rgba(255,255,255,.55); }
.comment.pending { border-style: dashed; opacity: .8; }
.c-who { width: 70px; flex: none; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; overflow-wrap: anywhere; }
.c-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.c-body p { margin: .3em 0; }
.c-meta { font-size: .78rem; opacity: .7; }
.c-acts { display: flex; gap: 12px; font-size: .8rem; }
.comment-form { display: grid; gap: 6px; margin: 8px 0 4px; }
.comment-form textarea { width: 100%; border: 2px solid var(--ink); border-radius: 10px; padding: 8px; }
.comment-form .btn { justify-self: start; }

/* ---------- mail / requests / lists ---------- */
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.subtabs a { text-decoration: none; padding: 4px 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-size: .9rem; }
.subtabs a.on { background: var(--pink); color: #fff; }
.mail-list li a { display: flex; align-items: center; gap: 10px; padding: 9px 4px; text-decoration: none; color: var(--ink); font-weight: 400; }
.mail-list li + li { border-top: 1px dashed rgba(0,0,0,.18); }
.mail-list li.unread a { font-weight: 800; }
.mail-list li.unread .who::before { content: "● "; color: var(--pink); }
.mail-list .who { width: 120px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-list .subj { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.msg-body { background: #fffdf6; border: 2px dashed rgba(0,0,0,.2); border-radius: 10px; padding: 12px; overflow-wrap: anywhere; }
.req-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.req-list li + li { border-top: 1px dashed rgba(0,0,0,.18); }
.req-list p { margin: .3em 0; }
.group-list li, .event-list li { padding: 10px 0; }
.g-name { font-weight: 800; font-size: 1.02rem; }
.event-list li { display: flex; gap: 12px; align-items: center; }
.ev-date { width: 54px; flex: none; text-align: center; border: var(--line); border-radius: 12px; background: var(--sun); font-size: .75rem; font-weight: 800; text-transform: uppercase; line-height: 1.1; padding: 4px 0; }
.ev-date b { display: block; font-size: 1.3rem; }
.invite-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.shows { width: 100%; border-collapse: collapse; }
.shows td { padding: 6px 4px; vertical-align: top; }
.shows tr + tr td { border-top: 1px dashed rgba(0,0,0,.2); }
.show-date { font-weight: 800; white-space: nowrap; width: 1%; padding-right: 12px !important; }

/* ---------- blog ---------- */
.post .post-body { margin: 10px 0; overflow-wrap: anywhere; }
.currently-box { display: flex; flex-wrap: wrap; gap: 4px 14px; background: rgba(0,0,0,.04); border-radius: 10px; padding: 6px 10px; margin-top: 8px; font-size: .85rem; }
.post-foot { display: flex; gap: 12px; align-items: center; }
.blog-title { font-weight: 800; }

/* ---------- pics ---------- */
.pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.pic-tile { position: relative; display: block; background: #fff; border: var(--line); border-radius: 12px; padding: 6px 6px 4px; box-shadow: 3px 3px 0 var(--ink); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .82rem; }
.pic-tile:nth-child(3n) { transform: rotate(1.2deg); }
.pic-tile:nth-child(3n+1) { transform: rotate(-1deg); }
.pic-tile.on { outline: 3px solid var(--pink); }
.pic-tile img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.pic-tile span { display: block; padding: 4px 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pic-tile .count { position: absolute; top: 2px; right: 2px; }
.pic-view { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.pic-view > img { width: 100%; border: var(--line); border-radius: 12px; }
.pic-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pic-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 2px solid var(--ink); display: block; }
.pic-edit { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ---------- edit / layout / top ---------- */
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.edit-grid > div { display: grid; gap: 0; }
.save-bar { grid-column: 1 / -1; position: sticky; bottom: 0; background: var(--cream); padding: 10px 0; display: flex; gap: 10px; align-items: center; border-top: var(--line); z-index: 5; }
.layout-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; align-items: start; }
.preview-wrap { position: sticky; top: 120px; }
.preview { border: var(--line); border-radius: 18px; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); max-height: 72vh; overflow-y: auto; }
.preview .profile { padding: 14px; }
.preview .banner { padding: 14px; }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.preset { display: flex; flex-direction: column; gap: 4px; align-items: stretch; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 6px; font-weight: 700; font-size: .82rem; cursor: pointer; }
.preset span { height: 34px; border-radius: 8px; border: 2px solid var(--ink); background: linear-gradient(135deg, var(--a) 0 45%, var(--b) 45% 70%, var(--c) 70%); }
.preset:hover { background: var(--lime); }
.preset.plain span { background: linear-gradient(180deg, var(--a) 0 60%, var(--c) 60%); }
.preset-head { font-size: .85rem; margin: 4px 0 8px; }
.preset-head + .presets + .preset-head { margin-top: 16px; }
.colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.form .color { display: flex; flex-direction: column; align-items: center; font-size: .78rem; gap: 2px; }
.color input { width: 100%; height: 38px; border: 2px solid var(--ink); border-radius: 10px; padding: 2px; background: #fff; cursor: pointer; }
.form textarea[name=custom], .form textarea[name=code] { font-family: "Courier New", monospace; font-size: .85rem; }
.code-report { margin: 0; font-weight: 700; }
details summary { cursor: pointer; font-weight: 700; }
.top-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.top-list li { display: flex; align-items: center; gap: 8px; border: 2px solid var(--ink); border-radius: 12px; padding: 5px 8px; background: #fff; }
.browse-grid { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
.about-head { display: flex; align-items: center; gap: 12px; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; border: 3px solid var(--lime); border-radius: 14px; padding: 10px 18px; font-weight: 700; z-index: 100; transition: transform .25s; max-width: calc(100vw - 32px); text-align: center; }
#toast.show { transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.foot { text-align: center; padding: 18px 16px 26px; border-top: var(--line); background: var(--paper); font-size: .9rem; }
.foot p { margin: 6px 0 0; }

/* =====================================================================
   PROFILE PAGES: styled by each person's layout (CSS variables).
   ===================================================================== */
.themed { background: var(--p-bg); position: relative; }
.themed::before { content: ""; position: absolute; inset: 0; background: var(--p-pattern); pointer-events: none; }
body.on-profile { background: var(--cream); }
.profile { position: relative; z-index: 1; contain: paint; isolation: isolate; padding: 20px max(16px, calc((100% - 1088px) / 2)) 40px; color: var(--p-text); font-family: var(--p-font); min-height: 70vh; }
.profile > :not(.scene) { position: relative; z-index: 1; }
.narrow-profile { padding-left: max(16px, calc((100% - 768px) / 2)); padding-right: max(16px, calc((100% - 768px) / 2)); }
.profile a { color: var(--p-link); }
.profile a.btn, .profile a.btn:hover { color: #fff; }
.profile a.btn-alt, .profile a.btn-alt:hover { color: var(--ink); }
.profile .tiny, .profile .empty, .profile .seen { color: inherit; opacity: .72; }
.profile .box { background: var(--p-panel); color: var(--p-text); border: 3px solid var(--p-heading); border-radius: var(--p-radius); box-shadow: none; }
.profile .box-head { background: transparent; border-bottom: 2px solid var(--p-heading); }
.profile .box-head h2 { color: var(--p-heading); font-family: var(--p-head-font); }
.profile h3 { color: var(--p-heading); font-family: var(--p-head-font); }
.profile .crumbs a { background: var(--p-panel); padding: 3px 10px; border-radius: 999px; }
.profile .kv th { color: var(--p-heading); opacity: .9; }
.profile .kv tr + tr th, .profile .kv tr + tr td { border-color: color-mix(in srgb, var(--p-text) 18%, transparent); }
.profile .comment { background: color-mix(in srgb, var(--p-panel) 70%, var(--p-bg)); border-color: color-mix(in srgb, var(--p-text) 15%, transparent); }
.profile .pic { border-color: var(--p-heading); }
.profile .tag { border-color: var(--p-text); }
.profile .addr-box { background: transparent; border-color: var(--p-heading); }
.profile .comment-form textarea { border-color: var(--p-heading); background: rgba(255,255,255,.9); color: #222; }
.see-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.see-links a { flex: 1; text-align: center; padding: 4px 8px; border: 2px solid var(--p-heading); border-radius: 999px; text-decoration: none; font-size: .85rem; white-space: nowrap; }
.see-links a:hover { background: var(--p-heading); color: var(--p-panel); }

/* banner across the top of a page */
.banner { display: flex; gap: 22px; align-items: flex-end; background: var(--p-banner); color: #fff; border-radius: calc(var(--p-radius) + 6px); padding: 22px; margin-bottom: 16px; position: relative; overflow: hidden; }
.banner::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.08) 0 14px, transparent 14px 28px); pointer-events: none; }
.banner > * { position: relative; z-index: 1; }
.banner .pic { border-color: #fff; }
.banner-text { min-width: 0; flex: 1; }
.p-name { font: 900 clamp(1.7rem, 4vw, 2.6rem)/1.05 var(--p-head-font); margin: 0 0 4px; text-shadow: 3px 3px 0 rgba(0,0,0,.35); overflow-wrap: anywhere; }
.p-headline { font-size: 1.1rem; font-style: italic; margin: 0 0 6px; }
.p-basics, .p-mood, .p-status { margin: 2px 0; }
.p-status { background: rgba(0,0,0,.22); border-radius: 10px; padding: 3px 10px; display: inline-block; }
.banner .tiny { color: #fff; }
.banner .tag { border-color: #fff; }
.hmu { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.hmu .btn { box-shadow: 2px 2px 0 rgba(0,0,0,.4); border-color: #fff; }
.hmu .btn-alt { background: rgba(255,255,255,.92); }
.hmu .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hmu .btn-ghost:hover { background: rgba(0,0,0,.2); color: #fff; }
.p-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.blurb { overflow-wrap: anywhere; }
.top-grid { grid-template-columns: repeat(4, 1fr); }

/* box edge styles */
.themed[data-border=dashed] .profile .box { border-style: dashed; }
.themed[data-border=dotted] .profile .box { border-style: dotted; border-width: 4px; }
.themed[data-border=double] .profile .box { border-style: double; border-width: 6px; }
.themed[data-border=none] .profile .box { border-color: transparent; }
.themed[data-border=glow] .profile .box { box-shadow: 0 0 0 2px var(--p-heading), 0 0 18px var(--p-heading); border-color: transparent; }

/* effects */
.themed[data-effect=shadow] .profile .box { box-shadow: 6px 6px 0 rgba(0,0,0,.5); }
.themed[data-effect=glow] .profile .box-head h2, .themed[data-effect=glow] .p-name { text-shadow: 0 0 6px var(--p-heading), 0 0 14px var(--p-heading); }
.themed[data-effect=rainbow] .profile .box-head h2 { background: linear-gradient(90deg, #ff2e2e, #ff9a2e, #f5e02e, #2ec84a, #2e8aff, #9a2eff, #ff2e2e); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: t4a-shimmer 4s linear infinite; }
.themed[data-effect=sparkle] .profile .box-head h2::after { content: " ✦"; color: var(--p-accent); display: inline-block; animation: t4a-twinkle 1.6s ease-in-out infinite; }
.themed[data-effect=sparkle] .p-name::after { content: " ✧"; display: inline-block; animation: t4a-twinkle 2s ease-in-out infinite; }

/* =====================================================================
   HTML BACKGROUNDS: moving scenes drawn with CSS (all original).
   ===================================================================== */
.scene { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; overflow: hidden; pointer-events: none; z-index: 0; }
.preview .scene { height: 72vh; margin-bottom: -72vh; }
.scene i { position: absolute; display: block; }
.scene-starfield { background: radial-gradient(ellipse at bottom, rgba(40,20,90,.55), transparent 70%); }
.scene-starfield i { width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; animation: t4a-twinkle 2.4s ease-in-out infinite; }
.scene-glitter i { width: 6px; height: 6px; top: -10px; background: linear-gradient(45deg, #fff, #ffd36e, #ff7ac6); transform: rotate(45deg); animation: t4a-fall 6s linear infinite; }
.scene-snow i { width: 8px; height: 8px; top: -10px; border-radius: 50%; background: #fff; opacity: .9; animation: t4a-fall 9s linear infinite; }
.scene-hearts i { top: 105%; font-style: normal; animation: t4a-rise 9s linear infinite; }
.scene-hearts i::before { content: "♥"; font-size: 26px; color: #ff4f8b; text-shadow: 0 0 8px rgba(255,79,139,.6); }
.scene-bubbles i { top: 105%; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.8), rgba(122,240,255,.15) 40%, transparent 70%); animation: t4a-rise 11s linear infinite; }
.scene-clouds i { width: 180px; height: 60px; border-radius: 60px; background: rgba(255,255,255,.85); left: -200px; animation: t4a-drift 40s linear infinite; }
.scene-clouds i::before, .scene-clouds i::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.scene-clouds i::before { width: 80px; height: 80px; top: -36px; left: 28px; }
.scene-clouds i::after { width: 60px; height: 60px; top: -24px; left: 92px; }
.scene-lava i { width: 220px; height: 220px; border-radius: 50%; filter: blur(30px); opacity: .55; animation: t4a-blob 16s ease-in-out infinite alternate; }
.scene-code i { top: -40%; font: 700 15px/1.1 "Courier New", monospace; color: #39ff7a; text-shadow: 0 0 6px #39ff7a; writing-mode: vertical-rl; animation: t4a-fall 7s linear infinite; font-style: normal; }
.scene-code i::before { content: "01001 thnx4add 10110 hi 00101 add me 1101"; }
.scene-grid { background: linear-gradient(transparent 55%, rgba(255, 46, 200, .25)); }
.scene-grid::before { content: ""; position: absolute; left: -50%; right: -50%; bottom: -10%; height: 60%; background: linear-gradient(rgba(255, 60, 220, .8) 2px, transparent 2px) 0 0 / 100% 40px, linear-gradient(90deg, rgba(255, 60, 220, .8) 2px, transparent 2px) 0 0 / 60px 100%; transform: perspective(300px) rotateX(60deg); transform-origin: top; animation: t4a-grid 1.2s linear infinite; }
.scene-grid::after { content: ""; position: absolute; left: 50%; top: 18%; width: 180px; height: 180px; margin-left: -90px; border-radius: 50%; background: linear-gradient(#ffd36e, #ff2e88); box-shadow: 0 0 60px #ff2e88; }

/* animations people can also use in their own layout code */
@keyframes t4a-pulse { 50% { opacity: .35; } }
@keyframes t4a-spin { to { transform: rotate(360deg); } }
@keyframes t4a-float { 50% { transform: translateY(-8px); } }
@keyframes t4a-rainbow { to { filter: hue-rotate(360deg); } }
@keyframes t4a-shimmer { to { background-position: 200% 0; } }
@keyframes t4a-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .25; transform: scale(.6); } }
@keyframes t4a-eq { from { height: 4px; } to { height: 26px; } }
@keyframes t4a-fall { to { transform: translateY(115vh) rotate(360deg); } }
@keyframes t4a-rise { to { transform: translateY(-125vh) translateX(30px); } }
@keyframes t4a-drift { to { transform: translateX(calc(100vw + 400px)); } }
@keyframes t4a-blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(18vw, 22vh) scale(1.4); } 100% { transform: translate(-10vw, 40vh) scale(.8); } }
@keyframes t4a-grid { to { background-position: 0 40px, 0 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .scene i { display: none; }
}

/* ---------- phones & tablets ---------- */
@media (max-width: 900px) {
  .home-grid, .browse-grid, .layout-grid { grid-template-columns: 1fr; }
  .p-grid { grid-template-columns: 1fr; }
  .preview-wrap { position: static; }
  .cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cols-2, .cols-2.wide-left, .edit-grid, .hero, .pic-view { grid-template-columns: 1fr; }
  .hero { padding: 20px; }
  .hero-art { display: none; }
  .banner { flex-direction: column; align-items: flex-start; padding: 16px; gap: 12px; }
  .pic-xl { width: 130px; height: 130px; }
  .top-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .top-grid .pic-md { width: 64px; height: 64px; }
  .colors { grid-template-columns: repeat(2, 1fr); }
  .row3 { grid-template-columns: 1fr; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .acct-me span { display: none; }
  .mail-list .who { width: 80px; }
  .pic-strip { grid-template-columns: repeat(3, 1fr); }
  .pic-strip a:nth-child(n+4) { display: none; }
  .c-who { width: 54px; }
  .song-row { flex-direction: column; align-items: stretch; gap: 0; }
  .song-row .plays { text-align: right; margin: -4px 4px 10px; }
  .invite-list { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .row2 { grid-template-columns: 1fr; }
  .top-grid { grid-template-columns: repeat(3, 1fr); }
  .brand .word { font-size: 1.2rem; }
}

/* scene particle positions (generated) */
.scene i:nth-child(1) { left: 31.7%; animation-delay: -6.51s; animation-duration: calc(var(--dur, 1) * 0.76 * 1s); }
.scene-starfield i:nth-child(1) { top: 14.3%; }
.scene i:nth-child(2) { left: 52.5%; animation-delay: -0.58s; animation-duration: calc(var(--dur, 1) * 1.11 * 1s); }
.scene-starfield i:nth-child(2) { top: 34.7%; }
.scene i:nth-child(3) { left: 3.7%; animation-delay: -0.70s; animation-duration: calc(var(--dur, 1) * 0.77 * 1s); }
.scene-starfield i:nth-child(3) { top: 41.2%; }
.scene i:nth-child(4) { left: 41.6%; animation-delay: -1.24s; animation-duration: calc(var(--dur, 1) * 0.88 * 1s); }
.scene-starfield i:nth-child(4) { top: 78.6%; }
.scene i:nth-child(5) { left: 61.5%; animation-delay: -5.77s; animation-duration: calc(var(--dur, 1) * 1.02 * 1s); }
.scene-starfield i:nth-child(5) { top: 90.0%; }
.scene i:nth-child(6) { left: 95.7%; animation-delay: -8.58s; animation-duration: calc(var(--dur, 1) * 0.93 * 1s); }
.scene-starfield i:nth-child(6) { top: 4.4%; }
.scene i:nth-child(7) { left: 14.1%; animation-delay: -3.08s; animation-duration: calc(var(--dur, 1) * 1.35 * 1s); }
.scene-starfield i:nth-child(7) { top: 11.2%; }
.scene i:nth-child(8) { left: 17.7%; animation-delay: -6.39s; animation-duration: calc(var(--dur, 1) * 1.00 * 1s); }
.scene-starfield i:nth-child(8) { top: 55.3%; }
.scene i:nth-child(9) { left: 53.7%; animation-delay: -0.60s; animation-duration: calc(var(--dur, 1) * 0.86 * 1s); }
.scene-starfield i:nth-child(9) { top: 6.0%; }
.scene i:nth-child(10) { left: 66.7%; animation-delay: -3.14s; animation-duration: calc(var(--dur, 1) * 1.17 * 1s); }
.scene-starfield i:nth-child(10) { top: 40.6%; }
.scene i:nth-child(11) { left: 44.4%; animation-delay: -7.94s; animation-duration: calc(var(--dur, 1) * 1.26 * 1s); }
.scene-starfield i:nth-child(11) { top: 28.5%; }
.scene i:nth-child(12) { left: 23.9%; animation-delay: -5.25s; animation-duration: calc(var(--dur, 1) * 1.40 * 1s); }
.scene-starfield i:nth-child(12) { top: 54.6%; }
.scene i:nth-child(13) { left: 71.5%; animation-delay: -9.80s; animation-duration: calc(var(--dur, 1) * 0.79 * 1s); }
.scene-starfield i:nth-child(13) { top: 27.4%; }
.scene i:nth-child(14) { left: 41.0%; animation-delay: -1.52s; animation-duration: calc(var(--dur, 1) * 1.09 * 1s); }
.scene-starfield i:nth-child(14) { top: 71.9%; }
.scene i:nth-child(15) { left: 3.8%; animation-delay: -7.65s; animation-duration: calc(var(--dur, 1) * 1.16 * 1s); }
.scene-starfield i:nth-child(15) { top: 63.5%; }
.scene i:nth-child(16) { left: 85.8%; animation-delay: -6.95s; animation-duration: calc(var(--dur, 1) * 1.18 * 1s); }
.scene-starfield i:nth-child(16) { top: 29.8%; }
.scene i:nth-child(17) { left: 56.8%; animation-delay: -8.40s; animation-duration: calc(var(--dur, 1) * 1.46 * 1s); }
.scene-starfield i:nth-child(17) { top: 43.3%; }
.scene i:nth-child(18) { left: 46.5%; animation-delay: -0.61s; animation-duration: calc(var(--dur, 1) * 1.26 * 1s); }
.scene-starfield i:nth-child(18) { top: 63.1%; }
.scene i:nth-child(19) { left: 63.4%; animation-delay: -8.22s; animation-duration: calc(var(--dur, 1) * 0.93 * 1s); }
.scene-starfield i:nth-child(19) { top: 94.3%; }
.scene i:nth-child(20) { left: 37.8%; animation-delay: -0.23s; animation-duration: calc(var(--dur, 1) * 1.07 * 1s); }
.scene-starfield i:nth-child(20) { top: 63.5%; }
.scene i:nth-child(21) { left: 16.5%; animation-delay: -0.59s; animation-duration: calc(var(--dur, 1) * 1.31 * 1s); }
.scene-starfield i:nth-child(21) { top: 11.1%; }
.scene i:nth-child(22) { left: 12.7%; animation-delay: -3.91s; animation-duration: calc(var(--dur, 1) * 1.40 * 1s); }
.scene-starfield i:nth-child(22) { top: 23.5%; }
.scene i:nth-child(23) { left: 7.9%; animation-delay: -5.49s; animation-duration: calc(var(--dur, 1) * 1.41 * 1s); }
.scene-starfield i:nth-child(23) { top: 42.7%; }
.scene i:nth-child(24) { left: 80.3%; animation-delay: -2.78s; animation-duration: calc(var(--dur, 1) * 1.03 * 1s); }
.scene-starfield i:nth-child(24) { top: 82.1%; }
.scene i:nth-child(25) { left: 35.2%; animation-delay: -9.58s; animation-duration: calc(var(--dur, 1) * 0.82 * 1s); }
.scene-starfield i:nth-child(25) { top: 84.0%; }
.scene i:nth-child(26) { left: 17.3%; animation-delay: -2.33s; animation-duration: calc(var(--dur, 1) * 1.09 * 1s); }
.scene-starfield i:nth-child(26) { top: 22.0%; }
.scene i:nth-child(27) { left: 57.7%; animation-delay: -0.04s; animation-duration: calc(var(--dur, 1) * 1.04 * 1s); }
.scene-starfield i:nth-child(27) { top: 25.0%; }
.scene i:nth-child(28) { left: 36.2%; animation-delay: -9.53s; animation-duration: calc(var(--dur, 1) * 1.25 * 1s); }
.scene-starfield i:nth-child(28) { top: 53.8%; }
.scene i:nth-child(29) { left: 50.5%; animation-delay: -6.76s; animation-duration: calc(var(--dur, 1) * 0.74 * 1s); }
.scene-starfield i:nth-child(29) { top: 58.7%; }
.scene i:nth-child(30) { left: 88.2%; animation-delay: -8.75s; animation-duration: calc(var(--dur, 1) * 1.34 * 1s); }
.scene-starfield i:nth-child(30) { top: 74.1%; }
.scene i:nth-child(31) { left: 38.5%; animation-delay: -1.04s; animation-duration: calc(var(--dur, 1) * 1.21 * 1s); }
.scene-starfield i:nth-child(31) { top: 37.9%; }
.scene i:nth-child(32) { left: 6.1%; animation-delay: -2.09s; animation-duration: calc(var(--dur, 1) * 0.83 * 1s); }
.scene-starfield i:nth-child(32) { top: 6.4%; }
.scene i:nth-child(33) { left: 33.3%; animation-delay: -0.00s; animation-duration: calc(var(--dur, 1) * 0.82 * 1s); }
.scene-starfield i:nth-child(33) { top: 5.0%; }
.scene i:nth-child(34) { left: 9.9%; animation-delay: -0.26s; animation-duration: calc(var(--dur, 1) * 1.40 * 1s); }
.scene-starfield i:nth-child(34) { top: 34.5%; }
.scene i:nth-child(35) { left: 60.2%; animation-delay: -2.52s; animation-duration: calc(var(--dur, 1) * 0.98 * 1s); }
.scene-starfield i:nth-child(35) { top: 14.1%; }
.scene i:nth-child(36) { left: 35.7%; animation-delay: -8.49s; animation-duration: calc(var(--dur, 1) * 1.49 * 1s); }
.scene-starfield i:nth-child(36) { top: 11.7%; }
.scene i:nth-child(37) { left: 45.7%; animation-delay: -0.86s; animation-duration: calc(var(--dur, 1) * 0.78 * 1s); }
.scene-starfield i:nth-child(37) { top: 46.0%; }
.scene i:nth-child(38) { left: 33.6%; animation-delay: -8.29s; animation-duration: calc(var(--dur, 1) * 0.83 * 1s); }
.scene-starfield i:nth-child(38) { top: 25.2%; }
.scene i:nth-child(39) { left: 2.3%; animation-delay: -5.28s; animation-duration: calc(var(--dur, 1) * 0.82 * 1s); }
.scene-starfield i:nth-child(39) { top: 90.3%; }
.scene i:nth-child(40) { left: 53.2%; animation-delay: -5.28s; animation-duration: calc(var(--dur, 1) * 1.48 * 1s); }
.scene-starfield i:nth-child(40) { top: 2.6%; }
.scene-clouds i:nth-child(1) { top: 69%; animation-delay: -27.8s; }
.scene-clouds i:nth-child(2) { top: 23%; animation-delay: -14.7s; }
.scene-clouds i:nth-child(3) { top: 16%; animation-delay: -30.9s; }
.scene-clouds i:nth-child(4) { top: 44%; animation-delay: -31.2s; }
.scene-clouds i:nth-child(5) { top: 28%; animation-delay: -8.9s; }
.scene-clouds i:nth-child(6) { top: 65%; animation-delay: -39.4s; }
.scene-lava i:nth-child(1) { top: 51%; background: #ff2e88; animation-delay: -12.9s; }
.scene-lava i:nth-child(2) { top: 49%; background: #7a3cff; animation-delay: -11.8s; }
.scene-lava i:nth-child(3) { top: 14%; background: #ffd36e; animation-delay: -8.3s; }
.scene-lava i:nth-child(4) { top: 21%; background: #18c8d6; animation-delay: -0.5s; }
.scene-lava i:nth-child(5) { top: 2%; background: #c6ff3d; animation-delay: -4.5s; }
.scene-lava i:nth-child(6) { top: 16%; background: #ff7a5a; animation-delay: -11.1s; }
.scene-starfield { --dur: 2.4; } .scene-glitter { --dur: 6; } .scene-snow { --dur: 9; } .scene-hearts { --dur: 9; } .scene-bubbles { --dur: 11; } .scene-code { --dur: 7; } .scene-clouds i { animation-duration: 40s !important; } .scene-lava i { animation-duration: 16s !important; }

/* official music players from other services */
.embed-track { background: linear-gradient(180deg, #fbfbfb 0%, #e4e4e4 45%, #cfcfcf 55%, #e9e9e9 100%); border: 1px solid #8a8a8a; border-radius: 8px; padding: 6px; margin-bottom: 16px; box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.35); }
.lcd-strip { margin-bottom: 6px; }
.embed-track iframe { display: block; width: 100%; border: 1px solid #6d6d6d; border-radius: 6px; background: #000; box-shadow: 0 1px 0 #fff; }
.svc-youtube iframe { height: auto; aspect-ratio: 16 / 9; max-height: 360px; }
.link-msg { margin: 0; font-weight: 700; color: #0a7a2a; }
.link-msg.bad { color: #c0003c; }
.track-src { flex-direction: column; gap: 4px; }
.song-edit { margin-bottom: 6px; }

/* ---------- big music player (music pages) ---------- */
[hidden] { display: none !important; }
.player.bp { display: block; padding: 8px; border-radius: 8px; }
.bp-top { display: flex; gap: 10px; align-items: stretch; }
.bp-art { flex: none; width: 108px; height: 108px; border: 1px solid #6d6d6d; border-radius: 4px; object-fit: cover; background: #000; box-shadow: 0 1px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.4); }
.bp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.bp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bp-controls { display: flex; align-items: center; gap: 5px; }
.bp-skip { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #6d6d6d; background: linear-gradient(180deg, #ffffff 0%, #eaeaea 48%, #cdcdcd 52%, #e2e2e2 100%); color: #3a3a3a; cursor: pointer; font-size: .7rem; box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.3); }
.bp-skip:hover { color: #000; }
.bp-skip:active { box-shadow: inset 0 2px 3px rgba(0,0,0,.35); }
.player.bp .play-btn { width: 44px; height: 44px; border-radius: 50%; }
.bp-time { display: flex; align-items: center; gap: 7px; font: 700 .68rem/1 Tahoma, Verdana, sans-serif; color: #444; text-shadow: 0 1px 0 #fff; }
.bp-bar { flex: 1; height: 7px; background: linear-gradient(180deg, #9a9a9a, #d6d6d6); border: 1px solid #7a7a7a; border-radius: 99px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.45); }
.bp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(180deg, #8fe36f, #3aa52a); }
.bp-list { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid #8a8a8a; border-radius: 4px; overflow: hidden; background: #fff; box-shadow: inset 0 1px 2px rgba(0,0,0,.2); }
.bp-list li { display: flex; align-items: center; gap: 10px; padding: 6px 9px; background: #fdfdfd; border-bottom: 1px solid #e2e2e2; color: #222; }
.bp-list li:last-child { border-bottom: 0; }
.bp-list li:nth-child(even) { background: #f0f0f0; }
.bp-list li.on { background: linear-gradient(180deg, #4c4c4c, #2c2c2c); color: #fff; }
.bp-pick { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; padding: 0; font-family: Tahoma, Verdana, sans-serif; }
.bp-pick:hover .bp-name, .bp-pick:focus-visible .bp-name { text-decoration: underline; }
.bp-name { font-weight: 700; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bp-list li.on .bp-name::before { content: "▶ "; color: #8fe36f; font-size: .7em; }
.bp-by { font-size: .7rem; opacity: .7; }
.bp-plays { font: 700 .7rem Tahoma, Verdana, sans-serif; white-space: nowrap; opacity: .8; }
.bp-list li.on .p-chip { color: #fff; text-shadow: none; }
.bp-chips { flex: none; }
.bp-foot { display: flex; justify-content: flex-end; gap: 14px; margin-top: 5px; font: .68rem Tahoma, Verdana, sans-serif; color: #555; text-shadow: 0 1px 0 #fff; }
.bp-foot b { color: #222; }

/* ---------- music hub ---------- */
.music-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; background: var(--ink); color: #fff; border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 20px; margin: 8px 0 14px; }
.music-head .page-title { color: #fff; font-size: 2.2rem; margin: 0; }
.music-head .page-title em { color: var(--lime); font-style: normal; }
.music-head .hl { color: var(--ink); background: var(--lime); padding: 0 .2em; border-radius: 6px; }
.music-head .lead { margin: .4em 0 .2em; }
.music-head .tiny { color: #d9cdea; margin: 0; }
.music-search { display: flex; gap: 6px; }
.music-search input { border: 3px solid #fff; border-radius: 10px; padding: 6px 10px; font: inherit; min-width: 0; width: 200px; }
.genre-tabs a { font-size: .8rem; padding: 2px 10px; }
.act-tabs a { font-weight: 800; }
.feat-act { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.feat-name { font: 900 1.5rem/1.1 var(--head); margin: 0 0 4px; }
.feat-name a { color: var(--ink); }
.feat-quote { font-weight: 700; font-style: italic; margin: 6px 0; }
.song-chart, .act-chart { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.song-chart li, .act-chart li { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.act-chart li + li { border-top: 1px dashed rgba(0,0,0,.18); }
.song-chart .player { margin: 0; }
.rank { flex: none; width: 30px; height: 30px; display: grid; place-items: center; font: 900 .95rem var(--head); background: var(--lime); border: 3px solid var(--ink); border-radius: 50%; }
.song-chart li:nth-child(-n+3) .rank { background: var(--pink); color: #fff; }
@media (max-width: 560px) {
  .bp-art { width: 72px; height: 72px; }
  .bp-list li { flex-wrap: wrap; }
  .bp-plays { order: 3; }
  .feat-act { flex-direction: column; }
  .music-search, .music-search input { width: 100%; }
  .player-side .p-chip { font-size: .6rem; }
  .player { gap: 6px; }
  .play-btn { width: 38px; height: 38px; }
}

/* ---------- aLt CaPs checkbox under typing boxes ---------- */
.altwrap { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.altwrap > input, .altwrap > textarea { width: 100%; }
.form .altcaps, .altcaps { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; font: 700 .72rem/1 var(--font); letter-spacing: .04em; color: var(--muted); cursor: pointer; user-select: none; padding: 2px 8px 2px 4px; border: 2px dashed transparent; border-radius: 999px; }
.altcaps input { width: 14px; height: 14px; margin: 0; accent-color: var(--pink); cursor: pointer; }
.altcaps:hover { color: var(--pink); }
.altwrap.on .altcaps { color: var(--ink); background: var(--lime); border-color: var(--ink); }
.profile .altcaps { color: inherit; opacity: .8; }
.profile .altwrap.on .altcaps { color: var(--ink); opacity: 1; }

/* ---------- More menu ---------- */
.more-btn { background: none; cursor: pointer; font-family: inherit; }
.more-btn[aria-expanded=true] { border-color: var(--lime); }
.more-panel { max-width: 1120px; margin: 0 auto; padding: 0 12px 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.more-panel .tab { font-size: .82rem; background: rgba(255,255,255,.08); }

/* ---------- blinking Online Now ---------- */
.on-now b { font-weight: 900; animation: t4a-blink 1.1s steps(1) infinite; }
@keyframes t4a-blink { 50% { opacity: .25; } }

/* ---------- horoscope & who viewed me ---------- */
.horoscope .box-body p:last-child { font-style: italic; }
.who-viewed p { margin: 0 0 6px; }
.wv-faces { display: flex; gap: 6px; margin: 6px 0 8px; }
.wv-faces span { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 8px; background: repeating-linear-gradient(45deg, #ddd 0 4px, #c6c6c6 4px 8px); font-weight: 900; color: #777; filter: blur(.6px); }

/* ---------- classic mode: smaller, denser, 2006-ish ---------- */
body.classic { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 12px; }
body.classic.classic.classic .page { max-width: 980px; }
body.classic.classic.classic .profile { padding: 12px max(12px, calc((100% - 960px) / 2)) 30px; font-size: 12px; }
body.classic.classic.classic .banner { padding: 12px; gap: 14px; }
body.classic.classic.classic .box { border-width: 2px; border-radius: 3px; box-shadow: 2px 2px 0 var(--ink); margin-bottom: 10px; }
body.classic.classic.classic .box-head { padding: 3px 8px; border-bottom-width: 2px; }
body.classic.classic.classic .box-head h2 { font: 700 12px/1.3 Verdana, Arial, sans-serif; }
body.classic.classic.classic .box-body { padding: 6px 8px; }
body.classic.classic.classic .btn { font-size: 11px; padding: 3px 10px; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); }
body.classic.classic.classic .pic-xl { width: 130px; height: 130px; border-radius: 4px; box-shadow: none; }
body.classic.classic.classic .pic-lg { width: 90px; height: 90px; border-radius: 4px; }
body.classic.classic.classic .pic-md { width: 70px; height: 70px; border-radius: 3px; }
body.classic.classic.classic .page-title { font-size: 1.4rem; }
body.classic.classic.classic .p-name { font-size: 1.6rem; }
body.classic.classic.classic .kv th, body.classic.classic.classic .kv td { padding: 2px 4px; }
body.classic.classic.classic .tab { font-size: 11px; padding: 2px 8px; }
body.classic.classic.classic .comment { padding: 6px 0; }
body.classic.classic.classic .player { border-radius: 6px; }

/* ---------- glitter picture comments ---------- */
.glitter-pic { display: block; width: 240px; max-width: 100%; height: auto; margin: 4px 0; }
.gl-pick { margin: 8px 0; }
.gl-pick summary { cursor: pointer; font-weight: 800; font-size: .9rem; }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 6px; margin-top: 8px; max-height: 300px; overflow: auto; padding: 2px; }
.gl-grid label { position: relative; display: grid; place-items: center; border: 2px solid transparent; border-radius: 10px; cursor: pointer; padding: 2px; background: rgba(0,0,0,.04); }
.gl-grid input { position: absolute; opacity: 0; }
.gl-grid img { width: 120px; height: 60px; }
.gl-grid label:has(input:checked) { border-color: var(--pink); background: #ffe6f2; }
.gl-grid input:focus-visible + * { outline: 3px solid var(--grape); }
.gl-none span { font-size: .8rem; font-weight: 700; color: #555; padding: 18px 6px; }

/* ---------- About Me code ---------- */
.about-code { overflow-wrap: anywhere; line-height: 1.4; }
.about-code .ac-glitter, .about-code .ac-rainbow { display: inline-block; padding: .1em 0; line-height: 1.2; }
.about-code .ac-img { max-width: 100%; height: auto; max-height: 400px; }
.ac-marquee { overflow: hidden; white-space: nowrap; }
.ac-marquee > span { display: inline-block; padding-left: 100%; animation: t4a-marquee 9s linear infinite; }
.ac-marquee.rev > span { animation-direction: reverse; }
.ac-marquee.alt > span { padding-left: 0; animation: t4a-bounce 4s ease-in-out infinite alternate; }
@keyframes t4a-marquee { to { transform: translateX(-100%); } }
@keyframes t4a-bounce { from { transform: translateX(0); } to { transform: translateX(calc(100% - 2em)); } }
.ac-blink { animation: t4a-blink 1s steps(1) infinite; }
.ac-glitter, .ac-rainbow { font-family: Impact, 'Arial Black', sans-serif; letter-spacing: .02em; }
.ac-glitter { background: repeating-linear-gradient(115deg, #ff2e88 0 6px, #ffd1ea 6px 9px, #c6ff3d 9px 12px, #7a3cff 12px 18px); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; animation: t4a-glitter 1.2s linear infinite; }
@keyframes t4a-glitter { to { background-position: 40px 0; } }
.ac-rainbow { background: linear-gradient(90deg, #ff3b3b, #ff9a1a, #ffe14a, #33d17a, #3b8bff, #a64bff, #ff3b3b); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; animation: t4a-glitter 2s linear infinite; }
.ac-sparkle { text-shadow: 0 0 6px #fff, 0 0 12px #ffe14a; }
.about-video { margin: 8px 0; }
.flair { margin: 6px 0 10px; }
.flair summary { cursor: pointer; font-weight: 800; font-size: .88rem; }
.flair-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.flair code { background: #f1ecf6; padding: 0 3px; border-radius: 4px; }
.cursor-sparkle { position: fixed; z-index: 300; pointer-events: none; font-size: 16px; transform: translate(-50%, -50%); animation: t4a-sparkfall .8s ease-out forwards; text-shadow: 0 0 4px rgba(0,0,0,.4); }
@keyframes t4a-sparkfall { to { opacity: 0; transform: translate(-50%, 30px) scale(.4) rotate(90deg); } }
@media (prefers-reduced-motion: reduce) { .ac-marquee > span, .ac-blink, .ac-glitter, .ac-rainbow, .on-now b { animation: none; } .ac-marquee > span { padding-left: 0; } }

/* ---------- videos ---------- */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.vid-card { min-width: 0; }
.vid-card .embed-track { margin: 0; }
.vid-card iframe { width: 100%; }
.vid-meta { display: flex; flex-direction: column; gap: 1px; margin-top: 6px; }
.vid-title { font-size: .95rem; }
.clip { position: relative; aspect-ratio: 16 / 9; border: 3px solid var(--ink); border-radius: 10px; overflow: hidden; background: #000; }
.clip-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.clip-title { position: absolute; left: 10px; bottom: 8px; right: 60px; color: #fff; font: 900 1rem/1.15 var(--head); text-shadow: 2px 2px 0 #000; }
.clip-play { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; background: var(--pink); color: #fff; font-weight: 900; cursor: pointer; }
.clip.is-playing .clip-title { opacity: .85; }

/* ---------- chat ---------- */
.chat-dock { position: fixed; right: 12px; bottom: 12px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: calc(100vw - 24px); }
.chat-tab { background: var(--ink); color: #fff; border: 3px solid #fff; outline: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; font: 800 .85rem var(--font); cursor: pointer; box-shadow: var(--shadow); }
.chat-tab b { color: var(--lime); }
.chat-list, .chat-win { width: 280px; max-width: 100%; background: #fff; border: var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; color: var(--ink); }
.chat-list header, .chat-win header { display: flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; padding: 6px 8px; font-size: .9rem; }
.chat-x { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1rem; cursor: pointer; }
.chat-list ul { list-style: none; margin: 0; padding: 4px; max-height: 260px; overflow: auto; }
.chat-list li button { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 6px; border-radius: 8px; cursor: pointer; font: 700 .9rem var(--font); color: var(--ink); text-align: left; }
.chat-list li button:hover { background: #f3eefa; }
.chat-list li.tiny { padding: 8px; }
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: #18c84a; margin-left: auto; box-shadow: 0 0 0 2px #d9ffe3; }
.chat-win header .chat-dot { margin-left: 2px; }
.chat-log { height: 220px; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; background: #faf7ff; }
.chat-log p { margin: 0; display: flex; }
.chat-log p span { max-width: 80%; padding: 5px 10px; border-radius: 14px; font-size: .88rem; overflow-wrap: anywhere; }
.chat-log .me { justify-content: flex-end; }
.chat-log .me span { background: var(--pink); color: #fff; border-bottom-right-radius: 4px; }
.chat-log .them span { background: #e9e3f2; border-bottom-left-radius: 4px; }
.chat-log .typing i { animation: t4a-blink 1s infinite; font-style: normal; }
.chat-log .typing i:nth-child(2) { animation-delay: .2s; } .chat-log .typing i:nth-child(3) { animation-delay: .4s; }
.chat-empty { text-align: center; margin: auto !important; color: var(--muted); }
.chat-form { display: flex; gap: 6px; padding: 6px; border-top: 2px solid var(--ink); }
.chat-form input { flex: 1; min-width: 0; border: 2px solid var(--ink); border-radius: 8px; padding: 5px 8px; font: inherit; }
@media print { .chat-dock { display: none; } }

/* ---------- mail, friends, invite bits ---------- */
.share-card { display: flex; gap: 10px; align-items: center; padding: 8px; border: 2px dashed var(--ink); border-radius: 10px; }
.friends-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.sort-pick { font-weight: 700; font-size: .9rem; }
.sort-pick select { border: 2px solid var(--ink); border-radius: 8px; padding: 3px 6px; font: inherit; }
.friend-count { font-size: .9rem; margin: 10px 0; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.pager a { padding: 2px 10px; border: 2px solid var(--ink); border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 700; background: #fff; }
.pager a.on { background: var(--pink); color: #fff; }

/* ---------- Top 7, badges, ratings, surveys ---------- */
.top-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.top-badge { display: inline-block; font-size: .78rem; font-weight: 800; background: #fff6c7; color: #4a3500; border: 2px solid var(--ink); border-radius: 999px; padding: 1px 9px; }
.top-badge a { color: inherit; }
.top-badge.spot-1 { background: var(--lime); color: var(--ink); }
.you-in-top { display: inline-block; margin: 4px 0; padding: 2px 10px; background: rgba(255,255,255,.9); color: #b0115f; border-radius: 999px; font-weight: 800; font-size: .9rem; }
.drama { list-style: none; margin: 8px 0; padding: 0; }
.drama li { padding: 6px 0; border-top: 1px dashed rgba(0,0,0,.18); }
.drama li:first-child { border-top: 0; }
.rate-score { display: flex; align-items: baseline; gap: 2px; }
.rate-score b { font: 900 2rem/1 var(--head); }
.rate-btns { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin: 6px 0 2px; }
.rate-btns button { padding: 4px 0; border: 2px solid currentColor; border-radius: 6px; background: transparent; color: inherit; font-weight: 800; cursor: pointer; font-size: .8rem; }
.rate-btns button:hover, .rate-btns button.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.survey-templates { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.survey-take { margin: 12px 0; }
.survey-take > summary { list-style: none; display: inline-block; }
.survey-take > summary::-webkit-details-marker { display: none; }
.survey-take form { margin-top: 10px; }
.tag-survey { text-decoration: none; background: var(--sun); }

/* ---------- forums, classifieds, schools, comedy & film ---------- */
.forum-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.forum-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; padding: 4px 6px; border-bottom: 2px solid var(--ink); }
.forum-table td { padding: 8px 6px; border-bottom: 1px dashed rgba(0,0,0,.18); vertical-align: top; }
.forum-table td:nth-child(2), .forum-table td:nth-child(3) { text-align: center; font-weight: 700; }
.topic-list, .ad-list { list-style: none; margin: 0; padding: 0; }
.topic-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px dashed rgba(0,0,0,.18); }
.topic-list li:first-child, .ad-list li:first-child { border-top: 0; }
.forum-posts { list-style: none; padding: 0; margin: 0; }
.forum-posts li.box { display: flex; gap: 12px; padding: 10px; }
.fp-who { flex: none; width: 70px; text-align: center; }
.fp-who .pic { margin: 0 auto 4px; }
.fp-body p { margin: 4px 0 0; }
.ad-list li { padding: 10px 0; border-top: 1px dashed rgba(0,0,0,.18); }
.ad-list p { margin: 4px 0; }
.ad-title { font-size: 1rem; }
.jokes { margin: 0; padding-left: 18px; }
.jokes li { margin: 4px 0; }
.joke { font: 800 1.15rem/1.35 var(--font); margin: 0 0 6px; }
.comedy-head .hl { background: var(--sun); }
.film-head .hl { background: var(--sky); }

/* ---------- games ---------- */
.game-hud { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 6px; }
#game { position: relative; }
.game-canvas { display: block; width: 100%; max-width: 480px; aspect-ratio: 4 / 3; height: auto; border: 3px solid var(--ink); border-radius: 10px; touch-action: none; margin: 0 auto; background: #1a0b2e; }
.game-over { position: absolute; inset: 30px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; text-align: center; }
.go-title { font: 900 1.4rem var(--head); text-shadow: 2px 2px 0 #000; margin: 0; }
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 440px; margin: 0 auto; }
.mem-card { aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 10px; background: var(--pink); cursor: pointer; padding: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 700 .7rem var(--font); color: var(--ink); overflow: hidden; }
.mem-card.up { background: #fff; }
.mem-card.done { background: var(--lime); cursor: default; }
.mem-card img { width: 70%; aspect-ratio: 1; border-radius: 8px; object-fit: cover; }
.mem-back { font: 900 2rem var(--head); color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.hiscores { margin: 0; padding-left: 22px; }
.hiscores li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: baseline; padding: 3px 0; }
.more-panel .tab.on { background: var(--lime); color: var(--ink); }
.tag-founder { background: var(--pink); color: #fff; }
.hero-sub { font: 900 clamp(1.05rem, 2.2vw, 1.35rem)/1.2 var(--head); color: var(--pink); margin: -.2em 0 .6em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
