/* =========================================================
   Fresh Cake — Dark UI + Light Panels (neo-brutal-lite)
   ========================================================= */

/* ── Fonts ── */
@font-face {
  font-family: 'Roboto';
  src: url('../lib/Fonts/Roboto/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../lib/Fonts/Roboto/Roboto-Italic-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../lib/Fonts/JetBrains_Mono/JetBrainsMono-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../lib/Fonts/JetBrains_Mono/JetBrainsMono-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg:        #1c1b1f;
  --header:    #2e2c32;
  --card:      #e2dccd;
  --card-2:    #bfb8a7;
  --head:      #7b7975;
  --ink:       #101215;
  --muted:     #2e2c32;
  --stroke:       rgba(0,0,0,1);
  --stroke-soft:  rgba(0,0,0,.55);
  --shadow:       #000;
  --shadow-soft:  #000;
  --accent:    #dd5440;
  --accent-2:  #5fa982;
  --accent-3:  #a8d9be;
  --accent-4:  #ffd24a;
  --accent-5:  #ff6bb5;
  --accent-6:  #ac92a6;
  --accent-7:  #ffb3d9;
  --highlight: #ffd24a;
  --pill-neutral:  #d6d6d0;
  --pill-profile:  var(--card-2);
  --pill-feature:  #ffe080;
  --pill-arcade:   #ffb3d9;
  --pill-latest:   #c9c1b6;
  --pill-youtube:  #ff3b30;
  --pill-bluesky:  #3b82f6;
  --pill-github:   #3e3e3e;
  --pill-blog:     #ffc87a;
  --pill-linkedin: #0a66c2;
  --pill-email:    #7b7975;
  --radius:    18px;
  --gap:       16px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: 'Roboto', ui-sans-serif, system-ui, -apple-system, Segoe UI, Helvetica, Arial;
  --display: 'Roboto', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--sans); font-weight: 700; color: var(--ink);
  background: var(--bg);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display); font-weight: 900; letter-spacing: .02em;
}
a { color: inherit; }
button { font: inherit; }

/* ── Layout ── */
main { max-width: 1200px; margin: 0 auto; padding: 16px; }

.page-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: var(--gap);
  align-items: start;
}

/* ── Sidebar ── */
.sidebar {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* ── Sidebar Nav Links ── */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px;
  background: var(--card);
  border: 3px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 #000;
  text-decoration: none; color: var(--ink);
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease, color .15s ease;
  cursor: pointer;
}
.sidebar-link:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 #000; }
.slink-dot  { font-size: 11px; flex-shrink: 0; line-height: 1; transition: color .15s ease; }
.slink-label { flex: 1; }

