/* =========================================================
   NICK DEDA — synth / space / pixel theme
   Hard pixel edges, neon trim, pixel-font headings.
   The animated space behind everything is drawn by bg.js.
   ========================================================= */
:root {
  --void: #05010f;
  --panel: rgba(12, 4, 32, 0.86);
  --panel-solid: #0c0420;
  --magenta: #ff2bd6;
  --cyan: #2de2e6;
  --orange: #ff6c11;
  --yellow: #f9c80e;
  --violet: #7b2fbe;
  --text: #ece6ff;
  --muted: #9b90c4;
  --line: rgba(45, 226, 230, 0.22);

  /* older names still used by scripts (fallback art colors) */
  --pink: #5a1458;
  --blue: #1a2a6b;
  --green: #14504a;
  --card: var(--panel-solid);
  --ink: var(--void);
  --gold: var(--yellow);

  --f-pixel: "Press Start 2P", "Courier New", monospace;
  --f-body: "Space Mono", "Courier New", monospace;
  --f-display: var(--f-pixel);
  --f-marker: var(--f-pixel);
  --f-hand: var(--f-body);

  --hard: 4px 4px 0 0 rgba(255, 43, 214, 0.55);
  --hard-cyan: 4px 4px 0 0 rgba(45, 226, 230, 0.5);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--void); }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  background: transparent; /* let the space canvas show through */
}

a { color: var(--cyan); }
::selection { background: var(--magenta); color: var(--void); }

/* ---------- background + CRT ---------- */
#space {
  position: fixed; inset: 0; z-index: -2;
  width: 100vw; height: 100vh;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.scanlines {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, .5) 100%);
  mix-blend-mode: multiply;
}

/* ---------- shared: pixel panels ---------- */
.card, .polaroid, .paper, .pin, .artist-card, .post-item, .title-card {
  position: relative;
  background: var(--panel);
  border: 2px solid var(--cyan);
  border-radius: 0;
  box-shadow: var(--hard);
  color: var(--text);
}
.card { padding: 26px 26px 22px; }

/* leftovers from older themes */
.tape::before, .tape-pink::before, .tape-blue::before { display: none; }
.torn { clip-path: none; }

/* pixel button (tabs, submit, admin, back) */
.menu-btn, .tab, .back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-pixel);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cyan);
  padding: 12px 16px;
  background: var(--panel-solid);
  border: 2px solid var(--cyan);
  border-radius: 0;
  box-shadow: var(--hard);
  cursor: pointer;
  position: relative;
  transition: transform .06s steps(1), box-shadow .06s steps(1), background .06s steps(1);
}
.menu-btn:hover, .tab:hover, .back:hover {
  color: var(--void);
  background: var(--cyan);
}
.menu-btn:active, .tab:active, .back:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 0 rgba(255, 43, 214, .55);
}
.menu-btn.on {
  color: var(--void);
  background: var(--cyan);
}
.menu-btn:disabled { opacity: .5; cursor: wait; }

