/* hunterhackley.com — Midnight theme */
:root {
  --bg: #040a12;
  --text: #f4f6fb;
  --muted: rgba(244, 246, 251, .66);
  --accent: #22d3ee;
  --accent-2: #34d399;
  --on-accent: #04121a;
  --glass: rgba(10, 30, 45, .45);
  --glass-border: rgba(34, 211, 238, .2);
  --chip: rgba(34, 211, 238, .06);
  --radius: 16px;
  --blur: 16px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Frost (light) — used when the visitor's system is light, or they pick it with the toggle */
:root[data-theme="light"] {
  --bg: #e9eef7;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, .64);
  --accent: #4f46e5;
  --accent-2: #db2777;
  --on-accent: #fff;
  --glass: rgba(255, 255, 255, .5);
  --glass-border: rgba(255, 255, 255, .9);
  --chip: rgba(255, 255, 255, .65);
  --blur: 20px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #e9eef7;
    --text: #0f172a;
    --muted: rgba(15, 23, 42, .64);
    --accent: #4f46e5;
    --accent-2: #db2777;
    --on-accent: #fff;
    --glass: rgba(255, 255, 255, .5);
    --glass-border: rgba(255, 255, 255, .9);
    --chip: rgba(255, 255, 255, .65);
    --blur: 20px;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { color-scheme: light; } }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg .glow { position: absolute; left: 50%; top: -25%; width: 100vmax; height: 70vmax; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .22), transparent); }
.bg .glow.low { top: auto; bottom: -40%; width: 80vmax; background: radial-gradient(closest-side, rgba(52, 211, 153, .1), transparent); }
.bg .grid { position: absolute; inset: -50%;
  background-image: linear-gradient(rgba(34, 211, 238, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, .09) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(700px) rotateX(58deg) translate3d(0, -10%, 0);
  will-change: transform;
  animation: gridmove 8s linear infinite;
  /* fade out the far end of the grid: there the lines shrink below a pixel and shimmer through the glass tiles */
  mask-image: linear-gradient(to bottom, transparent 42%, #000 62%), radial-gradient(ellipse at 50% 60%, #000 20%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 42%, #000 62%), radial-gradient(ellipse at 50% 60%, #000 20%, transparent 70%);
  mask-composite: intersect; -webkit-mask-composite: source-in; }
.bg .scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px); }
@keyframes gridmove {
  from { transform: perspective(700px) rotateX(58deg) translate3d(0, -10%, 0); }
  to   { transform: perspective(700px) rotateX(58deg) translate3d(0, calc(-10% + 48px), 0); }
}
.bg .blob { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; filter: blur(90px); opacity: .75; animation: drift 28s ease-in-out infinite alternate; will-change: transform; }
.bg .b1 { top: -20vmax; left: -15vmax; background: #a5b4fc; }
.bg .b2 { bottom: -25vmax; right: -15vmax; background: #f9a8d4; animation-duration: 34s; animation-delay: -8s; }
.bg .b3 { top: 30%; left: 35%; width: 40vmax; height: 40vmax; background: #7dd3fc; opacity: .55; animation-duration: 40s; animation-delay: -16s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(12vw, 8vh) scale(1.15); }
  100% { transform: translate(-6vw, 14vh) scale(.95); }
}
/* show the right background for the active theme */
.bg .light-only { display: none; }
:root[data-theme="light"] .bg .dark-only { display: none; }
:root[data-theme="light"] .bg .light-only { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .bg .dark-only { display: none; }
  :root:not([data-theme="dark"]) .bg .light-only { display: block; }
}

/* theme toggle */
.theme-toggle { position: fixed; top: 16px; right: 16px; z-index: 40; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--text); background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color .2s, transform .2s; }
.theme-toggle:hover { border-color: var(--accent); transform: rotate(15deg); }
.theme-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .moon { display: none; }
}

/* ---------- glass ---------- */
.glass {
  --mx: 50%; --my: 50%;
  position: relative;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 20px 50px rgba(0, 0, 0, .35);
  transition: transform .25s ease, border-color .3s;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  isolation: isolate;
}
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(255, 255, 255, .08), transparent 45%); }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--accent), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.glass:hover::before, .glass:hover::after { opacity: 1; }

