/* clickable things use var(--hand): the normal hand, or the ham hand when the ham cursor is on (Settings) */
:root { --hand: pointer; --r: 3px; }  /* --r: the one corner roundness used everywhere (small, sharp) */
/* ============ juicyham44 — Frutiger Aero ============ */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Segoe UI", "Frutiger", "Frutiger Linotype", "Myriad Pro", Tahoma, Verdana, sans-serif;
  color: #0b3a5c;
  background: #bfe9ff;
  overflow-x: hidden;
}

/* ---------- sky, sun, bubbles, hills ---------- */
.sky {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(ellipse 50% 30% at 85% 25%, rgba(255,255,255,.6), transparent 65%),
    linear-gradient(180deg, #1c8fe3 0%, #47b6f5 30%, #9fdcff 62%, #e6f8ff 80%);
}
.sun {
  position: absolute; top: -120px; right: -80px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,240,.95) 0%, rgba(255,255,220,.5) 25%, rgba(255,255,255,0) 65%);
}
.sun::after { /* lens flare rays */
  content: ""; position: absolute; inset: -40%;
  background: repeating-conic-gradient(from 10deg, rgba(255,255,255,.18) 0 4deg, transparent 4deg 22deg);
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 65%);
          mask: radial-gradient(circle, #000 20%, transparent 65%);
  animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.b { /* glossy bubbles */
  position: absolute; bottom: -120px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.95) 0 8%, rgba(255,255,255,0) 22%),
    radial-gradient(circle at 70% 78%, rgba(255,255,255,.45) 0 6%, rgba(255,255,255,0) 20%),
    radial-gradient(circle at 50% 50%, rgba(150,230,255,.05) 55%, rgba(120,210,255,.35) 72%, rgba(255,255,255,.75) 100%);
  box-shadow: inset 0 0 12px rgba(255,255,255,.5);
  animation: rise linear infinite;
}
.b1 { left: 6%;  width: 70px;  height: 70px;  animation-duration: 19s; }
.b2 { left: 18%; width: 34px;  height: 34px;  animation-duration: 13s; animation-delay: -6s; }
.b3 { left: 33%; width: 110px; height: 110px; animation-duration: 26s; animation-delay: -12s; }
.b4 { left: 52%; width: 46px;  height: 46px;  animation-duration: 16s; animation-delay: -3s; }
.b5 { left: 66%; width: 88px;  height: 88px;  animation-duration: 22s; animation-delay: -15s; }
.b6 { left: 79%; width: 28px;  height: 28px;  animation-duration: 11s; animation-delay: -8s; }
.b7 { left: 88%; width: 60px;  height: 60px;  animation-duration: 18s; animation-delay: -1s; }
.b8 { left: 44%; width: 22px;  height: 22px;  animation-duration: 10s; animation-delay: -4s; }
@keyframes rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  8%   { opacity: 1; }
  50%  { transform: translate(28px, -55vh); }
  100% { transform: translate(-12px, -115vh); opacity: .2; }
}
@media (prefers-reduced-motion: reduce) { .b, .sun::after { animation: none; } .b { bottom: auto; top: 40%; } }