/* tiny square status light */
.gem {
  width: 8px; height: 8px; flex: none;
  background: var(--gem, var(--yellow));
  box-shadow: 0 0 0 2px var(--void), 0 0 8px var(--gem, var(--yellow));
}
.t-yellow, .g-yellow { --gem: var(--yellow); }
.t-blue,   .g-blue   { --gem: #4a8cff; }
.t-pink,   .g-red    { --gem: var(--magenta); }
.t-green,  .g-green  { --gem: #39ff8a; }
.t-orange, .g-orange { --gem: var(--orange); }

/* text fields */
input[type="text"], input[type="password"] {
  font: inherit;
  color: var(--text);
  padding: 10px 12px;
  background: rgba(5, 1, 15, .8);
  border: 2px solid var(--line);
  border-radius: 0;
  outline: none;
}
input::placeholder { color: var(--muted); }
input:focus { border-color: var(--magenta); }

/* ---------- header ---------- */
.masthead { text-align: center; padding: 48px 16px 6px; }

.title-card {
  display: inline-block;
  min-width: min(640px, 92vw);
  padding: 30px 40px 24px;
  border-color: var(--magenta);
  box-shadow: 6px 6px 0 0 rgba(45, 226, 230, .5);
}
.title-name {
  margin: 0;
  font-family: var(--f-pixel);
  font-weight: normal;
  font-size: clamp(26px, 6vw, 60px);
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    3px 0 0 var(--magenta),
    -3px 0 0 var(--cyan),
    0 0 24px rgba(255, 43, 214, .55);
  animation: glitch 6s steps(1) infinite;
}
@keyframes glitch {
  0%, 91%, 100% { transform: none; text-shadow: 3px 0 0 var(--magenta), -3px 0 0 var(--cyan), 0 0 24px rgba(255,43,214,.55); }
  92% { transform: translate(3px, -1px); text-shadow: -4px 0 0 var(--magenta), 4px 0 0 var(--cyan), 0 0 24px rgba(255,43,214,.55); }
  94% { transform: translate(-3px, 1px); text-shadow: 5px 1px 0 var(--magenta), -2px 0 0 var(--cyan), 0 0 24px rgba(255,43,214,.55); }
  96% { transform: translate(1px, 0); }
}
.title-rule {
  display: flex; align-items: center; gap: 0;
  margin: 16px auto 14px; max-width: 380px;
  color: var(--yellow); font-size: 12px; line-height: 1;
}
.title-rule::before, .title-rule::after {
  content: ""; flex: 1; height: 2px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 6px, transparent 6px 10px);
}
.tagline {
  margin: 0;
  font-family: var(--f-body);
  font-size: clamp(11px, 1.6vw, 14px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
}

.socials {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
}
.socials a {
  font-family: var(--f-pixel);
  font-size: 9px;
  line-height: 1.6;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--magenta);
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}
.socials a::before { content: "> "; color: var(--muted); }
.socials a:hover { color: var(--void); background: var(--magenta); border-bottom-color: var(--magenta); }

/* ---------- tabs ---------- */
.tabs {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 16px;
  margin: 34px 0 6px;
}
.tab.active { color: var(--void); background: var(--cyan); }
.tab.active::before {
  content: "▶";
  color: var(--magenta);
  font-size: 9px;
  margin-right: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- pages ---------- */
main { max-width: 1060px; margin: 0 auto; padding: 30px 20px 60px; }
.page { position: relative; animation: boot .25s steps(4); }
@keyframes boot { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.section-title {
  display: flex; align-items: center; gap: 16px;
  margin: 10px 0 30px;
}
.section-title::before, .section-title::after {
  content: ""; flex: 1; height: 2px;
  background: repeating-linear-gradient(90deg, var(--magenta) 0 8px, transparent 8px 14px);
}
.section-title span {
  font-family: var(--f-pixel);
  font-weight: normal;
  font-size: clamp(16px, 3.2vw, 30px);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--yellow);
  text-shadow: 3px 3px 0 var(--magenta), 0 0 18px rgba(249, 200, 14, .35);
  text-align: center;
}

.marker { font-family: var(--f-pixel); color: var(--yellow); line-height: 1.5; }
.scrawl { font-style: italic; color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.center { text-align: center; }
.page > .scrawl.center { color: var(--cyan); font-style: normal; text-shadow: 0 0 10px rgba(45,226,230,.4); }
.stamp {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-family: var(--f-pixel);
  font-weight: normal;
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--orange);
}
.stamp::before { content: ">"; color: var(--magenta); }
.stamp::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px); }

/* ---------- intro ---------- */
.collage {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-areas: "photo note" "cats now";
  gap: 28px 32px;
  padding-top: 14px;
}
.polaroid { grid-area: photo; margin: 0; padding: 10px 10px 8px; align-self: start; border-color: var(--magenta); box-shadow: var(--hard-cyan); }
.polaroid img, .photo-placeholder {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block;
  border: 2px solid var(--void);
}
.photo-placeholder { display: grid; place-items: center; text-align: center; background: var(--void); color: var(--muted); }
.polaroid figcaption {
  font-family: var(--f-pixel);
  font-size: 9px;
  line-height: 1.5;
  text-transform: uppercase;
  text-align: center;
  color: var(--cyan);
  margin-top: 10px;
}
.polaroid.cats { grid-area: cats; width: 82%; justify-self: center; }
.note { grid-area: note; }
.note h2 { font-family: var(--f-pixel); font-weight: normal; font-size: 20px; line-height: 1.4; margin: 0 0 14px; color: var(--yellow); text-shadow: 2px 2px 0 var(--magenta); }
.note p { margin: 0 0 12px; }
.lined { grid-area: now; align-self: start; }
.currently { list-style: none; padding: 0; margin: 0; }
.currently li { padding: 8px 0; border-bottom: 2px dashed var(--line); }
.currently li:last-child { border-bottom: none; }
.currently b {
  font-family: var(--f-pixel); font-weight: normal; font-size: 9px;
  text-transform: uppercase; color: var(--orange); margin-right: 8px;
}

