:root {
  --bg: #020507;
  --panel: rgba(0, 0, 0, 0.82);
  --panel-border: rgba(184, 214, 255, 0.12);
  --text: #f5f7fb;
  --muted: #91a3b5;
  --accent: #d9a86c;
  --accent-soft: rgba(217, 168, 108, 0.14);
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Fira Code", monospace;
  overflow-x: hidden;
}

.background,
.background-shade {
  position: fixed;
  inset: 0;
}

.background {
  background:
    linear-gradient(rgba(3, 9, 13, 0.28), rgba(3, 9, 13, 0.6)),
    url("./background.gif") center center / cover no-repeat;
  transform: scale(1.04);
  filter: saturate(0.9) contrast(1.05);
}

.background-shade {
  background:
    radial-gradient(circle at top center, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.54)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.18) 35%, rgba(0, 0, 0, 0.5));
}

.shell {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
  margin: 32px auto;
  backdrop-filter: blur(4px);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  padding: 28px;
}

.panel + .panel {
  margin-top: 1px;
}

.hero {
  display: block;
}

.hero-copy {
  min-width: 0;
}

.hero-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.prompt,
.tagline,
.footer,
dt,
.section-note,
.scrobbles-meta {
  color: var(--muted);
}

.prompt {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.tagline {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.avatar {
  width: 124px;
  height: 124px;
  object-fit: cover;
  border-radius: 999px;
  border: 2px solid rgba(217, 168, 108, 0.42);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  margin: 0;
}

.metadata div {
  min-width: 0;
}

dt {
  margin-bottom: 8px;
}

dd {
  margin: 0;
  word-break: break-word;
  font-size: 1.02rem;
  font-weight: 600;
}

.paragraph-list {
  display: grid;
  gap: 14px;
  color: #d7e0eb;
  line-height: 1.75;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.terminal-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.terminal-list li {
  padding-left: 18px;
  position: relative;
}

.terminal-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.chips {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.chips li {
  padding: 10px 12px 10px 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.chips li::before {
  left: 11px;
}

.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.links a {
  color: var(--text);
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.links a:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 168, 108, 0.45);
  background: rgba(217, 168, 108, 0.08);
}

.links small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2,
.section-note {
  margin-bottom: 0;
}

.section-link {
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.scrobbles-meta {
  margin-bottom: 18px;
}

.scrobbles-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 280px);
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 168, 108, 0.45) rgba(255, 255, 255, 0.05);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.scrobbles-strip::-webkit-scrollbar {
  height: 10px;
}

.scrobbles-strip::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.scrobbles-strip::-webkit-scrollbar-thumb {
  background: rgba(217, 168, 108, 0.45);
  border-radius: 999px;
}

.scrobbles-strip.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.scrobble-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  min-height: 84px;
}

.scrobbles-strip.dragging .scrobble-card {
  pointer-events: none;
}

.scrobble-card:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 168, 108, 0.45);
  background: rgba(217, 168, 108, 0.08);
}

.scrobble-cover,
.scrobble-cover-fallback {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.scrobble-cover {
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
}

.scrobble-cover-fallback {
  display: grid;
  place-items: center;
  background: rgba(217, 168, 108, 0.14);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
}

.scrobble-title,
.scrobble-artist,
.scrobble-album,
.scrobble-time {
  display: block;
}

.scrobble-title {
  font-weight: 700;
}

.scrobble-artist,
.scrobble-album,
.scrobble-time {
  margin-top: 4px;
  font-size: 0.88rem;
}

.scrobble-artist {
  color: #d6dee7;
}

.scrobble-album,
.scrobble-time {
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 6px 6px;
  font-size: 0.92rem;
}

code {
  color: var(--accent);
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 18px, 920px);
    margin: 10px auto 20px;
  }

  .panel {
    padding: 22px 18px;
  }

  .hero,
  .split,
  .metadata {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-heading,
  .section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .avatar {
    width: 96px;
    height: 96px;
  }

  .footer {
    flex-direction: column;
  }
}
