/* ==========================================================
   zrayspace ✠ a place for friends
   shrey sati. y2k myspace x cybergoth x dmc3.
   ========================================================== */

:root {
  --void: #0a0708;
  --crypt: #120e10;
  --char: #2b2b2e;
  --char-2: #1b1a1d;
  --blood: #ff1a2e;
  --blood-hot: #ff4a5a;
  --blood-deep: #8a0010;
  --wine: #3a0008;
  --wine-2: #5a0010;
  --rim: #6a0f1c;
  --gold: #c9a45c;
  --gold-hot: #f3d48a;
  --bone: #e8dcc8;
  --ash: #a39a9e;
  --toxic: #39ff14;

  --f-body: Verdana, Tahoma, Geneva, "DejaVu Sans", sans-serif;
  --f-frak: "UnifrakturMaguntia", "Old English Text MT", serif;
  --f-pix: "Jacquard 24", "UnifrakturMaguntia", serif;
  --f-tiny: "Silkscreen", "Courier New", monospace;
  --f-rank: "New Rocker", "Impact", serif;

  --cur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M2 2 6.5 3 19 15.5 15.5 19 3 6.5Z' fill='%23e8e8ee' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M13.5 21.5 21.5 13.5' stroke='%23c9a45c' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M18.5 18.5 24.5 24.5' stroke='%238a0010' stroke-width='3.2' stroke-linecap='round'/%3E%3Ccircle cx='25.5' cy='25.5' r='2' fill='%23ff1a2e' stroke='%23000' stroke-width='.6'/%3E%3C/svg%3E") 2 2, auto;
  --cur-hot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M2 2 6.5 3 19 15.5 15.5 19 3 6.5Z' fill='%23ff1a2e' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M13.5 21.5 21.5 13.5' stroke='%23f3d48a' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M18.5 18.5 24.5 24.5' stroke='%23e8dcc8' stroke-width='3.2' stroke-linecap='round'/%3E%3Ccircle cx='25.5' cy='25.5' r='2' fill='%23f3d48a' stroke='%23000' stroke-width='.6'/%3E%3C/svg%3E") 2 2, pointer;

  /* red tiled wallpaper: little gothic crosses on a lattice */
  --bar-char: linear-gradient(180deg, #45424a 0%, #2b2b2e 48%, #222124 52%, #18171a 100%);
  --bar-wine: linear-gradient(180deg, #5a1a22 0%, #3a1016 48%, #2e0c12 52%, #1c080b 100%);
  --wallpaper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Crect width='56' height='56' fill='%230a0708'/%3E%3Cg fill='%23320a10'%3E%3Cpath d='M13 6h2v4h4v2h-4v8h-2v-8H9v-2h4z'/%3E%3Cpath d='M41 34h2v4h4v2h-4v8h-2v-8h-4v-2h4z'/%3E%3C/g%3E%3Cg fill='%231f0a0d'%3E%3Ccircle cx='42' cy='13' r='1.2'/%3E%3Ccircle cx='14' cy='41' r='1.2'/%3E%3C/g%3E%3Cpath d='M0 28h56M28 0v56' stroke='%23140a0c' stroke-width='1'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* the page fades in once this file and the fonts are loaded (see the inline style in the page head) */
html.ready body { opacity: 1; animation: none; }
body {
  transition: opacity .3s ease;
  margin: 0;
  color: var(--bone);
  background-color: var(--void);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 26, 46, .1), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(138, 0, 16, .14), transparent 70%),
    var(--wallpaper);
  background-attachment: fixed, fixed, scroll;
  font: 13px/1.55 var(--f-body);
  cursor: var(--cur);
  overflow-x: hidden;
}

a, button, select, summary, label[for], [role="button"] { cursor: var(--cur-hot); }
input[type="search"] { cursor: text; }

img, video { max-width: 100%; }

a {
  color: var(--blood);
  text-decoration: underline;
  text-decoration-color: rgba(255, 26, 46, .45);
  text-underline-offset: 2px;
}
a:hover { color: #fff; text-shadow: 0 0 6px var(--blood), 0 0 12px var(--blood); text-decoration-color: var(--blood); }

:focus-visible { outline: 2px dashed var(--gold-hot); outline-offset: 2px; }

::selection { background: var(--blood); color: #000; }

.dim { color: var(--ash); }
.red { color: var(--blood); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 10000;
  background: var(--blood); color: #000; padding: 6px 10px; font-weight: bold;
}
.skip:focus { top: 8px; }

/* ---------- crt + flash overlays ---------- */
.fx-scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 9000;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.fx-flash {
  position: fixed; inset: 0; pointer-events: none; z-index: 9001; opacity: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 240, 240, .9), rgba(255, 26, 46, .6) 35%, rgba(90, 0, 16, .0) 75%);
}
.fx-flash.go { animation: flash .55s ease-out; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- glossy y2k buttons ---------- */
.btn {
  display: inline-block;
  font: 11px/1 var(--f-tiny);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 0 #000;
  padding: 7px 11px 6px;
  background: var(--bar-char);
  border: 1px solid;
  border-color: #6a656e #000 #000 #6a656e;
  box-shadow: 0 0 0 1px #000;
  white-space: nowrap;
}
.btn:hover {
  color: #fff;
  background: linear-gradient(180deg, #ff8a95 0%, #ff1a2e 48%, #b3001b 52%, #6d0010 100%);
  box-shadow: 0 0 0 1px #000, 0 0 16px rgba(255, 26, 46, .8);
  text-shadow: 0 1px 0 #000;
}
.btn:active { border-color: #000 #6a656e #6a656e #000; transform: translateY(1px); }
.btn[disabled] { filter: grayscale(.8) brightness(.6); cursor: not-allowed; }
.btn-sm { font-size: 10px; padding: 6px 9px 5px; }

.linklike {
  background: none; border: 0; padding: 0; font: inherit; color: var(--blood);
  text-decoration: underline; text-decoration-color: rgba(255, 26, 46, .45);
}
.linklike:hover { color: #fff; text-shadow: 0 0 6px var(--blood); }

/* ==========================================================
   top bar
   ========================================================== */
.topbar {
  position: relative;
  z-index: 20;
  background: linear-gradient(180deg, #1e1b1d 0%, #0f0d0e 100%);
  border-bottom: 1px solid #000;
}
.topbar-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  flex-wrap: wrap;
}
/* zrayspace: after the 2004-2010 myspace logo. three people, rounded lowercase wordmark, arial tagline */
.logo { text-decoration: none; display: flex; align-items: center; gap: 6px; line-height: 1; }
.logo:hover { text-shadow: none; }
.logo:hover .logo-word { color: #fff; }
.logo-mark { width: 52px; height: 38px; flex: 0 0 auto; filter: drop-shadow(0 1px 0 #000); }
.logo-text { display: flex; flex-direction: column; align-items: flex-end; }
.logo-word { font: 900 34px/0.95 "Nunito", "Arial Rounded MT Bold", "Helvetica Rounded", Arial, sans-serif; letter-spacing: .01em; color: #f4efe6; text-shadow: 0 1px 0 #000, 0 0 12px rgba(255, 26, 46, .25); }
.logo-tag { font: 12px/1 Arial, Helvetica, sans-serif; color: #a39a9e; margin-top: 2px; letter-spacing: .01em; }

.search { display: flex; align-items: center; gap: 6px; flex: 0 1 460px; min-width: 0; }
.search-label { font: 10px var(--f-tiny); color: var(--gold); text-transform: uppercase; }
.search select, .search input {
  font: 12px var(--f-body);
  color: var(--bone);
  background: #070405;
  border: 2px inset #5a1018;
  padding: 4px 6px;
  min-width: 0;
}
.search input { flex: 1 1 auto; }
.search input::placeholder { color: #6d5f64; }

.navbar {
  background: var(--bar-char);
  border-top: 1px solid rgba(255, 26, 46, .6);
  border-bottom: 2px solid #000;
  text-align: center;
  padding: 5px 10px;
  font: bold 12px var(--f-body);
  line-height: 1.8;
}
.navbar a { color: #fff; text-decoration: none; padding: 0 4px; text-shadow: 0 1px 0 #000; }
.navbar a:hover { color: var(--blood); text-decoration: underline; text-shadow: 0 0 6px rgba(255, 26, 46, .6); }
.navbar span { color: var(--blood); opacity: .6; }

/* ==========================================================
   page shell
   ========================================================== */
.page {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(10, 6, 8, .94), rgba(10, 6, 8, .9));
  border-left: 1px solid #2a0a10;
  border-right: 1px solid #2a0a10;
  box-shadow: 0 0 0 1px #000, 0 0 60px rgba(0, 0, 0, .9), 0 0 120px rgba(138, 0, 16, .1);
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  background: linear-gradient(180deg, #1a0205, #0a0104);
  border-top: 1px solid var(--wine-2);
  border-bottom: 1px solid var(--wine-2);
  font: 12px/1 var(--f-tiny);
  color: var(--gold-hot);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 7px 0;
  text-shadow: 0 0 6px rgba(201, 164, 92, .6);
}
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track span { white-space: nowrap; padding-right: 2em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   profile grid
   ========================================================== */
.profile {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}
.col-left, .col-right { min-width: 0; }

/* ---------- boxes ---------- */
.box {
  position: relative;
  margin: 0 0 16px;
  background: linear-gradient(180deg, rgba(24, 18, 21, .96), rgba(14, 10, 12, .96));
  border: 1px solid var(--wine-2);
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(255, 255, 255, .03), 0 0 20px rgba(255, 26, 46, .06);
  padding: 0 12px 12px;
}
.box > h2 {
  margin: 0 -12px 10px;
  padding: 5px 12px 4px 28px;
  font: 24px/1 var(--f-pix);
  font-weight: normal;
  color: #fff;
  background: var(--bar-wine);
  border-bottom: 1px solid rgba(255, 26, 46, .55);
  text-shadow: 1px 1px 0 #000, 0 0 6px rgba(255, 26, 46, .45);
  position: relative;
}
.box > h2::before {
  content: "✠";
  position: absolute; left: 9px; top: 50%; transform: translateY(-52%);
  font: 14px/1 var(--f-body);
  color: var(--gold-hot);
  text-shadow: 0 0 6px rgba(243, 212, 138, .8);
}
.box p { margin: 0 0 10px; }
.box p:last-child { margin-bottom: 0; }
.box-note { font-size: 11px; color: var(--ash); }

/* ---------- profile card ---------- */
.profile-card { padding-top: 10px; }
.profile-card .profile-name {
  all: unset;
  display: block;
  font: bold 30px/1.1 var(--f-body);
  letter-spacing: -.01em;
  color: var(--blood);
  text-shadow: 0 0 2px #000, 0 0 12px rgba(255, 26, 46, .4);
  margin-bottom: 10px;
}
.profile-top { display: flex; gap: 12px; align-items: flex-start; }
.avatar-frame {
  flex: 0 0 150px;
  padding: 4px;
  background: linear-gradient(135deg, #f3d48a, #6d5220 40%, #c9a45c 60%, #3a2a0c);
  box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--wine), 0 0 18px rgba(255, 26, 46, .35);
  position: relative;
}
.avatar-frame img { display: block; width: 100%; height: auto; border: 1px solid #000; }
.avatar-frame::before, .avatar-frame::after {
  content: "✠"; position: absolute; font: 14px/1 var(--f-body); color: var(--blood);
  text-shadow: 0 0 4px #000, 0 0 6px var(--blood);
}
.avatar-frame::before { left: -6px; top: -8px; }
.avatar-frame::after { right: -6px; bottom: -8px; }
.profile-facts { list-style: none; margin: 0; padding: 0; font-size: 12px; min-width: 0; }
.profile-facts li { margin-bottom: 6px; }
.profile-facts .quote { font-style: italic; color: #fff; }
.profile-facts .login { color: var(--ash); font-size: 11px; }
.profile-facts time { color: var(--bone); }
.online { display: flex; align-items: center; gap: 6px; margin: 12px 0 6px !important; font: 12px var(--f-tiny); color: var(--toxic); text-transform: uppercase; text-shadow: 0 0 6px rgba(57, 255, 20, .6); }
.blink { animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.mood, .viewmy { font-size: 12px; margin: 0 0 4px !important; }
.mood-ico { color: var(--blood); }

/* ---------- contact table ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.contact-grid a, .contact-grid button {
  display: flex; align-items: center; gap: 7px;
  font: bold 11px/1.2 var(--f-body);
  color: var(--bone);
  text-decoration: none;
  text-align: left;
  padding: 7px 8px;
  background: linear-gradient(180deg, rgba(43, 43, 46, .8), rgba(27, 26, 29, .9));
  border: 1px solid #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.contact-grid a:hover, .contact-grid button:hover { background: linear-gradient(180deg, #5a000c, #2a0006); color: #fff; text-shadow: 0 0 6px var(--blood); }
.ci { color: var(--blood); font-size: 16px; width: 18px; text-align: center; flex: 0 0 18px; font-weight: normal; }

.url-box p { font-size: 12px; overflow-wrap: anywhere; }

.elsewhere { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- key/value tables ---------- */
.kv { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 12px; margin: -2px; width: calc(100% + 4px); }
.kv th, .kv td { padding: 5px 7px; vertical-align: top; text-align: left; }
.kv th {
  width: 32%;
  background: linear-gradient(180deg, #2f2c2f, #232123);
  color: #ff8a95;
  font: 10px/1.4 var(--f-tiny);
  text-transform: uppercase;
  font-weight: normal;
}
.kv td { background: rgba(43, 43, 46, .55); overflow-wrap: anywhere; }

/* ---------- player ---------- */
.player-body { display: grid; gap: 8px; }
.lcd {
  overflow: hidden; white-space: nowrap;
  background: #140204;
  border: 2px inset #5a1018;
  padding: 6px 0;
  font: 11px/1 var(--f-tiny);
  color: var(--blood-hot);
  text-shadow: 0 0 6px var(--blood);
}
.lcd-track { display: inline-block; padding-left: 100%; animation: lcd 14s linear infinite; }
@keyframes lcd { to { transform: translateX(-100%); } }
.viz { display: flex; align-items: flex-end; gap: 2px; height: 30px; padding: 2px; background: #070304; border: 1px solid #2a0a10; }
.viz i { flex: 1; height: 12%; background: linear-gradient(0deg, #5a000c, var(--blood) 60%, #ffd9a0); }
.player.playing .viz i { animation: bar .8s ease-in-out infinite alternate; }
.player.playing .viz i:nth-child(3n) { animation-duration: .55s; }
.player.playing .viz i:nth-child(4n+1) { animation-duration: 1.05s; animation-delay: -.3s; }
.player.playing .viz i:nth-child(5n+2) { animation-duration: .7s; animation-delay: -.5s; }
@keyframes bar { 0% { height: 10%; } 50% { height: 85%; } 100% { height: 35%; } }
.player-controls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.player-ext { font-size: 11px; margin-left: auto; }
.yt-slot:empty { display: none; }
.yt-slot iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 2px inset #5a1018; background: #000; }

.school p { font-size: 12px; }

/* ==========================================================
   right column
   ========================================================== */
.extended {
  padding: 0;
  overflow: hidden;
  border: 3px double var(--rim);
  background: #000;
}
.extended .banner-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 304;
  object-fit: cover;
  filter: contrast(1.08) saturate(1.1);
  transition: filter .4s;
}

.blog { list-style: none; padding: 0; margin: 0; }
.blog li { padding: 5px 0 5px 20px; border-bottom: 1px dotted #3a1018; position: relative; }
.blog li:last-child { border-bottom: 0; }
.blog li::before { content: "✠"; position: absolute; left: 2px; top: 5px; color: var(--gold); }
.blog li a { font-weight: bold; }
.blog .blog-desc { display: block; color: var(--ash); font-size: 11px; }
.blog li.blog-empty { padding-left: 0; }
.blog li.blog-empty::before { content: none; }

/* ---------- blog pages (/blog, /blog/<post>): a myspace blog in zrayspace colors ---------- */
.blog-page .profile-name a { color: inherit; text-decoration: none; }
.blog-page .profile-card .mood { margin-top: 14px !important; }
.archive-month { margin: 4px 0 2px !important; font: 10px var(--f-tiny); text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.archive li { padding: 3px 0 3px 18px; font-size: 12px; }
.archive li::before { top: 3px; }
.blog-list-box > h2 a { color: inherit; text-decoration: none; }
.posts { display: grid; gap: 18px; }
.post { padding-bottom: 16px; border-bottom: 1px dotted #3a1018; }
.post:last-child { border-bottom: 0; padding-bottom: 0; }
.post-date {
  margin: 0 0 8px !important;
  padding: 4px 8px 3px;
  font: 10px/1.4 var(--f-tiny);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  background: linear-gradient(180deg, #2f2c2f, #232123);
  border-left: 3px solid var(--blood);
}
.post-draft { color: #ffb020; margin-left: 8px; }
.post-title { margin: 0 0 10px; font: bold 20px/1.25 var(--f-body); color: var(--blood); text-shadow: 0 0 10px rgba(255, 26, 46, .25); }
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { text-decoration: underline; }
.post-body { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.post-body p { margin: 0 0 12px; }
.post-body h3 { margin: 16px 0 8px; font: 22px/1 var(--f-pix); color: #fff; text-shadow: 0 0 8px rgba(255, 26, 46, .4); }
.post-body ul { margin: 0 0 12px; padding-left: 20px; }
.post-body li { margin-bottom: 4px; }
.post-body li::marker { content: "✠  "; color: var(--gold); }
.post-body blockquote { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--gold); background: rgba(43, 43, 46, .45); color: var(--bone); font-style: italic; }
.post-body code { font: 12px Consolas, monospace; background: #070405; border: 1px solid #3a1018; padding: 1px 4px; }
.post-body hr { border: 0; border-top: 1px dotted #5a1a22; margin: 16px 0; }
.post-img { margin: 0 0 12px; }
.post-img img { display: block; max-width: 100%; height: auto; border: 3px ridge var(--rim); background: #000; }
.post-img figcaption { font: 10px var(--f-tiny); text-transform: uppercase; color: var(--ash); margin-top: 4px; }
.post-meta { margin: 12px 0 0 !important; padding-top: 8px; border-top: 1px dashed #2a1a1e; font-size: 11px; color: var(--ash); }
.post-meta b { color: var(--gold); font-weight: normal; font-family: var(--f-tiny); font-size: 10px; text-transform: uppercase; }
.post-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px !important; padding-top: 10px; border-top: 1px dotted #3a1018; font-size: 12px; font-weight: bold; }

.blurbs h3 {
  font: 23px/1 var(--f-pix);
  color: var(--blood);
  margin: 4px 0 6px;
  text-shadow: 0 0 8px rgba(255, 26, 46, .45);
}
.blurbs h3 + p { margin-top: 0; }
.blurbs p + h3 { margin-top: 14px; }

.now-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.now-card {
  position: relative;
  padding: 12px;
  background: linear-gradient(160deg, rgba(58, 0, 8, .55), rgba(20, 14, 16, .9) 60%);
  border: 1px solid #000;
  outline: 1px solid rgba(201, 164, 92, .45);
  outline-offset: -4px;
}
.now-card h3 { font: 32px/1 var(--f-frak); font-weight: normal; margin: 2px 0 8px; color: #fff; text-shadow: 0 0 10px rgba(255, 26, 46, .4); }
.now-card p { font-size: 12px; }
.now-kicker { font: 10px/1 var(--f-tiny) !important; color: var(--gold) !important; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 4px !important; }

/* ---------- open source: one line per project, like the blog list ---------- */
.h-count { font: 12px var(--f-tiny); color: #ffb3ba; text-shadow: none; }
.oss-list { list-style: none; margin: 0; padding: 0; }
.oss-list li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name links" "tags links";
  gap: 4px 12px;
  align-items: center;
  padding: 8px 0 8px 20px;
  border-bottom: 1px dotted #3a1018;
}
.oss-list li:last-child { border-bottom: 0; }
.oss-list li::before { content: "✠"; position: absolute; left: 2px; top: 9px; color: var(--gold); }
.oss-name { grid-area: name; font-weight: bold; font-size: 14px; }
.oss-list li small { font: 9px var(--f-tiny); color: var(--gold); text-transform: uppercase; }
.oss-list .tags { grid-area: tags; }
.oss-list .links { grid-area: links; justify-content: flex-end; }

.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tags span {
  font: 9px/1 var(--f-tiny);
  text-transform: uppercase;
  padding: 4px 6px 3px;
  color: var(--blood-hot);
  background: var(--char);
  border: 1px solid #4a0a14;
}
.links { display: flex; flex-wrap: wrap; gap: 6px; }


.oss-list .mission[hidden] { display: none; }
.empty { text-align: center; color: var(--ash); font: 11px var(--f-tiny); text-transform: uppercase; padding: 10px; border: 1px dashed #3a1018; }

/* ---------- videos ---------- */
/* ---------- photos + videos (from the drop folders) ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.photo-grid:empty, .video-grid:empty { display: none; }
.thumb {
  display: block; width: 100%; padding: 0; margin: 0;
  aspect-ratio: 1; overflow: hidden;
  background: #000;
  border: 3px ridge var(--rim);
  transition: border-color .2s, box-shadow .2s;
}
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s, filter .3s; filter: saturate(.9) contrast(1.05); }
.thumb:hover { border-color: var(--blood); box-shadow: 0 0 16px rgba(255, 26, 46, .45); }
.thumb:hover img { transform: scale(1.05); filter: saturate(1.1) contrast(1.1); }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.video-grid figure { margin: 0; }
.video-grid video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; border: 3px ridge var(--rim); }
.media-cap { font: 10px/1.4 var(--f-tiny); color: var(--ash); text-transform: uppercase; margin-top: 5px; overflow-wrap: anywhere; }
.media-cap b { color: var(--bone); font-weight: normal; }
.media-empty { text-align: center; color: var(--ash); font: 11px var(--f-tiny); text-transform: uppercase; padding: 18px 10px; border: 1px dashed #3a1018; }
.media-empty[hidden], .media-more[hidden] { display: none; }
.media-more { text-align: center; margin-top: 10px !important; }
.thumb[hidden], .video-grid figure[hidden] { display: none; }

.lightbox {
  padding: 10px;
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  color: var(--bone);
  background: var(--void);
  border: 3px ridge var(--rim);
  box-shadow: 0 0 0 1px #000, 0 0 40px rgba(255, 26, 46, .45);
}
.lightbox::backdrop { background: rgba(5, 2, 3, .88); }
.lightbox img { display: block; max-width: 100%; max-height: calc(92vh - 90px); margin: 0 auto; }
.lightbox form { text-align: right; margin: 0 0 8px; }
.lightbox-cap { margin: 8px 0 0; text-align: center; font: 11px var(--f-tiny); text-transform: uppercase; color: var(--ash); }

/* ---------- friend space ---------- */
.friend-count { font-size: 14px; }
.friends { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 8px; }
.friends li { text-align: center; font-size: 11px; font-weight: bold; }
.friends a { text-decoration: none; display: block; }
.friends .fr {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 84px;
  aspect-ratio: 1;
  margin: 0 auto 4px;
  overflow: hidden;
  background: radial-gradient(circle, #2b2b2e, #141215);
  border: 2px outset #5a1018;
  box-shadow: 0 0 0 1px #000;
}
.friends .fr img { width: 100%; height: 100%; object-fit: cover; display: block; }
.friends .friend:hover .fr { border-color: var(--blood); box-shadow: 0 0 0 1px #000, 0 0 12px rgba(255, 26, 46, .5); }
.friends .fn { color: var(--blood); text-decoration: underline; text-decoration-color: rgba(255, 26, 46, .4); }
.friends .slot .fr { font: 26px/1 var(--f-body); color: #3a1018; border-style: dashed; border-color: #3a1018; background: rgba(20, 14, 16, .6); }
.friends .slot .fn { color: #5c5358; text-decoration: none; font: 9px var(--f-tiny); text-transform: uppercase; }
.friends .slot[hidden] { display: none; }
.friends .slot button { display: block; width: 100%; padding: 0; margin: 0; background: none; border: 0; color: inherit; font: inherit; }
.friends .slot button:hover .fr, .friends .slot button:focus-visible .fr { color: var(--blood); border-color: var(--blood); box-shadow: 0 0 12px rgba(255, 26, 46, .4); }
.friends .slot button:hover .fn { color: var(--blood); }

/* ---------- friends comments ---------- */
.comments[hidden] { display: none; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.comment-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 2px; }
.comment-who { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; background: linear-gradient(180deg, #2f2c2f, #232123); text-align: center; font: bold 11px var(--f-body); color: #ff8a95; text-decoration: none; overflow-wrap: anywhere; }
.comment-who img { width: 64px; height: 64px; object-fit: cover; border: 2px outset #5a1018; }
.comment-body { padding: 8px 10px; background: rgba(43, 43, 46, .55); overflow-wrap: anywhere; }
.comment-body p { margin: 0 0 4px; }
.comment-when { font: 9px var(--f-tiny); color: var(--ash); text-transform: uppercase; }

/* ---------- friend request form ---------- */
.apply {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  color: var(--bone);
  background: linear-gradient(180deg, #181215, #0e0a0c);
  border: 3px ridge var(--rim);
  box-shadow: 0 0 0 1px #000, 0 0 40px rgba(255, 26, 46, .45);
}
.apply::backdrop { background: rgba(5, 2, 3, .85); }
.apply form { padding: 0 14px 14px; display: grid; gap: 10px; }
.apply h2 {
  margin: 0 -14px 0;
  padding: 7px 14px 6px;
  font: 24px/1 var(--f-pix);
  font-weight: normal;
  color: #fff;
  background: var(--bar-wine);
  border-bottom: 1px solid rgba(255, 26, 46, .55);
  text-shadow: 1px 1px 0 #000, 0 0 6px rgba(255, 26, 46, .45);
}
.apply-note { margin: 0; font-size: 11px; color: var(--ash); }
.apply label { display: grid; gap: 4px; font: 10px var(--f-tiny); text-transform: uppercase; color: var(--gold); }
.apply input[type="text"], .apply input[type="url"], .apply textarea {
  font: 13px var(--f-body);
  color: var(--bone);
  background: #070405;
  border: 2px inset #5a1018;
  padding: 6px 8px;
  width: 100%;
  resize: vertical;
}
.apply-grid { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: start; }
.apply-fields { display: grid; gap: 10px; }
.apply-photo { position: relative; }
.apply-photo input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; }
.apply-preview {
  display: grid; place-items: center;
  width: 110px; aspect-ratio: 1;
  overflow: hidden;
  border: 2px dashed #5a1018;
  background: rgba(20, 14, 16, .8);
  text-align: center;
  font: 10px/1.5 var(--f-tiny);
  color: var(--ash);
}
.apply-photo:hover .apply-preview, .apply-photo:focus-within .apply-preview { border-color: var(--blood); color: var(--blood); }
.apply-preview img { width: 100%; height: 100%; object-fit: cover; }
.apply-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply-status { margin: 0; min-height: 1.4em; font: 11px var(--f-tiny); text-transform: uppercase; color: var(--blood-hot); }
.apply-actions { display: flex; justify-content: flex-end; gap: 8px; }
.apply-cancel { background: linear-gradient(180deg, #2b2b2e, #0a0708); border-color: #5c5358 #000 #000 #5c5358; }

/* same look as the shields.io badges on the github readme: charcoal, red logo */
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.badges li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 8px 4px;
  background: var(--char);
  border: 1px solid #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  font: 10px/1 var(--f-tiny);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
}
.badges img { width: 14px; height: 14px; filter: invert(17%) sepia(97%) saturate(6500%) hue-rotate(350deg) brightness(103%) contrast(112%); }

/* ==========================================================
   footer
   ========================================================== */
.footer { text-align: center; padding: 10px 16px 90px; border-top: 1px solid #2a0a10; }
.goth {
  display: block;
  width: min(620px, 100%);
  height: auto;
  margin: 0 auto 10px;
  filter: drop-shadow(0 0 8px rgba(255, 26, 46, .45));
}
.foot-nav { font-size: 12px; font-weight: bold; }
.foot-legal { font-size: 10px; color: var(--ash); margin: 6px 0 0; }

/* ==========================================================
   style meter HUD
   ========================================================== */
/* a little floating window you can drag anywhere (style.js remembers where you left it) */
.hud {
  position: fixed;
  right: 14px;
  top: 120px;
  z-index: 50;
  width: 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding: 0 10px 10px;
  background: linear-gradient(180deg, rgba(27, 26, 29, .85), rgba(10, 7, 8, .85));
  border: 1px solid #3a3a3e;
  box-shadow: 0 0 0 1px #000, 0 10px 30px rgba(0, 0, 0, .55);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow .2s;
}
.hud.dragging { cursor: grabbing; box-shadow: 0 0 0 1px #000, 0 18px 44px rgba(0, 0, 0, .7), 0 0 22px rgba(255, 26, 46, .35); }
.hud-grip {
  align-self: stretch;
  margin: 0 -10px;
  padding: 5px 8px 4px;
  background: var(--bar-char);
  border-bottom: 1px solid rgba(255, 26, 46, .45);
  font: 9px/1 var(--f-tiny);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ash);
  cursor: grab;
}
.hud.dragging .hud-grip { cursor: grabbing; color: var(--bone); }
.hud-rank {
  display: flex; flex-direction: column; align-items: flex-end;
  transition: opacity .3s;
  filter: drop-shadow(0 0 2px #000) drop-shadow(0 2px 0 #000);
}
.hud[data-rank="0"] .hud-rank { opacity: .55; }
.hud-letter {
  font: 84px/0.9 var(--f-rank);
  letter-spacing: -.04em;
  background: linear-gradient(180deg, #fff 0%, var(--rank-c1, #9a9aa6) 45%, var(--rank-c2, #4a4a55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px var(--rank-glow, rgba(154, 154, 166, .6)));
  transform-origin: 80% 60%;
}
.hud-letter.pop { animation: rankpop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes rankpop { 0% { transform: scale(1.9) rotate(-10deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.hud-word {
  font: 22px/1 var(--f-pix);
  color: #fff;
  transform: skewX(-12deg);
  text-shadow: 0 0 8px var(--rank-glow, rgba(154, 154, 166, .6)), 1px 1px 0 #000;
  white-space: nowrap;
  margin-top: 2px;
}
.hud-gauge {
  display: block;
  width: 110px; height: 6px;
  margin-top: 6px;
  background: rgba(0, 0, 0, .7);
  border: 1px solid var(--gold);
  transform: skewX(-20deg);
  overflow: hidden;
}
.hud-gauge i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rank-c2, #4a4a55), var(--rank-c1, #9a9aa6), #fff); transition: width .15s linear; }

.hud[data-rank="1"] { --rank-c1: #8f98b3; --rank-c2: #2d3550; --rank-glow: rgba(143, 152, 179, .7); }
.hud[data-rank="2"] { --rank-c1: #6fc3ff; --rank-c2: #0d3a66; --rank-glow: rgba(111, 195, 255, .7); }
.hud[data-rank="3"] { --rank-c1: #ffd35a; --rank-c2: #7a4a00; --rank-glow: rgba(255, 211, 90, .7); }
.hud[data-rank="4"] { --rank-c1: #ff8a2a; --rank-c2: #7a1f00; --rank-glow: rgba(255, 138, 42, .75); }
.hud[data-rank="5"] { --rank-c1: #ff1a2e; --rank-c2: #4a0008; --rank-glow: rgba(255, 26, 46, .85); }
.hud[data-rank="6"] { --rank-c1: #ff1a2e; --rank-c2: #c9a45c; --rank-glow: rgba(255, 26, 46, .95); }
.hud[data-rank="7"] { --rank-c1: #f3d48a; --rank-c2: #ff1a2e; --rank-glow: rgba(255, 60, 60, 1); }
.hud[data-rank="7"] .hud-letter { animation: sss 1.2s ease-in-out infinite alternate; }
@keyframes sss { to { filter: drop-shadow(0 0 22px rgba(255, 26, 46, 1)) drop-shadow(0 0 4px #fff); } }

.dt-btn {
  font: 10px/1 var(--f-tiny);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  padding: 7px 9px 6px;
  background: linear-gradient(180deg, #2b2b2e, #0a0708);
  border: 1px solid var(--blood);
  box-shadow: 0 0 0 1px #000, 0 0 10px rgba(255, 26, 46, .5);
  text-shadow: 0 0 6px var(--blood);
}
.dt-btn:hover { background: linear-gradient(180deg, #8a0010, #2a0006); }
.dt-btn[aria-pressed="true"] { background: linear-gradient(180deg, #ff1a2e, #5a000c); color: #fff; animation: dtbtn .6s ease-in-out infinite alternate; }
@keyframes dtbtn { to { box-shadow: 0 0 0 1px #000, 0 0 24px rgba(255, 26, 46, 1); } }

/* ---------- devil trigger mode ---------- */
body.dt .banner-video { filter: saturate(2.2) contrast(1.3) hue-rotate(-14deg) brightness(1.05); }
body.dt .box { border-color: var(--blood); animation: dtpulse 1.1s ease-in-out infinite alternate; }
body.dt .profile-card .profile-name { color: #fff; text-shadow: 0 0 4px var(--blood), 0 0 24px var(--blood), 0 0 48px var(--blood); }
body.dt { background-image: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(255, 26, 46, .5), transparent 70%), radial-gradient(ellipse 70% 50% at 50% 110%, rgba(255, 26, 46, .35), transparent 70%), var(--wallpaper); }
body.dt::before {
  content: "";
  position: fixed; inset: 0; z-index: 8999; pointer-events: none;
  box-shadow: inset 0 0 120px rgba(255, 26, 46, .55);
  animation: dtedge 2.4s steps(1) infinite;
}
@keyframes dtpulse { from { box-shadow: 0 0 0 1px #000, 0 0 10px rgba(255, 26, 46, .25); } to { box-shadow: 0 0 0 1px #000, 0 0 26px rgba(255, 26, 46, .6); } }
@keyframes dtedge { 0%, 100% { opacity: 1; } 47% { opacity: .6; } 48% { opacity: 1; } 49% { opacity: .3; } 50% { opacity: 1; } }

/* ---------- cursor trail ---------- */
.spark {
  position: fixed; z-index: 9500; pointer-events: none;
  font: 14px/1 var(--f-body);
  transform: translate(-50%, -50%);
  animation: spark .9s ease-out forwards;
  text-shadow: 0 0 6px currentColor;
}
@keyframes spark {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + 36px)) scale(.4) rotate(90deg); }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 9600;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  font: 11px/1.4 var(--f-tiny);
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #2b2b2e, #0a0708);
  border: 2px outset #4a454e;
  box-shadow: 0 0 0 1px #000, 0 0 20px rgba(255, 26, 46, .3);
  transition: opacity .2s, transform .2s;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================
   responsive
   ========================================================== */
@media (max-width: 900px) {
  .hud { top: auto; bottom: 12px; right: 10px; width: auto; min-width: 118px; }
  .hud-letter { font-size: 58px; }
  .hud-word { font-size: 16px; }
  .hud-gauge { width: 80px; }
  .footer { padding-bottom: 150px; }
}

@media (max-width: 820px) {
  .profile { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .col-left { columns: 2 280px; column-gap: 16px; }
  .col-left > .box { break-inside: avoid; }
}

@media (max-width: 640px) {
  .topbar-inner { padding: 8px 16px; }
  .search { flex-basis: 100%; }
  .search-label { display: none; }
  .search select { max-width: 40%; }
  .navbar { font-size: 11px; padding: 4px 8px; }
  .navbar a { padding: 0 2px; }
  .col-left { display: block; }
  .now-grid, .video-grid { grid-template-columns: minmax(0, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .col-left { columns: auto; }
  .friends { grid-template-columns: repeat(4, 1fr); gap: 8px 6px; }

  .friends li { font-size: 10px; }
  .oss-list li { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "tags" "links"; }
  .oss-list .links { justify-content: flex-start; margin-top: 2px; }
  .hud-word { display: none; }
  .hud-letter { font-size: 48px; }
  .hud-gauge { width: 64px; }
  .dt-btn { font-size: 9px; padding: 6px 7px 5px; }
}

@media (max-width: 360px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .friends { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- reduced motion: keep the look, drop the movement ---------- */
@media (prefers-reduced-motion: reduce) {
  .blink, .lcd-track, .player.playing .viz i, .hud-letter.pop, .hud[data-rank="7"] .hud-letter,
  .dt-btn[aria-pressed="true"], body.dt .box, body.dt::before { animation: none !important; }
  .marquee-track { animation: none; width: auto; }
  .marquee-track span { white-space: normal; padding: 0 16px; }
  .marquee-track span[aria-hidden] { display: none; }
  .lcd-track { padding-left: 8px; }
  .fx-flash { display: none; }
}

/* blog pages on phones: the posts come before the profile card + archive */
@media (max-width: 820px) {
  .blog-page .col-right { order: -1; }
}