/* ---------- projects ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.project .emoji { font-size: 30px; line-height: 1; }
.project h3 { font-family: var(--f-pixel); font-weight: normal; font-size: 15px; line-height: 1.5; margin: 0 0 10px; color: var(--yellow); }
.project p { margin: 0 0 16px; font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tags span {
  font-family: var(--f-body); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 2px 8px; border: 2px solid var(--violet); color: #d9b8ff; background: rgba(123, 47, 190, .18);
}
.links { display: flex; gap: 18px; flex-wrap: wrap; }
.links a {
  font-family: var(--f-pixel); font-size: 10px; line-height: 1.6;
  text-transform: uppercase; text-decoration: none; color: var(--cyan);
  border-bottom: 2px solid var(--magenta);
}
.links a:hover { color: var(--void); background: var(--cyan); }

/* ---------- blog ---------- */
.post-list { display: flex; flex-direction: column; gap: 22px; max-width: 760px; margin: 26px auto 0; }
.post-item { display: block; padding: 20px 24px; text-decoration: none; transition: transform .06s steps(1); }
.post-item:hover { border-color: var(--magenta); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 rgba(255, 43, 214, .6); }
.post-item h3 { font-family: var(--f-pixel); font-weight: normal; font-size: 15px; margin: 8px 0 6px; line-height: 1.5; color: var(--yellow); }
.post-item .date, .paper .date { color: var(--orange); font-size: 13px; }
.post-item p { margin: 6px 0 0; color: var(--muted); }

.back { margin-bottom: 24px; }

.paper { max-width: 760px; margin: 0 auto; padding: 38px 42px 40px; line-height: 1.8; }
.paper h1 { font-family: var(--f-pixel); font-weight: normal; font-size: clamp(16px, 3vw, 24px); line-height: 1.5; margin: 0 0 10px; color: var(--yellow); text-shadow: 2px 2px 0 var(--magenta); }
.paper h2, .paper h3 { font-family: var(--f-pixel); font-weight: normal; font-size: 13px; line-height: 1.6; color: var(--cyan); margin: 34px 0 12px; }
.paper p, .paper ul, .paper ol, .paper blockquote, .paper pre { margin: 0 0 22px; }
.post-content { margin-top: 26px; }
.paper img { max-width: 100%; display: block; margin: 0 auto 22px; border: 2px solid var(--cyan); box-shadow: var(--hard); }
.paper blockquote { color: #ffb3ef; border-left: 4px solid var(--magenta); padding-left: 16px; font-style: italic; }
.paper code { background: rgba(45, 226, 230, .12); color: var(--cyan); padding: 1px 5px; }
.paper pre { background: var(--void); border: 2px solid var(--line); padding: 14px; overflow-x: auto; line-height: 1.5; color: #39ff8a; }
.paper pre code { background: none; padding: 0; color: inherit; }

/* ---------- listening ---------- */
.np-line { color: inherit; text-decoration: none; border-bottom: 2px dotted var(--magenta); }
.muted { color: var(--muted); }
.live-dot {
  display: inline-block; width: 8px; height: 8px; margin-right: 8px;
  background: #39ff8a; box-shadow: 0 0 8px #39ff8a;
  vertical-align: middle; animation: blink 1s steps(1) infinite;
}

.deck { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; }
.now { text-align: center; }
.vinyl {
  width: min(240px, 70vw); aspect-ratio: 1; margin: 6px auto 18px; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 32%, rgba(45,226,230,.12) 33%, transparent 34%, transparent 44%, rgba(255,43,214,.1) 45%, transparent 46%, transparent 58%, rgba(45,226,230,.12) 59%, transparent 60%),
    conic-gradient(from 30deg, #1a1124, #07040c 25%, #241830 50%, #07040c 75%, #1a1124);
  display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--magenta), 0 0 24px rgba(255, 43, 214, .35);
}
.vinyl.spin { animation: spin 3.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.vinyl .label { width: 40%; aspect-ratio: 1; border-radius: 50%; background: var(--violet) center / cover; border: 2px solid var(--cyan); display: grid; place-items: center; }
.vinyl .label::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--void); }
.np-title { display: block; font-family: var(--f-pixel); font-size: 15px; line-height: 1.5; color: var(--yellow); text-decoration: none; }
.np-title:hover { color: var(--cyan); }
.np-artist { margin-top: 8px; }
.np-album { color: var(--muted); font-size: 14px; }
.eq { display: flex; justify-content: center; align-items: flex-end; gap: 4px; height: 24px; margin-top: 12px; }
.eq i { width: 6px; background: var(--cyan); animation: eq .9s steps(5) infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s; background: var(--magenta); }
.eq i:nth-child(3) { animation-delay: -.6s; background: var(--yellow); }
.eq i:nth-child(4) { animation-delay: -.15s; background: var(--orange); }
.eq i:nth-child(5) { animation-delay: -.45s; background: var(--cyan); }
@keyframes eq { from { height: 4px; } to { height: 24px; } }