/* Fill highlight per destination on hover */
.sidebar-link[href$="blog.html"]:hover     { background: var(--pill-blog); }
.sidebar-link[href$="arcade.html"]:hover   { background: var(--pill-arcade); }
.sidebar-link[href*="giphy.com"]:hover     { background: var(--accent-5); }
.sidebar-link[href*="yt.freshcake.wtf"]:hover { background: var(--pill-youtube); color: #fff; }
.sidebar-link[href*="li.freshcake.wtf"]:hover { background: var(--pill-linkedin); color: #fff; }

.sidebar-link[href$="blog.html"]:hover .slink-dot,
.sidebar-link[href$="arcade.html"]:hover .slink-dot,
.sidebar-link[href*="giphy.com"]:hover .slink-dot { color: rgba(0,0,0,.6) !important; }
.sidebar-link[href*="yt.freshcake.wtf"]:hover .slink-dot,
.sidebar-link[href*="li.freshcake.wtf"]:hover .slink-dot { color: #fff !important; }
.slink-arrow { opacity: .55; font-size: 14px; }

.sidebar-kofi {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 16px;
  background: #dd5440;
  border: 3px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 #000;
  color: #fff;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.sidebar-kofi:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 #000; }

/* ── Mobile header (hidden on desktop) ── */
.mobile-hdr { display: none; }
.mobile-quick { display: none; }
.mobile-kofi-btn { display: none; }
.mobile-nav-drawer { display: none; }

/* ── Widgets ── */
.widget {
  background: var(--card); border: 3px solid var(--stroke);
  border-radius: var(--radius); box-shadow: 6px 6px 0 var(--shadow); overflow: hidden;
}
.w-head {
  padding: 10px 14px; display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
  font-family: var(--display); text-transform: uppercase;
  letter-spacing: .08em; font-weight: 900; font-size: 13px;
  color: rgba(0,0,0,.75);
}
.w-body { padding: 14px; }

/* ── Pills ── */
.pill {
  border: 2px solid rgba(0,0,0,1); border-radius: 999px;
  padding: 6px 10px; box-shadow: 3px 3px 0 #000;
  background: var(--pill-neutral); color: rgba(0,0,0,.85);
  font-family: var(--mono); font-size: 12px;
  text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  cursor: pointer; display: inline-block;
}
.pill:hover {
  transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #000;
  filter: brightness(1.04);
}
#profile .w-head .pill  { background: var(--pill-profile); color: rgba(0,0,0,.85); }
.pill.github   { background: var(--pill-github);   color: #fff; }
.pill.blog-tag { background: var(--pill-blog);     color: #000; }
.pill.youtube  { background: var(--pill-youtube);  color: #fff; }
.pill.linkedin { background: var(--pill-linkedin); color: #fff; }
.pill.email    { background: var(--pill-email);    color: rgba(255,255,255,.85); }
.pill.giphy {
  background: linear-gradient(90deg, #ff6bb5, #dd5440, #ffd24a, #5fa982, #3b82f6, #ac92a6, #ff6bb5);
  background-size: 300% 100%;
  color: #000;
  animation: giphy-rainbow 5s ease infinite;
}
@keyframes giphy-rainbow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Site footer ── */
.site-footer {
  display: flex; justify-content: center; align-items: center;
  padding: 20px 16px;
}
.footer-logo {
  height: 48px; width: auto; opacity: .75;
  transition: opacity .15s ease; display: block;
}
.footer-logo:hover { opacity: 1; }

/* ── Ko-fi shared icon ── */
.kofi-cup  { height: 15px; width: auto; animation: kofi-wiggle 3s infinite; }
@keyframes kofi-wiggle {
  0%,60%  { transform: rotate(0)      scale(1);    }
  75%,80% { transform: rotate(0)      scale(1.25); }
  84%,92% { transform: rotate(-10deg) scale(1.25); }
  88%,96% { transform: rotate(10deg)  scale(1.25); }
  100%    { transform: rotate(0)      scale(1);    }
}
@media (prefers-reduced-motion: reduce) { .kofi-cup { animation: none; } }

/* ── Ko-fi modal ── */
.kofi-modal {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.kofi-modal.open { opacity: 1; pointer-events: all; }
.kofi-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.65);
}
.kofi-modal-panel {
  position: relative; z-index: 1;
  width: min(480px, 92vw); height: min(640px, 88vh);
  border: 3px solid rgba(0,0,0,1);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 #000;
  overflow: hidden; background: #fff;
}
.kofi-modal-panel iframe {
  width: 100%; height: 100%; border: none; display: block;
}
.kofi-modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 999px;
  border: 2px solid rgba(0,0,0,1); background: var(--card);
  font-size: 18px; line-height: 1; cursor: pointer;
  box-shadow: 3px 3px 0 #000;
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s, box-shadow .12s;
}
.kofi-modal-close:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #000; }

/* ── Profile ── */
.avatar {
  width: 120px; height: 120px; display: block; margin: 0 auto 10px;
  border-radius: 999px; border: 2px solid rgba(0,0,0,1);
  box-shadow: 3px 3px 0 #000; object-fit: cover; background: #6d707a;
}
.profile-name {
  font-family: var(--display); font-weight: 900; letter-spacing: .12em;
  text-transform: uppercase; text-align: center; margin: 0 0 4px; font-size: 18px;
}
.profile-role {
  margin: 0 0 4px; color: var(--muted); font-family: var(--mono);
  letter-spacing: .12em; text-transform: uppercase; font-size: 12px;
  text-align: center;
}
.profile-tagline { margin: 0 0 10px; color: rgba(0,0,0,.62); font-size: 14px; line-height: 1.35; text-align: center; font-family: var(--sans); font-weight: 700; }
.stat-line {
  background: var(--accent-3); border: 2px solid rgba(0,0,0,1);
  border-radius: 10px; padding: 8px 12px; margin-bottom: 4px;
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
}
.stat-number {
  font-family: var(--mono); font-weight: 900; font-size: 18px;
  color: var(--ink); letter-spacing: .05em;
}
.stat-label { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .10em; }

/* ── Current Project Widget ── */
#current-project .w-head .pill { background: var(--pill-profile); color: rgba(0,0,0,.85); }
.current-proj-link {
  display: block; text-decoration: none; color: inherit;
  transition: opacity .15s ease;
}
.current-proj-link:hover { opacity: .88; }
#current-project .w-body { padding: 10px; }
.current-proj-thumb {
  aspect-ratio: 16 / 9; overflow: hidden;
  border: 2px solid rgba(0,0,0,1);
  border-radius: 10px;
  background: #2e2c32;
}
.current-proj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.current-proj-info { padding: 10px 2px 2px; }
.current-proj-title {
  margin: 0 0 5px;
  font-family: var(--display); font-weight: 900; font-size: 15px; color: rgba(0,0,0,.86);
}
.current-proj-desc { margin: 0; font-size: 13px; color: rgba(0,0,0,.62); line-height: 1.4; }

/* ── GIF Area (not a widget — sits on dark bg) ── */
.gif-area { min-width: 0; }

.gif-area-body { /* content floats on page --bg */ }

/* Tabs + search row, no background */
.gif-area-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}

/* ── GIF Tabs (on dark background) ── */
.gif-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.gif-tab {
  border: 2px solid rgba(0,0,0,1); border-radius: 999px;
  padding: 6px 12px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .10em; text-transform: uppercase;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.65);
  cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s, color .12s;
  box-shadow: 3px 3px 0 #000;
}
.gif-tab:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #000; background: rgba(255,255,255,.15); }
.gif-tab.active {
  background: var(--accent-3); color: var(--ink);
  border-color: rgba(0,0,0,1);
  box-shadow: 3px 3px 0 #000;
}
.gif-hint {
  font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,.35);
  letter-spacing: .06em; margin-bottom: 12px;
}

/* ── GIF Grid ── */
.gif-grid { position: relative; }
.gif-cell {
  width: calc(33.333% - 6px); margin-bottom: 8px;
  border-radius: 12px; overflow: hidden;
  border: 2px solid rgba(0,0,0,1);
  background-color: #1c1b1f;
  background-image:
    linear-gradient(45deg, #2e2c32 25%, transparent 25%),
    linear-gradient(-45deg, #2e2c32 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2e2c32 75%),
    linear-gradient(-45deg, transparent 75%, #2e2c32 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  box-shadow: 3px 3px 0 #000;
  cursor: pointer; transition: opacity .35s ease, transform .12s, box-shadow .12s;
  text-decoration: none; display: block;
  opacity: 0; position: relative;
  overflow-anchor: none;
}
.gif-cell:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 #000; }
.gif-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* GIF cell hover overlay */
.gif-cell-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,0) 55%);
  display: flex; align-items: flex-end;
  padding: 10px;
  opacity: 0;
  transition: opacity .2s ease;
}
.gif-cell:hover .gif-cell-overlay { opacity: 1; }
.gif-cell-bot {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 8px;
}
.gif-views {
  font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,.85);
  text-transform: uppercase; letter-spacing: .06em;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.gif-share-pill {
  background: var(--card);
  border: 2px solid #000;
  border-radius: 999px;
  box-shadow: 3px 3px 0 #000;
  padding: 5px 12px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  color: var(--ink);
  text-transform: uppercase; letter-spacing: .10em;
  white-space: nowrap; flex-shrink: 0;
  transition: transform .12s ease, box-shadow .12s ease;
}
.gif-share-pill:hover {
  transform: translate(-1px,-1px);
  box-shadow: 4px 4px 0 #000;
  color: #000;
  background: linear-gradient(90deg, #ff6bb5, #dd5440, #ffd24a, #5fa982, #3b82f6, #ac92a6, #ff6bb5);
  background-size: 300% 100%;
  animation: giphy-rainbow 2.5s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .gif-share-pill { transition: none; }
  .gif-share-pill:hover { transform: none; animation: none; background-position: 0% 50%; }
}

.gif-toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--ink); color: rgba(255,255,255,.9);
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.12);
  box-shadow: 3px 3px 0 #000;
  opacity: 0; transition: opacity .2s ease, transform .2s ease;
  pointer-events: none; z-index: 100;
}
.gif-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.gif-cell-placeholder {
  width: 100%; height: 120px; background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,.25);
  text-transform: uppercase; letter-spacing: .08em;
}
.gif-no-results {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .08em; color: rgba(255,255,255,.4);
  padding: 40px 20px; text-align: center;
}

/* ── GIF Header Search ── */
.gif-header-search {
  display: flex; align-items: center; gap: 6px;
}
.gif-search-clip {
  overflow: hidden; width: 0;
  transition: width .25s ease;
}
.gif-header-search.open .gif-search-clip { width: 160px; }
.gif-search-toggle {
  width: 30px; height: 30px; flex-shrink: 0; padding: 0;
  border-radius: 999px; border: 2px solid rgba(0,0,0,1);
  background: var(--card); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .12s, background .12s;
}
.gif-search-toggle:hover { transform: translate(-1px,-1px); background: var(--card-2); }
.gif-header-search.open .gif-search-toggle { background: var(--card-2); }
.gif-search {
  display: block; width: 160px; padding: 5px 12px;
  border: 2px solid rgba(255,255,255,.2); border-radius: 999px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.85);
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  outline: none;
}
.gif-search:focus { border-color: rgba(255,255,255,.5); }
.gif-search::placeholder { color: rgba(255,255,255,.35); }