/* ---------- shared bits ---------- */
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font: 600 14px var(--sans); text-decoration: none; color: var(--text); cursor: pointer;
  background: var(--chip); border: 1px solid var(--glass-border); transition: transform .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn.primary:hover { box-shadow: 0 8px 28px rgba(34, 211, 238, .45); }
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13px; padding: 4px 11px; border-radius: 999px; background: var(--chip); border: 1px solid var(--glass-border); white-space: nowrap; transition: .2s; }
.tag:hover { border-color: var(--accent); color: var(--accent); }

.reveal { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translate3d(0, 0, 0); }

/* ---------- bento ---------- */
.page { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 32px; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); grid-auto-flow: dense; gap: 16px; }
.tile { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.span2 { grid-column: span 2; } .tall { grid-row: span 2; } .big { grid-column: span 2; grid-row: span 2; }

.hero { justify-content: flex-end; gap: 0; }
.hero .top { display: flex; align-items: center; gap: 16px; margin-bottom: auto; }
.hero .avatar { position: relative; width: 104px; height: 104px; border-radius: 50%; padding: 3px; flex: none; }
.hero .avatar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--accent), var(--accent-2), transparent 60%, var(--accent)); animation: spin 6s linear infinite; }
.hero .avatar img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); background: #111; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero h1 { font-family: var(--mono); font-size: clamp(34px, 5vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; margin-top: 24px; }
.hero .role { font-size: 19px; margin-top: 8px; }
.hero .blurb { color: var(--muted); margin: 6px 0 14px; max-width: 46ch; }
.term { font-family: var(--mono); font-size: 13px; color: var(--accent-2); padding: 7px 12px; border-radius: 8px; background: rgba(0, 0, 0, .35); border: 1px solid var(--glass-border); margin-bottom: 18px; height: 36px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: clip; }
:root[data-theme="light"] .term { background: rgba(15, 23, 42, .88); color: #a5f3fc; border-color: transparent; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .term { background: rgba(15, 23, 42, .88); color: #a5f3fc; border-color: transparent; } }
.term .cursor { display: inline-block; width: 7px; height: 1em; background: currentColor; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.status .now { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; line-height: 1.25; margin-top: auto; }
.dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; flex: none; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3.4); opacity: 0; } }

.clock b { font-family: var(--mono); font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1; margin-top: auto; }

.xp ol { list-style: none; display: grid; gap: 18px; margin-top: 6px; }
.xp li { padding-left: 16px; border-left: 2px solid var(--glass-border); }
.xp li:first-child { border-color: var(--accent); }
.xp .when { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.xp b { display: block; font-size: 16px; }
.xp .org { color: var(--muted); font-size: 14px; }
.xp p { color: var(--muted); font-size: 14px; margin-top: 4px; }

.stats { display: grid; grid-template-columns: 1fr; align-content: center; }
.stats div { display: flex; align-items: baseline; gap: 10px; }
.stats b { font-family: var(--mono); font-size: 30px; color: var(--accent); min-width: 2.6ch; }
.stats span { color: var(--muted); font-size: 14px; }

.certs .badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; flex: 1; align-content: center; }
.certs .badges a { display: grid; justify-items: center; gap: 6px; text-align: center; text-decoration: none; font-size: 12px; color: var(--muted); border-radius: 12px; padding: 6px 2px; transition: color .2s; }
.certs .badges a:hover { color: var(--accent); }
.certs .badges img { height: 84px; width: auto; transition: transform .3s; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .35)); }
.certs .badges a:hover img { transform: translateY(-5px) scale(1.06); }
.certs .row { display: flex; gap: 14px; align-items: center; justify-content: space-around; flex: 1; }
.certs figure { display: grid; justify-items: center; gap: 6px; text-align: center; }
.certs img { height: 104px; width: auto; transition: transform .3s; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .4)); }
.certs figure:hover img { transform: translateY(-5px) scale(1.05); }
.certs figcaption { font-size: 12px; color: var(--muted); }
.next { font-size: 14px; color: var(--muted); }
.next b { color: var(--accent-2); font-weight: 600; }

.edu ul { list-style: none; display: grid; gap: 10px; }
.bar { height: 6px; border-radius: 6px; background: var(--chip); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.2s cubic-bezier(.2, .7, .2, 1); }

.skills .group { display: grid; gap: 6px; }
.skills .group + .group { margin-top: 6px; }
.skills h3 { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }


.edu li b { display: block; font-size: 15px; }
.edu li span { color: var(--muted); font-size: 13px; }

.links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.links a, .links button { display: grid; place-items: center; align-content: center; gap: 6px; border-radius: 12px; background: var(--chip); border: 1px solid var(--glass-border);
  text-decoration: none; font: 500 13px var(--sans); color: var(--text); cursor: pointer; transition: .2s; }