.tracklist ol { list-style: none; margin: 0; padding: 0; counter-reset: trk; }
.tracklist li { counter-increment: trk; border-bottom: 2px dashed var(--line); }
.tracklist li:last-child { border-bottom: none; }
.tracklist li a {
  display: grid; grid-template-columns: 26px 46px 1fr auto; align-items: center; gap: 12px;
  padding: 8px 6px; color: var(--text); text-decoration: none;
}
.tracklist li a::before { content: counter(trk, decimal-leading-zero); font-family: var(--f-pixel); font-size: 9px; color: var(--muted); }
.tracklist li a:hover { background: rgba(45, 226, 230, .1); }
.tracklist .cover { width: 46px; height: 46px; background: center / cover; border: 2px solid var(--magenta); image-rendering: pixelated; }
.tracklist .meta { min-width: 0; }
.tracklist .song { display: block; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tracklist .by { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tracklist .when { font-size: 12px; color: var(--orange); white-space: nowrap; }
.tracklist .empty { padding: 10px 0; color: var(--muted); }

.sub-title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-pixel); font-weight: normal; font-size: 13px; line-height: 1.5; text-transform: uppercase;
  color: var(--cyan); margin: 54px 0 24px;
}
.sub-title::before, .sub-title::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--cyan) 0 6px, transparent 6px 10px); opacity: .6; }
.artist-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-bottom: 28px; }
.artist-card { display: flex; flex-direction: column; padding: 10px 10px 12px; text-decoration: none; transition: transform .06s steps(1); }
.artist-card:hover { border-color: var(--magenta); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 rgba(255, 43, 214, .6); }
.artist-img {
  aspect-ratio: 1; background: center / cover; border: 2px solid var(--void);
  display: grid; place-items: center; font-family: var(--f-pixel); font-size: 18px; color: var(--text);
}
.artist-name { font-family: var(--f-pixel); font-size: 9px; line-height: 1.6; margin-top: 10px; text-align: center; color: var(--text); }
.plays { font-size: 12px; color: var(--muted); text-align: center; margin-top: 2px; }
.rank {
  position: absolute; top: -12px; left: -12px; z-index: 1;
  padding: 6px 6px 5px;
  font-family: var(--f-pixel); font-size: 9px; line-height: 1;
  color: var(--void) !important;
  background: var(--yellow) !important;
  border: 2px solid var(--void);
  box-shadow: 2px 2px 0 var(--magenta);
}

/* ---------- photo board ---------- */
.wall-bar { display: flex; justify-content: center; margin: -8px 0 30px; }
.upload { max-width: 760px; margin: 0; display: grid; grid-template-columns: 220px 1fr; gap: 20px 24px; align-items: center; }
.modal-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.modal-head .stamp { flex: 1; margin: 0; }
.upload > .scrawl { grid-column: 1 / -1; margin: -8px 0 0; }
.modal-x {
  font-family: var(--f-pixel); font-size: 12px; line-height: 1;
  width: 32px; height: 32px; flex: none;
  color: var(--magenta); background: var(--panel-solid);
  border: 2px solid var(--magenta); cursor: pointer;
  box-shadow: 3px 3px 0 0 rgba(45, 226, 230, .5);
}
.modal-x:hover { color: var(--void); background: var(--magenta); }

/* pop-up windows */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(5, 1, 15, .82); }
.modal { padding: 0; border: none; background: none; width: min(760px, 94vw); max-height: 92vh; overflow: visible; }
.modal[open] { animation: boot .2s steps(4); }

