:root {
  --page: #08070a; --panel: #141118; --text: #ece6f0; --link: #ff4fa3; --head: #b8186a; --title: #ffffff;
  --on-link: #14000b; --on-head: #ffffff;
  --pat: radial-gradient(circle, rgba(255,79,163,.2) 1px, transparent 1.6px); --pat-size: 16px 16px; --pat-pos: 0 0;
  --panel2: color-mix(in srgb, var(--panel) 90%, var(--text));
  --sunk: color-mix(in srgb, var(--panel) 94%, var(--text));
  --line: color-mix(in srgb, var(--panel) 78%, var(--text));
  --mute: color-mix(in srgb, var(--text) 60%, var(--panel));
  --f: Tahoma, Verdana, "Segoe UI", Geneva, sans-serif;
  --f-read: Verdana, Tahoma, "Segoe UI", Geneva, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font: 13px/1.5 var(--f); color: var(--text);
  background-color: var(--page); background-image: var(--pat); background-size: var(--pat-size); background-position: var(--pat-pos);
  transition: background-color .25s;
}
a { color: var(--link); }
#app { max-width: 1020px; margin: 0 auto; padding: 0 0 40px; }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 14px 12px; border-bottom: 2px solid var(--link);
  background: color-mix(in srgb, var(--panel) 60%, transparent); }
.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; flex: none; }
.logo .glitter { font: italic bold 40px/0.95 Georgia, "Times New Roman", serif; letter-spacing: -1px; }
.logo .dname { font: bold 22px/1.15 Georgia, serif; color: var(--title); max-width: 320px; text-align: center; }
.logo .dsub { font-size: 11px; color: var(--mute); text-align: center; }
.logo small { color: var(--mute); font-size: 11px; margin-top: 4px; }
.glitter {
  background: linear-gradient(100deg, var(--link) 0%, #fff 18%, var(--link) 30%, #9b5cff 55%, #fff 70%, var(--link) 85%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: glit 4s linear infinite;
}
@keyframes glit { to { background-position: -300% 0; } }
.menu { flex: 1; min-width: 240px; margin: 0; padding: 8px 10px; list-style: none; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1px 10px; font-size: 11px;
  background: color-mix(in srgb, var(--panel) 85%, transparent); border: 1px solid var(--line); border-radius: 8px; }
.menu li::before { content: "• "; color: var(--mute); }
.nyi-msg { width: 100%; padding: 6px 10px; border: 1px dashed var(--line); color: var(--mute); font-size: 12px; }

.nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  padding: 6px 8px 0; background: var(--panel); border-bottom: 1px solid var(--link); }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; padding: 6px 12px 5px; background: var(--panel2); border: 1px solid var(--line); border-bottom: 0;
  color: var(--mute); font-size: 12px; font-weight: bold; text-decoration: none; }
.nav a.on { background: var(--link); color: var(--on-link); border-color: var(--link); }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; padding: 12px; }
.main, .side { min-width: 0; }

.blk { background: var(--panel); border: 1px solid var(--line); margin-bottom: 12px; }
.blk > h3 { margin: 0; padding: 4px 10px; background: var(--head); color: var(--on-head); font-size: 12px; }
.blk > .in { padding: 8px 10px; }
.day { margin: 14px 0 6px; font-weight: bold; color: var(--title); font-size: 13px; }
.day:first-child { margin-top: 0; }