.links a:hover, .links button:hover { border-color: var(--accent); color: var(--accent); }
.links svg { width: 22px; height: 22px; fill: currentColor; }

.hobbies .icons { display: flex; gap: 10px; margin-top: auto; }
.hobbies .icons span { width: 52px; height: 52px; display: grid; place-items: center; font-size: 26px; border-radius: 12px; background: var(--chip); border: 1px solid var(--glass-border); }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 28px 0 8px; font-family: var(--mono); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; opacity: 0; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: 600 14px var(--sans); transition: .3s; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- CVE of the day ---------- */
.cve-id { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--accent); text-decoration: none; letter-spacing: -.01em; }
.cve-id:hover { text-decoration: underline; }
.cve-id::after { content: " ↗"; font-size: 16px; }
.cve-product { font-weight: 600; }
.cve-desc { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cve .tag.warn { border-color: #f97316; color: #f97316; }
.cve-src { margin-top: auto; font-size: 12px; color: var(--muted); font-family: var(--mono); }

/* ---------- Hack me tile ---------- */
.mini-term { font-family: var(--mono); font-size: 13px; padding: 10px 12px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #d1fadf; white-space: nowrap; overflow: hidden; }
.mini-term .p { color: #4ade80; }
.mini-term .cursor { display: inline-block; width: 7px; height: 1em; background: #d1fadf; vertical-align: -2px; animation: blink 1s steps(1) infinite; margin-left: 2px; }
kbd { font-family: var(--mono); font-size: 12px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--glass-border); background: var(--chip); }
.hackme .btns { margin-top: auto; }

/* ---------- terminal overlay ---------- */
.term-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(2, 6, 10, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.term-overlay[hidden] { display: none; }
.term-win { width: min(820px, 100%); height: min(560px, calc(100vh - 32px)); display: flex; flex-direction: column; border-radius: 12px; overflow: hidden;
  background: rgba(3, 10, 8, .94); border: 1px solid rgba(74, 222, 128, .3); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); color: #d1fadf; font: 14px/1.55 var(--mono); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(74, 222, 128, .18); font-size: 12px; color: rgba(209, 250, 223, .6); }
.term-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ef4444; }
.term-bar i:nth-child(2) { background: #f59e0b; } .term-bar i:nth-child(3) { background: #22c55e; }
.term-bar span { flex: 1; text-align: center; }
.term-bar button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 2px 6px; border-radius: 4px; }
.term-bar button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.term-out { flex: 1; overflow-y: auto; padding: 14px 16px 4px; white-space: pre-wrap; word-break: break-word; }
.term-out .p, .term-line .p { color: #4ade80; }
.term-out .c { color: #22d3ee; }
.term-out .e { color: #f87171; }
.term-out .m { color: rgba(209, 250, 223, .6); }
.term-out a { color: #22d3ee; }
.term-line { display: flex; gap: 8px; padding: 4px 16px 14px; }
.term-line input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font: inherit; caret-color: #4ade80; }

/* ---------- secret note page ---------- */
.note-page { min-height: 100vh; display: grid; place-items: center; }
.note-card { width: min(620px, 100%); padding: 32px; gap: 14px; }
.note-card h1 { font-family: var(--mono); font-size: clamp(26px, 5vw, 36px); line-height: 1.15; }
.note-card .btns { margin-top: 14px; }
.note-text { width: 100%; font: 15px/1.5 var(--mono); color: var(--text); background: var(--chip); border: 1px solid var(--glass-border); border-radius: 12px; padding: 14px; resize: vertical; }
.note-msg { color: var(--accent); font-size: 14px; min-height: 1.2em; }
.note-foot { font-size: 12px; color: var(--muted); font-family: var(--mono); }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .page { padding-top: 16px; }
  .bento { grid-template-columns: 1fr; }
  .span2, .big, .tall { grid-column: auto; grid-row: auto; }
  .hero { min-height: 440px; }
  .certs .badges img { height: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* 404 page + small utilities (replaces inline style attributes so CSP needs no 'unsafe-inline') */
.nf-page { min-height:100vh; display:grid; place-items:center; }
.nf-card { max-width:560px; width:100%; padding:36px; gap:14px; }
.nf-title { font-family:var(--mono); font-size:clamp(32px,6vw,48px); line-height:1.1; }
.nf-term { margin:0; height:auto; white-space:normal; overflow-wrap:anywhere; }
.grow { flex:1; }
.row.center { justify-content:center; }
.row.m0 { margin:0; }
.mt10 { margin-top:10px; }
.mt14 { margin-top:14px; }
.center-text { text-align:center; }
.mono { font-family:var(--mono); }

/* status + weather */
.status .small { font-size: 13px; }
.wx { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.wx[hidden] { display: none; }
.wx-icon { font-size: 18px; line-height: 1; }
.full { grid-column: 1 / -1; }
.edu ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 640px) { .edu ul { grid-template-columns: 1fr; } }

/* ---------- live threat stats ---------- */
.threat-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.threat-nums div { display: grid; gap: 2px; }
.threat-nums b { font-family: var(--mono); font-size: 24px; line-height: 1.1; color: var(--text); }
.threat-nums span { font-size: 12px; color: var(--muted); }
.chart { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 96px; margin-top: 8px; border-bottom: 1px solid var(--glass-border); }
.chart .col { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; outline: none; border-radius: 4px 4px 0 0; }
.chart .col i { display: block; width: 100%; background: var(--accent); opacity: .55; border-radius: 4px 4px 0 0; transition: opacity .15s; }
.chart .col.now i { opacity: 1; }
.chart .col:hover i, .chart .col:focus-visible i { opacity: 1; }
.chart .col:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.chart-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); white-space: nowrap; pointer-events: none; z-index: 2;
  font: 12px var(--mono); color: var(--text); background: var(--bg); border: 1px solid var(--glass-border); border-radius: 8px; padding: 5px 8px; }
.chart-tip[hidden] { display: none; }
.chart-axis { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--muted); }
@media (max-width: 640px) { .threat-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- phish or legit ---------- */
.phish-head { display: flex; justify-content: space-between; align-items: center; }
.phish-score { font: 600 13px var(--mono); color: var(--accent); }
.phish-card { display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: var(--chip); border: 1px solid var(--glass-border); transition: border-color .2s; }
.phish-card.good { border-color: #22c55e; }
.phish-card.bad { border-color: #f97316; }
.phish-kind { font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.phish-url { font: 14px var(--mono); overflow-wrap: anywhere; }
.phish-row { display: flex; gap: 10px; font-size: 14px; }
.phish-row .k { flex: none; width: 60px; color: var(--muted); font-size: 13px; }
.phish-row .v { overflow-wrap: anywhere; }
.phish-result p:first-child { font-weight: 600; }
.phish-result[hidden], .phish .btns[hidden] { display: none; }

/* ---------- what this site can see ---------- */
.conn-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13px; }
.conn-list dt { color: var(--muted); }
.conn-list dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.conn-foot { margin-top: auto; font-size: 11px; color: var(--muted); }

/* ---------- recently played (Steam) ---------- */
.span3 { grid-column: span 3; }
@media (max-width: 960px) { .span3 { grid-column: 1 / -1; } }
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.shelf[hidden], #steam-empty[hidden] { display: none; }
.game { display: grid; gap: 6px; text-decoration: none; color: var(--text); min-width: 0; }
.game .cover { aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--chip); border: 1px solid var(--glass-border); transition: transform .2s, border-color .2s; }
.game .cover img { width: 100%; height: 100%; object-fit: cover; }
.game.wide .cover img { object-position: 30% center; }
.game:hover .cover, .game:focus-visible .cover { transform: translate3d(0, -3px, 0); border-color: var(--accent); }
.game b { font-size: 13px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.game span { font: 11px var(--mono); color: var(--muted); }
@media (max-width: 600px) { .span3 { grid-column: auto; } .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- now listening (Spotify) ---------- */
.sp-head { display: flex; justify-content: space-between; align-items: center; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq[hidden] { display: none; }
.eq i { width: 3px; height: 100%; background: var(--accent-2); border-radius: 1px; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.sp-track { display: grid; gap: 4px; text-decoration: none; color: var(--text); min-width: 0; }
.sp-track[hidden], #sp-empty[hidden] { display: none; }
.sp-art { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--chip); border: 1px solid var(--glass-border); margin-bottom: 6px; transition: border-color .2s; }
.sp-art img { width: 100%; height: 100%; object-fit: cover; }
.sp-track:hover .sp-art, .sp-track:focus-visible .sp-art { border-color: var(--accent); }
.sp-track b { font-size: 14px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sp-track .muted { font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sp-when { font: 11px var(--mono); color: var(--accent-2); }