.lightbox {
  padding: 0; border: none; background: none;
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  display: none; align-items: center; justify-content: center; gap: 16px;
}
.lightbox[open] { display: flex; animation: boot .2s steps(4); }
.lb-frame {
  margin: 0; padding: 10px 10px 12px;
  background: var(--panel-solid);
  border: 2px solid var(--cyan);
  box-shadow: 6px 6px 0 0 rgba(255, 43, 214, .55);
  max-width: min(1000px, 82vw);
}
.lb-frame img { display: block; max-width: 100%; max-height: 76vh; margin: 0 auto; border: 2px solid var(--void); }
.lb-frame figcaption { margin-top: 10px; font-size: 15px; }
.lb-close { position: fixed; top: 18px; right: 18px; }
.lb-nav {
  font-family: var(--f-pixel); font-size: 16px; line-height: 1;
  width: 46px; height: 46px; flex: none;
  color: var(--cyan); background: var(--panel-solid);
  border: 2px solid var(--cyan); cursor: pointer;
  box-shadow: 3px 3px 0 0 rgba(255, 43, 214, .55);
}
.lb-nav:hover { color: var(--void); background: var(--cyan); }
.lb-nav:active, .modal-x:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 rgba(255, 43, 214, .55); }
.drop {
  position: relative; aspect-ratio: 1; display: grid; place-items: center; text-align: center;
  border: 2px dashed var(--cyan); background: rgba(5, 1, 15, .7);
  cursor: pointer; overflow: hidden;
}
.drop.over, .drop:hover { border-color: var(--magenta); background: rgba(255, 43, 214, .08); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-text { font-family: var(--f-pixel); font-size: 10px; line-height: 1.8; text-transform: uppercase; color: var(--cyan); pointer-events: none; }
.drop-text small { display: block; font-family: var(--f-body); text-transform: none; color: var(--muted); font-size: 12px; }
.drop img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.upload-fields { display: flex; flex-direction: column; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pin-btn { align-self: flex-start; }
.upload-status { color: var(--orange); margin: 0; min-height: 24px; font-size: 14px; }

/* plain grid of square tiles (no column layout, nothing moves on hover) */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; align-items: start; }
.pin { margin: 0; padding: 8px 8px 10px; cursor: zoom-in; }
.pin:hover, .pin:focus-visible { outline: none; border-color: var(--yellow); box-shadow: 4px 4px 0 0 rgba(249, 200, 14, .6); }
.pin:nth-child(even) { border-color: var(--magenta); box-shadow: var(--hard-cyan); }
.pin img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border: 2px solid var(--void); background: var(--void); }
.pin figcaption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin figcaption { margin-top: 8px; line-height: 1.4; font-size: 14px; }
.by-line { font-size: 12px; color: var(--muted); margin-top: 4px; text-align: right; }
.pushpin { display: none; }
.wall > .scrawl { grid-column: 1 / -1; }

/* ---------- footer ---------- */
.footer {
  text-align: center; padding: 30px 16px 40px;
  font-family: var(--f-pixel); font-size: 9px; line-height: 1.6; text-transform: uppercase; color: var(--muted);
}
.footer p { margin: 0; }
.friends {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 10px; margin-bottom: 22px;
}
.friends-label { width: 100%; color: var(--orange); margin-bottom: 4px; }
.friends-label::before { content: "> "; color: var(--magenta); }
.friends a { display: block; line-height: 0; border: 2px solid var(--line); box-shadow: 3px 3px 0 0 rgba(255, 43, 214, .45); }
.friends a:hover { border-color: var(--cyan); box-shadow: 3px 3px 0 0 var(--cyan); }
.friends img { display: block; width: 88px; height: 31px; image-rendering: pixelated; }

/* ---------- celebration ---------- */
.cheat {
  position: fixed; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  font-family: var(--f-pixel); font-size: clamp(18px, 4.5vw, 44px); line-height: 1.4;
  color: var(--yellow);
  text-shadow: 4px 4px 0 var(--magenta), -3px 0 0 var(--cyan), 0 0 30px rgba(249, 200, 14, .6);
  pointer-events: none; z-index: 70;
}
.confetti { position: fixed; top: -20px; width: 10px; height: 10px; pointer-events: none; z-index: 69; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .artist-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .masthead { padding-top: 58px; }
  .title-card { padding: 22px 16px 18px; }
  .tagline { letter-spacing: 1px; }
  .tabs { gap: 12px 10px; }
  .tab { font-size: 9px; padding: 10px 11px; gap: 7px; }
  .collage { grid-template-columns: 1fr; grid-template-areas: "photo" "note" "cats" "now"; }
  .polaroid, .polaroid.cats { max-width: 300px; width: 100%; justify-self: center; }
  .note h2 { font-size: 16px; }
  .deck { grid-template-columns: 1fr; }
  .artist-grid { grid-template-columns: repeat(2, 1fr); }
  .upload { grid-template-columns: 1fr; max-height: 88vh; overflow-y: auto; }
  .lightbox { gap: 0; }
  .lb-nav { position: fixed; bottom: 22px; }
  .lb-prev { left: 22px; }
  .lb-next { right: 22px; }
  .lb-frame { max-width: 94vw; }
  .lb-frame img { max-height: 66vh; }
  .drop { max-width: 260px; justify-self: center; width: 100%; }
  .wall { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pin { padding: 5px 5px 7px; }
  .paper { padding: 28px 20px 30px; }
  .card { padding: 22px 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