.post { background: var(--panel); border: 1px solid var(--line); margin-bottom: 12px; }
.post.fresh { animation: fresh 2.2s ease-out; }
@keyframes fresh { 0% { box-shadow: 0 0 0 2px var(--link); opacity: .2; } 30% { opacity: 1; } 100% { box-shadow: 0 0 0 0 transparent; } }
.post .ph { display: flex; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ava { flex: none; width: 52px; height: 75px; object-fit: cover; border: 1px solid var(--line); display: grid; place-items: center;
  font: bold 22px Georgia, serif; color: #fff; background: #333; text-decoration: none; }
.ava.s { width: 32px; height: 46px; font-size: 14px; }
.avacol { flex: none; width: 80px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.avacol.s { width: 56px; }
.avacol .ava { width: 80px; height: 115px; }
.avacol.s .ava { width: 40px; height: 57px; }
.ustat { width: 100%; font-size: 10px; line-height: 1.25; color: var(--mute); text-align: center; word-wrap: break-word; }
.ph .who { min-width: 0; flex: 1; }
.ph .nick { font-weight: bold; word-break: break-all; }
.ph .tm { color: var(--mute); font-size: 11px; }
.ph .ttl { font: bold 15px/1.3 var(--f-read); color: var(--title); margin-top: 2px; word-wrap: break-word; }
.new { display: inline-block; margin-left: 6px; padding: 0 5px; background: var(--link); color: var(--on-link); font-size: 10px; font-weight: bold; }
.post .body { padding: 10px 12px; font: 13px/1.6 var(--f-read); white-space: pre-wrap; word-wrap: break-word; }
.post .body img { display: block; max-width: 100%; margin: 8px 0; }
.imgtodo { margin: 8px 0; padding: 18px 12px; border: 2px dashed var(--line); color: var(--mute); font: italic 12px var(--f); white-space: normal; }
.post .meta { padding: 0 12px 8px; font-size: 12px; color: var(--mute); }
.post .meta b { color: var(--text); font-weight: normal; }
.post .foot2 { padding: 5px 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--mute); background: var(--sunk); }
.post .foot2 a { color: var(--link); }
.post.deleted .body { color: var(--mute); font-style: italic; }
.post.pin { border: 2px solid var(--link); }
.post.notice { border: 2px solid #d8a400; background: #fff6cf; color: #2b2100; }
.post.notice .ntclbl { padding: 3px 10px; background: #d8a400; color: #1d1600; font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: .5px; }
.post.notice .body { color: #2b2100; }
.post.notice .nick, .post.notice .ttl a, .post.notice a { color: #9a2500; }
.post.notice .tm, .post.notice .meta { color: #6d5d2a; }
.post.notice .foot2 { background: #f4e7ad; border-top-color: #e2cd72; color: #6d5d2a; }
.post.pin .pinlbl { padding: 3px 10px; background: var(--link); color: var(--on-link); font-size: 11px; font-weight: bold; }
.kbtn { display: inline-block; margin-top: 6px; padding: 8px 16px; background: var(--link); color: var(--on-link); font-weight: bold; text-decoration: none; border: 1px solid #000; }
.inline-msg { margin-top: 6px; padding: 6px 10px; border: 1px dashed var(--line); color: var(--mute); font-size: 12px; }

.cmt { display: flex; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); }
.cmt .c { min-width: 0; flex: 1; }
.cmt .re { color: var(--mute); font-size: 11px; }
.cmt .x { margin-top: 3px; font: 13px/1.5 var(--f-read); white-space: pre-wrap; word-wrap: break-word; }
.cmt.fresh { animation: fresh 2.2s ease-out; }

.who-l { margin: 0; padding: 0; list-style: none; font-size: 11px; }
.who-l li { padding: 4px 0; border-bottom: 1px dotted var(--line); }
.who-l li:last-child { border-bottom: 0; }
.who-l .t { color: var(--mute); }
.onl { display: flex; flex-wrap: wrap; gap: 6px; }
.onl a { font-size: 11px; }
.prof dt { color: var(--mute); font-size: 11px; margin-top: 6px; }
.prof dd { margin: 0; }
.status-on { color: #3c3; font-weight: bold; }
.more { display: block; width: 100%; padding: 8px; background: var(--panel2); border: 1px solid var(--line); color: var(--link); font: bold 12px var(--f); cursor: pointer; }

.ppl { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ppl .pp { display: flex; gap: 8px; align-items: center; padding: 6px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; }
.ppl small { display: block; color: var(--mute); }

.foot { text-align: center; color: var(--mute); font-size: 11px; padding: 10px; }

@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr; padding: 8px; }
  .menu { display: none; }
  .top { justify-content: center; }
  .logo .glitter { font-size: 34px; }
  .side { order: 2; }
  .avacol { width: 64px; }
  .avacol .ava { width: 64px; height: 92px; }

}
.body .cut{display:block;margin-top:8px;font-weight:bold}
.newbar { display: block; width: 100%; margin: 0 0 10px; padding: 9px; background: var(--link); border: 0; color: var(--page, #000); font: bold 12px var(--f); cursor: pointer; }
.newbar:hover { filter: brightness(1.15); }
.pager { margin: 12px 0; padding: 8px 10px; background: var(--panel2); border: 1px solid var(--line); font: 12px var(--f); text-align: center; word-spacing: 4px; }
.pager b { color: var(--text); }

.mute { color: var(--mute); font-size: 11px; }
.crumb { margin: 0 0 8px; font-size: 11px; color: var(--mute); }
.dhead { margin: 0 0 10px; font: 17px/1.3 var(--f-read); color: var(--title); }
.dhead small { display: block; font-size: 13px; color: var(--mute); }
.post.locked .body.lockd { color: var(--mute); font: italic 12px var(--f); }
.cmt .num { color: var(--mute); font-size: 11px; }
.cmt .sign { color: var(--mute); font: italic 10px/1.3 var(--f); margin-top: 1px; }
.pn { display: flex; justify-content: space-between; gap: 10px; margin: -4px 0 12px; font-size: 11px; }
.pn a { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-stat { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 12px; }
.crowd { color: var(--mute); font-size: 11px; }
.top-l, .rd-l, .lc-l { margin: 0; padding: 0; list-style: none; font-size: 11px; }
.top-l li, .rd-l li, .lc-l li { padding: 3px 0; border-bottom: 1px dotted var(--line); word-wrap: break-word; }
.top-l li:last-child, .rd-l li:last-child, .lc-l li:last-child { border-bottom: 0; }
.rd-l .t { color: var(--mute); font-size: 10px; }
.lc-l div { color: var(--mute); }
.cnt { float: right; color: var(--mute); font-weight: normal; }
.rate { margin: 0 0 6px; padding-left: 20px; font-size: 12px; }
.rate li { padding: 2px 0; }
.rate li > span { display: inline-block; vertical-align: top; }
.rate li .ava { display: inline-grid; margin-right: 6px; vertical-align: top; }
.rate small { display: block; font-size: 10px; }
.poll .opt { position: relative; margin: 4px 0; padding: 2px 34px 2px 4px; font-size: 11px; border: 1px solid var(--line); overflow: hidden; }
.poll .opt i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--link); opacity: .25; }
.poll .opt span { position: relative; }
.poll .opt em { position: absolute; right: 4px; top: 2px; font-style: normal; color: var(--mute); }
.poll small { display: block; color: var(--mute); margin-top: 4px; }
.dlinks { margin: 8px 0; font-size: 11px; line-height: 1.7; }
.dsearch { display: flex; gap: 2px; margin: 6px 0; }
.dsearch input { flex: 1; min-width: 0; padding: 2px 4px; font: 11px var(--f); background: var(--sunk); color: var(--text); border: 1px solid var(--line); }
.dsearch button, .arch { padding: 2px 6px; font: 11px var(--f); background: var(--panel2); color: var(--text); border: 1px solid var(--line); cursor: pointer; }
.arch { width: 100%; }
.gifts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.gift { min-width: 70px; max-width: 110px; padding: 6px; text-align: center; border: 1px dashed var(--line); background: var(--sunk); font-size: 11px; }
.gift b { display: block; color: var(--title); font-weight: normal; font-style: italic; }
.gift small { display: block; font-size: 10px; color: var(--mute); }
.pinfo { display: flex; gap: 12px; align-items: flex-start; }
.pinfo table { border-collapse: collapse; font-size: 12px; }
.pinfo th { text-align: left; vertical-align: top; padding: 2px 10px 2px 0; color: var(--mute); font-weight: normal; white-space: nowrap; }
.pinfo td { padding: 2px 0; word-break: break-word; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comm-row { border-top: 1px solid var(--line); }
.comm-row:first-of-type { border-top: 0; }
.comm-row small { color: var(--mute); }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } .pinfo { flex-direction: column; } .pinfo th { white-space: normal; } }
.greet .in { font-size: 12px; }
.greet b { color: var(--title); }
.who-mini { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.forum-l { margin: 0; padding-left: 16px; font-size: 12px; line-height: 1.7; }
.tags { line-height: 1.9; }
.tags div { margin-top: 4px; font-size: 11px; }

img.ava { height: auto !important; max-height: 200px; object-fit: contain; }
.post .body img { max-width: min(100%, 480px); height: auto; }

.pics { display: flex; flex-wrap: wrap; gap: 4px; align-items: flex-start; margin-top: 6px; }
.pics img, .b7 .b7-x .pics img { display: inline-block; margin: 0; max-width: min(100%, 480px); height: auto; }

.b7 .b7-x img, .x img, .pics img { cursor: zoom-in; }
.b7 .b7-x img.zoom, .x img.zoom, .pics img.zoom, .b7 .b7-x .pics img.zoom { display: block; width: 100%; max-width: 100%; height: auto; margin: 6px 0; cursor: zoom-out; image-rendering: auto; }

.ppl .pp > span { min-width: 0; }
.ppl .pp a { overflow-wrap: anywhere; word-break: break-word; }

.fl { width: 16px; height: 16px; margin-left: 3px; vertical-align: -3px; }
.nb { white-space: nowrap; }

.tl-cats { font-size: 11px; line-height: 1.9; }
.tl-cats a { margin-right: 6px; text-decoration: none; white-space: nowrap; }
.tl-cats a.on { background: var(--link); color: var(--on-link); padding: 0 4px; }
.tlist { width: 100%; border-collapse: collapse; font-size: 12px; }
.tlist td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tlist .tt { font-weight: bold; font-size: 13px; }
.tlist .mute, .mute { color: var(--mute); font-size: 11px; }
.tlist.horo td { font: 13px/1.5 var(--f-read); }
.tlist.horo .hs { width: 96px; font-size: 12px; white-space: nowrap; }
.tq { margin: 0 0 14px; }
.tq b { display: block; margin-bottom: 4px; }
.tq label { display: block; padding: 5px 4px; cursor: pointer; border-radius: 3px; }
.tq label:hover { background: var(--sunk); }
.tq input { margin-right: 6px; vertical-align: -2px; }
.tq.miss b { color: var(--link); }
.tbtn { font: bold 12px Verdana, Tahoma, sans-serif; padding: 7px 14px; background: var(--link); color: var(--on-link); border: 0; cursor: pointer; }
.tbtn.ghost { background: var(--panel2); color: var(--text); border: 1px solid var(--line); font-weight: normal; }
.tres { border: 2px solid var(--link); padding: 12px; margin: 4px 0 12px; background: var(--sunk); }
.tres .rt { font: bold 22px/1.2 Georgia, serif; color: var(--title); margin: 4px 0 6px; }
.tres .rd { font: 14px/1.5 var(--f-read); }
.tcode { width: 100%; box-sizing: border-box; height: 74px; font: 11px monospace; background: var(--panel); color: var(--text); border: 1px solid var(--line); resize: vertical; }
.stubmsg { margin-top: 6px; padding: 6px 8px; border: 1px dashed var(--line); color: var(--mute); font-size: 12px; }

.top { position: relative; }
.langsw { position: absolute; top: 4px; right: 6px; z-index: 6; padding: 1px 6px; font: bold 10px Verdana, Tahoma, sans-serif; text-decoration: none;
  color: var(--link); background: var(--panel); border: 1px solid var(--line); }
.tosite { right: 36px; }
.tosite[hidden] { display: none; }
.langsw:hover { background: var(--link); color: var(--on-link); }

.mp3 { display: flex; align-items: center; gap: 6px; max-width: 300px; margin: 10px 0 4px; padding: 3px 7px 3px 3px; box-sizing: border-box;
  border: 1px solid #8a8a8a; border-radius: 3px; background: linear-gradient(#fbfbfb, #dcdcdc); color: #222;
  font: 10px/1.25 Tahoma, Verdana, Geneva, sans-serif; text-align: left; white-space: normal; }
.mp3-b { position: relative; flex: none; width: 22px; height: 22px; padding: 0; margin: 0; border: 1px solid #727272; border-radius: 2px;
  background: linear-gradient(#ffffff, #c9c9c9); cursor: pointer; }
.mp3-b:active { background: linear-gradient(#c9c9c9, #f2f2f2); }
.mp3-b::before { content: ''; position: absolute; left: 50%; top: 50%; margin: -5px 0 0 -2px; border-left: 7px solid #333; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.mp3.on .mp3-b::before { margin: -5px 0 0 -4px; width: 2px; height: 10px; border: 0; border-left: 3px solid #333; border-right: 3px solid #333; box-sizing: content-box; }
.mp3-m { flex: 1; min-width: 0; }
.mp3-n { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-bottom: 3px; }
.mp3-bar { position: relative; height: 5px; border: 1px solid #9b9b9b; background: #f6f6f6; cursor: pointer; }
.mp3-bar::after { content: ''; position: absolute; left: 0; right: 0; top: -7px; bottom: -7px; }
.mp3-bar s { display: block; width: 0; height: 100%; background: linear-gradient(#7d9cc0, #4d6f96); text-decoration: none; }
.mp3-tm { flex: none; min-width: 26px; text-align: right; color: #444; font-variant-numeric: tabular-nums; }
@media (pointer: coarse) { .mp3 { padding: 4px 8px 4px 4px; } .mp3-b { width: 30px; height: 30px; } .mp3-n { font-size: 11px; } }

img.smi, .b7 .b7-x img.smi, .post .body img.smi, .x img.smi { display: inline; width: 15px; height: 15px; max-width: none; margin: 0 1px; vertical-align: -3px; border: 0; cursor: default; }