/* ── Blog (used on about.html) ── */
.two-col {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px;
}
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }
.mini {
  border: 2px solid rgba(0,0,0,1); border-radius: 14px;
  background: var(--card-2); box-shadow: 3px 3px 0 #000;
  padding: 12px; text-decoration: none; color: inherit; display: block;
  transition: transform .12s, box-shadow .12s;
}
.mini:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #000; }
.mini h4 { margin: 0 0 6px; font-size: 15px; font-weight: 900; color: rgba(0,0,0,.86); }
.mini p  { margin: 0 0 8px; color: rgba(0,0,0,.62); font-size: 13px; line-height: 1.35; }
.mini .meta {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .10em;
  font-size: 11px; color: rgba(0,0,0,.55); display: flex; gap: 8px; flex-wrap: wrap;
}
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tag {
  border: 2px solid rgba(0,0,0,1); border-radius: 10px; padding: 3px 7px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .10em; background: rgba(255,255,255,.30); color: rgba(0,0,0,.75);
}
.tag:nth-child(6n+1) { background: rgba(221,84,64,.20); }
.tag:nth-child(6n+2) { background: rgba(255,210,74,.22); }
.tag:nth-child(6n+3) { background: rgba(95,169,130,.18); }
.tag:nth-child(6n+4) { background: rgba(168,217,190,.22); }
.tag:nth-child(6n+5) { background: rgba(255,107,181,.16); }
.tag:nth-child(6n+6) { background: rgba(172,146,166,.16); }

