/* =========================================================================
   Josh's Blog — early-2000s personal blog look
   Dark template (think Blogger "Minima Black" meets a Winamp skin),
   Windows 2000 pop-ups, an AIM-style messenger and pixel GIFs.
   ========================================================================= */
@font-face { font-family: "Silkscreen"; src: url(fonts/silkscreen-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url(fonts/silkscreen-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
/* Impact where it's installed (Mac/Windows); Anton, a free look-alike, everywhere else */
@font-face { font-family: "Impact Web"; src: local("Impact"), url(fonts/anton-400.woff2) format("woff2"); font-display: swap; }

:root {
  --bg: #000000; --frame: #000033; --panel: #000000; --panel2: #003366; --line: #333366; --line2: #336699;
  --text: #cccccc; --text2: #9999cc; --muted: #999999;
  --accent: #3399ff; --accent2: #99ccff; --link: #66ccff; --hover: #ffffff;
  --software: #33cccc; --art: #ff6666; --music: #99cc33;
  --gray: #cccccc;
  --raised: inset -1px -1px #000000, inset 1px 1px #fff, inset -2px -2px #999999, inset 2px 2px #ffffff;
  --pressed: inset 1px 1px #000000, inset -1px -1px #fff, inset 2px 2px #999999, inset -2px -2px #ffffff;
  --sunken: inset -1px -1px #fff, inset 1px 1px #999999, inset -2px -2px #ffffff, inset 2px 2px #000000;
  --title: "Impact Web", Impact, sans-serif;
  --head: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  --ui: Tahoma, Verdana, Geneva, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg) url(img/bg-stars.gif); color: var(--text); font: 12px/1.5 Verdana, Geneva, Tahoma, sans-serif; min-height: 100vh; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--hover); text-decoration: underline; }
img { border: 0; }
button { font-family: inherit; cursor: pointer; }
button:disabled { opacity: 0.6; cursor: default; }
ul { list-style: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 10px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.clickable { cursor: pointer; }
.grow { flex: 1; min-width: 0; }

/* ---------- Pixel icons (4-frame sprites that play on hover) ---------- */
.pix { display: inline-block; width: 16px; height: 16px; background-repeat: no-repeat; background-position: 0 0;
  image-rendering: pixelated; vertical-align: -3px; flex-shrink: 0; }
.pix-feed { background-image: url(img/i-feed.png); } .pix-software { background-image: url(img/i-software.png); }
.pix-art { background-image: url(img/i-art.png); } .pix-music { background-image: url(img/i-music.png); }
.pix-youtube { background-image: url(img/i-youtube.png); } .pix-chats { background-image: url(img/i-chats.png); }
.pix-friends { background-image: url(img/i-friends.png); } .pix-profile { background-image: url(img/i-profile.png); }
.pix-settings { background-image: url(img/i-settings.png); } .pix-mod { background-image: url(img/i-mod.png); }
.pix-rules { background-image: url(img/i-rules.png); } .pix-card { background-image: url(img/i-card.png); }
.pix-logout { background-image: url(img/i-logout.png); } .pix-login { background-image: url(img/i-login.png); }
.pix-old { background-image: url(img/i-old.png); } .pix-acting { background-image: url(img/i-acting.png); } .pix-link { background-image: url(img/i-link.png); } .pix-pin { background-image: url(img/i-pin.png); }
a:hover .pix, button:hover .pix, label:hover .pix, .tab.on .pix, .lb.on .pix { animation: pix4 0.6s steps(4) infinite; }
@keyframes pix4 { from { background-position: 0 0; } to { background-position: -64px 0; } }
.sprite-still { width: 16px; height: 16px; object-fit: none; object-position: 0 0; image-rendering: pixelated; vertical-align: -3px; }
.uicon { vertical-align: -2px; image-rendering: pixelated; }
.new { vertical-align: middle; image-rendering: pixelated; }

/* ---------- Top link bar ---------- */
.linkbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 12px;
  padding: 4px 10px; background: linear-gradient(#333366, #000033); border-bottom: 1px solid #000; font-size: 11px; color: var(--text2); }
.lb-home { color: #fff; font-weight: bold; display: inline-flex; gap: 5px; align-items: center; }
.lb-home:hover { color: var(--accent2); text-decoration: none; }
.lb-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
.lb { color: #cccccc; display: inline-flex; align-items: center; gap: 4px; }
.lb:hover { color: var(--accent2); text-decoration: none; }
.lb.on { color: var(--accent); font-weight: bold; }
.lb-hi { color: var(--text2); }
.lb-hi b { color: #fff; }

/* ---------- Page frame ---------- */
.frame { max-width: 980px; margin: 14px auto 24px; background: var(--frame); border: 1px solid #000;
  box-shadow: 0 0 0 1px #336699, 0 0 0 4px #000000; }
.banner { position: relative; height: 150px; padding: 34px 26px; overflow: hidden; border-bottom: 2px solid #000;
  background: #000000 url(img/header.png) center bottom / auto 150px repeat-x; image-rendering: pixelated; }
.banner-title { display: inline-block; font: 52px/1 var(--title); text-transform: uppercase; letter-spacing: 1px; color: #fff;
  text-shadow: 3px 3px 0 #0066cc, 5px 5px 0 #000; }
.banner-title:hover { color: #fff; text-decoration: none; animation: flicker 0.7s steps(1) 1; }
@keyframes flicker { 0% { opacity: 1; } 20% { opacity: 0.35; } 24% { opacity: 1; } 55% { opacity: 0.6; } 58% { opacity: 1; } }
.tw { position: absolute; image-rendering: pixelated; }
.tw1 { left: 330px; top: 18px; } .tw2 { left: 300px; top: 70px; } .tw3 { left: 16px; top: 16px; }

/* Folder tabs */
.tabs { display: flex; gap: 3px; padding: 7px 8px 0; background: linear-gradient(#333366, #000033); border-bottom: 3px solid var(--accent); }
.tab { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px 13px 5px; color: #cccccc; font: bold 11px Verdana, sans-serif;
  background: linear-gradient(#336699, #003366); border: 1px solid #000000; border-bottom: 0; border-radius: 4px 4px 0 0; }
.tab:hover { color: #fff; text-decoration: none; background: linear-gradient(#6699cc, #003366); }
.tab.on { color: #ffffff; background: linear-gradient(#3399ff, #0066cc); }
.tab .count { position: absolute; top: -5px; right: -4px; }

/* LED ticker */
.marquee { background: #000; border-bottom: 1px solid #333366; color: var(--accent2); font: bold 12px "Courier New", Courier, monospace;
  padding: 3px 0; }
.marquee marquee { display: block; }

.cols { display: flex; gap: 16px; padding: 16px; align-items: flex-start; }
.main { flex: 1; min-width: 0; }
.side { width: 252px; flex-shrink: 0; }

/* ---------- Headings ---------- */
.page-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding-bottom: 4px; border-bottom: 2px solid var(--accent);
  font: 26px/1.1 var(--title); text-transform: uppercase; letter-spacing: 1px; color: #fff; text-shadow: 2px 2px 0 #000; }
.date-header { margin: 18px 0 6px; padding-bottom: 3px; border-bottom: 1px dotted #333366; color: #9999cc;
  font: bold 11px var(--head); text-transform: uppercase; letter-spacing: 0.2em; }
.date-header:first-child { margin-top: 0; }
.page-sub { margin: -6px 0 12px; font-size: 11px; }

/* ---------- Entries (posts) ---------- */
.entry { background: var(--panel); border: 1px solid var(--line); box-shadow: inset 0 1px 0 #000033; padding: 12px 14px; margin-bottom: 14px; }
.entry-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; margin-bottom: 9px; border-bottom: 1px dashed var(--line); }
.entry-head .who { flex: 1; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 11px; }
.entry-head .who b { color: #fff; }
.entry-title { margin: 0 0 8px; font: bold 18px/1.3 var(--head); color: var(--accent2); }
.entry-title a { color: inherit; }
.entry-title a:hover { color: #fff; }
.entry-title a:hover::after { content: " »"; }
.entry-body { white-space: pre-wrap; word-wrap: break-word; line-height: 1.65; }
.entry-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 6px; border-top: 1px dotted #333366;
  font: 10px Verdana, sans-serif; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.entry-foot b { color: var(--text); }
.cat-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border: 1px solid currentColor;
  font: bold 10px Verdana, sans-serif; text-transform: uppercase; letter-spacing: 0.08em; }
.cat-tag:hover { text-decoration: none; background: #003366; }
.cat-software { color: var(--software); } .cat-art { color: var(--art); } .cat-music { color: var(--music); } .cat-old { color: #cc9966; } .cat-acting { color: #cc99ff; }
.cat-software:hover { color: var(--software); } .cat-art:hover { color: var(--art); } .cat-music:hover { color: var(--music); } .cat-old:hover { color: #cc9966; } .cat-acting:hover { color: #cc99ff; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); font: inherit; text-transform: inherit; letter-spacing: inherit; }
.link-btn:hover { color: var(--hover); text-decoration: underline; }
.meta { margin-top: 10px; padding: 6px 8px; background: #000033; border: 1px solid #333366; font-size: 11px; }
.meta-line img { vertical-align: -3px; image-rendering: pixelated; }
.meta-line b { color: var(--text2); }

/* Pinned ("sticky") posts at the top of a tab */
.pinned { margin-bottom: 16px; padding: 8px; background: #000033; border: 2px solid #ffcc00; }
.pinned-t { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #ffcc00; font: bold 11px var(--head); text-transform: uppercase; letter-spacing: 0.2em; }
.pinned-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pinned-grid .entry { margin-bottom: 0; }
.pinned .ap-pin { display: none; }
/* Link cards: the IMDb card on Acting and links Josh adds to posts */
.link-cards { display: grid; gap: 8px; margin: 10px 0 4px; }
.link-entry { padding: 0; }
.link-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #000033; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.link-entry .link-card { border: 0; background: transparent; padding: 12px 14px; }
.link-card:hover { border-color: var(--accent); color: #ffffff; background: #000066; text-decoration: none; }
.link-card:hover .link-tag { transform: rotate(-4deg) scale(1.08); }
.link-tag { flex: none; display: flex; align-items: center; gap: 6px; max-width: 45%; padding: 6px 10px; background: #333366; color: #ffffff; font: 10px/1 "Silkscreen", monospace; letter-spacing: 1px; text-transform: uppercase; border: 2px outset #6666cc; transition: transform .1s steps(2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.link-text b, .link-text .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pc-links .le { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
#pc-links .le-url { flex: 3; min-width: 0; } #pc-links .le-label { flex: 2; min-width: 0; }
.pin-label { margin: -12px -14px 10px; padding: 3px 8px; font: 8px/13px "Silkscreen", monospace; letter-spacing: 1px; text-transform: uppercase; }
.pin-a { border: 2px solid var(--accent); }
.pin-a .pin-label { background: var(--accent); color: #000000; font-size: 16px; line-height: 22px; }
.pin-a .entry-title { font: 30px/1.1 var(--title); text-transform: uppercase; letter-spacing: 1px; color: #ffffff; text-shadow: 2px 2px 0 #0066cc; }
.pin-b { margin-left: 48px; border-style: dashed; }
.pin-b .pin-label { background: #333366; color: #cccccc; font-size: 10px; line-height: 15px; }
.pin-b .entry-title { font-size: 14px; color: var(--text2); }

/* Photo album */
.album { margin-top: 10px; }
.album-frame { background: #000000; border: 1px solid #000; outline: 1px solid #336699; padding: 4px; }
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.slide img, .slide video { display: block; width: 100%; max-height: 80vh; object-fit: contain; }
.slide img { cursor: zoom-in; }
.album.multi .slide { aspect-ratio: var(--album-ar, 0.8); background: #000000; }
.album.multi .slide img, .album.multi .slide video { height: 100%; max-height: none; }
.album-nav { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 6px; font-size: 11px; color: var(--text2); }
.album-nav b { color: #fff; }
.download-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; }
.embed { margin-top: 10px; }
.embed iframe { display: block; width: 100%; border: 1px solid #000; background: #000; }
.video-embed { position: relative; height: 0; padding-bottom: 56.25%; }
.video-embed iframe { position: absolute; inset: 0; height: 100%; }

/* Props (likes) */
.like-btn { display: inline-flex; align-items: center; gap: 3px; background: none; border: 0; padding: 0; color: var(--text2); font: inherit; letter-spacing: inherit; }
.like-btn:hover { color: #fff; }
.like-btn .n::after { content: " props"; }
.props { display: inline-block; width: 11px; height: 12px; background: url(img/props.png) 0 0 no-repeat; image-rendering: pixelated; }
.like-btn:hover .props { background-position: -11px 0; }
.like-btn.liked { color: var(--accent2); }
.like-btn.liked .props { background-position: -22px 0; }
.like-btn.liked:hover .props { background-position: -33px 0; }
.like-btn.pop .props { animation: thumb 0.45s steps(3) 1; }
@keyframes thumb { 0% { transform: translateY(-4px) scale(1.6); } 100% { transform: none; } }

/* Josh's composer */
.composer textarea { margin-top: 6px; }
.field-row { display: flex; align-items: center; gap: 6px; }
.field-row label { white-space: nowrap; color: var(--text2); }
.composer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.composer-grid label { font-size: 11px; color: var(--text2); }
.composer-grid label img { vertical-align: -3px; image-rendering: pixelated; }
.composer-grid .input { margin-top: 2px; }
.composer-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.thumbs .t { position: relative; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #000; background: #333333; font-size: 10px; color: var(--text2); overflow: hidden; }
.thumbs .t img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .t button, .attach-preview button { position: absolute; top: 2px; right: 2px; width: 16px; height: 14px; border: 0;
  background: var(--gray); box-shadow: var(--raised); font: bold 9px var(--ui); color: #000; line-height: 1; }

/* Music track list in the composer */
.te { flex-basis: 100%; display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.te .input { flex: 1; min-width: 0; }
.te-n { width: 18px; color: var(--text2); text-align: right; }
.te-hint { flex-basis: 100%; margin-top: 4px; }

/* JoshAmp: Winamp-style player for music posts */
.amp { max-width: 540px; margin-top: 10px; padding: 3px; background: #333333; border: 1px solid #000000;
  box-shadow: inset 1px 1px #666666, inset -1px -1px #000000; color: #33ff33; }
.amp-bar { display: flex; justify-content: center; height: 13px; margin-bottom: 3px;
  background: repeating-linear-gradient(180deg, #666666 0 1px, #333333 1px 3px); }
.amp-bar span { padding: 0 5px; background: #333333; color: #cccccc; font: 8px/13px "Silkscreen", monospace; letter-spacing: 1px; }
.amp-body { display: flex; gap: 6px; }
.amp-cover { width: 100px; height: 100px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: #000000; border: 1px solid #000000; box-shadow: inset -1px -1px #666666; }
.amp-cover img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.amp-cd { width: 80px; height: 80px; border-radius: 50%; border: 1px solid #000000;
  background: radial-gradient(circle, #000000 0 7px, #999999 8px 10px, #cccccc 11px 26px, #99ccff 27px 30px, #cccccc 31px 38px, #999999 39px); }
.amp.playing .amp-cd { animation: cdspin 0.8s steps(8) infinite; }
@keyframes cdspin { to { transform: rotate(360deg); } }
.amp-cd::after { content: ""; display: block; width: 14px; height: 6px; margin: 18px 0 0 46px; background: #ffffff; transform: rotate(-35deg); }
.amp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.amp-lcd { padding: 4px 6px; background: #000000; border: 1px solid #000000; box-shadow: inset -1px -1px #666666; font: 12px "Courier New", Courier, monospace; }
.amp-row { display: flex; align-items: center; gap: 8px; }
.amp-state { width: 12px; font-size: 11px; }
.amp-time { font: bold 22px/1 "Courier New", Courier, monospace; letter-spacing: 1px; }
.amp-viz { display: flex; align-items: flex-end; gap: 2px; height: 18px; margin-left: auto; }
.amp-viz i { width: 4px; height: 2px; background: linear-gradient(to top, #33ff33 0 11px, #ffff00 11px 15px, #ff3300 15px) bottom / 4px 18px no-repeat; }
.amp.playing .amp-viz i { animation: viz 0.5s steps(4) infinite alternate; }
.amp.playing .amp-viz i:nth-child(2n) { animation-duration: 0.35s; }
.amp.playing .amp-viz i:nth-child(3n) { animation-duration: 0.65s; animation-delay: -0.2s; }
.amp.playing .amp-viz i:nth-child(4n+1) { animation-duration: 0.45s; animation-delay: -0.3s; }
@keyframes viz { from { height: 2px; } to { height: 18px; } }
/* The title scrolls across the LCD. The span is taken out of the flow so a long title can never
   make the player (and the page) wider than the screen, which Safari did with the old padding trick. */
.amp-ticker { position: relative; height: 15px; margin-top: 3px; overflow: hidden; white-space: nowrap; }
.amp-ticker span { position: absolute; top: 0; left: 100%; animation: tick 14s steps(140) infinite; }
@keyframes tick { to { left: 0; transform: translateX(-100%); } }
.amp-ctrls { display: flex; align-items: center; gap: 2px; }
.amp-btn { width: 28px; height: 19px; padding: 0; border: 0; background: #cccccc; box-shadow: var(--raised); color: #000000; font: 9px/19px Verdana, sans-serif; }
.amp-btn:active { box-shadow: var(--pressed); }
.amp-vol { width: 84px; margin-left: auto; }
.amp-seek, .amp-vol { -webkit-appearance: none; appearance: none; height: 12px; background: transparent; }
.amp-seek::-webkit-slider-runnable-track, .amp-vol::-webkit-slider-runnable-track { height: 6px; background: #000000; box-shadow: inset -1px -1px #666666; }
.amp-seek::-webkit-slider-thumb, .amp-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 10px; margin-top: -2px; border: 0; background: #cccccc; box-shadow: var(--raised); }
.amp-seek::-moz-range-track, .amp-vol::-moz-range-track { height: 6px; background: #000000; }
.amp-seek::-moz-range-thumb, .amp-vol::-moz-range-thumb { width: 16px; height: 10px; border: 0; border-radius: 0; background: #cccccc; box-shadow: var(--raised); }
.amp-list { max-height: 180px; overflow-y: auto; margin-top: 3px; padding: 3px; list-style: none; background: #000000; border: 1px solid #000000;
  box-shadow: inset -1px -1px #666666; font: 11px Verdana, sans-serif; }
.amp-list li { display: flex; justify-content: space-between; gap: 8px; padding: 1px 4px; cursor: pointer; }
.amp-list li:hover { background: #003300; }
.amp-list li.on { background: #003399; color: #ffffff; }

/* ---------- Comments ---------- */
.comments-title { margin-bottom: 6px; color: var(--text2); font: bold 12px var(--head); text-transform: uppercase; letter-spacing: 0.15em; }
.comment { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dotted var(--line); }
.comments > .comment:last-of-type, .replies .comment:last-child { border-bottom: 0; }
.comment .body { flex: 1; min-width: 0; }
.c-head { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 11px; color: var(--text2); }
.c-name { font-weight: bold; color: var(--accent2); }
.c-text { margin-top: 4px; white-space: pre-wrap; word-wrap: break-word; line-height: 1.55; }
.c-media img { display: block; max-width: 260px; max-height: 300px; margin-top: 6px; border: 1px solid #000; outline: 1px solid #336699; cursor: zoom-in; }
.c-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 5px; font-size: 10px; color: var(--muted); }
.replies { margin-left: 50px; padding-left: 10px; border-left: 2px solid #333366; }
.pending-note { display: inline-block; margin-top: 5px; padding: 3px 6px; font-size: 10px; color: #ffcc33; background: #333300; border: 1px dashed #999933; }
.comment-box .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.comment-box textarea { margin-top: 6px; }
.reply-to { margin-bottom: 4px; font-size: 11px; }
.attach-preview { position: relative; display: inline-block; margin-top: 6px; }
.attach-preview img { display: block; max-width: 200px; max-height: 120px; border: 1px solid #000; }

/* GIF picker */
.gif-panel { margin-top: 8px; padding: 6px; background: #000000; border: 2px groove var(--line2); }
.gif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; max-height: 260px; overflow-y: auto; margin-top: 6px; }
.gif-grid img { width: 100%; height: 84px; object-fit: cover; border: 1px solid #000; cursor: pointer; }
.gif-grid img:hover { outline: 2px solid var(--accent); }
.giphy-attr { margin-top: 4px; font-size: 9px; color: #999999; text-align: right; }

/* ---------- Buttons & form controls (Windows 2000) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 23px; padding: 4px 12px;
  background: var(--gray); color: #000; border: 0; box-shadow: var(--raised); font: 11px var(--ui); white-space: nowrap; }
.btn:hover { color: #000; text-decoration: none; background: #ccccff; }
.btn:active:not(:disabled) { box-shadow: var(--pressed); padding: 5px 11px 3px 13px; }
.btn-primary { font-weight: bold; outline: 1px solid #000; outline-offset: 0; }
.btn-danger { color: #990000; font-weight: bold; }
.btn-danger:hover { color: #990000; }
.btn-sm { min-height: 19px; padding: 2px 8px; font-size: 10px; }
.btn-sm:active:not(:disabled) { padding: 3px 7px 1px 9px; }
.btn-block { width: 100%; }
.btn-dl { font-size: 12px; padding: 5px 14px; }
.input, select.input, textarea.input { display: block; width: 100%; padding: 4px 5px; border: 0; background: #fff; color: #000;
  box-shadow: var(--sunken); font: 12px Verdana, Geneva, sans-serif; outline: none; }
textarea.input { resize: vertical; min-height: 60px; }
select.input { padding: 3px; }
fieldset { margin-bottom: 14px; padding: 8px 12px 12px; background: #000000; border: 2px groove var(--line2); }
fieldset.hl { border-color: var(--accent); }
legend { padding: 0 5px; color: var(--accent2); font: bold 11px Verdana, sans-serif; text-transform: uppercase; letter-spacing: 0.1em; }
legend .pix { margin-right: 3px; }
.field { margin-bottom: 8px; }
.field label { display: block; margin-bottom: 2px; font-size: 11px; color: var(--text2); }
.check { display: block; margin-bottom: 8px; padding-left: 20px; text-indent: -20px; font-size: 11px; }
.check input { width: 13px; height: 13px; margin: 0 7px 0 0; vertical-align: -2px; }
.form-error { min-height: 1.2em; margin-top: 4px; color: #ff6666; font-weight: bold; }
.notice { margin-bottom: 12px; padding: 8px 10px; background: #000033; border: 1px solid var(--line2); color: #cccccc; font-size: 11px; }
.notice.warn { background: #333300; border-color: #999933; color: #ffff99; }
.notice.danger { background: #330000; border-color: #993333; color: #ff9999; }
.list-item { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px dotted var(--line); }
.list-item:last-child { border-bottom: 0; }
.empty { padding: 24px 10px; text-align: center; color: var(--muted); }
.hg { vertical-align: middle; image-rendering: pixelated; }
.load-more { margin: 2px auto 20px; }
.count { display: inline-block; min-width: 14px; margin-left: 4px; padding: 0 4px; background: #cc0000; color: #fff; border: 1px solid #000;
  border-radius: 7px; font: bold 9px/12px Verdana, sans-serif; text-align: center; }

/* 80x15 badges */
.ap { display: inline-flex; height: 15px; vertical-align: middle; border: 1px solid #000; white-space: nowrap; font: 8px/13px "Silkscreen", monospace; }
.ap b, .ap i { padding: 0 3px; font-weight: 400; font-style: normal; }
.ap b { background: #333333; color: #fff; border-right: 1px solid #000; }
.ap i { background: var(--accent); color: #000; }
.ap-josh i { background: #ffcc00; } .ap-pin i { background: #ffcc00; } .ap-new i { background: #99ff33; } .ap-age i { background: var(--software); }
.ap:hover b { background: #000; } .ap:hover i { background: #fff; }
.pts { color: #ffcc33; font: bold 10px Verdana, sans-serif; white-space: nowrap; }

/* Avatars: square, framed */
.av { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; width: 40px; height: 40px;
  background: #333333; color: #fff; border: 1px solid #000; outline: 1px solid var(--line2); font: bold 16px var(--head); vertical-align: middle; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.xs { width: 18px; height: 18px; font-size: 10px; } .av.sm { width: 28px; height: 28px; font-size: 12px; }
.av.md { width: 40px; height: 40px; } .av.lg { width: 64px; height: 64px; font-size: 26px; } .av.xl { width: 120px; height: 120px; font-size: 52px; }
a:hover .av, .av:hover { animation: frame 0.5s steps(1) infinite; }
@keyframes frame { 0% { outline-color: var(--accent); } 50% { outline-color: #ffcc33; } }
.josh-pic { background: #000000; color: var(--accent); font-family: var(--title); font-weight: 400; }
.group-av { display: inline-flex; }
.group-av .av + .av { margin-left: -6px; }

/* ---------- Sidebar ---------- */
.sbox { margin-bottom: 12px; background: var(--panel); border: 1px solid var(--line); }
.sbox-t { padding: 4px 7px; background: linear-gradient(#336699, #003366); border-bottom: 1px solid #000; color: #fff;
  font: bold 11px var(--head); text-transform: uppercase; letter-spacing: 0.15em; }
.sbox-b { padding: 8px; font-size: 11px; }
.sbox-b p { margin-top: 4px; color: var(--text2); }
.about { display: flex; align-items: flex-start; gap: 8px; }
.about b { color: #fff; }
.more { display: block; margin-top: 6px; font-size: 10px; }
.mail-alert { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 6px; background: #333300; border: 1px solid #999933;
  color: #ffff99; font-weight: bold; }
.mail-alert img { image-rendering: pixelated; }
.stars li { position: relative; padding: 2px 0 2px 15px; }
.stars li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 9px; height: 9px; background: url(img/star.png) 0 0 no-repeat; image-rendering: pixelated; }
.stars li:hover::before { animation: star4 0.4s steps(4) infinite; }
@keyframes star4 { to { background-position: -36px 0; } }
.b88s { display: grid; grid-template-columns: repeat(2, 88px); justify-content: center; gap: 6px; margin-bottom: 8px; }
.b88 img, .blinkies img, .uc img { display: block; image-rendering: pixelated; }
.b88:hover img, .blinkies img:hover, .uc img:hover { animation: jiggle 0.25s steps(2) infinite; }
@keyframes jiggle { 0% { transform: translate(0, 0); } 50% { transform: translate(1px, -1px); } }
.blinkies { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 12px; }
.odo-wrap { text-align: center; color: var(--text2); }
.odo { display: inline-flex; gap: 2px; margin-top: 4px; padding: 3px; background: #000; border: 2px inset #666666; }
.odo b { width: 14px; background: #003300; color: #33ff33; font: bold 16px/20px "Courier New", monospace; text-align: center; }
.sbox textarea.code { display: block; width: 100%; height: 56px; margin: 6px 0; padding: 4px; resize: none; background: #000000; color: #99ff99;
  border: 1px solid #333333; font: 10px "Courier New", monospace; }
.uc { margin: 4px 0 12px; }
.uc img { margin: 0 auto 4px; }

/* ---------- Footer ---------- */
.foot { padding: 12px; text-align: center; background: linear-gradient(#000033, #000033); border-top: 2px solid #000; color: var(--muted); font-size: 10px; }
.foot p { margin-top: 4px; }
.foot-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.scanner { display: block; margin: 0 auto; image-rendering: pixelated; }

/* ---------- Windows (pop-ups, messenger, sign on) ---------- */
.win { padding: 3px; background: var(--gray); color: #000; box-shadow: var(--raised); font: 11px var(--ui); }
.win a { color: #0000cc; }
.win a:hover { color: #cc0000; }
.win a.btn, .win a.btn:hover { color: #000; }
.win .muted { color: #666666; }
.win-title { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 3px 3px 5px;
  background: linear-gradient(90deg, #003399, #99ccff); color: #fff; font: bold 12px var(--ui); }
.win-title span { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-x { flex-shrink: 0; width: 16px; height: 14px; padding: 0; border: 0; background: var(--gray); box-shadow: var(--raised); color: #000; font: bold 9px/14px var(--ui); }
.win-x:active { box-shadow: var(--pressed); }
.win-body { padding: 10px; }
.win-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.win fieldset { background: transparent; border: 1px solid #999999; box-shadow: 1px 1px 0 #fff, inset 1px 1px 0 #fff; padding: 6px 8px 8px; margin-bottom: 6px; }
.win legend { color: #000; text-transform: none; letter-spacing: 0; font: 11px var(--ui); }
.win .notice { margin: 8px 0 0; background: #ffffcc; color: #000; border-color: #999999; }
.win .list-item { border-bottom-color: #999999; }
.win .form-error { color: #cc0000; }
.win .field label, .win .check { color: #000; }
.modal-back { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 12px; background: url(img/dither.gif); }
.modal { width: 100%; max-width: 440px; max-height: 88vh; overflow-y: auto; }
.viewer-win { max-width: 940px; }
.viewer { background: #000; box-shadow: var(--sunken); padding: 2px; }
.viewer img { display: block; max-width: 100%; max-height: 72vh; margin: 0 auto; }
.menu-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px; background: none; border: 0; color: #000; font: 11px var(--ui); text-align: left; }
.menu-item:hover { background: #003399; color: #fff; }
.menu-item.danger { color: #990000; }
.menu-item.danger:hover { color: #fff; }
.pick { display: flex; align-items: center; gap: 6px; padding: 4px 2px; cursor: pointer; }
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 200; max-width: 360px; padding: 6px 10px; background: #ffffcc; color: #000;
  border: 1px solid #000; box-shadow: 2px 2px 0 #000000; font: 11px var(--ui); cursor: pointer; }
.toast b { color: #cc0000; }
.toast.ok b { color: #009900; }
.center-win { max-width: 420px; margin: 10px auto 20px; }

/* Sign on */
.signon { max-width: 360px; margin: 10px auto 20px; }
.signon p.small { margin-bottom: 8px; }
.signon-art { display: flex; align-items: center; justify-content: center; height: 72px; margin: -10px -10px 10px;
  background: #000000 url(img/header.png) right bottom / auto 150px; image-rendering: pixelated; border-bottom: 1px solid #000; }
.signon-art span { font: 30px var(--title); text-transform: uppercase; color: #fff; text-shadow: 2px 2px 0 #0066cc, 3px 3px 0 #000; }

/* Buddy list + IM window */
.buddy { max-width: 420px; margin: 0 auto 14px; }
.buddy-banner { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 6px; padding: 8px;
  background: linear-gradient(#003399, #3366cc); color: #fff; font: bold 12px var(--ui); }
.buddy-me { display: flex; align-items: center; gap: 8px; padding: 4px 4px 8px; }
.buddy-list { max-height: 420px; overflow-y: auto; padding: 4px; background: #fff; box-shadow: var(--sunken); }
.buddy-group { padding: 2px 4px; font-weight: bold; }
.bud { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 14px; color: #000 !important; }
.bud:hover { background: #003399; color: #fff !important; text-decoration: none; }
.bud .t { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bud.unread .t { font-weight: bold; }
.bud .p { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: #666666; }
.bud:hover .p, .bud:hover .muted { color: #ccccff; }
.bud .right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.im { max-width: 640px; margin: 0 auto 14px; }
.im-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 2px 6px; }
.im-who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.chat-msgs { height: 360px; overflow-y: auto; padding: 6px 8px; background: #fff; box-shadow: var(--sunken); font: 13px/1.45 Arial, Helvetica, sans-serif; }
.msg { margin-bottom: 3px; word-wrap: break-word; }
.msg .who { font-weight: bold; }
.msg.mine .who { color: #ff0000; }
.msg.theirs .who { color: #0000ff; }
.msg .ts { color: #999999; font-size: 11px; }
.msg .bubble { white-space: pre-wrap; }
.msg .gif { max-width: 200px; margin-top: 3px; border: 1px solid #999999; }
.report-link { background: none; border: 0; color: #999999; font-size: 10px; }
.report-link:hover { color: #cc0000; }
.sys { margin: 4px 0; text-align: center; color: #999999; font-size: 11px; font-style: italic; }
.im-tools { display: flex; align-items: center; gap: 6px; padding: 6px 0 4px; }
.chat-input { display: flex; gap: 4px; }
.chat-input textarea { flex: 1; height: 52px; padding: 4px; resize: none; border: 0; background: #fff; box-shadow: var(--sunken); font: 13px Arial, sans-serif; outline: none; }
.send-btn { width: 64px; flex-direction: column; line-height: 1.2; }
.readonly-note { padding: 8px; text-align: center; color: #666666; }
.im .gif-panel, .buddy .gif-panel { background: var(--gray); border: 2px groove #fff; }

/* ---------- Profile (a little MySpace) ---------- */
.profile { display: grid; grid-template-columns: 270px 1fr; gap: 14px; align-items: start; }
.p-name { margin-bottom: 8px; color: #fff; font: bold 20px var(--head); word-wrap: break-word; }
.p-top { display: flex; gap: 10px; }
.p-facts { display: flex; flex-direction: column; gap: 5px; font-size: 11px; }
.contact { margin-bottom: 12px; border: 1px solid var(--line2); }
.contact-t { padding: 4px 6px; background: #003366; color: var(--accent2); font: bold 11px Verdana, sans-serif; }
.contact-b { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 6px; background: var(--panel); }
.act { display: flex; align-items: center; gap: 5px; padding: 4px; background: none; border: 0; color: var(--link); font: 11px Verdana, sans-serif; text-align: left; }
.act:hover { background: #003366; color: var(--hover); text-decoration: none; }
.act.danger { color: #ff6666; }
.p-stats { width: 100%; margin-bottom: 12px; border-collapse: collapse; font-size: 11px; }
.p-stats th, .p-stats td { padding: 4px 6px; border: 1px solid var(--line); text-align: left; }
.p-stats th { width: 50%; background: var(--panel2); color: var(--text2); }
.p-section { margin-bottom: 12px; border: 1px solid var(--line); }
.p-section-t, .fs-title { padding: 4px 8px; background: linear-gradient(#3399ff, #0066cc); color: #ffffff; font: bold 12px var(--head); }
.p-section-b { padding: 8px; background: var(--panel); word-wrap: break-word; }
.p-section-b .bio { white-space: pre-wrap; }
.history-item { padding: 8px 0; border-bottom: 1px dotted var(--line); cursor: pointer; }
.history-item:last-child { border-bottom: 0; }
.history-item:hover { background: #000033; }
.history-item .on { font-size: 10px; color: var(--muted); }
.history-item .txt { margin-top: 3px; white-space: pre-wrap; word-wrap: break-word; }
.h-img { display: block; max-width: 140px; margin-top: 4px; border: 1px solid #000; }

/* Friend Space */
.fs-title { margin: -12px -14px 8px; }
.fs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; margin-top: 10px; }
.fs-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; text-align: center; word-break: break-word; }

/* Moderation */
.mod-item { padding: 8px 0; border-bottom: 1px dotted var(--line); }
.mod-item:last-child { border-bottom: 0; }
.quote { margin: 5px 0; padding: 5px 8px; background: #000000; border-left: 3px solid var(--line2); white-space: pre-wrap; word-wrap: break-word; font-size: 11px; }
.actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.flag { display: inline-block; margin-right: 3px; padding: 1px 4px; background: #330000; color: #ff9999; border: 1px solid #993333; font: bold 9px Verdana, sans-serif; }
.flag.severe { background: #cc0000; color: #fff; }
.mod-img { display: block; max-width: 220px; max-height: 220px; margin: 5px 0; border: 1px solid #000; }
.mod-log { max-height: 55vh; overflow-y: auto; padding: 6px; background: #fff; box-shadow: var(--sunken); }
.win .mod-item { border-bottom-color: #cccccc; }
.win .quote { background: #fff; color: #000; }

/* Rules, YouTube */
.rules h2 { margin: 14px 0 6px; color: var(--accent2); font: bold 13px var(--head); text-transform: uppercase; letter-spacing: 0.1em; }
.rules p, .rules li { line-height: 1.6; }
.yt-name { color: #fff; font: bold 14px var(--head); }
.yt-head .row { flex-wrap: wrap; }

/* Cursor trail (on by default; the footer link switches it off) */
.trail { position: absolute; z-index: 300; pointer-events: none; image-rendering: pixelated; animation: fall 0.8s steps(4) forwards; }
@keyframes fall { to { transform: translateY(14px); opacity: 0; } }

/* ---------- Phones ---------- */
@media (max-width: 820px) {
  body { font-size: 13px; }
  .frame { margin: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .banner { height: 108px; padding: 26px 12px; background-position: 70% bottom; }
  .banner-title { font-size: 36px; }
    .tw1 { left: 250px; } .tw2, .tw3 { display: none; }
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 6px; }
  .tab { justify-content: center; gap: 4px; padding: 8px 2px; border-radius: 3px; border-bottom: 1px solid #000000; font-size: 11px; white-space: nowrap; }
  .tab .count { top: -4px; right: -2px; }
  .cols { flex-direction: column; align-items: stretch; gap: 0; padding: 10px; }
  .main { width: 100%; }
  .side { width: 100%; margin-top: 8px; }
  .entry { padding: 10px; }
  .fs-title { margin: -10px -10px 8px; }
  .pin-label { margin: -10px -10px 8px; }
  .pin-b { margin-left: 18px; }
  .pin-a .entry-title { font-size: 24px; }
  .page-h { font-size: 22px; }
  .input, select.input, textarea.input, .chat-input textarea, .gif-panel .input { font-size: 16px; }
  .composer-grid { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .replies { margin-left: 16px; }
  .comment .av.md { width: 32px; height: 32px; }
  .c-media img { max-width: 100%; }
  .chat-msgs { height: 52vh; }
  .amp-cover { width: 76px; height: 76px; }
  .amp-cd { width: 62px; height: 62px; }
  .amp-cd::after { margin: 14px 0 0 34px; }
  .amp-time { font-size: 18px; }
  .amp-vol { width: 56px; }
  .amp-btn { width: 30px; height: 24px; line-height: 24px; }
  .toast { left: 10px; right: 10px; bottom: 10px; max-width: none; }
  .modal-back { padding: 6px; }
  .linkbar { padding: 5px 8px; }
  .lb-hi .pts { display: none; }
}
@media (max-width: 380px) {
  .banner-title { font-size: 30px; }
  .lb-links { gap: 2px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