.hill { position: absolute; left: -10%; width: 120%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hill-back {
  bottom: -14vh; height: 34vh;
  background: linear-gradient(180deg, #9be35a, #4fb52b 60%, #2f8f1d);
  transform: rotate(-2deg) translateX(8%);
  filter: saturate(1.1);
}
.hill-front {
  bottom: -22vh; height: 34vh;
  background:
    radial-gradient(ellipse 40% 30% at 30% 12%, rgba(255,255,255,.55), transparent 70%),
    linear-gradient(180deg, #b8f26a, #6cc934 45%, #3a9e22);
  transform: rotate(3deg) translateX(-6%);
}

/* ---------- layout ---------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 22px 18px 40px; }

/* ---------- glass panels ---------- */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.28));
  border: 1px solid rgba(255,255,255,.85);
  border-radius: var(--r);
  box-shadow: 0 10px 30px rgba(10,80,140,.22), inset 0 1px 0 #fff, inset 0 -8px 20px rgba(120,200,255,.18);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
          backdrop-filter: blur(14px) saturate(1.4);
  overflow: hidden;
}
.glass::before { /* top gloss */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 48%;
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0));
  border-radius: 4px 4px 50% 50% / 4px 4px 18px 18px;
  pointer-events: none;
}
.glass > * { position: relative; }
.glass-inner {
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--r);
  box-shadow: inset 0 2px 6px rgba(20,110,180,.15);
}

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.orb {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at 35% 28%, #fff 0 14%, rgba(255,255,255,0) 34%),
    radial-gradient(circle at 50% 80%, #c8ff7a, #57c22a 55%, #22841a);
  box-shadow: 0 3px 8px rgba(30,120,30,.45), inset 0 -3px 6px rgba(0,60,0,.25);
}
.logo-text {
  font-size: 24px; font-weight: 600; letter-spacing: -.5px;
  background: linear-gradient(180deg, #0d6fc2 0%, #0a4f93 50%, #1a87d6 51%, #6cc8ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.9));
}
nav { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- glossy buttons ---------- */
.pill, .btn {
  --top: #8fe3ff; --mid: #1f9de6; --low: #0a77c9; --bot: #5fd0ff; --edge: #0a5fa3;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; border-radius: var(--r); border: 1px solid var(--edge);
  font: inherit; font-weight: 600; font-size: 14px; color: #fff; text-decoration: none; cursor: var(--hand);
  text-shadow: 0 -1px 0 rgba(0,40,80,.45);
  background: linear-gradient(180deg, var(--top) 0%, var(--mid) 49%, var(--low) 50%, var(--bot) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -2px 6px rgba(255,255,255,.35), 0 3px 8px rgba(0,60,120,.3);
  transition: filter .15s, transform .1s;
  white-space: nowrap;
}
.pill:hover, .btn:hover { filter: brightness(1.1) saturate(1.1); }
.pill:active, .btn:active { transform: translateY(1px); filter: brightness(.95); }
.pill-green, .btn-green { --top: #c9ff8a; --mid: #5ccb2b; --low: #3aa61a; --bot: #9cf05a; --edge: #2c7f14; text-shadow: 0 -1px 0 rgba(20,70,0,.45); }
.pill-silver { --top: #ffffff; --mid: #d9e6ef; --low: #bccfdd; --bot: #eef6fb; --edge: #8aa4b8; color: #24506f; text-shadow: 0 1px 0 #fff; }
.btn-red { --top: #ffb3a8; --mid: #f0543c; --low: #d23a22; --bot: #ff8c70; --edge: #a52a16; }
.btn.big { padding: 12px 34px; font-size: 17px; }
.btn.small { padding: 5px 12px; font-size: 12px; }

/* ---------- hero ---------- */
.hero { margin-top: 22px; padding: 30px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.shine {
  margin: 0; font-weight: 300; letter-spacing: -1px; color: #0a4f8a;
  text-shadow: 0 1px 0 #fff, 0 0 18px rgba(255,255,255,.9);
}
.hero h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1; -webkit-box-reflect: below -6px linear-gradient(transparent 55%, rgba(255,255,255,.35)); }
.tagline { margin: 18px 0 0; font-size: 18px; color: #1d6797; }
.stat { padding: 14px 26px; text-align: center; }
.hero-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats .stat { min-width: 120px; }
.stat .keep-case { text-transform: none; font-weight: inherit; }
.stat strong { display: block; font-size: 38px; font-weight: 300; color: #0d73c0; }
.stat span { font-size: 13px; text-transform: lowercase; color: #3a7aa3; }

/* ---------- panels ---------- */
.panel { margin-top: 22px; padding: 24px 26px; }
.panel h2 { font-size: 28px; margin-bottom: 14px; }
.center { text-align: center; }
.center p { font-size: 17px; }
.note { padding: 10px 14px; border-radius: var(--r); font-size: 14px; }
.note.ok { background: rgba(140,240,110,.35); border: 1px solid rgba(60,170,40,.5); color: #1d5e10; }
.note.warn { background: rgba(255,200,120,.4); border: 1px solid rgba(220,140,40,.6); color: #7a4300; }
.muted { color: #4a7c9c; font-size: 13px; }

/* ---------- gallery ---------- */
.grid { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.tile { display: block; padding: 10px; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.tile:hover {  box-shadow: 0 16px 34px rgba(10,80,140,.3), 0 0 0 3px rgba(140,230,255,.6), inset 0 1px 0 #fff; }
.thumb { display: block; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meta { display: flex; justify-content: space-between; padding: 8px 4px 0; font-size: 12px; color: #2f6c94; }

/* ---------- upload ---------- */
.login { max-width: 420px; margin-left: auto; margin-right: auto; margin-top: 40px; }
.login form { display: flex; gap: 10px; }
.field {
  flex: 1; min-width: 0; padding: 10px 16px; border-radius: var(--r); font: inherit; color: #0b3a5c;
  border: 1px solid #7fb6d8; background: linear-gradient(180deg, #e9f6ff, #fff);
  box-shadow: inset 0 2px 4px rgba(20,90,150,.2);
  outline: none;
}
.field:focus { border-color: #2aa3ef; box-shadow: inset 0 2px 4px rgba(20,90,150,.2), 0 0 0 3px rgba(80,190,255,.35); }

.drop {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 44px 20px; margin-bottom: 16px;
  text-align: center; cursor: var(--hand); border: 2px dashed rgba(30,150,230,.55); transition: background .2s, border-color .2s;
}
.drop.over { background: rgba(170,235,255,.6); border-color: #1a9be0; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop strong { font-size: 18px; color: #0d62a6; font-weight: 600; }
.drop small { color: #3c7ea8; }
.drop-orb {
  width: 64px; height: 64px; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fff 0 12%, rgba(255,255,255,0) 32%),
    radial-gradient(circle at 50% 80%, #8fe6ff, #23a0ea 55%, #0b6dbd);
  box-shadow: 0 6px 14px rgba(0,90,160,.4), inset 0 -4px 8px rgba(0,40,90,.25);
  position: relative;
}
.drop-orb::after { content: "↑"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 30px; font-weight: 700; text-shadow: 0 -1px 0 rgba(0,50,100,.5); }

.results { display: grid; gap: 12px; margin-bottom: 18px; }
.result { display: flex; align-items: center; gap: 14px; padding: 10px; }
.result > img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r); flex: none; }
.result > video { width: 200px; max-height: 140px; flex: none; background: #000; border-radius: var(--r); }
.result .audio-box { width: 280px; flex: none; }
.linkrow { display: flex; gap: 8px; flex: 1; min-width: 0; }
.linkrow input {
  flex: 1; min-width: 0; padding: 8px 14px; border-radius: var(--r); border: 1px solid #9cc7e2;
  font-size: 13px; color: #0b3a5c; background: rgba(255,255,255,.85);
}

.manage { display: grid; gap: 8px; }
.mrow { display: grid; grid-template-columns: 52px 1fr auto auto; align-items: center; gap: 12px; padding: 6px 10px; }
.mrow > a > img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--r); display: block; }
.mrow code { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.mrow form { margin: 0; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(10,60,110,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lb-panel { padding: 16px; max-width: min(92vw, 1000px); display: flex; flex-direction: column; gap: 12px; }
.lb-panel video { max-width: 100%; max-height: 72vh; width: auto; display: block; margin: 0 auto; background: #000; border-radius: var(--r); }
.lb-panel audio { width: min(600px, 80vw); display: block; margin: 12px auto; }
.lb-audio-pic { width: 180px !important; height: 180px; object-fit: contain; box-shadow: none !important; }
.lb-panel img { max-width: 100%; max-height: 72vh; border-radius: var(--r); display: block; margin: 0 auto; box-shadow: 0 6px 20px rgba(0,40,90,.3); }
.lb-close {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #a52a16;
  background: linear-gradient(180deg, #ffb3a8, #f0543c 49%, #d23a22 50%, #ff8c70); color: #fff; font-size: 20px; line-height: 1; cursor: var(--hand);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

/* ---------- footer ---------- */
.footer { margin-top: 34px; text-align: center; font-size: 13px; color: #fff; text-shadow: 0 1px 2px rgba(0,60,0,.6); }
.footer .dot { margin: 0 8px; }

@media (max-width: 560px) {
  .hero { padding: 22px; }
  .mrow { grid-template-columns: 44px 1fr auto; }
  .mrow .muted { display: none; }
  .result { flex-direction: column; align-items: stretch; }
  .result img { width: 100%; height: 160px; }
}

/* ---------- inline editing ---------- */
.edit-btn {
  margin-left: 6px; padding: 0 6px; font-size: 14px; line-height: 20px; vertical-align: middle; cursor: var(--hand);
  border: 1px solid #8aa4b8; border-radius: var(--r); color: #24506f; letter-spacing: 0; text-shadow: none; font-weight: 400;
  background: linear-gradient(180deg, #fff, #d9e6ef 49%, #bccfdd 50%, #eef6fb);
  -webkit-text-fill-color: #24506f;
}
.edit-btn:hover { filter: brightness(1.08); }
.edit-form { display: inline-flex; gap: 6px; align-items: center; vertical-align: middle; flex-wrap: wrap; }
.edit-form .field { font-size: 16px; padding: 6px 10px; min-width: 220px; letter-spacing: 0; font-weight: 400; }
.hero h1 .edit-form .field { font-size: 22px; }
.footer .edit-btn { font-size: 11px; line-height: 16px; }
.inline-form { display: inline; margin: 0; }
.pill.active { filter: brightness(1.12) saturate(1.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 0 0 2px rgba(255,255,255,.8), 0 3px 8px rgba(0,60,120,.3); }

/* ---------- video / audio ---------- */
.mthumb { position: relative; display: block; width: 100%; height: 100%; background: #0b3a5c; overflow: hidden; }
.mthumb video, .mthumb canvas { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.mthumb .badge { position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0,40,80,.7); border-radius: var(--r); }
.audio-thumb { background: #fff; }
.audio-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mrow .mthumb { width: 52px; height: 52px; }
.mrow .mthumb .badge { font-size: 8px; padding: 1px 3px; right: 2px; bottom: 2px; }
.audio-box { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; }
.audio-box img { width: 140px; height: 140px; object-fit: contain; }
.audio-box audio { width: 100%; min-width: 240px; max-width: 480px; }
video { max-width: 100%; height: auto; }

/* ---------- random ---------- */
.random-media { text-align: center; margin: 10px 0 16px; }
.random-media img, .random-media video { max-width: 100%; max-height: 70vh; display: block; margin: 0 auto; border-radius: var(--r); box-shadow: 0 6px 20px rgba(0,40,90,.3); background: #000; }
.random-media img { background: transparent; }
.random .linkrow { max-width: 640px; margin: 0 auto 14px; }

/* ---------- wiki ---------- */
.wiki-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.wiki-head h2 { margin-bottom: 0; }
.wiki-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.wiki-card { display: flex; flex-direction: column; gap: 6px; padding: 10px; text-decoration: none; color: #0b3a5c; transition: transform .15s, box-shadow .15s; }
.wiki-card:hover {  box-shadow: 0 10px 24px rgba(10,80,140,.25), inset 0 0 0 2px rgba(140,230,255,.7); }
.wiki-card strong { font-size: 17px; }
.wc-img { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: rgba(255,255,255,.6); }
.wc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wc-none { display: grid; place-items: center; width: 100%; height: 100%; font-size: 54px; font-weight: 300; color: #fff; background: linear-gradient(180deg, #8fe3ff, #1f9de6 49%, #0a77c9 50%, #5fd0ff); }

.wiki-body { color: #0b3a5c; line-height: 1.65; font-size: 18px; margin-bottom: 16px; }
.wiki-body::after { content: ""; display: block; clear: both; }
.wiki-body h2, .wiki-body h3, .wiki-body h4 { color: #0a4f8a; margin: 22px 0 8px; font-weight: 500; }
.wiki-body h2 { font-size: 27px; border-bottom: 1px solid rgba(120,170,210,.7); padding-bottom: 3px; }
.wiki-body h3 { font-size: 22px; }
.wiki-body h4 { font-size: 19px; }
.wiki-body p { margin: 0 0 12px; }
.wiki-body a { color: #0a77c9; }
.wiki-body a.missing { color: #c0392b; }
.wiki-body code, .help code { background: rgba(255,255,255,.6); border: 1px solid rgba(120,170,210,.6); border-radius: var(--r); padding: 0 4px; font-size: .85em; }
.wiki-body hr { border: 0; border-top: 1px solid rgba(120,170,210,.6); margin: 18px 0; clear: both; }
.wiki-body blockquote { margin: 0 0 12px; padding: 8px 14px; border-left: 4px solid #1f9de6; background: rgba(255,255,255,.45); font-style: italic; }
.wiki-body mark { background: #fff38a; padding: 0 2px; }
.wiki-body ul, .wiki-body ol { margin: 0 0 12px; padding-left: 26px; }
.wiki-body .clear { clear: both; }

/* figures: ![caption](url){right 300} */
.fig { display: block; margin: 6px 0 14px; max-width: 100%; }
.fig img, .fig video { display: block; width: 100%; max-height: 75vh; object-fit: contain; border-radius: var(--r); box-shadow: 0 4px 14px rgba(0,40,90,.25); }
.fig video { background: #000; }
.fig .audio-box { width: 100%; }
.fig-block img, .fig-block video { width: auto; max-width: 100%; }
.fig-left, .fig-right { width: 300px; padding: 6px; background: rgba(255,255,255,.55); border: 1px solid rgba(160,200,230,.9); border-radius: var(--r); }
.fig-right { float: right; clear: right; margin: 4px 0 12px 18px; }
.fig-left { float: left; clear: left; margin: 4px 18px 12px 0; }
.fig-center { margin-left: auto; margin-right: auto; width: 60%; }
.figcap { display: block; font-size: 14px; line-height: 1.4; color: #2f6c94; padding: 6px 2px 0; }

/* infobox */
.infobox { float: right; clear: right; width: 300px; margin: 0 0 14px 18px; border-collapse: collapse; font-size: 14px; line-height: 1.4;
  background: rgba(255,255,255,.6); border: 1px solid rgba(160,200,230,.9); box-shadow: 0 4px 14px rgba(0,40,90,.15); }
.infobox th, .infobox td { padding: 5px 8px; text-align: left; vertical-align: top; border-top: 1px solid rgba(160,200,230,.5); }
.infobox th { width: 40%; color: #0a4f8a; font-weight: 600; }
.infobox .ib-title { text-align: center; font-size: 19px; padding: 8px; color: #fff; background: linear-gradient(180deg, #8fe3ff, #1f9de6 49%, #0a77c9 50%, #5fd0ff); text-shadow: 0 -1px 0 rgba(0,40,80,.45); border-top: 0; }
.infobox .ib-section { text-align: center; background: rgba(160,215,245,.5); }
.infobox .ib-image { text-align: center; }
.infobox .ib-image img, .infobox .ib-image video { max-width: 100%; display: block; margin: 0 auto; border-radius: var(--r); }
.infobox .figcap { text-align: center; }

/* editor */
.wiki-form { display: grid; gap: 10px; }
.wiki-text { font-size: 14px; resize: vertical; min-height: 300px; }
.wiki-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wiki-actions form { margin: 0; }
.preview-row { display: flex; gap: 12px; align-items: center; padding: 10px; }
.pv-thumb { width: 96px; height: 72px; flex: none; border-radius: var(--r); overflow: hidden; background: rgba(255,255,255,.6); }
.pv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-fields { flex: 1; display: grid; gap: 6px; }
.picker, .help { padding: 10px 12px; }
.picker summary, .help summary { cursor: var(--hand); font-weight: 600; color: #0d62a6; }
.picker summary label { font-weight: 400; color: #0b3a5c; margin-left: 10px; white-space: nowrap; font-size: 14px; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 10px; max-height: 260px; overflow: auto; }
.pick { padding: 0; aspect-ratio: 1; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; cursor: var(--hand); background: rgba(255,255,255,.6); }
.pick:hover { border-color: #1f9de6; }
.pick img, .pick .mthumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.help-grid { display: grid; grid-template-columns: minmax(200px, auto) 1fr; gap: 8px 14px; margin-top: 10px; font-size: 14px; align-items: start; }

@media (max-width: 700px) {
  .fig-left, .fig-right, .infobox { float: none; width: 100% !important; margin: 8px 0 14px; }
  .help-grid { grid-template-columns: 1fr; }
}

/* ---------- landing page ---------- */
.landing-hero { justify-content: center; text-align: center; padding: 44px 32px 54px; }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin: 26px 0 18px; }
.door { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 38px 20px; text-decoration: none; color: #0b3a5c; transition: transform .2s, box-shadow .2s; }
.door:hover {  box-shadow: 0 18px 36px rgba(10,80,140,.3), 0 0 0 3px rgba(140,230,255,.6), inset 0 1px 0 #fff; }
.door strong { font-size: 30px; font-weight: 300; color: #0a4f8a; letter-spacing: -.5px; }
.door-orb { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; color: #fff; text-shadow: 0 -1px 0 rgba(0,40,80,.4);
  box-shadow: 0 8px 18px rgba(0,80,150,.35), inset 0 -5px 10px rgba(0,40,90,.25); }
.door-blue { background: radial-gradient(circle at 35% 26%, #fff 0 12%, rgba(255,255,255,0) 32%), radial-gradient(circle at 50% 80%, #8fe6ff, #23a0ea 55%, #0b6dbd); }
.door-green { background: radial-gradient(circle at 35% 26%, #fff 0 12%, rgba(255,255,255,0) 32%), radial-gradient(circle at 50% 80%, #c8ff7a, #57c22a 55%, #22841a); }
.wiki-body blockquote, .wiki-body h2, .wiki-body pre { overflow: hidden; }

/* ---------- upload requests ---------- */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.upform { display: grid; gap: 10px; }
.upform .btn.big { justify-self: start; }
.hint { margin-top: 8px; }
.pill .count { font-weight: 800; }
.pending-list { display: grid; gap: 12px; }
.pend { display: flex; gap: 14px; padding: 10px; align-items: flex-start; flex-wrap: wrap; }
.pend-media { width: 240px; max-width: 100%; flex: none; }
.pend-media img, .pend-media video { width: 100%; max-height: 200px; object-fit: contain; border-radius: var(--r); background: rgba(0,0,0,.06); display: block; }
.pend-media .audio-box { width: 100%; }
.pend-media .audio-box img { width: 90px; height: 90px; background: none; }
.pend-info { flex: 1; min-width: 200px; display: grid; gap: 6px; color: #0b3a5c; }
.pend-note { margin: 0; padding: 6px 10px; background: rgba(255,255,255,.6); border-left: 3px solid #1f9de6; font-size: 14px; }
.pill .count { margin-left: 4px; }
.more-status { text-align: center; padding: 18px 0 6px; min-height: 20px; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .tile { padding: 6px; } .tile .meta { font-size: 11px; } }

/* ---------- gif buddy (bottom right) ---------- */
.gif-buddy { position: fixed; right: 14px; bottom: 14px; z-index: 40; width: 84px; height: 84px; padding: 0; border: 0; background: none; cursor: var(--hand);
  display: grid; place-items: end center; filter: drop-shadow(0 4px 8px rgba(0,40,90,.35)); transition: transform .15s; }
.gif-buddy img { max-width: 100%; max-height: 100%; display: block; pointer-events: none; }
.gif-buddy:hover { filter: drop-shadow(0 0 6px rgba(255,255,255,.55)) brightness(1.12); }
.gif-buddy.boing { animation: boing .35s ease; }
@keyframes boing { 0% { transform: scale(1); } 35% { transform: scale(.82, 1.15); } 70% { transform: scale(1.12, .9); } 100% { transform: scale(1); } }
@media (max-width: 520px) { .gif-buddy { width: 60px; height: 60px; right: 8px; bottom: 8px; } }

/* =====================================================================
   JUICY HAM THEME — background: epiccrash.jpg, colours from the JuicyHam 44 banner
   (black, blood-red checker #8b1922 / #581015, title red #e10104, pink accents)
   ===================================================================== */
body { color: #f6e4e6; background: #000; }
.sky { background: #000 url("assets/bg.jpg") center / cover no-repeat; }
.sky::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%); }
.sun, .hill, .b { display: none; }

.glass {
  background: linear-gradient(180deg, rgba(48,5,10,.84), rgba(12,0,3,.8));
  border: 1px solid rgba(225,1,4,.45);
  box-shadow: 0 10px 30px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,120,120,.35), inset 0 -8px 20px rgba(139,25,34,.28);
}
.glass::before { background: linear-gradient(180deg, rgba(255,110,110,.16), rgba(255,110,110,0)); }
.glass-inner { background: rgba(0,0,0,.42); border: 1px solid rgba(139,25,34,.85); box-shadow: inset 0 2px 6px rgba(0,0,0,.5); }

.orb { background: radial-gradient(circle at 35% 28%, #fff 0 10%, rgba(255,255,255,0) 30%), radial-gradient(circle at 50% 80%, #ff6b6b, #e10104 55%, #6a1015); box-shadow: 0 3px 8px rgba(0,0,0,.6), inset 0 -3px 6px rgba(60,0,0,.4); }
.logo-text { background: linear-gradient(180deg, #ff6b6b 0%, #ff1a1a 50%, #e10104 51%, #8b1922 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #000); }

/* buttons */
.pill, .btn { --top: #ff6b6b; --mid: #e10104; --low: #a5000a; --bot: #ff3d3d; --edge: #4a0006; text-shadow: 0 -1px 0 rgba(40,0,0,.7);
  box-shadow: inset 0 1px 0 rgba(255,200,200,.75), inset 0 -2px 6px rgba(255,120,120,.3), 0 3px 8px rgba(0,0,0,.55); }
.pill-green, .btn-green { --top: #ffe0e4; --mid: #f37f90; --low: #d4475d; --bot: #ffb3bf; --edge: #6a1015; color: #3a0208; text-shadow: 0 1px 0 rgba(255,230,235,.6); }
.pill-silver { --top: #565656; --mid: #1c1c1c; --low: #000; --bot: #2e2e2e; --edge: #000; color: #f6d3d8; text-shadow: 0 -1px 0 #000; }
.btn-red { --top: #d24a52; --mid: #8b1922; --low: #581015; --bot: #a3242e; --edge: #2e090b; color: #fff; }
.pill.active { box-shadow: inset 0 1px 0 rgba(255,200,200,.8), 0 0 0 2px rgba(255,80,80,.8), 0 3px 8px rgba(0,0,0,.55); }
.lb-close { border-color: #2e090b; background: linear-gradient(180deg, #ff6b6b, #e10104 49%, #a5000a 50%, #ff3d3d); }
.edit-btn { border-color: #000; color: #f6d3d8; -webkit-text-fill-color: #f6d3d8; background: linear-gradient(180deg, #565656, #1c1c1c 49%, #000 50%, #2e2e2e); }

/* headings & text */
.shine { color: #ff1a1a; text-shadow: 0 3px 0 #000, 0 0 22px rgba(225,1,4,.55); }
.tagline { color: #ffc2c8; }
.stat strong { color: #ff2a2a; text-shadow: 0 2px 0 #000; }
.stat span, .muted, .meta, .figcap, .drop small { color: #dba1a8; }
.note.ok { background: rgba(70,160,70,.22); border-color: rgba(120,220,120,.45); color: #cdf6c4; }
.note.warn { background: rgba(255,150,0,.18); border-color: rgba(255,170,60,.5); color: #ffd79c; }
.note a { color: #ff9aa5; }
.footer { color: #f3c6cb; text-shadow: 0 1px 3px #000; }

/* tiles & media */
.tile:hover, .wiki-card:hover { box-shadow: 0 16px 34px rgba(0,0,0,.65), 0 0 0 3px rgba(225,1,4,.75), inset 0 1px 0 rgba(255,150,150,.4); }
.thumb, .wc-img, .pv-thumb, .pick { background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 1px rgba(139,25,34,.9); }
.mthumb { background: #160204; }
.mthumb .badge { background: rgba(139,25,34,.9); }
.audio-thumb { background: #120203; }
.wc-none, .infobox .ib-title { background: linear-gradient(180deg, #ff6b6b, #e10104 49%, #a5000a 50%, #ff3d3d); text-shadow: 0 -1px 0 rgba(40,0,0,.7); }
.pick:hover { border-color: #ff2a2a; }
.lightbox { background: rgba(0,0,0,.72); }
.lb-panel img, .random-media img, .random-media video, .fig img, .fig video { box-shadow: 0 6px 20px rgba(0,0,0,.6); }

/* forms */
.field, .linkrow input { color: #f6e4e6; border-color: #8b1922; background: linear-gradient(180deg, #1c0306, #0b0102); box-shadow: inset 0 2px 4px rgba(0,0,0,.6); }
.field::placeholder { color: #9b6a70; }
.field:focus { border-color: #ff2a2a; box-shadow: inset 0 2px 4px rgba(0,0,0,.6), 0 0 0 3px rgba(225,1,4,.35); }
.drop { border-color: rgba(225,1,4,.6); }
.drop.over { background: rgba(139,25,34,.45); border-color: #ff2a2a; }
.drop strong { color: #ff4a4a; }
.drop-orb { background: radial-gradient(circle at 35% 28%, #fff 0 10%, rgba(255,255,255,0) 30%), radial-gradient(circle at 50% 80%, #ff6b6b, #e10104 55%, #6a1015); box-shadow: 0 6px 14px rgba(0,0,0,.6), inset 0 -4px 8px rgba(60,0,0,.4); }

/* wiki */
.wiki-card, .door, .pend-info { color: #f6e4e6; }
.wiki-body { color: #f3e3e5; }
.wiki-body h2, .wiki-body h3, .wiki-body h4, .door strong { color: #ff3b3b; text-shadow: 0 2px 0 #000; }
.wiki-body h2 { border-bottom-color: rgba(225,1,4,.5); }
.wiki-body a { color: #ff9aa5; }
.wiki-body a.missing { color: #ff3030; text-decoration-style: dotted; }
.wiki-body code, .help code { background: rgba(0,0,0,.5); border-color: #581015; color: #ffd0d5; }
.wiki-body hr { border-top-color: rgba(225,1,4,.45); }
.wiki-body blockquote, .pend-note { border-left-color: #e10104; background: rgba(0,0,0,.4); }
.wiki-body mark { background: #e10104; color: #fff; }
.fig-left, .fig-right { background: rgba(0,0,0,.45); border-color: #581015; }
.infobox { background: rgba(12,0,3,.82); border-color: #8b1922; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.infobox th, .infobox td { border-top-color: rgba(139,25,34,.6); }
.infobox th { color: #ff6b6b; }
.infobox .ib-section { background: rgba(139,25,34,.5); }
.picker summary, .help summary { color: #ff5a5a; }
.picker summary label { color: #f3e3e5; }
.door-blue { background: radial-gradient(circle at 35% 26%, #fff 0 12%, rgba(255,255,255,0) 32%), radial-gradient(circle at 50% 80%, #ff6b6b, #e10104 55%, #6a1015); }
.door-green { background: radial-gradient(circle at 35% 26%, #fff 0 12%, rgba(255,255,255,0) 32%), radial-gradient(circle at 50% 80%, #ffe0e4, #f37f90 55%, #b03048); }
.door:hover { box-shadow: 0 18px 36px rgba(0,0,0,.65), 0 0 0 3px rgba(225,1,4,.7), inset 0 1px 0 rgba(255,150,150,.4); }
.gif-buddy { filter: drop-shadow(0 4px 8px rgba(0,0,0,.7)); }

/* =====================================================================
   SUNBOY MODE — type "sunboy" anywhere (outside text boxes) to toggle
   ===================================================================== */
html.sunboy .sky { background: #000 url("assets/sunboy.jpg") center / 260px repeat !important; filter: brightness(.35) contrast(1.4) saturate(.6); animation: sb-breathe 6s ease-in-out infinite; }
html.sunboy .wrap { filter: brightness(.72) contrast(1.3) saturate(.55) sepia(.35); }
html.sunboy .glass, html.sunboy .glass-inner, html.sunboy .pill, html.sunboy .btn, html.sunboy .field, html.sunboy .drop,
html.sunboy .orb, html.sunboy .drop-orb, html.sunboy .door-orb, html.sunboy .edit-btn, html.sunboy .lb-close, html.sunboy .mthumb,
html.sunboy .thumb, html.sunboy .wc-img, html.sunboy .wc-none, html.sunboy .infobox, html.sunboy .infobox .ib-title, html.sunboy .linkrow input,
html.sunboy .fig-left, html.sunboy .fig-right, html.sunboy .pend-note, html.sunboy .wiki-body blockquote, html.sunboy #lb-media {
  background: linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.72)), url("assets/sunboy.jpg") center / cover !important;
}
html.sunboy .shine, html.sunboy .logo-text, html.sunboy .door strong { color: #c9a227 !important; -webkit-text-fill-color: #c9a227; background: none !important; text-shadow: 0 0 14px rgba(201,162,39,.6), 0 3px 0 #000 !important; }
html.sunboy .sb-hide { visibility: hidden !important; }
html.sunboy #lb-media:has(.sb-hide) { min-height: 50vh; }
html.sunboy body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 30%, rgba(0,0,0,.85) 100%);
  animation: sb-flicker 4.5s steps(1) infinite;
}
@keyframes sb-flicker { 0%, 100% { opacity: 1; } 7% { opacity: .55; } 8% { opacity: 1; } 41% { opacity: .8; } 42% { opacity: 1; } 76% { opacity: .35; } 77% { opacity: 1; } }
@keyframes sb-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { html.sunboy body::after, html.sunboy .sky { animation: none; } }
.logo-text, .logo a { text-decoration: none; }
.footer { display: table; margin-left: auto; margin-right: auto; padding: 6px 14px; border-radius: var(--r); background: rgba(0,0,0,.6); }
html.sunboy .pill, html.sunboy .btn { color: #e8d9a8 !important; text-shadow: 0 1px 2px #000 !important; border-color: #000 !important; }

/* ---------- votes, tags, sort bar ---------- */
.tile .thumb { display: block; }
.tile .meta { align-items: center; gap: 6px; }
.vote { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--r); cursor: var(--hand); font: inherit; font-size: 12px; font-weight: 700;
  color: #f6d3d8; border: 1px solid #000; background: linear-gradient(180deg, #4a4a4a, #1a1a1a 49%, #000 50%, #2a2a2a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 5px rgba(0,0,0,.5); transition: transform .1s, filter .15s; }
.vote:hover { filter: brightness(1.2); }
.vote .vote-arrow { font-size: 10px; color: #ff5a5a; }
.vote.voted { color: #fff; border-color: #4a0006; background: linear-gradient(180deg, #ff6b6b, #e10104 49%, #a5000a 50%, #ff3d3d); }
.vote.voted .vote-arrow { color: #fff; }
.vote:disabled { opacity: .6; cursor: wait; }
.vote.pop { animation: vote-pop .3s ease; }
.vote.vote-err { animation: vote-shake .3s; }
@keyframes vote-pop { 50% { transform: scale(1.25); } }
@keyframes vote-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag { display: inline-block; padding: 1px 7px; border-radius: var(--r); font-size: 11px; text-decoration: none; color: #ffd0d5; background: rgba(139,25,34,.55); border: 1px solid rgba(225,1,4,.45); }
.tag:hover, .tag.on { background: #e10104; color: #fff; }
.tag small { opacity: .7; }
.tag.more { background: none; border-color: transparent; }
.toolbar { margin-top: 18px; padding: 14px 16px; display: grid; gap: 10px; }
.search { display: flex; gap: 8px; flex-wrap: wrap; }
.search .field { flex: 1; min-width: 180px; }
.sorts { display: flex; gap: 6px; flex-wrap: wrap; }
.sorts .pill { padding: 5px 12px; font-size: 12px; }
.tag-cloud { margin-top: 0; }
.result-count { margin: 14px 2px 0; }
#lb-vote:not(:empty) { flex: none; }
#lb-tags .tags { justify-content: center; }
.random-bar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.random-bar .vote { font-size: 15px; padding: 6px 14px; }
.small-field { padding: 5px 9px; font-size: 13px; min-width: 0; }
.approve-form, .tag-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.approve-form .small-field { width: 240px; }
.mrow { grid-template-columns: 52px 1fr auto auto; }
.mrow-main { display: grid; gap: 4px; min-width: 0; }
.tag-form .small-field { flex: 1; min-width: 120px; }
html.sunboy .vote, html.sunboy .tag { background: rgba(0,0,0,.7) !important; color: #e8d9a8 !important; border-color: #000 !important; }
html.sunboy, html.sunboy * { cursor: not-allowed !important; user-select: none; }

/* ---------- status bar, names, up/down votes ---------- */
.status-bar { margin-top: 14px; padding: 10px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, rgba(225,1,4,.85), rgba(139,25,34,.85)); border-color: #ff4a4a; }
.status-bar .status-text { flex: 0 1 auto; }
.status-bar.status-empty { background: rgba(0,0,0,.5); border-style: dashed; font-weight: 400; }
.status-bar.status-empty .status-text { display: none; }
.status-hint { font-size: 13px; }
.votes { display: inline-flex; gap: 3px; flex: none; }
.vote.down .vote-arrow { color: #8fb6ff; }
.vote.down.voted { border-color: #000; background: linear-gradient(180deg, #7b8cff, #2c3fbf 49%, #1c2a8f 50%, #4f63e6); }
.vote.down.voted .vote-arrow { color: #fff; }
.tile-name { display: block; margin-top: 7px; font-weight: 700; font-size: 14px; color: #ffd0d5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .meta { padding-top: 5px; }
.lb-name { text-align: center; font-weight: 700; font-size: 17px; color: #ffd0d5; margin-top: 10px; }
.lb-name:empty { display: none; }
.random-name { text-align: center; margin: 4px 0 10px; font-size: 22px; color: #ffd0d5; }

/* ---------- contact / inbox ---------- */
.inbox { display: grid; gap: 10px; }
.message { padding: 12px 14px; }
.message.unread { border-color: #ff2a2a; box-shadow: inset 3px 0 0 #e10104; }
.msg-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.msg-text { margin: 8px 0 10px; white-space: normal; word-wrap: break-word; line-height: 1.5; }

/* ---------- socials ---------- */
.socials { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 12px; }
.social { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: #f6e4e6; transition: transform .15s, box-shadow .15s; }
.social:hover {  box-shadow: 0 8px 20px rgba(0,0,0,.5), 0 0 0 2px rgba(225,1,4,.7); }
.social-badge { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.55) 0 12%, rgba(255,255,255,0) 34%), var(--c); box-shadow: 0 3px 8px rgba(0,0,0,.5), inset 0 -3px 6px rgba(0,0,0,.3); }
.social-text { display: grid; min-width: 0; }
.social-text strong { font-size: 16px; }
.social-text span { font-size: 13px; color: #ff9aa5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-go { margin-left: auto; color: #ff5a5a; font-size: 18px; }

/* ---------- ip page ---------- */
.ip-page { padding: 40px 20px; }
.ip-big { font-size: clamp(30px, 7vw, 64px); margin: 6px 0 18px; word-break: break-all; }
.ip-copy { max-width: 420px; margin: 0 auto 12px; }
.ip-link { color: #ff9aa5; }

/* ---------- ham bubbles (rise, wobble, pop red) ---------- */
.ham-bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ham-bubble { position: fixed; bottom: -140px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.75) 0 9%, rgba(255,255,255,0) 24%), radial-gradient(circle at 50% 55%, rgba(255,80,80,.06), rgba(255,60,60,.18) 70%, rgba(255,190,190,.55) 100%);
  box-shadow: inset 0 0 14px rgba(255,170,170,.55), inset -6px -8px 16px rgba(225,1,4,.25), 0 4px 14px rgba(0,0,0,.3);
  border: 1px solid rgba(255,200,200,.55);
  animation: ham-rise var(--rise) linear forwards, ham-sway calc(var(--rise) / 3) ease-in-out infinite alternate; }
.ham-bubble img { width: 66%; height: 66%; object-fit: contain; transform: rotate(var(--spin)); filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
@keyframes ham-rise { from { bottom: -140px; } to { bottom: calc(100vh + 140px); } }
@keyframes ham-sway { from { margin-left: 0; } to { margin-left: var(--sway); } }
.ham-bubble.popping { position: fixed; animation: ham-pop .16s ease-out forwards; }
@keyframes ham-pop { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.18); opacity: .35; } 100% { transform: scale(1.3); opacity: 0; } }
.pop-ring { position: fixed; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid #ff1a1a; animation: pop-ring .3s ease-out forwards; }
@keyframes pop-ring { from { transform: translate(-50%, -50%) scale(.7); opacity: 1; } to { transform: translate(-50%, -50%) scale(1.9); opacity: 0; border-width: 1px; } }
.pop-drop { position: fixed; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50% 50% 50% 0; background: radial-gradient(circle at 35% 30%, #ff8080, #e10104 55%, #7a0008);
  transform: scale(var(--s)); animation: pop-drop .45s cubic-bezier(.15,.8,.35,1) forwards; }
@keyframes pop-drop { 0% { transform: translate(0,0) scale(var(--s)); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(calc(var(--s) * .4)); opacity: 0; } }

/* bigger ham buddy */
.gif-buddy { width: 132px; height: 132px; right: 16px; bottom: 16px; }
@media (max-width: 520px) { .gif-buddy { width: 88px; height: 88px; right: 8px; bottom: 8px; } }

/* ---------- blog ---------- */
.blog-post h2 a { color: inherit; text-decoration: none; }
.blog-post h2 a:hover { text-decoration: underline; }
.post-date { margin: -6px 0 14px; }
.post-excerpt { color: #f3e3e5; line-height: 1.6; }
.post-admin { margin-top: 10px; border-top: 1px solid rgba(225,1,4,.3); padding-top: 10px; }
.blog-head { padding-bottom: 8px; }
.pager { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 18px; }

/* ---------- autosave boxes, grouped approval queue ---------- */
[data-autosave] { transition: border-color .2s, box-shadow .2s; }
[data-autosave].saving { border-color: #ffb347; }
[data-autosave].saved { border-color: #4cd964; box-shadow: inset 0 2px 4px rgba(0,0,0,.6), 0 0 0 2px rgba(76,217,100,.35); }
[data-autosave].save-err { border-color: #ff2a2a; box-shadow: inset 0 2px 4px rgba(0,0,0,.6), 0 0 0 2px rgba(255,42,42,.45); }
.pend-batch { padding: 12px; display: grid; gap: 10px; }
.batch-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; color: #f6e4e6; }
.batch-head .pend-note { margin-top: 6px; }
.batch-files { display: grid; gap: 10px; }
.batch-files .pend { padding: 10px; background: rgba(0,0,0,.3); border: 1px solid rgba(139,25,34,.6); border-radius: var(--r); }
.pend-info .small-field { width: 100%; max-width: 360px; }
.drop.too-many { border-color: #ffb347; background: rgba(255,150,0,.15); }

/* ---------- embeds ---------- */
.embed iframe { display: block; width: 100%; border: 0; border-radius: var(--r); background: #000; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.embed-video iframe { aspect-ratio: 16 / 9; height: auto; }
.embed-short { max-width: 340px; }
.embed-short iframe { aspect-ratio: 9 / 16; height: auto; }
.embed-spotify iframe { height: 352px; }
.embed-spotify-small iframe { height: 152px; }
.embed-soundcloud iframe { height: 166px; }
.embed.fig-block { max-width: 800px; }
.embed.fig-left, .embed.fig-right { width: 380px; }
.help-grid code { white-space: normal; }

/* ---------- accounts, showcase, forums ---------- */
.me-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: var(--r); text-decoration: none; font-weight: 700; font-size: 13px;
  color: #f6d3d8; background: rgba(0,0,0,.55); border: 1px solid rgba(225,1,4,.5); max-width: 160px; }
.me-chip img { width: 26px; height: 26px; border-radius: var(--r); object-fit: cover; background: #1a0305; }
.me-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-chip:hover, .me-chip.active { border-color: #ff2a2a; background: rgba(139,25,34,.6); }
.user-chip { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; color: #ffd0d5; font-weight: 700; vertical-align: middle; max-width: 100%; }
.user-chip img { width: 18px; height: 18px; border-radius: var(--r); object-fit: cover; background: #1a0305; flex: none; }
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip.big img { width: 34px; height: 34px; }
.user-chip:hover span { text-decoration: underline; }
.tile-by { display: block; font-size: 12px; color: #dba1a8; margin-top: 3px; overflow: hidden; }
.lb-by { text-align: center; margin-top: 4px; color: #dba1a8; }
.lb-by:empty { display: none; }
.mrow { grid-template-columns: 52px 1fr auto auto auto; }
.row-actions { margin: 0; }

.showcase { margin-top: 18px; padding: 14px 16px; border: 2px solid #ffcc33; box-shadow: 0 10px 30px rgba(0,0,0,.55); }
.showcase-label { font-weight: 800; letter-spacing: .5px; text-transform: uppercase; font-size: 13px; color: #ffcc33; margin-bottom: 10px; }
.showcase-body { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.showcase-media { flex: 0 1 460px; max-width: 100%; padding: 0; background: none; border: 0; box-shadow: none; }
.showcase-media img, .showcase-media video { display: block; max-width: 100%; max-height: 340px; border-radius: var(--r); box-shadow: 0 6px 20px rgba(0,0,0,.6); background: #000; }
.showcase-media .audio-box { width: 100%; }
.showcase-media:hover { filter: drop-shadow(0 0 6px rgba(255,255,255,.55)) brightness(1.12); }
.showcase-info { flex: 1; min-width: 200px; display: grid; gap: 8px; justify-items: start; }
.showcase-info h3 { margin: 0; font-size: 24px; color: #ffd0d5; }
.showcase-info p { margin: 0; }

.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.pfp-big { width: 128px; height: 128px; border-radius: var(--r); object-fit: cover; background: #1a0305; border: 2px solid #e10104; box-shadow: 0 6px 18px rgba(0,0,0,.6); }
.profile-name { font-size: 40px; margin: 0; }
.profile-status { margin: 6px 0; font-style: italic; color: #ffc2c8; font-size: 17px; }
.profile-form { margin-top: 18px; padding: 14px; display: grid; gap: 12px; }
.profile-form h3 { margin: 0; }
.profile-form label { display: grid; gap: 5px; font-weight: 600; font-size: 14px; }
.admin-tools { margin-top: 14px; padding: 10px; }
.section-title { margin: 22px 4px 0; font-weight: 400; }

.threads { display: grid; gap: 8px; }
.thread { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; text-decoration: none; color: #f6e4e6; }
.thread:hover { border-color: #ff2a2a; }
.thread-pfp { width: 44px; height: 44px; border-radius: var(--r); object-fit: cover; background: #1a0305; }
.thread-main { display: grid; gap: 2px; min-width: 0; }
.thread-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-stats { display: grid; text-align: right; font-size: 13px; }
.forum-post { margin-top: 12px; }
.forum-post.op { border-color: #ff4a4a; }
.post-author { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.post-status { font-style: italic; color: #ffc2c8; font-size: 13px; }
.post-tools { margin-top: 8px; }
.crumbs { margin: 16px 0 0; }
.small-link { font-size: 13px; font-weight: 400; }
@media (max-width: 600px) { .thread { grid-template-columns: 36px 1fr; } .thread-stats { display: none; } .me-chip span { display: none; } .me-chip { padding: 3px; } }
.showcase-media img { width: 100%; object-fit: contain; image-rendering: auto; }

/* ---------- comments ---------- */
.comments-link { display: inline-block; margin-top: 5px; font-size: 12px; color: #ff9aa5; text-decoration: none; }
.comments-link:hover { text-decoration: underline; }
.comment { padding: 10px 12px; margin-bottom: 10px; }
.comment .wiki-body { font-size: 16px; margin-bottom: 4px; }
.comment-as { margin-top: 18px; }
.media-page h2 { text-align: center; }
.media-link { max-width: 640px; margin: 12px auto 0; }
.post-embeds { margin-top: 8px; }
.post-embeds .embed { max-width: 560px; }

/* ---------- notifications bell, people, messages ---------- */
.bell { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r); background: rgba(0,0,0,.55); border: 1px solid rgba(225,1,4,.5); }
.bell svg { width: 18px; height: 18px; fill: #f6d3d8; }
.bell.has svg { fill: #ff4a4a; }
.bell:hover, .bell.active { border-color: #ff2a2a; background: rgba(139,25,34,.6); }
.bell-n { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--r); background: #e10104; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px #000; }
.notifs, .people { display: grid; gap: 8px; }
.notif { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; text-decoration: none; color: #f6e4e6; }
.notif.unread, .thread.unread { border-color: #ff2a2a; box-shadow: inset 3px 0 0 #e10104; }
.thread.current { border-color: #ffcc33; }
.person { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; }
.person-name { color: #ffd0d5; font-weight: 700; text-decoration: none; }
.person-name:hover { text-decoration: underline; }
.profile-actions { margin-top: 14px; }
.friend-strip { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.compose { padding: 14px; margin-bottom: 16px; }
.warning-text { margin: 0 0 12px; padding: 10px 12px; font-weight: 700; color: #ffcc33; background: rgba(255,170,0,.12); border: 1px solid rgba(255,204,51,.55); border-radius: var(--r); }
.conversation { padding: 12px; margin-bottom: 16px; }
.conv-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.conv-msgs { display: grid; gap: 10px; max-height: 60vh; overflow-y: auto; padding: 6px 2px; }
.dm { display: flex; gap: 8px; align-items: flex-end; }
.dm.mine { flex-direction: row-reverse; }
.dm-pfp { width: 30px; height: 30px; border-radius: var(--r); object-fit: cover; background: #1a0305; flex: none; }
.dm-bubble { max-width: 75%; padding: 8px 12px; border-radius: var(--r); background: rgba(0,0,0,.5); border: 1px solid rgba(139,25,34,.8); }
.dm.mine .dm-bubble { background: rgba(139,25,34,.55); border-color: #e10104; }
.dm-bubble .wiki-body { font-size: 15px; margin: 0; }
.dm-bubble .wiki-body p:last-child { margin-bottom: 2px; }
.dm-time { font-size: 11px; }
.dm-form { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.dm-form textarea { flex: 1; }
.archive summary { cursor: var(--hand); font-weight: 700; color: #ff5a5a; font-size: 17px; }
.archive-clear { margin: 10px 0; }
.archive .inbox { margin-top: 10px; opacity: .85; }
.badge-txt { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 2px 6px; border-radius: var(--r); background: #e10104; color: #fff; text-shadow: none; vertical-align: middle; }
.door-dark { background: radial-gradient(circle at 35% 26%, #fff 0 12%, rgba(255,255,255,0) 32%), radial-gradient(circle at 50% 80%, #6b6b6b, #1c1c1c 55%, #000); }
.door-orb { font-weight: 800; }
.doors { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 600px) { .notif, .person { grid-template-columns: 36px 1fr; } .notif > .muted, .person > .wiki-actions { grid-column: 1 / -1; } }
.doors { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.door { padding: 26px 12px; }
.door strong { font-size: 23px; text-align: center; }
.door .muted { text-align: center; }
.door-orb { width: 70px; height: 70px; font-size: 26px; }

/* ---------- one font everywhere (the same one as the "juicy ham" subtitle) ---------- */
html, body, *, *::before, *::after, button, input, textarea, select, code, kbd, pre, samp, option {
  font-family: "Segoe UI", "Frutiger", "Frutiger Linotype", "Myriad Pro", Tahoma, Verdana, sans-serif !important;
}

/* social sub-tabs */
.subtabs { margin-top: 18px; padding: 10px 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.subtabs-title { margin-left: auto; font-size: 22px; font-weight: 300; }

/* ---------- tag cloud "more...", admins, replies, cracked bubbles ---------- */
.tag[hidden] { display: none; }
.more-tags { cursor: var(--hand); font: inherit; font-size: 11px; background: rgba(0,0,0,.5); color: #ffd0d5; }
.admin-badge { display: inline-grid; place-items: center; min-width: 15px; height: 15px; padding: 0 3px; margin-left: 4px; border-radius: var(--r); font-size: 10px; font-weight: 900; line-height: 1;
  color: #fff; background: #e10104; border: 1px solid #ff6b6b; vertical-align: middle; text-decoration: none; flex: none; font-style: normal; letter-spacing: 0; }
.admin-badge.big { min-width: 30px; height: 30px; font-size: 20px; margin-left: 8px; vertical-align: .35em; -webkit-text-fill-color: #fff; text-shadow: none; }
.user-chip:hover .admin-badge { text-decoration: none; }
.replies { margin: -4px 0 10px 28px; padding-left: 12px; border-left: 2px solid rgba(225,1,4,.45); }
.forum-post.is-reply { margin-top: 8px; }
.replies + .forum-post, .forum-post + .replies { margin-top: 8px; }
.reply-to { font-size: 12px; margin: -6px 0 6px; }
.comment-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.comment-tools .post-tools { margin-top: 0; }
.reply-box { flex-basis: auto; }
.reply-box[open] { flex-basis: 100%; }
.reply-box > summary { list-style: none; display: inline-block; cursor: var(--hand); }
.reply-box > summary::-webkit-details-marker { display: none; }
.reply-box[open] > summary { opacity: .6; }
.reply-form { margin-top: 6px; }
.help-more { margin-top: 10px; }
.help-more > summary { cursor: var(--hand); font-size: 13px; opacity: .85; }
.ham-bubble.cracked { border-color: #ff3a3a; box-shadow: inset 0 0 16px rgba(225,1,4,.6), 0 0 10px rgba(255,40,40,.55); }
.ham-bubble.cracked img { animation: ham-shake .18s linear infinite; }
@keyframes ham-shake { 0%,100% { translate: 0 0; } 25% { translate: -2px 1px; } 75% { translate: 2px -1px; } }
@media (max-width: 600px) { .replies { margin-left: 10px; padding-left: 8px; } }

/* ---------- emojis, toasts, mini chat, admin replies ---------- */
img.emoji { height: 1.35em; width: auto; vertical-align: -.3em; margin: 0 1px; display: inline; }
img.emoji[src*=".gif"] { image-rendering: pixelated; }
.wiki-body img.emoji { max-width: none; box-shadow: none; border: 0; background: none; border-radius: 0; }
.emoji-pop { position: fixed; z-index: 80; width: 220px; max-height: 260px; overflow-y: auto; padding: 4px; }
.emoji-opt { display: flex; align-items: center; gap: 8px; padding: 4px 8px; height: 34px; box-sizing: border-box; cursor: var(--hand); border-radius: var(--r); color: #f6e4e6; font-size: 14px; }
.emoji-opt img { width: 22px; height: 22px; object-fit: contain; image-rendering: pixelated; }
.emoji-opt.on, .emoji-opt:hover { background: rgba(225,1,4,.55); color: #fff; }
.jh-toasts { position: fixed; right: 14px; bottom: 108px; z-index: 70; display: grid; gap: 8px; justify-items: end; }
.jh-toast { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; width: 290px; max-width: calc(100vw - 28px); padding: 10px 12px; text-align: left; cursor: var(--hand); color: #f6e4e6; font: inherit;
  border-color: #ff3a3a; animation: toast-in .25s ease-out; transition: opacity .35s, transform .35s; }
.jh-toast.out { opacity: 0; transform: translateX(30px); }
.jh-toast img { width: 40px; height: 40px; border-radius: var(--r); object-fit: cover; background: #1a0305; }
.jt-text { display: grid; min-width: 0; }
.jt-text strong { font-size: 14px; }
.jt-line { font-size: 13px; color: #ffc2c8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt-x { font-size: 18px; opacity: .6; padding: 0 2px; }
.jt-x:hover { opacity: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.minichat { position: fixed; right: 14px; bottom: 108px; z-index: 75; width: 330px; max-width: calc(100vw - 28px); height: 430px; max-height: calc(100vh - 130px); display: flex; flex-direction: column; padding: 0; }
.minichat[hidden] { display: none; }
.mc-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid rgba(225,1,4,.45); }
.mc-who { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; color: #ffd0d5; font-weight: 700; text-decoration: none; }
.mc-who img { width: 30px; height: 30px; border-radius: var(--r); object-fit: cover; background: #1a0305; }
.mc-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-full, .mc-close { color: #ffd0d5; text-decoration: none; background: none; border: 0; font-size: 20px; line-height: 1; cursor: var(--hand); padding: 2px 4px; }
.mc-full { font-size: 16px; }
.mc-msgs { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.mc-msgs .dm { display: flex; }
.mc-msgs .dm.mine { justify-content: flex-start; }
.mc-msgs .dm-bubble { max-width: 82%; }
.mc-msgs .wiki-body { font-size: 14px; }
.mc-msgs .wiki-body p { margin: 0; }
.mc-msgs .embed, .mc-msgs .fig { max-width: 100%; }
.mc-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid rgba(225,1,4,.45); }
.mc-form textarea { flex: 1; resize: none; min-height: 36px; max-height: 90px; }
.mc-err { padding: 0 10px 8px; color: #ffb3b3; font-size: 13px; }
.admin-reply { margin: 8px 0 0 18px; padding: 8px 10px; border-left: 3px solid #e10104; }
.admin-reply .wiki-body { font-size: 15px; }
.admin-reply-box { margin: 8px 0; }
.check { display: flex; gap: 6px; align-items: center; font-size: 14px; }

/* ---------- login modal, sounds tab ---------- */
.jh-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); }
.jh-modal[hidden] { display: none; }
.lm-panel { width: 440px; max-width: 100%; padding: 22px 22px 18px; display: grid; gap: 4px; }
.lm-panel h2 { margin: 0 0 6px; }
.lm-panel .lb-close { position: absolute; top: 6px; right: 10px; }
.lm-code { font-size: 40px; font-weight: 900; letter-spacing: 10px; text-align: center; margin: 10px 0 4px; color: #ffcc33; }
.center-actions { justify-content: center; }
.sound-box { padding: 14px; margin-top: 12px; display: grid; gap: 10px; }
.sound-box h3 { margin: 0; }
.song-list { display: grid; gap: 6px; }
.song { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 8px; border: 1px solid rgba(139,25,34,.6); border-radius: var(--r); }
.song.on { border-color: #e10104; background: rgba(139,25,34,.3); }
.song span { flex: 1; min-width: 120px; font-weight: 600; }
.song audio { height: 32px; max-width: 260px; }
.vol { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.upload-sound label { display: grid; gap: 5px; font-weight: 600; font-size: 14px; }
.devices-box { margin-top: 12px; }

/* ---------- DM attachments ---------- */
.attach-btn { position: relative; overflow: hidden; cursor: var(--hand); display: inline-grid; place-items: center; }
.attach-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: var(--hand); font-size: 0; }
.attach-name { flex-basis: 100%; font-size: 13px; }
.mc-form .attach-btn { padding: 4px 8px; align-self: stretch; }
.mc-attach { padding: 0 10px 6px; font-size: 12px; }
.dm-form { flex-wrap: wrap; }
.dm-bubble .fig, .dm-bubble .fig img, .dm-bubble .fig video { max-width: 100%; }
.dm-bubble .post-embeds .fig { max-width: 320px; }
.gal-pick label { display: grid; gap: 5px; font-weight: 600; font-size: 14px; }

/* ---------- rep ---------- */
.rep-badge { display: inline-block; padding: 1px 6px; border-radius: var(--r); font-size: 11px; font-weight: 800; color: #ffd76a; background: rgba(0,0,0,.45); border: 1px solid rgba(255,204,51,.45); vertical-align: middle; white-space: nowrap; }
.rep-badge.big { font-size: 14px; padding: 2px 8px; }
.rep-line { margin: 4px 0; }
.rep-level { font-weight: 800; color: #ffcc33; }
.rep-big { font-size: 28px; color: #ffd76a; }
.rep-bar { height: 10px; border-radius: var(--r); background: rgba(0,0,0,.5); border: 1px solid rgba(255,204,51,.4); overflow: hidden; }
.rep-bar span { display: block; height: 100%; background: linear-gradient(90deg, #ffcc33, #ff8a00); }
.rep-how { margin-top: 8px; font-size: 13px; }
.rep-how summary { cursor: var(--hand); }

/* ---------- profile themes (Steam-style) ---------- */
.ptheme .glass { border-color: rgba(var(--accent-rgb), .7); background: linear-gradient(180deg, rgba(var(--accent-rgb), .16), rgba(0,0,0,.82) 70%); box-shadow: 0 10px 30px rgba(0,0,0,.55), inset 0 1px 0 rgba(var(--accent-rgb), .45); }
.ptheme .glass::before { background: linear-gradient(180deg, rgba(var(--accent-rgb), .18), rgba(0,0,0,0)); }
.ptheme .glass-inner { border-color: rgba(var(--accent-rgb), .55); }
.ptheme .shine { color: var(--accent); -webkit-text-fill-color: var(--accent); background: none; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.ptheme .pfp-big { border-color: var(--accent); }
.ptheme .tile { border-color: rgba(var(--accent-rgb), .6); }
.ptheme .user-chip { color: #fff; }
.ptheme .profile-status { color: rgba(var(--accent-rgb), 1); filter: brightness(1.4); }
.theme-black .shine, .theme-black .profile-status { color: #cfcfcf; -webkit-text-fill-color: #cfcfcf; }
.psec { margin-top: 14px; }
.psec h2 { margin: 0 0 10px; }
.featured .random-media img, .featured .random-media video { max-height: 420px; }
.head-center .profile-head { flex-direction: column; text-align: center; }
.head-center .profile-head > div { display: grid; justify-items: center; }
.customize summary { cursor: var(--hand); list-style: none; }
.customize summary::-webkit-details-marker { display: none; }
.customize summary h2 { display: inline; }
.look-form { display: grid; gap: 14px; margin-top: 12px; }
.look-group { display: grid; gap: 8px; padding: 12px; border: 1px solid rgba(var(--accent-rgb), .45); border-radius: var(--r); background: rgba(0,0,0,.35); }
.look-group h3 { margin: 0; }
.look-group label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.look-group label.check { display: flex; }
.bg-preview { width: 160px; height: 90px; object-fit: cover; border-radius: var(--r); vertical-align: middle; border: 1px solid #555; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: grid !important; justify-items: center; gap: 3px; cursor: var(--hand); font-weight: 400 !important; }
.swatch input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.swatch span, .swatch input[type=color] { width: 38px; height: 38px; border-radius: var(--r); border: 2px solid rgba(255,255,255,.25); display: block; padding: 0; background: none; cursor: var(--hand); }
.swatch input[type=radio]:checked + span, .swatch input[type=radio]:checked + input[type=color] { border-color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(255,255,255,.5); }
.swatch small { font-size: 11px; opacity: .8; }
.layout-list { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.layout-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 8px; background: rgba(0,0,0,.35); border-radius: var(--r); }
.layout-list li span { display: flex; gap: 4px; }
.dm-bubble { overflow-wrap: anywhere; min-width: 0; }
.mc-msgs .dm-bubble img, .mc-msgs .dm-bubble video { max-width: 100%; height: auto; }
.mc-msgs .dm-bubble .fig { display: block; max-width: 100%; }
html.jh-loading, html.jh-loading * { cursor: progress !important; }
html.jh-loading .wrap { opacity: .85; transition: opacity .15s; }
.merge-box { margin-top: 12px; }

/* ---------- easier profile customizing ---------- */
.profile { position: relative; }
.profile-banner { height: 190px; margin: -24px -26px 16px; background: center / cover no-repeat; border-bottom: 2px solid var(--accent, #e10104); }
.profile-banner.empty { height: 70px; background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 12px, rgba(255,255,255,.08) 12px 24px); }
.customize-btn { position: absolute; top: 14px; right: 14px; z-index: 3; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.customize summary { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.look-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.look-card { display: grid; gap: 8px; align-content: start; padding: 14px; border: 2px solid rgba(var(--accent-rgb), .6); border-radius: var(--r); background: rgba(0,0,0,.45); }
.look-card h3 { margin: 0; font-size: 20px; color: var(--accent); }
.look-card p { margin: 0; }
.swatches.big { gap: 8px; }
.swatches.big .swatch span, .swatches.big .swatch input[type=color] { width: 44px; height: 44px; }
.img-drop { position: relative; display: grid !important; place-items: center; height: 130px; border: 2px dashed rgba(var(--accent-rgb), .8); border-radius: var(--r); cursor: var(--hand);
  background: rgba(255,255,255,.04) center / cover no-repeat; text-align: center; font-weight: 700 !important; }
.img-drop span { background: rgba(0,0,0,.65); padding: 4px 10px; border-radius: var(--r); }
.img-drop:hover { border-style: solid; }
.img-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: var(--hand); }
.look-card .dim { display: flex !important; align-items: center; gap: 8px; font-size: 13px; }
.save-look { width: 100%; }
.look-more { margin-top: 4px; }
.look-more > summary { cursor: var(--hand); font-weight: 700; padding: 6px 0; }
.look-more .look-group { margin-top: 10px; }
.rep-level { font-weight: 800; color: #ffcc33; }
.rep-level.big { font-size: 22px; margin-right: 8px; }
@media (max-width: 600px) { .customize-btn { position: static; margin-bottom: 10px; } .profile-banner { height: 120px; } }

/* ---------- @mentions, spoilers ---------- */
a.mention { color: #fff; background: rgba(225,1,4,.35); padding: 0 3px; border-radius: var(--r); text-decoration: none; font-weight: 700; }
a.mention:hover { background: #e10104; }
.user-opt img { border-radius: var(--r); object-fit: cover; image-rendering: auto; }
.spoiler { position: relative; display: block; overflow: hidden; cursor: var(--hand); }
.spoiler > :not(.spoiler-label) { filter: blur(26px) brightness(.6); transition: filter .25s; }
.spoiler-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 6px; font-weight: 900; font-size: 13px; letter-spacing: .5px;
  color: #fff; background: rgba(0,0,0,.35); text-shadow: 0 1px 4px #000; pointer-events: none; }
.spoiler.revealed { cursor: auto; }
.spoiler.revealed > :not(.spoiler-label) { filter: none; }
.spoiler.revealed .spoiler-label { display: none; }
.fig .spoiler, .random-media .spoiler { display: inline-block; max-width: 100%; }
.small-check { font-size: 12px; display: inline-flex; gap: 4px; align-items: center; }
.mc-spoil { padding: 0 10px 6px; }
.spoiler-toggle { margin: 8px 0 0; }
.gif-buddy[hidden] { display: none !important; }

/* ---------- forum folders ---------- */
.folders { display: grid; gap: 6px; }
.folder-row { display: grid; grid-template-columns: 1fr 90px 90px 220px; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; color: inherit; }
a.folder-row:hover { border-color: #e10104; background: rgba(139,25,34,.35); }
.folder-headrow { padding: 0 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.folder-main { display: grid; gap: 3px; }
.folder-main strong { font-size: 17px; }
.folder-n b { font-size: 18px; }
.folder-last { font-size: 12px; line-height: 1.35; }
.manage-folders { display: grid; gap: 10px; margin-top: 10px; }
.folder-edit { padding: 10px; display: grid; gap: 8px; }
.folder-edit-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.folder-edit-form .field { flex: 1 1 180px; }
#manage summary { cursor: var(--hand); list-style: none; } #manage summary h3 { display: inline; }
.move-thread { margin-top: 8px; }
.crumbs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
@media (max-width: 700px) { .folder-row { grid-template-columns: 1fr 60px; } .folder-row > :nth-child(3), .folder-row > :nth-child(4) { display: none; } .folder-headrow { display: none; } }

/* ---------- stacked chat tabs beside the mini chat ---------- */
.mc-dock { position: fixed; right: 14px; bottom: 108px; z-index: 74; display: flex; flex-direction: column-reverse; gap: 8px; align-items: flex-end; }
.mc-dock.beside { right: calc(14px + min(500px, calc(100vw - 28px)) + 10px); }
.mc-tab { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; width: 220px; padding: 7px 9px; text-align: left; cursor: var(--hand); color: #f6e4e6; font: inherit; animation: toast-in .25s ease-out; }
.mc-tab img { width: 34px; height: 34px; border-radius: var(--r); object-fit: cover; background: #1a0305; }
.mc-tab.unread { border-color: #ff3a3a; box-shadow: 0 0 0 1px #ff3a3a, 0 6px 18px rgba(225,1,4,.45); }
.mc-tab:hover { border-color: #fff; }
@media (max-width: 720px) { .mc-dock.beside { right: 14px; bottom: calc(108px + min(520px, calc(100vh - 128px)) + 8px); flex-direction: row-reverse; flex-wrap: wrap; } .mc-tab { width: 160px; } }
/* login modal tabs, password banner */
.lm-tabs { display: flex; gap: 4px; margin: 4px 0 10px; border-bottom: 1px solid rgba(225,1,4,.5); }
.lm-tabs button { flex: 1; background: none; border: 0; border-bottom: 3px solid transparent; color: #f6e4e6; font: inherit; font-weight: 700; padding: 8px 4px; cursor: var(--hand); opacity: .7; }
.lm-tabs button.on { border-bottom-color: #e10104; opacity: 1; }
.link-btn { background: none; border: 0; color: #ffc2c8; text-decoration: underline; cursor: var(--hand); font: inherit; font-size: 13px; }
.small-note { font-size: 13px; }
.pw-banner { margin-top: 14px; padding: 12px 16px; display: grid; gap: 8px; border-color: #ffcc33; }
.pw-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pw-form .field { flex: 1 1 150px; }
.mc-spoil[hidden], .small-check[hidden] { display: none !important; }
/* the first-visit login card doesn't block the page */
.jh-modal.soft { background: none; pointer-events: none; place-items: end start; }
.jh-modal.soft .lm-panel { pointer-events: auto; width: 380px; box-shadow: 0 12px 40px rgba(0,0,0,.7); }
@media (max-width: 600px) { .jh-modal.soft { place-items: end center; } }
.lm-panel a { color: #ffc2c8; }

/* ---------- frames, clans, groups, edits ---------- */
.chip-pfp { position: relative; display: inline-block; flex: none; overflow: visible !important; line-height: 0; }
/* the frame's hole sits exactly around the square picture; the ham ring + bone go outside it */
/* the frame hugs the picture up close: it sits BEHIND the picture, which covers the inside of the ring */
.user-chip .chip-pfp .pfp-frame, .pfp-wrap .pfp-frame { position: absolute; left: -24.3%; top: -34.2%; width: 149.8%; height: 153%; max-width: none; object-fit: fill; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; pointer-events: none; z-index: 0; }
.chip-pfp > img:first-child, .pfp-wrap > img:first-child { position: relative; z-index: 1; }
.chip-pfp.framed { margin: 12px 9px 6px 8px; }
.pfp-wrap.framed { margin: 44px 33px 24px 31px; } .pfp-wrap.framed .pfp-big { border-color: transparent; }
.pfp-wrap { position: relative; display: inline-block; flex: none; line-height: 0; }
.frame-picks { display: flex; gap: 12px; flex-wrap: wrap; }
.frame-pick { display: grid !important; justify-items: center; gap: 4px; cursor: var(--hand); font-weight: 400 !important; }
.frame-pick input { position: absolute; opacity: 0; pointer-events: none; }
.frame-pick .pfp-wrap { width: 64px; height: 64px; border: 2px solid transparent; border-radius: var(--r); }
.frame-pick .pfp-wrap > img:first-child { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r); }
.frame-pick input:checked + .pfp-wrap { border-color: #fff; box-shadow: 0 0 10px rgba(255,255,255,.5); }
.frame-pick small { font-size: 11px; opacity: .8; }
.clan-tag { color: #ffcc33; font-weight: 800; font-size: .85em; margin-right: 3px; white-space: nowrap; }
.clan-tag.big { font-size: 1em; }
a.mention + .clan-tag { margin-left: 2px; }
.clan-card { padding: 14px; display: grid; gap: 8px; margin-bottom: 14px; }
.clan-card h3 { margin: 0; font-size: 22px; }
.clan-members, .group-members { display: flex; flex-wrap: wrap; gap: 8px; }
.group-member { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; background: rgba(0,0,0,.35); border-radius: var(--r); }
.group-member form { display: inline; }
.x-btn { background: none; border: 0; color: #ff8a8a; cursor: var(--hand); font-size: 15px; line-height: 1; padding: 0 3px; }
.x-btn:hover { color: #fff; }
.clan-pfp, .group-pfp { display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #ffcc33; background: rgba(0,0,0,.5); }
.group-pfp { font-size: 22px; }
.group-title { font-size: 18px; }
.group-tools { margin-top: 10px; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.dm-sys { text-align: center; font-size: 12px; font-style: italic; margin: 6px 0; }
.dm-who { font-size: 12px; font-weight: 800; color: #ffc2c8; margin-bottom: 2px; }
.dm-bubble { position: relative; }
.dm-del { position: absolute; top: 2px; right: 2px; opacity: 0; transition: opacity .15s; }
.dm-bubble:hover .dm-del { opacity: 1; }
.edit-box[open] { flex-basis: 100%; }
.clan-edit { margin-top: 6px; }
.clan-edit > summary { list-style: none; display: inline-block; cursor: var(--hand); }
.comments-box { margin-top: 14px; }

/* picture shapes */
img.shape-circle { border-radius: 50% !important; clip-path: circle(50%); }
img.shape-diamond { border-radius: 0 !important; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
img.shape-hexagram { border-radius: 0 !important; clip-path: polygon(50% 0%, 64.43% 25%, 93.3% 25%, 78.87% 50%, 93.3% 75%, 64.43% 75%, 50% 100%, 35.57% 75%, 6.7% 75%, 21.13% 50%, 6.7% 25%, 35.57% 25%); }
.pfp-big.shape-circle, .pfp-big.shape-diamond, .pfp-big.shape-hexagram { border: 0; box-shadow: none; }
.frame-picks { gap: 16px; }
.frame-pick .pfp-wrap { margin: 0; }
.frame-pick .pfp-wrap .pfp-frame { left: -24.3%; top: -34.2%; width: 149.8%; height: 153%; }
.frame-picks:last-of-type .frame-pick { padding-top: 26px; }
/* paste-a-quote button */
.quote-chip { position: fixed; z-index: 85; box-shadow: 0 6px 16px rgba(0,0,0,.6); }

/* ---------- always-there Chats button + list ---------- */
.chat-launch { position: fixed; right: 160px; bottom: 16px; z-index: 72; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font: inherit; font-weight: 800; color: #fff; cursor: var(--hand); border-color: #e10104; box-shadow: 0 6px 18px rgba(0,0,0,.6); }
.chat-launch:hover { border-color: #fff; }
.chat-launch .cl-ico { font-size: 20px; line-height: 1; }
.chat-launch.has { animation: cl-pulse 1.6s ease-in-out infinite; }
@keyframes cl-pulse { 50% { box-shadow: 0 0 0 4px rgba(225,1,4,.45), 0 6px 18px rgba(0,0,0,.6); } }
.cl-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r); background: #e10104; color: #fff; font-size: 12px; font-weight: 900; }
.cl-n[hidden] { display: none; }
.chat-list { position: fixed; right: 14px; bottom: 70px; z-index: 76; width: 330px; max-width: calc(100vw - 28px); height: 430px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; padding: 0; }
.chat-list[hidden] { display: none; }
.cl-title { flex: 1; font-size: 16px; }
.cl-new { display: flex; gap: 6px; padding: 8px; border-bottom: 1px solid rgba(225,1,4,.45); }
.cl-new .field { flex: 1; }
.cl-items { flex: 1; overflow-y: auto; padding: 6px; display: grid; gap: 4px; align-content: start; }
.cl-item { display: grid; grid-template-columns: 36px 1fr auto; gap: 8px; align-items: center; padding: 7px 8px; border: 1px solid transparent; border-radius: var(--r); background: rgba(0,0,0,.35); color: #f6e4e6; font: inherit; text-align: left; cursor: var(--hand); }
.cl-item:hover { border-color: #e10104; }
.cl-item.unread { border-color: rgba(255,58,58,.8); }
.cl-item img { width: 36px; height: 36px; border-radius: var(--r); object-fit: cover; background: #1a0305; }
.mc-back { background: none; border: 0; color: #ffd0d5; font-size: 24px; line-height: 1; cursor: var(--hand); padding: 0 4px 2px 0; }
.minichat { bottom: 70px; }
.mc-dock { bottom: 70px; }
.jh-toasts { bottom: 70px; right: 160px; }
.comments-btn { position: absolute; top: 14px; right: 200px; z-index: 3; }
.profile-clan { margin: 4px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-clan a { color: #ffd0d5; font-weight: 700; }
.clan-row { display: flex; gap: 8px; align-items: center; }
.clan-row .thread { flex: 1; }
@media (max-width: 720px) { .chat-launch { right: 104px; bottom: 10px; padding: 8px 12px; } .chat-launch .cl-txt { display: none; } .comments-btn { position: static; margin: 0 0 8px 8px; } .jh-toasts { right: 14px; } }
.quote-chip[hidden] { display: none !important; }

/* group pictures, favorites, clan leader tools */
.group-pic { width: 34px; height: 34px; border-radius: var(--r); object-fit: cover; vertical-align: middle; margin-right: 8px; background: #1a0305; }
.conv-head { display: flex; align-items: center; gap: 8px; }
.group-pic-form { margin-top: 8px; flex-wrap: wrap; }
.fav-btn { background: rgba(0,0,0,.45); border: 1px solid rgba(255,204,51,.5); color: #ffd76a; font: inherit; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: var(--r); cursor: var(--hand); }
.fav-btn:hover { border-color: #ffcc33; }
.fav-btn.on { background: #ffcc33; color: #1a0305; border-color: #ffcc33; }
.tile-fav { display: block; padding: 0 10px 6px; }
.wall-toggle { margin: 14px 0 -6px; text-align: right; }
.invites, .leader-tools { padding: 12px; display: grid; gap: 8px; margin: 10px 0; }
.invites { border-color: #ffcc33; }
.invite-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.invite-row form { display: flex; gap: 6px; }
.tag-hint { margin: 8px 0 4px; font-size: 13px; }
.person[hidden] { display: none !important; } .people-more { padding: 10px; font-size: 13px; }

/* ---------- profile header layout, socials, extra images, favorites ---------- */
.profile-head.pic-right { flex-direction: row-reverse; text-align: right; }
.profile-head.pic-right .head-info { display: grid; justify-items: end; }
.profile-head.pic-top { flex-direction: column; align-items: center; text-align: center; }
.profile-head.pic-top .head-info { display: grid; justify-items: center; }
.head-info > * { margin: 4px 0; }
.socials { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.social-ico { display: inline-block; width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: var(--hand); border-radius: var(--r); overflow: hidden; transition: transform .12s; }
.social-ico img { width: 100%; height: 100%; display: block; object-fit: cover; }
.social-ico:hover { filter: drop-shadow(0 0 6px rgba(255,255,255,.55)) brightness(1.12); }
.social-ico.copied { outline: 2px solid #1fbf4a; }
.social-field { display: flex !important; align-items: center; gap: 8px; }
.social-field img { width: 26px; height: 26px; border-radius: var(--r); }
.social-field .field { flex: 1; }
.pick-row { display: flex; gap: 14px; flex-wrap: wrap; }
.ptheme { position: relative; }
.sticker { position: absolute; z-index: 5; max-width: none; height: auto; pointer-events: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.stk-edit .sticker { pointer-events: auto; cursor: move; outline: 2px dashed #ffcc33; touch-action: none; }
.stk-edit .sticker { background: linear-gradient(135deg, transparent calc(100% - 16px), #ffcc33 calc(100% - 16px)); }
.sticker-bar { position: relative; z-index: 6; display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-bottom: 6px; }
.img-drop.contain { background-size: contain !important; }
/* favorites stand out more */
.fav-btn { font-size: 13px; padding: 5px 12px; border-width: 2px; }
.random-bar .fav-btn { font-size: 15px; padding: 8px 16px; }
.tile-fav .fav-btn { width: 100%; }
.favs-title { color: #ffcc33 !important; -webkit-text-fill-color: #ffcc33 !important; }
.btn[hidden], [hidden].small-note { display: none !important; }
.look-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.layout-list li.pinned { opacity: .75; }

/* profile: one movable image you can hide, profile song bar, uploads paging */
.tile[hidden] { display: none !important; }
.stk-hidden .sticker { display: none; }
.sticker-bar { flex-wrap: wrap; }
.pm-bar { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-right: auto; padding: 4px 10px; border-radius: var(--r); background: rgba(0,0,0,.45); font-size: 13px; }
.pm-bar b { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-preview { width: 100%; height: 34px; margin: 4px 0 8px; }
.pm-now { margin: 0 0 4px; }
.img-drop.audio-drop { min-height: 60px; }
/* country flag hams next to names */
.flag-ham { height: 1.25em; width: auto; vertical-align: -.25em; margin-right: 4px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.flag-ham.big { height: 1.1em; vertical-align: -.12em; margin-right: 8px; }
.user-chip .flag-ham { height: 18px; margin: 0 2px 0 0; }

/* small flag hams next to names: no box behind them, not squashed */
.user-chip img.flag-ham, img.flag-ham { width: auto !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; object-fit: contain; }
.flag-ham { height: 1em; vertical-align: -.15em; margin-right: 3px; }
.user-chip .flag-ham { height: 14px; margin: 0 1px 0 0; }
.user-chip.big .flag-ham { height: 18px; }
.flag-ham.big { height: 1em; }
/* clan picture instead of [TAG]; clan tags go to the clan page */
.clan-tag[data-clan-href] { cursor: var(--hand); }
.clan-tag[data-clan-href]:hover { text-decoration: underline; }
.clan-tag.clan-pic { display: inline-block; line-height: 0; margin-right: 4px; vertical-align: -.2em; }
.clan-tag.clan-pic img, .user-chip .clan-tag.clan-pic img { width: auto !important; height: 1.15em !important; max-width: 3em; border-radius: var(--r) !important; object-fit: contain; background: none !important; }
.user-chip .clan-tag.clan-pic img { height: 16px !important; }
.clan-pic-big { height: 40px; width: auto; max-width: 120px; border-radius: var(--r); vertical-align: middle; margin-right: 8px; }
.clan-pic-sm { height: 22px; width: auto; max-width: 60px; border-radius: var(--r); vertical-align: middle; margin-right: 6px; }
.clan-pic-form { flex-wrap: wrap; gap: 6px; margin: 8px 0; }
/* status: a speech bubble coming out of the profile picture */
.pfp-speak { display: flex; align-items: flex-start; gap: 16px; flex: none; max-width: 100%; }
.status-bubble { position: relative; margin: 6px 0 0; max-width: 260px; padding: 10px 14px; border-radius: var(--r); background: #fff; color: #1a0305; font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; box-shadow: 0 4px 14px rgba(0,0,0,.45); border: 2px solid var(--accent, #e10104); }
.status-bubble::before { content: ''; position: absolute; left: -13px; top: 16px; border: 7px solid transparent; border-right: 12px solid var(--accent, #e10104); border-left: 0; }
.status-bubble::after { content: ''; position: absolute; left: -9px; top: 18px; border: 5px solid transparent; border-right: 10px solid #fff; border-left: 0; }
.pic-right .pfp-speak { flex-direction: row-reverse; }
.pic-right .status-bubble::before { left: auto; right: -13px; border-right: 0; border-left: 12px solid var(--accent, #e10104); }
.pic-right .status-bubble::after { left: auto; right: -9px; border-right: 0; border-left: 10px solid #fff; }
.pic-top .pfp-speak, .head-center .pfp-speak { flex-direction: column; align-items: center; gap: 12px; }
.pic-top .status-bubble::before, .head-center .status-bubble::before { left: 50%; top: -13px; margin-left: -7px; border: 7px solid transparent; border-bottom: 12px solid var(--accent, #e10104); border-top: 0; }
.pic-top .status-bubble::after, .head-center .status-bubble::after { left: 50%; top: -9px; margin-left: -5px; border: 5px solid transparent; border-bottom: 10px solid #fff; border-top: 0; }
@media (max-width: 560px) { .pfp-speak { flex-direction: column; align-items: center; gap: 12px; } .status-bubble::before { left: 50%; top: -13px; margin-left: -7px; border: 7px solid transparent; border-bottom: 12px solid var(--accent, #e10104); border-top: 0; } .status-bubble::after { left: 50%; top: -9px; margin-left: -5px; border: 5px solid transparent; border-bottom: 10px solid #fff; border-top: 0; } }
/* more picture shapes */
img.shape-triangle { border-radius: 0 !important; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
img.shape-parallelogram { border-radius: 0 !important; clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%); }
.pfp-big.shape-triangle, .pfp-big.shape-parallelogram { border: 0; box-shadow: none; }
.admin-merge { flex-wrap: wrap; }
.thread-main > .admin-badge, .thread-main > .rep-badge { justify-self: start; }
.profile-head .muted a { color: inherit; text-decoration: underline; }
/* juicyham.com site card in posts and chats */
.site-card { display: inline-flex; align-items: center; gap: 12px; max-width: 420px; padding: 10px 14px; margin: 6px 0; border-left: 4px solid #e10104; border-radius: var(--r); text-decoration: none; color: inherit; }
.site-card img { width: 48px; height: 48px; border-radius: var(--r); flex: none; }
.site-card span { display: grid; gap: 2px; min-width: 0; }
.site-card b { color: #ff5a5f; }
.site-card small { color: #ffd0d5; font-size: 13px; }
.site-card:hover b { text-decoration: underline; }
/* admin mod panel (expanded view + media page) */
.mod-panel { display: grid; gap: 6px; margin-top: 10px; padding: 10px 12px; text-align: left; border: 1px dashed rgba(255,204,51,.6); }
.mod-panel label { display: grid; gap: 2px; font-size: 13px; }
.mod-panel .wiki-actions { justify-content: space-between; align-items: center; }
.mod-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.mod-head strong { color: #ffcc33; }
.mod-msg { margin-left: auto; font-size: 12px; }
.mod-msg.bad { color: #ff8080; }
.media-page .mod-panel { max-width: 560px; margin: 12px auto 0; }
/* online / idle / offline dots */
.pres { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #1a0305; vertical-align: middle; flex: none; }
.pres-online { background: #3ddc5a; box-shadow: 0 0 6px rgba(61,220,90,.7); }
.pres-idle { background: #ffcc33; }
.pres-offline { background: #6b5a5c; }
.chip-pfp { position: relative; }
.chip-pfp .pres { position: absolute; right: -3px; bottom: -3px; width: 8px; height: 8px; border-width: 2px; z-index: 2; }
.user-chip.big .chip-pfp .pres { width: 11px; height: 11px; }
.pres-line { white-space: nowrap; }
.pres-line .pres { vertical-align: -1px; }
/* the "S" for site owners */
.admin-badge.staff-s { background: linear-gradient(#ffe27a, #e0a800) !important; color: #3a2200 !important; -webkit-text-fill-color: #3a2200 !important; border-color: #fff3b0 !important; }
/* profile: blog button a bit bigger */
.blog-btn { font-size: 15px; padding: 8px 18px; margin-top: 2px; }
/* flag picker + custom flag hams */
.flag-pick-box { display: grid; gap: 6px; margin: 6px 0; }
.flag-pick-row { display: flex; gap: 10px; align-items: center; }
.flag-preview { min-width: 30px; font-size: 30px; line-height: 1; }
.flag-custom-in { display: grid; gap: 6px; }
.flag-custom { display: inline-block; position: relative; aspect-ratio: 500 / 673; vertical-align: -.15em; }
.flag-custom::before { content: ''; position: absolute; left: 0; right: 0; top: 22.29%; bottom: 0; background: var(--flag) center / cover no-repeat;
  -webkit-mask: url('assets/flags/_bodymask.png') 0 0 / 100% 100% no-repeat; mask: url('assets/flags/_bodymask.png') 0 0 / 100% 100% no-repeat; }
.flag-custom img, .user-chip .flag-custom img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; background: none !important; border: 0 !important; border-radius: 0 !important; object-fit: contain; }
/* blogs */
.blog-banner { height: 180px; margin-bottom: 14px; border-radius: var(--r); background: center / cover no-repeat; }
.blog-head .wiki-actions { align-items: center; }
.follow-form { gap: 8px; align-items: center; }
.blog-foot { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.blog-look { margin-top: 10px; }
.blog-look form { margin-top: 8px; max-width: 480px; }
.blogs-list { display: grid; gap: 8px; }
.blog-row { display: flex; gap: 12px; align-items: center; }
.blog-row-title { font-weight: 800; font-size: 17px; text-decoration: none; color: #ffd0d5; }
.blog-row-title:hover { text-decoration: underline; }
.blog-row-latest { font-style: italic; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .blog-banner { height: 110px; } }
.flag-ham, .user-chip .flag-ham, .flag-ham.big { margin: 0 0 0 4px; }
.flag-ham.big { margin-left: 8px; }
.person-name .pres { margin-right: 2px; vertical-align: 1px; }
/* status dots: Discord-style, bottom-right corner of the picture, no outline */
.pres { border: 0 !important; box-shadow: none !important; }
.chip-pfp .pres { right: -2px; bottom: -2px; width: 7px; height: 7px; }
.user-chip.big .chip-pfp .pres { width: 10px; height: 10px; }
.pfp-wrap .pres { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; z-index: 3; }
.pfp-wrap.framed .pres { right: 2px; bottom: 2px; }
.pfp-dot { position: relative; display: inline-block; line-height: 0; flex: none; }
.pfp-dot .pres { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; }
.pres-online { background: #3ba55d; }
.pres-idle { background: #faa81a; }
.pres-offline { background: #747f8d; }
/* DW / WW writer badges: white letters */
.admin-badge.writer-badge { background: #2a2a2a !important; color: #fff !important; -webkit-text-fill-color: #fff !important; border-color: #888 !important; }
.user-num { color: inherit; text-decoration: none; font-weight: 700; }
.user-num:hover { text-decoration: underline; }
/* expanded image: scroll inside it instead of getting stuck */
.lightbox { overflow: hidden; }
.lb-panel { max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#lb-media { max-height: none; }
/* status dots: black outline (like Discord's cut-out ring) */
.pres { border: 2px solid #000 !important; box-sizing: border-box; }
.pfp-wrap .pres { border-width: 3px !important; }
.chip-pfp .pres { width: 9px; height: 9px; border-width: 1.5px !important; }
.user-chip.big .chip-pfp .pres { width: 12px; height: 12px; border-width: 2px !important; }
.pfp-dot .pres { width: 13px; height: 13px; }
/* status dots a bit bigger, and on top of the frame for framed pictures */
.pfp-wrap .pres { width: 30px; height: 30px; border-width: 4px !important; right: -6px; bottom: -6px; z-index: 6; }
.pfp-wrap.framed .pres { right: -26px; bottom: -18px; }
.chip-pfp .pres { width: 11px; height: 11px; border-width: 2px !important; z-index: 6; }
.user-chip.big .chip-pfp .pres { width: 15px; height: 15px; border-width: 2.5px !important; }
.user-chip.big .chip-pfp.framed .pres { right: -8px; bottom: -6px; }
.pfp-dot .pres { width: 16px; height: 16px; border-width: 2.5px !important; right: -4px; bottom: -4px; }
/* framed pictures: status dot tucked up/left, overlapping the picture's corner a bit */
.pfp-wrap.framed .pres { right: -12px; bottom: -8px; }
/* last online */
.last-online { white-space: nowrap; }
.pres-txt-online { color: #5fd47e; }
.pres-txt-idle { color: #ffc14d; }
.last-online-sm { font-size: 12px; justify-self: start; }
/* people list: sort + jump to ID */
.people-sort { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.people-sort .jump-id { margin-left: auto; gap: 6px; }
.people-sort .jump-id .field { width: 110px; }
.person-name + .user-num { font-size: 12px; justify-self: start; }
/* pasted / attached picture preview */
.attach-preview { display: inline-block; max-width: 90px; max-height: 60px; border-radius: var(--r); margin-right: 8px; vertical-align: middle; object-fit: cover; }
/* fancy text tags */
.fx-hl { color: #fff !important; -webkit-text-fill-color: #fff; font-weight: 900; font-style: italic; padding: 0 .3em; border-radius: var(--r);
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset; }
.fx-bg { padding: 0 .25em; border-radius: var(--r); }
.fx-glow { text-shadow: 0 0 4px var(--fx), 0 0 10px var(--fx), 0 0 18px var(--fx); }
.fx-outline { -webkit-text-stroke: 1px var(--fx); paint-order: stroke fill; }
.fx-shadow { text-shadow: 2px 2px 0 var(--fx); }
.fx-grad, .fx-rainbow { -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent; }
.fx-rainbow { background-image: linear-gradient(90deg, #ff2a2a, #ff9f1a, #ffe81a, #3dff6b, #2ab8ff, #a34dff, #ff4dc4); }
/* admin labels on profiles */
.admin-labels { display: grid; gap: 6px; margin: 10px 0 4px; padding: 10px 14px; border-radius: var(--r); background: rgba(255,255,255,.92); color: #111; font-size: 15px; }
.admin-label { display: flex; align-items: center; gap: 10px; min-height: 30px; line-height: 1.3; }
.admin-label > .emoji:first-child, .admin-label > img.emoji:first-child { width: 30px !important; height: 30px !important; flex: none; }
.admin-label a { color: #0645ad; }
/* wiki history */
.wiki-lastedit .user-chip { vertical-align: middle; }
.wiki-hist { display: grid; gap: 6px; }
.hist-row { display: grid; grid-template-columns: 170px minmax(120px, 200px) 1fr 60px auto; gap: 10px; align-items: center; }
.hist-when { font-variant-numeric: tabular-nums; }
.hist-delta { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.diff-add { color: #5fd47e; } .diff-del { color: #ff7a7a; }
.wiki-diff { font-family: ui-monospace, Consolas, monospace; font-size: 13px; border-radius: var(--r); overflow: auto; background: rgba(0,0,0,.35); padding: 6px 0; }
.diff-line { white-space: pre-wrap; word-break: break-word; padding: 1px 10px 1px 0; display: flex; }
.diff-line > span { flex: none; width: 22px; text-align: center; opacity: .8; }
.diff-line.diff-add { background: rgba(61,220,90,.15); color: #c9ffd6; }
.diff-line.diff-del { background: rgba(255,80,80,.15); color: #ffd0d0; text-decoration: line-through; text-decoration-color: rgba(255,120,120,.5); }
.diff-line.diff-same { opacity: .6; }
@media (max-width: 700px) { .hist-row { grid-template-columns: 1fr 1fr; } .hist-row .wiki-actions { grid-column: 1 / -1; } }
.hist-row { grid-template-columns: 200px minmax(120px, 200px) 1fr 60px auto; } .hist-when { white-space: nowrap; }
/* voice messages */
.voice-btn { display: inline-flex; align-items: center; gap: 4px; }
.voice-btn.recording { background: linear-gradient(#ff4a4a, #c40000) !important; color: #fff !important; animation: voicePulse 1s ease-in-out infinite; }
@keyframes voicePulse { 50% { box-shadow: 0 0 0 4px rgba(255,60,60,.35); } }
.voice-preview { display: block; width: 100%; max-width: 280px; height: 32px; margin-top: 4px; }
.mc-form .voice-btn { padding: 4px 8px; align-self: stretch; }
/* voice message player */
.voice-msg { display: inline-flex; align-items: center; gap: 10px; min-width: 210px; max-width: 100%; padding: 6px 12px 6px 6px; border-radius: var(--r); background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.15); cursor: var(--hand); vertical-align: middle; user-select: none; }
.vm-play { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: linear-gradient(#ff5a5a, #c40000); color: #fff; cursor: var(--hand); box-shadow: 0 2px 6px rgba(0,0,0,.4); padding: 0; }
.vm-play svg { width: 18px; height: 18px; }
.vm-i-pause, .voice-msg.playing .vm-i-play { display: none; }
.voice-msg.playing .vm-i-pause { display: block; }
.vm-bar { flex: 1; min-width: 90px; height: 6px; border-radius: var(--r); background: rgba(255,255,255,.22); overflow: hidden; }
.vm-fill { display: block; width: 0; height: 100%; background: #fff; border-radius: var(--r); transition: width .15s linear; }
.vm-time { flex: none; font-size: 12px; font-variant-numeric: tabular-nums; opacity: .9; min-width: 30px; text-align: right; }
.dm.mine .voice-msg { background: rgba(0,0,0,.25); }
/* Chats panel: new group chat */
.cl-main { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cl-main[hidden], .cl-group[hidden] { display: none !important; }
.cl-newgroup { margin: 0 8px 6px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; border: 1px dashed rgba(255,90,90,.7); border-radius: var(--r); background: rgba(225,1,4,.12); color: #ffd0d5; font: inherit; font-weight: 700; cursor: var(--hand); text-align: left; }
.cl-newgroup:hover { background: rgba(225,1,4,.28); border-style: solid; }
.cl-ng-plus { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e10104; color: #fff; font-size: 18px; line-height: 1; }
.cl-group { display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 0; padding: 8px; }
.cl-g-top { display: flex; align-items: center; gap: 8px; }
.cl-g-label { font-size: 12px; opacity: .8; }
.cl-g-chips { display: flex; flex-wrap: wrap; gap: 4px; min-height: 30px; align-items: center; }
.cl-g-none { font-size: 12px; }
.cl-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 3px; border-radius: var(--r); border: 1px solid #e10104; background: rgba(225,1,4,.25); color: #fff; font: inherit; font-size: 13px; cursor: var(--hand); }
.cl-chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.cl-chip-x { opacity: .7; font-weight: 700; } .cl-chip:hover .cl-chip-x { opacity: 1; }
.cl-g-people { flex: 1; min-height: 60px; overflow-y: auto; display: grid; gap: 3px; align-content: start; }
.cl-person { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 5px 8px; border: 1px solid transparent; border-radius: var(--r); background: rgba(0,0,0,.35); color: #f6e4e6; font: inherit; text-align: left; cursor: var(--hand); }
.cl-person:hover { border-color: #e10104; }
.cl-person img { width: 28px; height: 28px; border-radius: var(--r); object-fit: cover; }
.cl-person.on { border-color: #3ba55d; background: rgba(59,165,93,.18); }
.cl-p-tick { font-size: 11px; opacity: .75; }
.cl-person.on .cl-p-tick { color: #7be39a; opacity: 1; font-weight: 700; }
.cl-g-make { width: 100%; }
.cl-g-make:disabled { opacity: .55; cursor: default; }
.cl-group > input.field { flex: none; height: 34px; min-height: 0; padding-top: 6px; padding-bottom: 6px; }
.cl-g-people { min-height: 120px; }

/* ---- Chats button + panels live on the bottom left now, a bit bigger ---- */
.chat-launch { right: auto; left: 16px; }
.chat-list, .minichat { right: auto; left: 14px; width: 380px; height: 520px; }
.chat-list { max-height: calc(100vh - 90px); }
.minichat { max-height: calc(100vh - 90px); }
.mc-dock { right: auto; left: 14px; align-items: flex-start; }
.mc-dock.beside { right: auto; left: calc(14px + min(380px, calc(100vw - 28px)) + 10px); }
.jh-toasts { right: 14px; bottom: 108px; }
.cl-more { margin: 4px auto 2px; padding: 5px 16px; border: 1px solid #e10104; border-radius: var(--r); background: rgba(0,0,0,.45); color: #fff; font: inherit; font-weight: 700; cursor: var(--hand); }
.cl-more:hover { border-color: #fff; }
.cl-more:disabled { opacity: .6; cursor: default; }
@media (max-width: 720px) {
  .chat-launch { right: auto; left: 12px; }
  .chat-list, .minichat { left: 14px; height: 470px; max-height: calc(100vh - 80px); }
  .mc-dock.beside { left: 14px; bottom: calc(70px + min(470px, calc(100vh - 80px)) + 8px); flex-direction: row; flex-wrap: wrap; }
}

/* ---- drag to choose which part of a picture shows ---- */
.focus-pick { display: grid; gap: 6px; margin: 8px 0; }
.focus-pick[hidden] { display: none; }
.fp-hint { font-size: 13px; }
.fp-frame { position: relative; display: block; width: 100%; overflow: hidden; border-radius: var(--r); border: 2px solid var(--accent, #e10104); background: #000; cursor: grab; touch-action: none; user-select: none; }
.fp-frame.grabbing { cursor: grabbing; }
.fp-frame img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.fp-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fp-zoom { display: inline-flex; align-items: center; gap: 8px; }
.fp-zoom input { width: 160px; accent-color: var(--accent, #e10104); }
.fp-zoom output { min-width: 3.5em; font-variant-numeric: tabular-nums; }
.profile-banner, .blog-banner { position: relative; overflow: hidden; }
.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.group-pic-form .focus-pick { flex-basis: 100%; }
.blog-row.pinned { border: 1px solid #f5c400; box-shadow: inset 0 0 0 1px rgba(245,196,0,.35); }
.pin-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: var(--r); background: #f5c400; color: #1a0305; font-size: 11px; font-weight: 800; vertical-align: 2px; }
.focus-pick .fp-zoom { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px; margin: 0; }
.focus-pick .fp-zoom input[type=range] { width: 160px !important; min-width: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.autosave-note { margin-left: 8px; font-size: 13px; align-self: center; }
.autosave-note.autosave-ok { color: #7be39a; }
.autosave-note.autosave-err { color: #ff8a8a; }
.autosave-note.autosave-pending { color: #f5c400; }

/* wiki preview picker: free move + resize */
.fp-free .fp-frame { background: repeating-conic-gradient(rgba(255,255,255,.08) 0 25%, transparent 0 50%) 0 0 / 16px 16px, #000; }
.fp-handle { position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; z-index: 2; cursor: nwse-resize; touch-action: none; border-radius: var(--r); background: var(--accent, #e10104); box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 2px 6px rgba(0,0,0,.6); }
.fp-handle::after { content: ''; position: absolute; inset: 6px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
.fp-free.fp-new .fp-frame { animation: fp-pulse 1.2s ease-out 2; }
@keyframes fp-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,80,80,.9); } 100% { box-shadow: 0 0 0 14px rgba(255,80,80,0); } }
.fp-overlay { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); }
.fp-overlay[hidden] { display: none; }
.fp-dialog { width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; margin: 0; }
.fp-dialog h3 { margin: 0 0 6px; }
.fp-dialog .focus-pick { margin: 0; }
.fp-dialog-actions { display: flex; justify-content: flex-end; margin-top: 10px; }

/* movable images: wrapper with resize + rotate dots */
.sticker { box-sizing: border-box; transform-origin: 50% 50%; }
.sticker img { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; }
.sticker .stk-h { display: none; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #ffcc33; box-shadow: 0 0 0 2px #000, 0 2px 6px rgba(0,0,0,.6); touch-action: none; }
.stk-edit .sticker { background: none; }
.stk-edit .sticker .stk-h { display: block; }
.sticker .stk-size { right: -8px; bottom: -8px; cursor: nwse-resize; }
.sticker .stk-rot { left: 50%; top: -30px; margin-left: -8px; cursor: grab; }
.sticker .stk-rot::after { content: ''; position: absolute; left: 7px; top: 16px; width: 2px; height: 14px; background: #ffcc33; }
.stk-edit .sticker.grabbing { cursor: grabbing; }
.hamon-note { font-weight: 600; color: #ffcc33; }
.profile-banner.tiled { image-rendering: auto; }

/* Settings cog (far right of the top bar) */
.cog-btn { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r); background: rgba(0,0,0,.55); border: 1px solid rgba(225,1,4,.5); }
.cog-btn svg { width: 20px; height: 20px; fill: #f6d3d8; transition: transform .4s; }
.cog-btn:hover svg { filter: drop-shadow(0 0 6px rgba(255,255,255,.55)) brightness(1.12); }
.cog-btn:hover, .cog-btn.active { border-color: #ff2a2a; background: rgba(139,25,34,.6); }
.settings-title { display: flex; align-items: center; gap: 10px; }
.settings-title .cog { width: 28px; height: 28px; fill: currentColor; }
.settings-sub { margin: 18px 0 8px; }
.sounds .profile-form { margin-bottom: 12px; }

/* hamon view: floating controls so the page itself looks exactly like it does for visitors */
.hamon-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 8000; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 8px 12px; max-width: calc(100vw - 24px); border-radius: var(--r); box-shadow: 0 8px 28px rgba(0,0,0,.6); }
.hamon-inert { opacity: .75; }
.stk-saved.ok { color: #7dff9a; font-weight: 700; }
.stk-saved.bad { color: #ff8080; font-weight: 700; }

/* chats: bigger mini chat, delete, read, deleted note, + button */
.chat-list, .minichat { width: 500px; height: 680px; max-width: calc(100vw - 28px); }
.chat-list { max-height: calc(100vh - 90px); }
.minichat { max-height: calc(100vh - 128px); }
.mc-msgs .wiki-body { font-size: 15px; }
@media (max-width: 600px) { .chat-list, .minichat { width: calc(100vw - 28px); height: 520px; } }
.dm-bubble { position: relative; }
.mc-del { position: absolute; top: 2px; right: 2px; opacity: 0; transition: opacity .15s; }
.dm-bubble:hover .mc-del, .mc-del:focus { opacity: 1; }
@media (hover: none) { .mc-del { opacity: .7; } }
.dm-deleted { opacity: .65; font-size: .92em; }
.dm.is-deleted .dm-bubble { background: transparent !important; border: 1px dashed rgba(255,255,255,.25); }
.dm-read { align-self: flex-end; margin: -2px 6px 2px auto; font-size: 11px; color: #9fe8a8; text-align: right; }
.conv-msgs .dm-read { text-align: right; }
.cl-plus { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 0; cursor: var(--hand); font-size: 20px; font-weight: 800; line-height: 1; color: #fff; background: linear-gradient(180deg, #5fe36b, #1b9e2a); box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.5); }
.cl-plus:hover { filter: brightness(1.15); }
.cl-g-rule { margin: 2px 0 6px; font-size: 12.5px; padding: 6px 8px; border-radius: var(--r); background: rgba(255,204,51,.12); border: 1px solid rgba(255,204,51,.35); }

/* ---- moderation: suspension / notice banners, CEO moderation box ---- */
.mod-banner { margin-top: 14px; padding: 12px 16px; border-color: rgba(255,80,80,.6) !important; background: linear-gradient(180deg, rgba(160,0,0,.55), rgba(90,0,0,.55)) !important; color: #fff; display: grid; gap: 6px; }
.mod-banner.mod-notice { background: linear-gradient(180deg, rgba(170,110,0,.55), rgba(100,60,0,.55)) !important; border-color: rgba(255,190,60,.7) !important; }
.mod-banner form { margin: 2px 0 0; }
.mod-page p { margin: 8px 0; }
.mod-box { display: grid; gap: 8px; }
.mod-form { display: grid; gap: 8px; }
.mod-choices { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.mod-list { display: grid; gap: 8px; }
.mod-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; }
.mod-log { width: 100%; border-collapse: collapse; font-size: 14px; }
.mod-log td { padding: 6px 8px; border-top: 1px solid rgba(255,255,255,.12); vertical-align: top; }
.mod-status { margin: 8px 0; }

/* ---- big upload progress ---- */
.up-progress { margin-top: 10px; display: grid; gap: 6px; }
.up-bar { height: 10px; border-radius: var(--r); background: rgba(255,255,255,.15); overflow: hidden; }
.up-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff4d4d, #ffb84d); transition: width .2s; }

/* ---- chats: replies, reactions, typing, message buttons ---- */
.dm-pfp-wrap { flex: none; }
.dm-pfp-wrap .dm-pfp { display: block; }
.minichat .dm-pfp-wrap .dm-pfp { width: 22px; height: 22px; }
.dm-pfp-wrap.framed { margin: 6px 5px 2px 4px; }
.dm-pfp-wrap .pfp-frame, .mc-pfp-wrap .pfp-frame { position: absolute; left: -24.3%; top: -34.2%; width: 149.8%; height: 153%; max-width: none; object-fit: fill; background: none !important; border: 0 !important; border-radius: 0 !important; pointer-events: none; z-index: 0; }
.dm-pfp-wrap > img:first-child, .mc-pfp-wrap > img:first-child { position: relative; z-index: 1; }
.mc-pfp-wrap { display: inline-block; position: relative; line-height: 0; flex: none; }
.mc-pfp-wrap.framed { margin: 6px 6px 2px 5px; }
.dm-quote { font-size: 12px; line-height: 1.3; margin: 0 0 5px; padding: 4px 8px; border-left: 3px solid #ff8a94; background: rgba(255,255,255,.07); border-radius: var(--r); cursor: var(--hand); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; opacity: .9; }
.dm-quote strong { color: #ffc2c8; }
.dm-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.dm-react { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.22); background: rgba(0,0,0,.35); color: #fff; font-size: 14px; line-height: 20px; cursor: var(--hand); }
.dm-react span { font-size: 12px; font-weight: 700; }
.dm-react.mine { border-color: #ffb84d; background: rgba(255,184,77,.22); }
.dm-react .emoji { width: 18px; height: 18px; vertical-align: middle; }
.dm-acts { position: absolute; top: -12px; right: 4px; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; z-index: 3; }
.dm.mine .dm-acts { right: auto; left: 4px; }
.dm-bubble:hover .dm-acts, .dm-acts:focus-within { opacity: 1; }
@media (hover: none) { .dm-acts { opacity: .75; } }
.dm-act { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(20,0,3,.9); color: #fff; font-size: 13px; line-height: 1; cursor: var(--hand); padding: 0; }
.dm-act:hover { background: #8b1922; }
.dm-act-del:hover { background: #c00; }
.dm.flash .dm-bubble { animation: dmflash 1.2s ease; }
@keyframes dmflash { 0%, 40% { box-shadow: 0 0 0 3px #ffb84d; } 100% { box-shadow: 0 0 0 0 transparent; } }
.dm-typing { font-size: 12px; font-style: italic; padding: 2px 10px 4px; min-height: 0; }
.dm-typing::before { content: ''; display: inline-block; width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; background: url(assets/silk/pencil.png) no-repeat center; }
.reply-bar { display: flex; align-items: center; gap: 8px; padding: 5px 10px; margin: 0 0 6px; border-left: 3px solid #ffb84d; background: rgba(255,255,255,.07); border-radius: var(--r); font-size: 13px; width: 100%; }
.reply-bar .rb-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.minichat .reply-bar { margin: 4px 8px 0; width: auto; }
.react-pop { position: fixed; z-index: 10050; padding: 8px; display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.rp-quick, .rp-custom { display: flex; flex-wrap: wrap; gap: 2px; }
.rp-custom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 6px; }
.rp-e { width: 32px; height: 32px; border: 0; border-radius: var(--r); background: transparent; font-size: 20px; cursor: var(--hand); padding: 0; display: grid; place-items: center; }
.rp-e:hover { background: rgba(255,255,255,.15); }
.rp-e .emoji { width: 24px; height: 24px; object-fit: contain; }
.rp-add { font-size: 12px; text-align: center; }
/* emoji page */
/* emoji page */
.emoji-add { padding: 14px 16px; margin-bottom: 14px; }
.emoji-add h3 { margin: 0 0 10px; }
.ea-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.ea-pic { position: relative; flex: 0 0 auto; width: 112px; height: 112px; border-radius: var(--r); border: 2px dashed rgba(255,255,255,.35); background: rgba(0,0,0,.4); display: grid; place-items: center; cursor: var(--hand); overflow: hidden; text-align: center; font-size: 12px; color: #ddd; }
.ea-pic:hover { border-color: #e10104; }
.ea-pic input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: var(--hand); }
.ea-pic img#eaPrev { width: 72px; height: 72px; object-fit: contain; pointer-events: none; }
.ea-pick img.silk { width: 24px; height: 24px; margin-bottom: 4px; }
.ea-fields { flex: 1 1 260px; min-width: 0; display: grid; gap: 6px; align-content: start; }
.ea-label { font-weight: 700; }
.ea-name { display: flex; align-items: center; gap: 4px; max-width: 320px; font: 700 18px/1 monospace; color: #ffc2c8; }
.ea-name .field { flex: 1; min-width: 0; width: auto; box-sizing: border-box; }
.ea-demo { margin: 0; } .ea-demo img { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; }
.ea-fields .small-note { margin: 0; }
.ea-go { justify-self: start; padding: 8px 18px; display: inline-flex; align-items: center; gap: 6px; }
.emoji-search { max-width: 280px; margin: 0 0 10px; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.emoji-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px 10px; text-align: center; min-width: 0; }
.emoji-card[hidden] { display: none; }
.emoji-big { width: 48px; height: 48px; object-fit: contain; image-rendering: auto; }
.emoji-card code { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: copy; border-radius: var(--r); padding: 1px 4px; }
.emoji-card code:hover { background: rgba(255,255,255,.08); }
.emoji-card code.copied { background: #1f8f3a; color: #fff; }
.emoji-card code.copied::after { content: ' copied'; }
.emoji-tools { display: flex; gap: 4px; justify-content: center; }
.emoji-tools form { margin: 0; }
.emoji-tool { width: 28px; height: 26px; padding: 0; border-radius: var(--r); border: 1px solid #8a8a8a; background: linear-gradient(#fbfbfb, #d2d2d2); cursor: var(--hand); display: grid; place-items: center; }
.emoji-tool:hover { border-color: #e10104; background: linear-gradient(#fff, #ffc9ca); }
.emoji-none, .emoji-nomatch { grid-column: 1 / -1; }
/* change picture on your profile */
.pfp-col { display: grid; justify-items: center; gap: 6px; }
.pfp-change { display: grid; justify-items: center; gap: 6px; }
.pfp-change summary { list-style: none; cursor: var(--hand); }
.pfp-change summary::-webkit-details-marker { display: none; }
.pfp-change-form { display: grid; gap: 8px; padding: 10px; max-width: 300px; }
.mc-who .mc-pfp-wrap { overflow: visible; white-space: normal; }
.reply-bar[hidden], .react-pop[hidden], .dm-typing[hidden], .conv-err[hidden] { display: none !important; }

/* daily showcase: transparent pictures stay transparent (the shadow follows the picture's shape instead of a box) */
.showcase-media img { background: transparent !important; box-shadow: none !important; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
/* the settings icon (Silk cog), same everywhere */
.set-ico { display: inline-block; line-height: 1; font-family: "Segoe UI Symbol", "Noto Sans Symbols", "Noto Sans Symbols 2", "DejaVu Sans", sans-serif; font-style: normal; }
.cog-btn .set-ico { font-size: 21px; color: #f6d3d8; transition: transform .4s; }
.cog-btn:hover .set-ico { filter: drop-shadow(0 0 6px rgba(255,255,255,.55)) brightness(1.12); }
.settings-title .set-ico { font-size: .95em; margin-right: 6px; vertical-align: -1px; }
.cog-btn, .cog-btn:hover { text-decoration: none; }

/* "+3" on a file's tags: a button that shows the rest */
.tag[hidden] { display: none !important; }
button.tag.more { cursor: var(--hand); font: inherit; font-size: 11px; color: #ffd0d5; border: 1px solid rgba(255,208,213,.35); background: rgba(0,0,0,.35); }
button.tag.more:hover { background: rgba(139,25,34,.7); border-color: #e10104; }

/* renamed blogs: whose blog it is, under the name */
.blog-owner-line { display: block; font-size: 13px; margin-top: -4px; }
.blog-row-by { font-size: 12px; }

/* mini chat: online / idle / offline */
.mc-names { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.mc-status { font-size: 11px; font-weight: 600; color: #b9a5a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-status.st-online { color: #3ddc5a; }
.mc-status.st-idle { color: #ffcc33; }
.mc-pfp-wrap .pres, .cl-pfp .pres { position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; z-index: 2; border: 2px solid #1a0305 !important; }
.cl-pfp { position: relative; display: inline-block; line-height: 0; flex: none; }

/* ---- ham cursor (Settings, off unless turned on) ---- */
html.jh-cur { cursor: var(--cur); }
html.ham-cursor { --hand: url('assets/cursor/hammouse_2.png') 10 4, pointer; cursor: url('assets/cursor/hammouse_1.png') 5 8, auto; }
html:is(.ham-cursor, .jh-cur) :is(a[href], button:not(:disabled), summary, select, label, [role=button], [onclick], input[type=checkbox], input[type=radio], input[type=submit], input[type=button], input[type=file], input[type=range], input[type=color]) { cursor: var(--hand); }
html:is(.ham-cursor, .jh-cur) :is(textarea, input:not([type]), input[type=text], input[type=password], input[type=search], input[type=email], input[type=url], input[type=number], [contenteditable="true"]) { cursor: text; }
.cursor-preview { display: inline-flex; gap: 10px; align-items: center; margin-left: 6px; }
.cursor-preview img { image-rendering: pixelated; height: 30px; width: auto; }
/* ---- username fonts (Settings → shown on your profile) ---- */
@font-face { font-family: 'jh-chrysanthemum'; src: url('assets/fonts/chrysanthemum.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'jh-handwriting'; src: url('assets/fonts/handwriting.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'jh-midnight'; src: url('assets/fonts/midnight.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'jh-sans_neon'; src: url('assets/fonts/sans_neon.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'jh-synth'; src: url('assets/fonts/synth.woff2') format('woff2'); font-display: swap; }
.nf-chrysanthemum { font-family: 'jh-chrysanthemum', serif !important; }
.nf-handwriting { font-family: 'jh-handwriting', cursive !important; font-size: 1.2em; }
.nf-midnight { font-family: 'jh-midnight', serif !important; }
.nf-sans-neon { font-family: 'jh-sans_neon', monospace !important; letter-spacing: .02em; }
.nf-synth { font-family: 'jh-synth', sans-serif !important; }
@font-face { font-family: 'jh-arial'; src: url('assets/fonts/arial.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'jh-comic_sans'; src: url('assets/fonts/comic_sans.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'jh-impact'; src: url('assets/fonts/impact.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'jh-jokerman'; src: url('assets/fonts/jokerman.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'jh-times_new_roman'; src: url('assets/fonts/times_new_roman.woff2') format('woff2'); font-display: swap; }
.nf-arial { font-family: 'jh-arial', Arial, sans-serif !important; }
.nf-comic-sans { font-family: 'jh-comic_sans', 'Comic Sans MS', cursive !important; }
.nf-impact { font-family: 'jh-impact', Impact, sans-serif !important; letter-spacing: .02em; }
.nf-jokerman { font-family: 'jh-jokerman', fantasy !important; }
.nf-times-new-roman { font-family: 'jh-times_new_roman', 'Times New Roman', serif !important; }
.nf-preview { font-size: 22px; padding: 0 6px; color: #ffd0d5; }
.namefont-form { align-items: center; }
/* ---- profile song volume slider ---- */
.pm-vol { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.pm-vol input[type=range] { width: 110px; accent-color: #e10104; }
.pm-vol-n { font-size: 12px; min-width: 34px; }

/* profile comments: pages */
.comment-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 10px 0; }
.comment-pager .disabled { opacity: .4; pointer-events: none; }

/* ---- "N online" (footer) ---- */
.online-now { display: inline-flex; align-items: center; gap: 5px; }
.online-now .pres { position: static; display: inline-block; }

/* ---- logo: the ham icon instead of the red dot ---- */
html:not(.sunboy) .logo .orb { width: 40px; height: 40px; border-radius: 0; background: url('assets/hamicon.png') center / contain no-repeat !important; box-shadow: none !important; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.pw-lost { display: inline-block; margin-top: 4px; font-size: 13px; opacity: .9; }

/* ---- recent profile pictures / backgrounds ---- */
.look-hist { display: grid; gap: 6px; margin-top: 8px; padding: 8px; }
.look-hist-row { display: flex; flex-wrap: wrap; gap: 6px; }
.look-hist-pick { padding: 0; border: 2px solid rgba(225,1,4,.5); background: #1a0305; border-radius: var(--r); cursor: var(--hand); overflow: hidden; line-height: 0; }
.look-hist-pick img { width: 48px; height: 48px; object-fit: cover; display: block; }
.look-hist-pick.bg img { width: 72px; height: 44px; }
.look-hist-pick:hover, .look-hist-pick:focus-within { border-color: #ff6b6b; }
.look-hist-pick input { position: absolute; opacity: 0; pointer-events: none; }
.look-hist-pick.bg { position: relative; }
.look-hist-pick.bg:has(input:checked) { border-color: #7dff9a; box-shadow: 0 0 0 2px rgba(125,255,154,.4); }

/* ---- your own cursor / font uploads (Settings) ---- */
.own-upload { margin-top: 8px; }
.own-upload > summary { display: inline-block; list-style: none; }
.own-upload > summary::-webkit-details-marker { display: none; }
.own-upload .upform { margin-top: 8px; display: grid; gap: 8px; }
.btn .cursor-preview img { height: 18px; vertical-align: -4px; }
.own-upload .upform > button, .own-upload .upform label { justify-self: start; }

/* ---- upvote history on profiles ---- */
.upv-privacy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 10px; font-size: 13px; }
.upv-privacy .tag { font-weight: 400; }

/* ---- background / banner: stretch to fill or repeat in a grid ---- */
.fit-pick { display: grid; gap: 6px; margin-top: 8px; }
.fit-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.fit-opt { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--r); background: rgba(0,0,0,.35); cursor: var(--hand); font-size: 13px; }
.fit-opt:has(input:checked) { border-color: #7dff9a; box-shadow: 0 0 0 2px rgba(125,255,154,.3); }
.fit-opt input { margin: 0; }
.fit-ico { width: 26px; height: 18px; border: 1px solid rgba(255,255,255,.6); border-radius: var(--r); display: inline-block; }
.fit-ico.fill { background: linear-gradient(135deg, #e10104, #ff9a3c); }
.fit-ico.tile { background: conic-gradient(#e10104 25%, #ff9a3c 0 50%, #e10104 0 75%, #ff9a3c 0) 0 0 / 9px 9px; }
.fit-size { display: block; font-size: 13px; }
.fit-size input { display: block; width: 100%; margin-top: 4px; }
.look-card.fit-tiled .focus-pick { display: none !important; }
.fit-size[hidden] { display: none !important; }
.fit-tip { font-size: 12px; }

/* ---- >quotes in posts and comments: red text, like greentext ---- */
.redtext { color: #ff3b3b; margin: 0 0 8px; }
html.sunboy .redtext { color: #d10000; }
/* profile song download */
.pm-dl { text-decoration: none; }

/* ---- side ads beside the gallery (ads.php) ---- */
.side-ads { display: none; }
@media (min-width: 1480px) {
  .side-ads { display: block; }
  .side-col { position: fixed; top: 120px; width: 160px; z-index: 5; display: flex; flex-direction: column; gap: 8px; transition: opacity .35s, transform .35s; }
  .side-ad { position: relative; display: block; width: 160px; height: 600px; border-radius: var(--r); overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.6); }
  .side-ad-links { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .side-ad-link { font-size: 11px; color: rgba(255,255,255,.6); text-decoration: none; cursor: var(--hand); }
  .side-ad-link:hover, .side-ad-link:focus-visible { color: #fff; text-decoration: underline; }
  .side-left { left: calc(50% - 550px - 24px - 160px); }
  .side-right { right: calc(50% - 550px - 24px - 160px); }
  .side-ads.gone .side-col { opacity: 0; transform: translateY(-20px); pointer-events: none; }
}
.side-ad img { display: block; width: 160px; height: 600px; object-fit: cover; }
.side-ad-tag { position: absolute; top: 4px; right: 4px; font-size: 10px; padding: 1px 5px; border-radius: var(--r); background: rgba(0,0,0,.65); color: #ddd; }
.side-ad-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed rgba(255,255,255,.25); background: rgba(0,0,0,.35); color: #ff9aa0; text-decoration: none; text-align: center; box-shadow: none; }
.side-ad-empty span { font-size: 18px; font-weight: 700; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .08em; }
.side-ad-empty small { color: #bbb; }
.side-ad-empty:hover { border-color: #ff6b6b; background: rgba(225,1,4,.15); }
.ad-preview { width: 80px; height: 300px; object-fit: cover; border-radius: var(--r); border: 1px solid rgba(255,255,255,.2); }
.ad-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px; margin-bottom: 10px; }
.ad-row .ad-info { display: grid; gap: 4px; font-size: 14px; }

/* ---- other accounts (mods) / ignored people (settings) ---- */
.alt-list { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; }
.alt-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mod-alts > summary { cursor: var(--hand); }
.fav-extra:not([hidden]) { display: contents; }
.favs-more-wrap { text-align: center; margin: 14px 0 4px; }

/* "make an account" box shown to hamons instead of upload / chat forms */
.hamon-cta { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 12px 0; flex-wrap: wrap; }
.hamon-cta img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.hamon-cta-text { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.hamon-cta-text span { opacity: .85; font-size: .92em; }
.hamon-cta .btn { flex: none; }
.dm-form[hidden], .minichat.is-hamon .mc-form, .minichat.is-hamon .mc-spoil, .minichat.is-hamon .mc-attach { display: none !important; }
.hamon-cta-mini { margin: 6px 8px 8px; padding: 10px; gap: 8px; }
.hamon-cta-mini img { width: 32px; height: 32px; }
.hamon-cta-mini .hamon-cta-text span { display: none; }
.minichat:not(.is-hamon) .hamon-cta-mini { display: none; }
/* profile song controls float along when you scroll past them */
.pm-ph { display: inline-block; margin-right: auto; }
.pm-ph[hidden] { display: none; }
.pm-bar.pm-float { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 71; margin: 0; max-width: calc(100vw - 20px); justify-content: center; padding: 6px 12px; background: rgba(0,0,0,.8); box-shadow: 0 6px 18px rgba(0,0,0,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: pm-pop .2s ease-out; }
@keyframes pm-pop { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translateX(-50%); } }
@media (max-width: 700px) { .pm-bar.pm-float { top: 6px; } }
/* sign-up box: the optional password fold, anonymous upload info, past usernames */
.lm-pw { margin: 2px 0; }
.lm-pw summary { cursor: var(--hand); padding: 4px 0; }
.lm-pw[open] { display: grid; gap: 6px; }
.anon-info { margin: -2px 0 4px; padding: 8px 10px; border-radius: var(--r); background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.12); }
.anon-tag { font-size: 12px; }
.name-hist .pill small { margin-left: 4px; }
.claim-box .btn { margin-top: 6px; }
/* upload streak box (profiles) */
.streak-box { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border-radius: var(--r); background: linear-gradient(180deg, rgba(255,140,0,.35), rgba(225,1,4,.35)); border: 1px solid rgba(255,170,60,.6); color: #fff; vertical-align: middle; box-shadow: 0 0 12px rgba(255,120,0,.35); }
.streak-box b { font-size: 16px; }
.streak-box small { font-size: 11px; opacity: .85; }
.streak-box .streak-fire { width: 26px; height: 26px; object-fit: contain; font-size: 18px; line-height: 22px; }
.streak-box.cold { filter: grayscale(1); opacity: .7; box-shadow: none; }
.streak-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.by-form select { max-width: 200px; }
.age-check { font-weight: 600; }
.upv-note { margin: -4px 0 8px; }
/* tiny "uploader…" box in the gallery toolbar */
.by-form { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.by-input { width: 110px; padding: 3px 8px; font: inherit; font-size: 12px; color: #fff; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.25); border-radius: var(--r); }
.by-input:focus { outline: none; border-color: #e10104; width: 150px; }
.by-list { position: absolute; top: 100%; left: 0; z-index: 30; min-width: 170px; margin-top: 3px; padding: 3px; display: grid; background: rgba(15,15,15,.96); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r); box-shadow: 0 8px 22px rgba(0,0,0,.6); }
.by-list button { text-align: left; background: none; border: 0; color: #fff; font: inherit; font-size: 13px; padding: 4px 8px; border-radius: var(--r); cursor: var(--hand); }
.by-list button:hover, .by-list button.on { background: rgba(225,1,4,.5); }
.by-list small { opacity: .55; }
.by-clear { color: #ffb0b5; text-decoration: none; font-size: 15px; padding: 0 4px; }
.social-link img { border-radius: var(--r); }
.by-list[hidden] { display: none; }
.hamon-now img { width: 16px; height: 16px; vertical-align: -3px; margin-right: 3px; }
/* polls on forum threads and blog posts */
.poll { margin: 12px 0; padding: 12px 14px; max-width: 560px; }
.poll-q { font-weight: 800; margin-bottom: 8px; }
.poll-form { display: grid; gap: 6px; }
.poll-opt { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.35); color: #fff; font: inherit; text-align: left; cursor: var(--hand); overflow: hidden; }
.poll-opt:hover { border-color: #e10104; }
.poll-opt.on { border-color: #ff4d55; box-shadow: 0 0 0 1px #ff4d55 inset; }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(225,1,4,.55), rgba(225,1,4,.25)); transition: width .3s; pointer-events: none; }
.poll-label, .poll-n { position: relative; }
.poll-n { opacity: .8; font-size: 13px; white-space: nowrap; }
.poll-foot { margin-top: 8px; font-size: 12px; }
.poll-foot .link-btn { font-size: 12px; }
.poll-make { display: grid; gap: 6px; }
.poll-make[open] summary { margin-bottom: 4px; }
.mention-everyone { font-weight: 800; color: #ffcc33; }
/* username color picker + notification settings */
.nc-modes { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; }
.nc-swatch { display: inline-block; width: 26px; height: 12px; border-radius: var(--r); vertical-align: -1px; margin-right: 4px; }
.nc-colors input[type=color] { width: 40px; height: 28px; padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: var(--r); background: none; }
.nc-colors[hidden], .nc-colors [hidden] { display: none !important; }
.nc-preview { font-weight: 800; font-size: 20px; }
.notif-table { border-collapse: collapse; margin-bottom: 8px; }
.notif-table td { padding: 3px 10px 3px 0; }
.notif-table .chat-mode td { padding-bottom: 8px; }
.friends-all { color: inherit; text-decoration: none; } .friends-all:hover { text-decoration: underline; } .friends-more { margin: 8px 0 0; }
/* ---- news banner: scrolling title, text box, "Read more", a waving ham on each side ---- */
.news-banner { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px auto; max-width: 900px; }
.nb-ham { width: 76px; height: auto; flex: none; }
.nb-right { transform: scaleX(-1); }
@keyframes nb-wave { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes nb-wave-r { 0%, 100% { transform: scaleX(-1) rotate(-4deg); } 50% { transform: scaleX(-1) rotate(4deg); } }
.nb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.nb-title { width: 100%; overflow: hidden; white-space: nowrap; border: 2px solid #111; border-bottom: 0; border-radius: var(--r) var(--r) 0 0; background: #e10104; color: #fff; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; padding: 4px 0; }
.nb-title { position: relative; height: 1.5em; }
.nb-scroll { position: absolute; top: 4px; left: 0; display: flex; gap: 60px; white-space: nowrap; will-change: left, transform; animation: nb-scroll 14s linear infinite; }
/* slides in from the left edge and out the right edge, then starts again */
@keyframes nb-scroll { from { left: 0; transform: translateX(-100%); } to { left: 100%; transform: translateX(0); } }
.nb-text { width: 100%; box-sizing: border-box; padding: 14px 18px; border: 2px solid #111; border-radius: 0 0 var(--r) var(--r); background: #fff; color: #111; font-size: 18px; font-weight: 700; text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.nb-edit { color: #e10104; text-decoration: none; font-size: 14px; }
.nb-more { margin-top: 6px; padding: 2px 10px; border: 2px solid #111; border-radius: var(--r); background: #fff; color: #111; font-size: 12px; font-weight: 800; text-decoration: none; }
.nb-more:hover { background: #ffe0e2; }
@media (max-width: 600px) { .nb-ham { width: 44px; } .nb-text { font-size: 15px; padding: 10px; } }
/* (the title keeps scrolling even with "reduce motion" on: that's what it's for) */
/* ad campaign stats (ads.php) */
.ad-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin: 8px 0 4px; }
.ad-stat { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: var(--r); background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); text-align: center; }
.ad-stat b { font-size: 18px; color: #ff6b72; }
.ad-stat span { font-size: 11px; opacity: .8; }
.ad-day-table { border-collapse: collapse; font-size: 13px; margin-top: 4px; }
.ad-day-table th, .ad-day-table td { padding: 2px 10px 2px 0; text-align: left; }
.ad-bar { display: inline-block; height: 8px; border-radius: var(--r); background: #e10104; vertical-align: middle; }
.ad-campaign .ad-info { flex: 1; min-width: 0; }
/* upload: folder button + one row per picked file (own name & tags) */
.up-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.up-list { display: grid; gap: 6px; }
.up-list:empty { display: none; }
.up-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.up-thumb { width: 54px; height: 54px; flex: none; object-fit: cover; border-radius: var(--r); background: rgba(0,0,0,.4); display: grid; place-items: center; font-size: 24px; }
.up-row-info { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 6px; }
.up-row-info small { grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-x { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(225,1,4,.6); color: #fff; font-size: 18px; line-height: 1; cursor: var(--hand); }
@media (max-width: 600px) { .up-row-info { grid-template-columns: 1fr; } }
/* ---- coal / iron / gem hams: under posts (.awards) and the counter on profiles (.aw-counter) ---- */
.awards { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 6px; }
.aw, .aw-count { --aw: #fff; --aw-edge: #000; display: inline-flex; align-items: center; gap: 2px; padding: 0; border: 0; background: none; color: var(--aw); font: inherit; }
.aw { cursor: var(--hand); transition: transform .12s; }
.aw:hover { filter: drop-shadow(0 0 6px rgba(255,255,255,.55)) brightness(1.12); }
.aw img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 5px var(--aw-glow)); }
.aw b, .aw-count b { font-size: 22px; font-weight: 900; line-height: 1; color: var(--aw); -webkit-text-stroke: 2px var(--aw-edge); paint-order: stroke fill; text-shadow: 0 0 8px var(--aw-glow), 0 0 2px var(--aw-glow); }
.aw.none img { filter: grayscale(.25); opacity: .75; }
.aw.none:hover img { opacity: 1; filter: drop-shadow(0 0 5px var(--aw-glow)); }
.aw.on img { filter: drop-shadow(0 0 8px var(--aw-glow)) drop-shadow(0 0 3px #fff); }
/* each ham's colors: coal = black number with a white edge, iron = silver, gem = blue */
.aw-coal { --aw: #111; --aw-edge: #fff; --aw-glow: rgba(255,255,255,.55); }
.aw-iron { --aw: #e9edf2; --aw-edge: #222; --aw-glow: rgba(210,220,235,.8); }
.aw-gem { --aw: #4ff0e0; --aw-edge: #053b38; --aw-glow: rgba(79,240,224,.85); }
.aw-counter { display: inline-flex; gap: 12px; vertical-align: middle; }
.aw-count img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 6px var(--aw-glow)); }
.aw-count b { font-size: 26px; }
.aw-count.none img { opacity: .5; filter: grayscale(.4); }
.aw-count.none b { opacity: .5; text-shadow: none; }
.aw-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* the little box that explains a ham when you click it */
.aw-pop { position: absolute; z-index: 90; width: 250px; padding: 12px 14px; border-radius: var(--r); box-shadow: 0 10px 30px rgba(0,0,0,.7); }
.aw-pop-head { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.aw-pop-head img { width: 44px; height: 44px; object-fit: contain; }
.aw-pop p { margin: 8px 0 0; font-size: 13px; }
.aw-pop-btns { display: flex; gap: 6px; margin-top: 10px; }
.aw-pop-coal .aw-pop-head img { filter: drop-shadow(0 0 5px rgba(255,255,255,.6)); }
.aw-pop-iron .aw-pop-head img { filter: drop-shadow(0 0 6px rgba(210,220,235,.8)); }
.aw-pop-gem .aw-pop-head img { filter: drop-shadow(0 0 6px rgba(79,240,224,.9)); }
/* ham rows: gallery tiles (small), media page and expanded view (centered) */
.tile .awards { gap: 6px; margin: 4px 0 2px; justify-content: center; }
.tile .aw img { width: 26px; height: 26px; }
.tile .aw b { font-size: 17px; -webkit-text-stroke-width: 1.5px; }
.media-awards .awards, .lb-awards .awards { justify-content: center; }
.lb-awards .awards { margin: 6px 0; }
.aw-pop { z-index: 3000; }
.comment .awards { margin: 6px 0 2px; }
.comment .aw img { width: 28px; height: 28px; }
.comment .aw b { font-size: 18px; }
.poll-voters { margin-top: 8px; font-size: 13px; } .poll-voters-opt { margin: 6px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.emoji-rename { display: flex; gap: 4px; width: 100%; margin: 2px 0 0; }
.emoji-rename[hidden] { display: none; }
.emoji-rename .field { flex: 1; min-width: 0; width: auto; padding: 2px 6px; font-size: 12px; }
.emoji-rename .btn { padding: 2px 6px; flex: 0 0 auto; }
/* "Recently viewed" on profiles */
.recent-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.recent-item { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; color: inherit; text-decoration: none; min-width: 0; }
a.recent-item:hover { border-color: #e10104;  }
.recent-thumb img, .recent-thumb video { width: 100%; height: 90px; object-fit: cover; border-radius: var(--r); display: block; }
.recent-kind { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; opacity: .7; }
.recent-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-time { font-size: 11px; }
/* Silk icons (used instead of emojis) */
img.silk { width: 16px; height: 16px; vertical-align: -3px; image-rendering: auto; display: inline-block; }
img.silk.set-ico { vertical-align: -3px; }
.cog-btn img.silk.set-ico { width: 20px; height: 20px; }
.rp-e img.silk { width: 20px; height: 20px; }
.dm-react img.silk { vertical-align: -3px; }
/* post editor: thumbnails inside the text box, ≡ menu under it (formatting toolbar + guide) */
.pt-box { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pt-box > textarea { width: 100%; box-sizing: border-box; }
.pt-box.has-pv > textarea { padding-bottom: 66px; min-height: 120px; }
.dm-form .pt-box { flex: 1; }
.dm-form .pt-head, .dm-form .pt-panel { flex-basis: 100%; order: 10; }
.pt-preview { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 5px; overflow-x: auto; overflow-y: hidden; padding-bottom: 1px; }
.pt-preview[hidden] { display: none; }
.pt-thumb { position: relative; flex: 0 0 auto; width: 52px; height: 52px; border-radius: var(--r); overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; cursor: zoom-in; }
.pt-thumb > img:not(.silk), .pt-thumb > video { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: auto; }
.pt-thumb.spoil > img:not(.silk), .pt-thumb.spoil > video { filter: blur(5px); }
.pt-thumb.loading > img:not(.silk), .pt-thumb.loading > video { opacity: .55; }
.pt-thumb.broken::after { content: '?'; position: absolute; font-size: 16px; color: #ccc; }
.pt-thumb.broken > img:not(.silk) { visibility: hidden; }
.pt-tag { position: absolute; left: 2px; bottom: 2px; background: rgba(0,0,0,.65); border-radius: var(--r); padding: 1px; line-height: 0; }
.pt-tag img.silk { width: 12px; height: 12px; }
.pt-x, .pt-sp { position: absolute; top: 2px; width: 18px; height: 18px; border-radius: 50%; border: 0; padding: 0; background: rgba(0,0,0,.75); cursor: var(--hand); display: grid; place-items: center; }
.pt-x { right: 2px; } .pt-sp { left: 2px; opacity: .55; }
.pt-sp.on { opacity: 1; background: #e10104; }
.pt-thumb:hover .pt-sp { opacity: 1; }
.pt-x:hover { background: #e10104; } .pt-sp:hover { background: #7a2b9e; }
.pt-x img.silk, .pt-sp img.silk { width: 11px; height: 11px; vertical-align: 0; }
.pt-snd img.silk { width: 22px; height: 22px; }
/* the big, sharp view when you click a thumbnail */
.pt-big { display: flex; justify-content: flex-start; margin-bottom: 6px; cursor: zoom-out; }
.pt-big img, .pt-big video { max-width: 100%; max-height: 60vh; border-radius: var(--r); border: 2px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,.7); background: #000; display: block; }
.pt-head { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.pt-burger { width: 30px; height: 26px; padding: 5px 7px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.45); cursor: var(--hand); display: flex; flex-direction: column; justify-content: space-between; flex: 0 0 auto; }
.pt-burger span { display: block; height: 2px; border-radius: var(--r); background: #f6d3d8; transition: transform .2s, opacity .2s; }
.pt-burger:hover, .pt-burger.on { border-color: #e10104; background: rgba(225,1,4,.35); }
.pt-burger.on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.pt-burger.on span:nth-child(2) { opacity: 0; }
.pt-burger.on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.pt-panel { margin-bottom: 6px; }
.pt-panel[hidden] { display: none !important; }
.pt-panel details.help { margin-top: 4px; }
.post-tools-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.pt-btn { width: 30px; height: 28px; padding: 0; border-radius: var(--r); border: 1px solid #8a8a8a; background: linear-gradient(#fbfbfb, #d2d2d2); cursor: var(--hand); display: grid; place-items: center; }
.pt-btn:hover { border-color: #e10104; background: linear-gradient(#fff, #ffc9ca); }
.pt-status { font-size: 12px; }
.pt-status.bad { color: #ff8a8a; }
textarea.pt-over { outline: 2px dashed #e10104; outline-offset: 2px; }
.aw-gave { align-self: flex-end; margin-left: 4px; font-size: 11px; font-weight: 700; color: #f1d6da; white-space: nowrap; opacity: .9; }
.aw-gave i { font-style: normal; font-size: 14px; color: var(--aw); -webkit-text-stroke: 1px var(--aw-edge); paint-order: stroke fill; }
.sage-check { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 6px; font-size: 13px; }
.sage-tag { display: inline-block; margin: 2px 0 4px; padding: 0 6px; border-radius: var(--r); background: #7a7a7a; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: lowercase; }
/* movable profile images can sit out on the sides of the page: no sideways scrollbar from them */
html:has(#pTheme .sticker), body:has(#pTheme .sticker) { overflow-x: clip; }
.up-spoil { font-size: 13px; }
.up-thumb.spoil { filter: blur(6px); }
.aw-counter { cursor: var(--hand); }
.aw-counter .aw-gave { display: none; }
.aw-counter.show-gave .aw-gave { display: inline; animation: awGave .2s ease-out; }
@keyframes awGave { from { opacity: 0; transform: translateY(3px); } to { opacity: .9; transform: none; } }
.showcase-info .awards { margin: 8px 0; }
.blog-accent { display: grid; gap: 6px; }
.swatch .sw-none { display: grid; place-items: center; color: #fff; font-weight: 800; background: repeating-linear-gradient(45deg, #2a0306 0 6px, #000 6px 12px); }
/* profile songs list (up to 8) */
.pm-list { list-style: decimal; margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.pm-list li { padding: 6px 8px; border-radius: var(--r); background: rgba(0,0,0,.35); border: 1px solid rgba(var(--accent-rgb, 225,1,4), .35); display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; }
.pm-list .pm-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-list .pm-preview { grid-column: 1 / -1; width: 100%; height: 30px; }
.pm-btns { display: inline-flex; gap: 3px; grid-row: 1; grid-column: 2; }
.pm-btns button { width: 24px; height: 22px; padding: 0; border-radius: var(--r); border: 1px solid #8a8a8a; background: linear-gradient(#fbfbfb, #d2d2d2); cursor: var(--hand); display: grid; place-items: center; }
.pm-btns button:hover { border-color: #e10104; }
.pm-list li:first-child .pm-up, .pm-list li:last-child .pm-down { opacity: .35; }
.pm-mode { display: grid; gap: 2px; }
.pm-of { font-size: 12px; }

/* ---------- categories (big colored buttons above the tag cloud, made by admins) ---------- */
.feat-tags { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 6px; }
.pill.feat-tag { border-radius: var(--r); font-weight: 800; letter-spacing: .5px; }
.pill.feat-big { font-size: 18px; padding: 9px 26px; }
.pill.feat-huge { font-size: 26px; padding: 12px 36px; }
.pill.feat-none { font-size: 14px; padding: 7px 18px; }
.pill.feat-tag small { font-size: .55em; font-weight: 600; opacity: .75; margin-left: 6px; }
.pill.feat-tag.active { filter: brightness(1.2) saturate(1.2); }
.feat-admin { margin: 6px 0 10px; padding: 8px 12px; font-size: 13px; }
.feat-admin summary { cursor: var(--hand, pointer); font-weight: 700; }
.feat-admin form { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.feat-rows { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.feat-row { display: grid; grid-template-columns: 22px 62px minmax(140px, 1fr) 90px 56px 56px; gap: 6px; align-items: center; }
.feat-item { padding: 3px; border-radius: var(--r); transition: background .15s; }
.feat-item.dragging { opacity: .5; background: rgba(255,255,255,.08); outline: 1px dashed rgba(255,255,255,.5); }
.feat-grip { cursor: grab; font-size: 18px; line-height: 1; text-align: center; opacity: .7; user-select: none; }
.feat-grip:hover { opacity: 1; }
.feat-move { display: inline-flex; gap: 2px; }
.feat-move .btn { padding: 2px 7px; font-size: 11px; line-height: 16px; }
.feat-unsaved { color: #ffd27a; font-weight: 700; }
.feat-row .field { min-width: 0; width: 100%; padding: 5px 8px; font-size: 13px; }
.feat-head { font-size: 11px; text-transform: uppercase; }
.feat-del { text-align: center; }
.feat-color { width: 100%; height: 30px; padding: 0 2px; border: 1px solid rgba(225,1,4,.45); border-radius: var(--r); background: #1c1c1c; cursor: var(--hand, pointer); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) { .feat-row { grid-template-columns: 18px 56px 1fr 64px 40px 32px; } .feat-head { display: none; } }
/* category pickers (upload forms, file pages, "Your files"): colored pills you tick on and off */
.cat-field { display: flex; flex-direction: column; gap: 4px; }
.cat-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.cat-admin .cat-pick { justify-content: center; }
.cat-opt, .cat-chip { --top: #ef7375; --mid: #e10104; --low: #9e0103; --bot: #e73436; --edge: #440001;
  position: relative; display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--r); border: 1px solid var(--edge);
  background: linear-gradient(180deg, var(--top) 0%, var(--mid) 49%, var(--low) 50%, var(--bot) 100%);
  font-size: 13px; font-weight: 700; text-decoration: none; user-select: none; white-space: nowrap; }
.cat-opt { cursor: var(--hand, pointer); opacity: .4; filter: saturate(.4); transition: opacity .15s, filter .15s; }
.cat-opt:hover { opacity: .7; }
.cat-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cat-opt:has(input:checked) { opacity: 1; filter: none; box-shadow: 0 0 0 2px rgba(255,255,255,.75); }
.cat-opt:has(input:checked) span::before { content: '✓ '; }
.cat-opt:focus-within { outline: 2px solid #fff; outline-offset: 2px; }
.cat-opt:has(input.saving) { opacity: .7; }
.cat-opt:has(input.save-err) { outline: 2px solid #ffb000; }
.cat-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 6px 0; }
.mrow-main .cat-pick { margin-top: 6px; }
.mrow-main .cat-opt { font-size: 11px; padding: 2px 9px; }

/* ===================== 2026-12 update ===================== */
/* ---- new hams: copper / emerald / gold ---- */
.aw-copper { --aw: #e08a4c; --aw-edge: #3a1604; --aw-glow: rgba(224,138,76,.8); }
.aw-emerald { --aw: #46e88a; --aw-edge: #053d1c; --aw-glow: rgba(70,232,138,.85); }
.aw-gold { --aw: #ffd23a; --aw-edge: #4a3300; --aw-glow: rgba(255,210,58,.9); }
.aw-pop-copper .aw-pop-head img { filter: drop-shadow(0 0 6px rgba(224,138,76,.8)); }
.aw-pop-emerald .aw-pop-head img { filter: drop-shadow(0 0 6px rgba(70,232,138,.9)); }
.aw-pop-gold .aw-pop-head img { filter: drop-shadow(0 0 7px rgba(255,210,58,.95)); }
/* the trophy: on small posts it's the only thing shown; click it to pick a ham */
.aw-trophy { display: none; align-items: center; gap: 3px; padding: 0; border: 0; background: none; color: #ffd23a; font: inherit; cursor: var(--hand); }
.aw-trophy img { width: 30px; height: 37px; object-fit: contain; filter: drop-shadow(0 0 5px rgba(255,210,58,.7)); transition: transform .12s; }
.aw-trophy:hover img { filter: drop-shadow(0 0 6px rgba(255,255,255,.55)) brightness(1.12); }
.aw-trophy b { font-size: 20px; font-weight: 900; line-height: 1; color: #ffd23a; -webkit-text-stroke: 2px #4a3300; paint-order: stroke fill; }
.aw-trophy.none img { opacity: .6; filter: grayscale(.3); }
.aw-trophy.on img { filter: drop-shadow(0 0 8px rgba(255,210,58,.95)) drop-shadow(0 0 2px #fff); }
.awards.compact .aw { display: none; }
.awards.compact .aw-trophy { display: inline-flex; }
/* expanded (lightbox) and the picker: every ham */
.lb-awards .awards.compact .aw, .aw-picker .awards .aw { display: inline-flex; }
.lb-awards .awards.compact .aw-trophy, .aw-picker .awards .aw-trophy { display: none; }
.aw-picker { position: absolute; z-index: 2990; padding: 8px 12px 6px; border-radius: var(--r); box-shadow: 0 10px 30px rgba(0,0,0,.7); max-width: calc(100vw - 16px); }
.aw-picker-head { font-weight: 800; font-size: 13px; color: #ffd23a; text-transform: uppercase; letter-spacing: .5px; }
.aw-picker .awards { margin: 6px 0 2px; justify-content: center; flex-wrap: nowrap; gap: 8px; }
@media (max-width: 500px) { .aw-picker .awards { flex-wrap: wrap; } }
/* the trophy next to a username on profiles: click for every kind they got / gave */
.aw-counter { position: relative; display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; margin-left: 6px; font-size: 16px; letter-spacing: 0; font-weight: 400; }
.aw-counter-ico { width: 34px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(255,210,58,.75)); transition: transform .12s; }
.aw-counter:hover .aw-counter-ico, .aw-counter.open .aw-counter-ico { filter: drop-shadow(0 0 6px rgba(255,255,255,.55)) brightness(1.12); }
.aw-counter-n { font-size: 22px; font-weight: 900; color: #ffd23a; -webkit-text-fill-color: #ffd23a; -webkit-text-stroke: 2px #4a3300; paint-order: stroke fill; text-shadow: none; }
.aw-counter-pop { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; padding: 10px 14px; border-radius: var(--r); width: max-content; max-width: min(92vw, 520px); text-align: left; cursor: default; box-shadow: 0 10px 30px rgba(0,0,0,.7); color: #f6e4e6; -webkit-text-fill-color: currentColor; }
.aw-counter-pop[hidden] { display: none; }
.aw-counter-pop > strong { font-size: 14px; color: #ffd23a; text-transform: uppercase; letter-spacing: .5px; }
.aw-counter-grid { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 16px; }
.aw-counter .aw-gave { display: inline; }
.aw-counter-pop .aw-count img { width: 34px; height: 34px; }
.aw-counter-pop .aw-count b { font-size: 22px; }
.profile-name .aw-counter { -webkit-text-fill-color: initial; }
/* ---- streak: the fire ham in a small square (like the rep badge), the count next to it; click for what it means ---- */
.streak-box { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #ffd76a; vertical-align: middle; cursor: var(--hand); }
.streak-cube { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r); background: rgba(0,0,0,.45); border: 1px solid rgba(255,170,60,.65); box-shadow: 0 0 8px rgba(255,120,0,.35); overflow: hidden; transition: transform .12s; }
.streak-box:hover .streak-cube, .streak-box.open .streak-cube { filter: drop-shadow(0 0 6px rgba(255,255,255,.55)) brightness(1.12); }
.streak-box .streak-fire { width: 24px; height: 24px; object-fit: contain; font-size: 16px; line-height: 24px; }
.streak-box > b { font-size: 18px; font-weight: 900; color: #ffb43a; -webkit-text-stroke: 1px #3a1500; paint-order: stroke fill; }
.streak-box.cold { filter: grayscale(1); opacity: .75; }
.streak-box.cold .streak-cube { box-shadow: none; }
.streak-pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 60; display: grid; gap: 6px; width: min(300px, 86vw); padding: 10px 12px; border-radius: var(--r); text-align: left; font-size: 13px; font-weight: 400; line-height: 1.35; color: #f6e4e6; cursor: default; box-shadow: 0 10px 30px rgba(0,0,0,.7); white-space: normal; }
.streak-pop[hidden] { display: none; }
.streak-pop strong { font-size: 15px; color: #ffb43a; }
.streak-pop .streak-warn { color: #ffd76a; font-weight: 700; }
.pic-right .streak-pop { left: auto; right: 0; }
.head-center .streak-pop, .pic-top .streak-pop { left: 50%; transform: translateX(-50%); }
/* ---- your status: click it on your own profile to change it ---- */
.status-edit { cursor: var(--hand); border-radius: var(--r); padding: 1px 4px; margin-left: -4px; transition: background .15s; }
.status-edit:hover, .status-edit:focus-visible { background: rgba(255,255,255,.07); outline: none; }
.status-edit .ps-pen { opacity: 0; transition: opacity .15s; vertical-align: -2px; }
.status-edit:hover .ps-pen, .status-edit:focus-visible .ps-pen, .status-empty .ps-pen { opacity: .8; }
.status-empty .ps-text { opacity: .55; font-style: italic; }
.status-edit input.field { width: min(420px, 100%); font-style: normal; }
.status-edit .ps-err { display: block; font-size: 12px; color: #ff8080; font-style: normal; }
/* ---- profile comments: the button sits at the top right of the banner ---- */
.comments-btn-visitor { right: 14px; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
@media (max-width: 720px) { .comments-btn-visitor { position: static; margin: 0 0 8px; } }
.clantag-toggle { margin-left: 10px; font-size: 13px; }
/* ---- socials at the bottom of About me ---- */
.about-socials { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(var(--accent-rgb, 225,1,4), .35); }
.about-socials .socials { display: inline-flex; gap: 8px; }
/* ---- profile songs: ‹ › to switch between this profile's songs ---- */
.pm-arrow { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0 0 2px; border-radius: var(--r); border: 1px solid rgba(var(--accent-rgb, 225,1,4), .7); background: rgba(0,0,0,.45); color: #fff; font: 900 18px/1 sans-serif; cursor: var(--hand); vertical-align: middle; transition: transform .1s, background .15s; }
.pm-arrow:hover { background: rgba(var(--accent-rgb, 225,1,4), .45);  }
.pm-arrow:active { transform: scale(.94); }
#pmName { transition: opacity .15s; }
/* ---- gradient usernames: a text-shadow paints OVER a clipped gradient and turns the middle of the name black,
   so gradient names get a drop-shadow on the whole word instead (see name_color_css in lib.php) ---- */
.profile-name .pn-text { padding: 0 .06em; }
/* ---- video previews: the first-frame picture fills the tile like a photo ---- */
.mthumb img.vposter { width: 100%; height: 100%; object-fit: cover; display: block; }
/* ---- videos are never shown tiny: at least 480 px wide (or the full width when that's less), keeping their shape.
   Admins (or the uploader) can pick a bigger size: .vsized gets an exact width. ---- */
.random-media video, #lb-media video, .wiki-body video, .fig video, .result video { min-width: min(480px, 100%); height: auto; }
.random-media video.vsized, #lb-media video.vsized { max-width: 100%; max-height: none; height: auto; }
#lb-media video.vsized { max-height: 80vh; object-fit: contain; }
.vsize-row { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vsize-pick { width: auto; min-width: 0; padding-top: 3px; padding-bottom: 3px; }
.vsize-res.vsize-small { color: #ffcc33; font-weight: 700; }
.mod-vsize { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mod-vsize[hidden] { display: none; }
/* ---- waiting-for-approval previews that haven't loaded yet (5 videos + 16 pictures at a time) ---- */
.pend-media .pend-lazy { min-height: 120px; background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 10px, rgba(255,255,255,.08) 10px 20px); cursor: var(--hand); }
.pend-media img.pend-lazy { aspect-ratio: 4 / 3; }
.pend-load-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.pend-load-note[hidden] { display: none; }
/* ---- categories are required on uploads ---- */
.cat-field .cat-need { margin: 6px 0 0; }
.cat-shake { animation: catShake .35s; }
@keyframes catShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
/* ---- Daily Showcase: a video stretches to fill the whole left side ---- */
.showcase-body.has-video { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(200px, 1fr); align-items: start; }
.showcase-body.has-video .showcase-media { width: 100%; max-width: none; }
.showcase-body.has-video .showcase-media video { width: 100% !important; max-width: 100%; min-width: 0; height: auto; max-height: 62vh; object-fit: contain; }
.showcase-body.has-video .showcase-media .spoiler { display: block; }
@media (max-width: 700px) { .showcase-body.has-video { grid-template-columns: 1fr; } }
.showcase-info .fav-btn { margin: 2px 0; }
.lb-fav:empty { display: none; }
/* ---- chat messages: when it was sent sits right of the name ---- */
.dm-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.dm-head .dm-who { margin: 0; }
.dm-head .dm-time { font-size: 11px; white-space: nowrap; }
.dm.mine .dm-head .dm-who { color: #ffd0d5; }
/* ---- resizable mini chat (drag the top-right corner) ---- */
.mc-resize { position: absolute; top: 0; right: 0; z-index: 5; width: 14px; height: 14px; cursor: nesw-resize; touch-action: none; border-top-right-radius: 4px;
  background: linear-gradient(225deg, rgba(255,255,255,.55) 0 2px, transparent 2px 5px, rgba(255,255,255,.4) 5px 7px, transparent 7px 10px, rgba(255,255,255,.28) 10px 12px, transparent 12px); opacity: .55; transition: opacity .15s; }
.mc-resize:hover, .mc-resizing .mc-resize { opacity: 1; }
.minichat.mc-resizing { user-select: none; transition: none; }
html.mc-sized .mc-dock.beside { right: auto; left: calc(14px + var(--mcw) + 10px); }
@media (max-width: 600px) { .mc-resize { display: none; } }
.minichat .mc-head { padding-right: 20px; }
/* the trophy and streak boxes pop out below: let them hang over the panel's edge (and over the next panel) */
.panel.profile, .psec.rep-box { overflow: visible; z-index: 6; }
.panel.profile > .profile-banner { border-top-left-radius: 4px; border-top-right-radius: 4px; }
.vsize-row select.vsize-pick, .mod-vsize select { width: auto !important; flex: none; min-width: 150px; }
/* ===================== 2026-12 update #2 ===================== */
/* ---- hams: hovering never moves them, only the soft gradient behind them changes ---- */
.aw, .aw-trophy, .aw-counter { position: relative; padding: 3px 5px; border-radius: var(--r); background: transparent; transition: background .18s, box-shadow .18s; }
.aw:hover, .aw-trophy:hover, .aw-counter:hover, .aw-counter.open, .aw:focus-visible, .aw-trophy:focus-visible {  background: radial-gradient(ellipse at 50% 60%, var(--aw-glow, rgba(255,210,58,.45)) 0%, rgba(0,0,0,0) 72%), linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); outline: none; }
.aw-trophy, .aw-counter { --aw-glow: rgba(255,210,58,.45); }
.aw-trophy:hover img, .aw-counter:hover .aw-counter-ico, .aw-counter.open .aw-counter-ico { filter: drop-shadow(0 0 6px rgba(255,255,255,.55)) brightness(1.12); }
.aw-trophy img, .aw-counter-ico { transition: none; }
/* the trophy sits a bit further from the name */
.profile-name .aw-counter { margin-left: 16px; }
/* ---- streak: fire ham + day count inside the same small box ---- */
.streak-cube { width: auto; min-width: 28px; height: 28px; display: inline-flex; align-items: center; gap: 3px; padding: 0 7px 0 3px; }
.streak-cube b { font-size: 16px; font-weight: 900; line-height: 1; color: #ffb43a; -webkit-text-stroke: 1px #3a1500; paint-order: stroke fill; }
/* ---- LVL X: underlined, click for their rep ---- */
.lvl-btn { position: relative; display: inline-block; font-weight: 900; font-size: 18px; letter-spacing: .5px; color: #ffd76a; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: var(--hand); vertical-align: middle; }
.lvl-btn:hover, .lvl-btn.open { color: #fff1b8; }
.lvl-pop, .more-pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 60; display: grid; gap: 5px; width: max-content; min-width: 200px; max-width: min(320px, 86vw); padding: 10px 12px; border-radius: var(--r); text-align: left; font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.35; color: #f6e4e6; text-decoration: none; cursor: default; box-shadow: 0 10px 30px rgba(0,0,0,.7); white-space: normal; }
.lvl-pop[hidden], .more-pop[hidden] { display: none; }
.lvl-pop strong { font-size: 20px; color: #ffd76a; }
.lvl-bar { display: block; height: 6px; border-radius: var(--r); background: rgba(255,255,255,.12); overflow: hidden; }
.lvl-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb43a, #ffd76a); }
.head-center .lvl-pop, .head-center .more-pop, .head-center .streak-pop { left: 50%; transform: translateX(-50%); }
/* ---- "more": everything else about them in a little box ---- */
.more-btn { position: relative; display: inline-block; color: #f1d6da; text-decoration: underline; text-underline-offset: 3px; cursor: var(--hand); }
.more-btn:hover, .more-btn.open { color: #fff; }
.more-pop b { color: #fff; }
/* while a box is open, its panel goes above the movable images */
/* (no raising panels here: the movable images always stay on top, even over these boxes) */
/* ---- blog: small button at the top left of the banner ---- */
.blog-corner { position: absolute; top: 14px; left: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; font-size: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
@media (max-width: 720px) { .blog-corner { position: static; margin: 0 0 8px; } }
/* ---- profile picture: hover it to change it ---- */
.pfp-wrap.pfp-mine { position: relative; }
.pfp-hover { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 0; border: 0; border-radius: inherit; background: rgba(0,0,0,.55); color: #fff; font: 700 14px/1 inherit; opacity: 0; cursor: var(--hand); transition: opacity .15s; }
.pfp-hover span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: var(--r); background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.35); }
.pfp-mine:hover .pfp-hover, .pfp-hover:focus-visible { opacity: 1; outline: none; }
@media (hover: none) { .pfp-hover { opacity: .0; } .pfp-mine:active .pfp-hover { opacity: 1; } }
.pfp-change > summary { display: none; }
.pfp-change[open] { margin-top: 8px; }
/* ---- clan options: a little ▾ only you see ---- */
.clan-drop { position: relative; display: inline-block; margin-left: 6px; vertical-align: middle; }
.clan-drop > summary { list-style: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: var(--r); border: 1px solid rgba(var(--accent-rgb, 225,1,4), .7); background: rgba(0,0,0,.45); color: #fff; font-size: 12px; cursor: var(--hand); }
.clan-drop > summary::-webkit-details-marker { display: none; }
.clan-drop[open] > summary { background: rgba(var(--accent-rgb, 225,1,4), .45); }
.clan-drop-box { position: absolute; left: 0; top: calc(100% + 6px); z-index: 60; width: max-content; padding: 8px 10px; border-radius: var(--r); box-shadow: 0 10px 30px rgba(0,0,0,.7); }
.clan-drop-box .clantag-toggle { margin: 0; }
/* ---- movable images: above everything on the page (overlapping ones stack in a random order each visit) ---- */
.sticker.has-snd { pointer-events: auto; cursor: var(--hand); }
.stk-edit .sticker { pointer-events: auto; }
.sticker.stk-pop img { animation: stkPop .25s ease-out; }
@keyframes stkPop { 40% { transform: scale(1.06); } }
.lightbox { z-index: 65; }
/* click-sound picker in Customize */
.stk-snd-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(255,255,255,.15); }
.stk-snd-title { flex-basis: 100%; display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 13px; }
.stk-snd-cur, .stk-snd-new { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.stk-snd-play.playing { box-shadow: 0 0 0 2px #46e88a inset; }
.stk-snd-file { cursor: var(--hand); }
.stk-snd-note { flex-basis: 100%; }
.stk-snd-cut { color: #ffcc33; font-weight: 700; }
/* ---- the song name on profiles shrinks to fit instead of pushing things onto a new line ---- */
.pm-bar { flex-wrap: nowrap; min-width: 0; max-width: 100%; }
.pm-bar #pmName { display: inline-block; min-width: 3ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; flex: 0 1 auto; }
.pm-bar > * { flex-shrink: 0; }
.pm-bar > #pmName { flex-shrink: 1; }
.sticker-bar .pm-bar { flex: 0 1 auto; }
/* ---- comments: pictures/videos are small thumbnails on the left, text wraps around them; click to see it big ---- */
.chan-body::after { content: ""; display: block; clear: both; }
.chan-body .post-embeds { display: contents; }
.chan-body .chan-thumb { float: left; clear: left; display: block; width: auto !important; max-width: 200px; margin: 3px 14px 8px 0; }
.chan-body .chan-thumb img { display: block; width: auto; height: auto; max-width: 200px; max-height: 200px; border-radius: var(--r); cursor: zoom-in; }
.chan-body .chan-thumb video { display: block; width: 250px; max-width: 100%; min-width: 0; max-height: 200px; }
.chan-body .chan-thumb.chan-big { float: none; max-width: 100%; margin-right: 0; }
.chan-body .chan-thumb.chan-big img { max-width: 100%; max-height: 85vh; cursor: zoom-out; }
.chan-body .chan-thumb.chan-big video { width: auto; max-width: 100%; max-height: 80vh; }
.chan-body .chan-thumb .figcap { display: none; }
.chan-body > p:first-child, .chan-body .chan-thumb + p { margin-top: 0; }
/* ---- hamons: your profile changes only live in this browser until you pick a username ---- */
.hamon-draft-note { position: relative; z-index: 6; display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 10px 14px; border-radius: var(--r); border: 1px solid rgba(255,204,51,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.45); }
.hamon-draft-note img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.hamon-draft-note > div { display: grid; gap: 3px; flex: 1; font-size: 14px; }
.hamon-draft-note strong { color: #ffcc33; }
.hamon-draft-note .btn { flex: none; }
@media (max-width: 600px) { .hamon-draft-note { flex-wrap: wrap; } }
/* ---- gallery tiles: all six hams fit on one line (smaller there, full size everywhere else) ---- */
.tile .awards:not(.compact) { flex-wrap: nowrap; gap: 0; justify-content: space-between; margin: 8px 0 4px; }
.tile .awards:not(.compact) .aw { flex: 0 1 auto; min-width: 0; gap: 1px; padding: 2px 3px; }
.tile .awards:not(.compact) .aw img { width: 22px; height: 22px; flex: none; }
.tile .awards:not(.compact) .aw b { font-size: 14px; -webkit-text-stroke-width: 1.5px; }
/* ---- on profiles: the trophy, then the hams this post actually got (with their counts) right of it ---- */
.awards.compact .aw:not(.none) { display: inline-flex; }
.awards.compact { gap: 6px; }

/* ---- hovering never moves, turns or grows anything: it only glows ---- */
.cog-btn svg, .cog-btn .set-ico { transition: filter .15s; }
.cog-btn:hover svg, .cog-btn:hover .set-ico { transform: none !important; filter: drop-shadow(0 0 5px rgba(255,255,255,.8)) brightness(1.25); }
.tile:hover, .wiki-card:hover, .door:hover, a.recent-item:hover { transform: none !important; }
/* CIA: every admin who isn't one of the two CEOs */
.admin-badge.staff-cia { background: linear-gradient(#3b4250, #1b1f27) !important; color: #e8eef8 !important; -webkit-text-fill-color: #e8eef8 !important; border-color: #8a96aa !important; letter-spacing: .5px; padding: 0 4px; }
/* ---- Settings → Site color ---- */
.site-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.site-swatch { display: grid; justify-items: center; gap: 3px; cursor: var(--hand); }
.site-swatch input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.site-swatch span, .site-swatch input[type=color] { display: block; width: 40px; height: 40px; padding: 0; border: 2px solid rgba(255,255,255,.25); border-radius: var(--r); background: none; cursor: var(--hand); }
.site-swatch input[type=radio]:checked + span, .site-swatch input[type=radio]:checked + input[type=color] { border-color: #fff; box-shadow: 0 0 0 2px #000, 0 0 10px rgba(255,255,255,.6); }
.site-swatch small { font-size: 11px; opacity: .8; text-transform: capitalize; }
/* ---- popups that people open are always on top of everything (lifted out to <body> while open, site.js) ---- */
.jh-lifted { position: fixed !important; z-index: 85 !important; transform: none !important; margin: 0 !important; }
.jh-lifted, .jh-pop, .aw-pop, .aw-picker { background: linear-gradient(180deg, rgba(var(--accent-rgb, 225,1,4), .22), rgba(var(--accent-rgb, 225,1,4), .06) 60%), #120809 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 1px solid rgba(var(--accent-rgb, 225,1,4), .65) !important; box-shadow: 0 12px 34px rgba(0,0,0,.8) !important; color: #f6e4e6; }
.jh-lifted::before, .jh-pop::before, .aw-pop::before, .aw-picker::before { display: none !important; }
.aw-pop, .aw-picker { z-index: 3000 !important; }
/* ---- your profile's top buttons: Movable images ▾, Hamon view ON/OFF (i), My songs ---- */
.stk-menu { position: relative; display: inline-block; }
.stk-menu > summary { list-style: none; }
.stk-menu > summary::-webkit-details-marker { display: none; }
.stk-menu-box { display: grid; gap: 2px; min-width: 190px; padding: 6px; border-radius: var(--r); }
.stk-menu:not([open]) .stk-menu-box:not(.jh-lifted) { display: none; }
.stk-menu-item { display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: var(--r); background: none; color: #f6e4e6; font: inherit; font-size: 13px; text-align: left; cursor: var(--hand); }
.stk-menu-item:hover { background: rgba(var(--accent-rgb, 225,1,4), .35); color: #fff; }
.hv-wrap { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.hv-toggle { background: linear-gradient(#ff6b6b, #b00010) !important; border-color: #4a0006 !important; color: #fff !important; }
.hv-toggle.hv-on { background: linear-gradient(#6be38a, #12963a) !important; border-color: #053d1c !important; }
.hv-toggle .hv-state { letter-spacing: .5px; }
.hv-info { display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.5); color: #fff; font: italic 700 12px/1 Georgia, serif; cursor: var(--hand); }
.hv-info:hover { box-shadow: 0 0 8px rgba(255,255,255,.6); }
.hv-tip { position: absolute; top: calc(100% + 6px); right: 0; z-index: 85; width: max-content; max-width: 240px; padding: 8px 10px; border-radius: var(--r); font-size: 13px; }
.hv-tip[hidden] { display: none; }
/* hamon view: everything only the owner sees disappears; what visitors see shows up (not clickable for you) */
.ptheme.hamon-view .owner-only { display: none !important; }
.ptheme:not(.hamon-view) .visitor-only { display: none !important; }
.ptheme .visitor-only[inert] { pointer-events: none; }
/* "My songs" box */
.pm-mine-pop { position: fixed; z-index: 85; display: grid; gap: 8px; width: min(320px, 92vw); padding: 10px 12px; border-radius: var(--r); font-size: 13px; }
.pm-mine-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.pm-mine-list li { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.pm-mine-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-mine-add { justify-self: start; cursor: var(--hand); }
.pm-mine-add.disabled { opacity: .5; pointer-events: none; }
.hv-toggle .hv-state { margin-left: 5px; }
/* ---- the bar above a profile stays ONE line: song · Movable images · Hamon view. When it's tight, the song name
   shrinks (smaller text, then "…") instead of anything wrapping ---- */
.sticker-bar { flex-wrap: nowrap !important; min-width: 0; }
.sticker-bar > * { flex-shrink: 0; }
.sticker-bar > .pm-bar { flex: 0 1 auto; min-width: 0; overflow: hidden; }
.pm-bar { flex-wrap: nowrap !important; }
.pm-bar > #pmName { flex: 0 1 auto; min-width: 2ch; }
.about-jump { color: #f1d6da; text-decoration: underline; text-underline-offset: 3px; }
.about-jump:hover { color: #fff; text-shadow: 0 0 6px rgba(255,255,255,.6); }
.hv-tip.jh-lifted { right: auto; }
.pfp-change-box { display: grid; gap: 8px; width: min(340px, 92vw); padding: 10px; border-radius: var(--r); }
.pfp-change-box.jh-lifted { max-height: calc(100vh - 20px); overflow: auto; }
/* hamon view = exactly what any other visitor sees: no admin boxes, no edit/delete on comments either */
.ptheme.hamon-view .admin-tools, .ptheme.hamon-view .mod-box, .ptheme.hamon-view .own-tool { display: none !important; }
/* ---- wiki front page: one row per category (5 previews), "See all" opens it 10 at a time ---- */
.wiki-row { margin: 18px 0 8px; }
.wiki-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.wiki-row-name { margin: 0; font-size: 19px; }
.wiki-row:not(.open) .wiki-row-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: auto; }
.wiki-row:not(.open) .wiki-row-cards > :nth-child(n+6) { display: none; }
.wiki-row.open .wiki-row-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wiki-row-more { display: flex; justify-content: center; margin-top: 12px; }
.wiki-row-more[hidden] { display: none; }
@media (max-width: 820px) { .wiki-row:not(.open) .wiki-row-cards, .wiki-row.open .wiki-row-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .wiki-row:not(.open) .wiki-row-cards > :nth-child(n+4) { display: none; } }
@media (max-width: 520px) { .wiki-row:not(.open) .wiki-row-cards, .wiki-row.open .wiki-row-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wiki-row:not(.open) .wiki-row-cards > :nth-child(n+3) { display: none; } }
.wiki-cat-admin { margin-top: 22px; }
.wiki-cat-edit { display: grid; gap: 8px; margin: 10px 0; padding: 10px; border: 0; }
.wiki-cat-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wiki-cat-top .field { width: auto; min-width: 220px; }
.wiki-cat-top .wc-order { min-width: 0; width: 70px; }
.wiki-cat-pages { display: flex; flex-wrap: wrap; gap: 4px 14px; max-height: 180px; overflow: auto; }

/* ---- phones: nothing wider than the screen ---- */
.jh-lifted { max-width: calc(100vw - 16px); }
.sound-box > *, .upform > *, .wiki-form > * { min-width: 0; max-width: 100%; }
.field { max-width: 100%; }
.poll-make .field { width: 100%; box-sizing: border-box; margin-top: 6px; }
@media (max-width: 600px) {
  .notif-table { display: block; overflow-x: auto; max-width: 100%; }
  .wiki-form .wiki-actions { position: sticky; bottom: 8px; z-index: 5; }
}

/* the ham awards trophy is red now: red glow to match */
.aw-trophy, .aw-counter { --aw-glow: rgba(255,70,70,.4); }
.aw-trophy img { filter: drop-shadow(0 0 5px rgba(255,60,60,.6)); }
.aw-counter-ico { filter: drop-shadow(0 0 6px rgba(255,60,60,.65)); }
.aw-trophy.on img { filter: drop-shadow(0 0 8px rgba(255,70,70,.95)) drop-shadow(0 0 2px #fff); }
.aw-trophy:hover img, .aw-counter:hover .aw-counter-ico, .aw-counter.open .aw-counter-ico { filter: drop-shadow(0 0 6px rgba(255,255,255,.55)) brightness(1.12); }

/* own profile: customize = pen, comments = chat bubble, small icon buttons */
.icon-btn { padding: 5px 7px; min-width: 0; line-height: 0; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn .silk { width: 16px; height: 16px; margin: 0; }
.customize-btn.icon-btn { top: 14px; right: 14px; }
.comments-btn.icon-btn { top: 14px; right: 56px; }
@media (max-width: 720px) { .comments-btn.icon-btn, .customize-btn.icon-btn { position: absolute; margin: 0; } }