/* ── Konami Flash Overlay ── */
.konami-flash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--accent); opacity: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 32px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .3em; color: #000;
  transition: opacity .2s ease;
}
.konami-flash.active { opacity: 1; pointer-events: all; }

/* ── Utility ── */
.desc { margin: 6px 0 8px; color: rgba(0,0,0,.62); font-size: 14px; line-height: 1.35; }

/* ── Mobile layout ── */
@media (max-width: 980px) {
  body { background: var(--bg); }

  main { padding: 12px; }

  .page-grid { grid-template-columns: 1fr; }

  .sidebar { display: none; }

  /* Mobile header */
  .mobile-hdr {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px;
    background: var(--card);
    border: 3px solid var(--stroke);
    border-radius: var(--radius);
    box-shadow: 6px 6px 0 #000;
    margin-bottom: 10px;
  }
  .mobile-hdr-left {
    display: flex; align-items: center; gap: 10px;
  }
  .avatar-sm {
    width: 44px; height: 44px; border-radius: 999px;
    border: 2px solid rgba(0,0,0,1);
    box-shadow: 3px 3px 0 #000;
    object-fit: cover; display: block; flex-shrink: 0;
  }
  .mobile-hdr-name {
    display: block;
    font-family: var(--display); font-weight: 900; font-size: 13px;
    text-transform: uppercase; letter-spacing: .08em; color: var(--ink);
    line-height: 1.2;
  }
  .mobile-hdr-stat {
    display: block;
    font-family: var(--mono); font-size: 10px; color: rgba(0,0,0,.55);
    text-transform: uppercase; letter-spacing: .08em;
  }
  .mobile-menu-btn {
    width: 40px; height: 40px; flex-shrink: 0;
    background: var(--accent-2); color: #fff;
    border: 2px solid rgba(0,0,0,1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 3px 3px 0 #000;
    transition: transform .12s, box-shadow .12s;
  }
  .mobile-menu-btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #000; }
  .mobile-menu-btn[aria-expanded="true"] { background: var(--pill-profile); }

  /* Mobile nav drawer (toggled by hamburger) */
  .mobile-nav-drawer {
    display: flex; flex-direction: column; gap: 8px;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .25s ease, opacity .2s ease, margin-bottom .25s ease;
  }
  .mobile-nav-drawer.open {
    max-height: 400px; opacity: 1; margin-bottom: 8px;
  }

  /* Mobile quick links */
  .mobile-quick {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; margin-bottom: 8px;
  }
  .mobile-quick-link {
    display: flex; align-items: center; justify-content: center;
    padding: 13px 10px;
    background: var(--card);
    border: 3px solid var(--stroke); border-radius: var(--radius);
    box-shadow: 6px 6px 0 #000;
    text-decoration: none; color: var(--ink);
    font-family: var(--mono); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .09em;
    transition: transform .12s, box-shadow .12s;
  }
  .mobile-quick-link:hover { transform: translate(-1px,-1px); box-shadow: 8px 8px 0 #000; }
  .mobile-quick-link--blog { background: var(--accent-6); color: #fff; }

  /* Mobile Ko-fi button */
  .mobile-kofi-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px 16px;
    background: #dd5440; color: #fff;
    border: 3px solid var(--stroke); border-radius: var(--radius);
    box-shadow: 6px 6px 0 #000;
    font-family: var(--mono); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em;
    cursor: pointer; margin-bottom: 12px;
    transition: transform .12s, box-shadow .12s;
  }
  .mobile-kofi-btn:hover { transform: translate(-1px,-1px); box-shadow: 8px 8px 0 #000; }

  /* 2-column GIF grid on mobile */
  .gif-cell { width: calc(50% - 4px); }

  .site-footer { padding: 16px; }
  .footer-logo { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .pill, .gif-tab, .gif-cell, .gif-cell-overlay, .mini, .sidebar-link, .sidebar-kofi { transition: none; }
  .pill:hover, .gif-cell:hover, .mini:hover, .sidebar-link:hover, .sidebar-kofi:hover { transform: none; }
  .kofi-cup, .pill.giphy { animation: none; }
}
