*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #5865f2;
  --accent2: #7c8cff;
  --accent3: #2dd4bf;
  --text: #eef2ff;
  --muted: rgba(214, 222, 255, 0.62);
  --surface: rgba(11, 15, 26, 0.86);
  --surface-border: rgba(255,255,255,0.1);
  --surface-soft: rgba(255,255,255,0.06);
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top, rgba(88,101,242,0.18), transparent 32%),
    linear-gradient(180deg, #0a0f1c 0%, #050811 100%);
  color: var(--text);
  cursor: none;
}

.cur {
  width: 16px;
  height: 16px;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  top: 0;
  left: 0;
  will-change: transform;
}

.cur::before, .cur::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.9);
}

.cur::before { width: 2px; height: 100%; left: 50%; transform: translateX(-50%); }
.cur::after { height: 2px; width: 100%; top: 50%; transform: translateY(-50%); }

#canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  image-rendering: pixelated;
  pointer-events: none;
}

.scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  padding: 20px 0;
}

.card-wrapper {
  position: relative;
  width: 95%;
  max-width: 460px;
  padding-top: 72px;
  pointer-events: none;
  animation: up .9s cubic-bezier(.16,1,.3,1) both;
}

.pixel-cat {
  position: absolute;
  right: 32px;
  top: 0;
  height: 90px;
  width: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  z-index: 10;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: none;
}

.pixel-cat-left {
  position: absolute;
  left: 60px;
  top: -12px;
  height: 90px;
  width: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  z-index: 9;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: none;
}

.card {
  pointer-events: all;
  background: var(--surface);
  border-radius: 20px;
  will-change: transform;
  box-shadow: 0 24px 70px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(18px);
  padding: 40px 24px;
  width: 100%;
  position: relative;
  overflow: visible;
  text-align: center;
}

h1 {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
  margin-bottom: 12px;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}

.pronouns {
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.85;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}

.divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin-bottom: 22px;
}

#tz-val { color: #8ab4ff; }

.meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.time-column {
  flex: 1;
  align-items: flex-end;
  text-align: right;
}

.meta-label {
  font-family: inherit;
  font-size: .58rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .7;
}

.meta-val {
  font-size: .82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-tag, .gmt {
  font-size: 0.6rem;
  background: var(--surface-soft);
  padding: 1px 4px;
  border-radius: 4px;
  opacity: 0.8;
}

.gmt {
  background: rgba(88,140,255,0.14);
  color: #8ab4ff;
  border: 1px solid rgba(88,140,255,0.25);
}

.dc {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: none;
  transition: transform .18s cubic-bezier(.16,1,.3,1), border-color .18s, background .18s, box-shadow .18s;
  background: rgba(88,101,242,.1);
  border: 1px solid rgba(88,101,242,.25);
}

.dc:hover {
  background: rgba(88,101,242,.18);
  border-color: rgba(88,101,242,.5);
  transform: scale(1.025) translateY(-2px);
  box-shadow: 0 8px 24px rgba(88,101,242,.18);
}

.dc-ico {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dc-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.dc-name {
  font-size: .85rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-lbl {
  font-family: inherit;
  font-size: .62rem;
  color: var(--muted);
  text-transform: lowercase;
}

.spotify {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(30,215,96,.08);
  border: 1px solid rgba(30,215,96,.2);
  border-radius: 12px;
  padding: 12px 16px 8px;
  margin-top: 10px;
  text-align: left;
  transition: transform .18s cubic-bezier(.16,1,.3,1), border-color .18s, background .18s, box-shadow .18s;
}

.sp-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-info {
  flex: 1;
  overflow: hidden;
}

.sp-status {
  font-family: inherit;
  font-size: .55rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(30,180,80,.8);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sp-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.sp-bar {
  width: 2px;
  background: rgba(30,180,80,.7);
  border-radius: 1px;
  animation: eq 0.8s ease-in-out infinite;
  transform-origin: bottom;
}

.sp-bar:nth-child(1) { height: 30%; animation-delay: 0s; }
.sp-bar:nth-child(2) { height: 100%; animation-delay: .15s; }
.sp-bar:nth-child(3) { height: 60%; animation-delay: .3s; }
.sp-bar:nth-child(4) { height: 80%; animation-delay: .1s; }

@keyframes eq {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
}

.sp-not-playing .sp-bars { display: none; }

.sp-track {
  font-family: inherit;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-artist {
  font-family: inherit;
  font-size: .6rem;
  color: var(--muted);
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify.is-playing { cursor: none; }

.spotify.is-playing:hover {
  background: rgba(30,215,96,0.14);
  border-color: rgba(30,215,96,0.45);
  transform: scale(1.025) translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,215,96,0.15);
}

#sp-art {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .3s;
}

.sp-progress {
  display: none;
  width: 100%;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-family: inherit;
  font-size: 0.5rem;
  color: var(--muted);
  opacity: 0.6;
}

.sp-progress.active { display: flex; }

.sp-progress-track {
  flex: 1;
  height: 3px;
  background: rgba(30,215,96,0.15);
  border-radius: 2px;
  overflow: hidden;
}

.sp-progress-fill {
  height: 100%;
  background: rgba(30,215,96,0.7);
  border-radius: 2px;
  width: 0%;
  transition: width 0.2s linear;
}

.tagline-cursor {
  display: inline-block;
  width: 2px;
  height: .85em;
  background: var(--text);
  opacity: 0.5;
  vertical-align: middle;
  margin-left: 2px;
  animation: blink .75s step-end infinite;
}

@keyframes blink { 0%,100% { opacity: .5; } 50% { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (min-width: 480px) {
  h1 { font-size: 1.95rem; }
  .card-wrapper { width: 460px; }
  .card { padding: 44px; }
}

@media (max-width: 479px) {
  .meta-sub { display: none; }
  .cur { display: none; }
  html, body { cursor: auto; }
  .pronouns { font-size: 0.8rem; }
  .pixel-cat { height: 60px; right: 18px; }
  .pixel-cat-left { height: 60px; left: 40px; top: -12px; }
  .card-wrapper { padding-top: 48px; }
}
