:root {
  --bg: #080a0d;
  --panel: rgba(14, 18, 24, 0.84);
  --panel-strong: rgba(22, 28, 36, 0.9);
  --text: #f4f7fb;
  --muted: #a5b3c3;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #48d6a0;
  --accent-soft: rgba(72, 214, 160, 0.14);
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
  --pointer-x: 50%;
  --pointer-y: 50%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

@font-face {
  font-family: "Minecraft Ten";
  src: url("../fonts/MinecraftTen.ttf") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(72, 214, 160, 0.08), transparent 34%),
    linear-gradient(180deg, #0d1117 0%, var(--bg) 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 23% 24%, rgba(72, 214, 160, 0.11), transparent 28%),
    radial-gradient(circle at 76% 44%, rgba(120, 168, 255, 0.09), transparent 32%),
    radial-gradient(circle at 74% 70%, rgba(255, 156, 43, 0.08), transparent 26%);
  opacity: 0.9;
  animation: ambient-drift 18s ease-in-out infinite alternate;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.028) 45%, transparent 54%);
  mix-blend-mode: screen;
  opacity: 0.62;
  transition: background-position 180ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  align-items: center;
  justify-items: start;
  padding: 38px clamp(28px, 4vw, 70px);
  animation: page-arrive 720ms ease both;
}

.site-layout {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(44px, 6vw, 120px);
  width: min(1780px, 100%);
}

.hub {
  position: relative;
  margin-left: clamp(-36px, -2.2vw, -14px);
  min-height: min(640px, calc(100vh - 76px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  isolation: isolate;
  backdrop-filter: blur(10px);
  animation: hub-float 7s ease-in-out infinite;
  will-change: box-shadow;
}

.hub::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 18% 22%, rgba(72, 214, 160, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 42%);
  animation: panel-glow 9s ease-in-out infinite alternate;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 10, 13, 0.96) 0%, rgba(8, 10, 13, 0.82) 58%, rgba(8, 10, 13, 0.58) 100%),
    linear-gradient(0deg, rgba(8, 10, 13, 0.9), transparent 52%);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transform: scale(1.035);
  animation: hero-breath 14s ease-in-out infinite alternate;
}

.hub-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 28px;
  min-height: inherit;
  padding: clamp(28px, 5vw, 58px);
  animation: content-rise 720ms 120ms ease both;
}

.profile {
  display: grid;
  grid-template-columns: 92px 1fr;
  grid-column: 1;
  gap: 22px;
  align-items: center;
}

.avatar {
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  object-fit: cover;
  box-shadow:
    0 0 0 4px rgba(72, 214, 160, 0.08),
    0 16px 36px rgba(0, 0, 0, 0.36);
  animation: avatar-pulse 4.8s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.55rem, 4vw, 4.1rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 0 26px rgba(72, 214, 160, 0.12);
  animation: title-focus 700ms 220ms ease both;
}

.link-grid {
  display: grid;
  grid-column: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.link-grid.compact {
  grid-template-columns: 1fr;
}

.link-card {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 42%),
    var(--panel-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
  animation: card-pop 560ms ease backwards;
  animation-delay: calc(var(--reveal-index, 0) * 85ms + 260ms);
}

.link-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(72, 214, 160, 0.44);
  background: rgba(31, 37, 47, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 34px rgba(0, 0, 0, 0.26),
    0 0 26px rgba(72, 214, 160, 0.08);
}

.link-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.link-card strong {
  font-size: 1.12rem;
}

.link-card.primary {
  border-color: rgba(72, 214, 160, 0.36);
  background:
    linear-gradient(145deg, rgba(72, 214, 160, 0.18), rgba(72, 214, 160, 0.04)),
    rgba(17, 48, 42, 0.78);
}

.portfolio-link {
  display: inline-flex;
  grid-column: 1;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(12, 16, 22, 0.58);
  color: var(--muted);
  font-size: 0.92rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.28);
  transition:
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
  animation: card-pop 560ms 410ms ease backwards;
}

.portfolio-link:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: rgba(72, 214, 160, 0.38);
  background: rgba(22, 28, 36, 0.82);
  color: var(--text);
}

.portfolio-link img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.disc-grid {
  position: fixed;
  top: 50%;
  right: clamp(16px, 2.2vw, 42px);
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  max-height: min(78vh, 640px);
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 46%),
    rgba(9, 12, 17, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 42px rgba(0, 0, 0, 0.34);
  transform: translateY(-50%);
  animation: disc-panel-arrive 680ms 260ms ease backwards;
}

.disc-slot {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(72, 214, 160, 0.08), transparent 48%),
    rgba(17, 22, 29, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -10px 18px rgba(0, 0, 0, 0.18);
  transition:
    border-color 140ms ease,
    transform 140ms ease,
    background-color 140ms ease;
  user-select: none;
  animation: disc-slot-arrive 420ms ease backwards;
  animation-delay: calc(var(--disc-index, 0) * 34ms + 380ms);
}

.disc-slot:hover {
  transform: translateY(-3px) scale(1.06);
  border-color: rgba(72, 214, 160, 0.34);
  background: rgba(24, 32, 42, 0.9);
}

.disc-slot:active,
.disc-slot.is-dragging {
  opacity: 0.58;
}

.disc-slot.is-dragging img {
  opacity: 0.28;
}

.disc-slot img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  object-fit: contain;
  cursor: grab;
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.42));
  transition:
    opacity 120ms ease,
    transform 120ms ease;
  animation: disc-idle 5.2s ease-in-out infinite;
  animation-delay: calc(var(--disc-index, 0) * -210ms);
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.disc-slot img:active {
  cursor: grabbing;
  transform: scale(1.08) rotate(10deg);
}

.disc-drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  pointer-events: none;
  transform:
    translate3d(var(--disc-x), var(--disc-y), 0)
    rotate(var(--disc-rotate, 0deg));
  transform-origin: center;
  perspective: 220px;
  transition:
    filter 120ms ease,
    opacity 160ms ease;
  will-change: transform;
}

.disc-drag-ghost img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
  object-fit: contain;
  transform:
    rotateX(var(--disc-tilt-x, 0deg))
    rotateY(var(--disc-tilt-y, 0deg));
  transform-origin: center;
  filter:
    drop-shadow(var(--disc-shadow-x, 0px) 12px 15px rgba(0, 0, 0, 0.56))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.14));
  will-change: transform, filter;
}

.disc-drag-ghost.is-dropping {
  opacity: 0;
  --disc-rotate: 0deg;
  --disc-tilt-x: 0deg;
  --disc-tilt-y: 0deg;
  transition:
    opacity 180ms ease;
}

.minecraft-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 180;
  max-width: min(300px, calc(100vw - 28px));
  padding: 10px 13px;
  border: 1px solid rgba(72, 214, 160, 0.48);
  background:
    linear-gradient(145deg, rgba(72, 214, 160, 0.16), transparent 46%),
    rgba(9, 12, 17, 0.96);
  color: #fff;
  font-family: "Minecraft Ten", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.72);
  transform: translate3d(var(--tooltip-x, 0), var(--tooltip-y, 0), 0) scale(0.96);
  transition:
    opacity 90ms ease,
    transform 90ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.44),
    0 0 18px rgba(72, 214, 160, 0.12);
}

.minecraft-tooltip.is-visible {
  opacity: 1;
  transform: translate3d(var(--tooltip-x, 0), var(--tooltip-y, 0), 0) scale(1);
}

.jukebox-player {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 12;
  display: grid;
  grid-template-columns: 74px minmax(190px, 280px);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 42%),
    rgba(9, 12, 17, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 22px 54px rgba(0, 0, 0, 0.44);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
  animation: player-arrive 620ms 520ms ease backwards;
}

.jukebox-drop {
  position: relative;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 192, 86, 0.16), transparent 42%),
    rgba(16, 20, 26, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -12px 24px rgba(0, 0, 0, 0.24);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
  animation: jukebox-breathe 3.6s ease-in-out infinite;
}

.jukebox-drop.is-ready {
  border-color: rgba(255, 195, 91, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 28px rgba(255, 166, 48, 0.22);
  transform: translateY(-2px);
}

.jukebox-drop.is-playing {
  animation:
    jukebox-pulse 1.5s ease-in-out infinite,
    jukebox-bob 680ms ease-in-out infinite;
}

.jukebox-drop img {
  width: 58px;
  height: 58px;
  image-rendering: pixelated;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.42));
}

.jukebox-disc {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent center / contain no-repeat;
  opacity: 0;
  transform: translateX(-50%) translateY(-8px) scale(0.7);
  transition:
    opacity 160ms ease,
    transform 180ms cubic-bezier(0.2, 0.9, 0.2, 1.2);
  image-rendering: pixelated;
}

.jukebox-disc.has-disc {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  animation: inserted-disc-spin 2.8s linear infinite;
}

.music-controls {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.track-row,
.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.track-row strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-row span {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: "Minecraft Ten", "Segoe UI", sans-serif;
  font-size: 0.72rem;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #48d6a0, #ffd36b);
  box-shadow: 0 0 14px rgba(72, 214, 160, 0.32);
  transition: width 120ms linear;
}

.control-row {
  justify-content: flex-start;
}

.control-row button {
  min-width: 58px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(18, 24, 32, 0.86);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease;
}

.control-row button:hover {
  transform: translateY(-1px);
  border-color: rgba(72, 214, 160, 0.36);
  background: rgba(28, 36, 46, 0.92);
}

.control-row button:active {
  transform: translateY(1px) scale(0.98);
}

.video-hole {
  position: relative;
  --hole-shape: polygon(
    18% 3%,
    32% 3%,
    32% 10%,
    47% 10%,
    47% 16%,
    65% 16%,
    65% 10%,
    78% 10%,
    78% 18%,
    88% 18%,
    88% 29%,
    96% 29%,
    96% 42%,
    100% 42%,
    100% 58%,
    94% 58%,
    94% 70%,
    84% 70%,
    84% 80%,
    70% 80%,
    70% 90%,
    56% 90%,
    56% 100%,
    40% 100%,
    40% 92%,
    27% 92%,
    27% 83%,
    16% 83%,
    16% 73%,
    7% 73%,
    7% 64%,
    0 64%,
    0 48%,
    8% 48%,
    8% 36%,
    16% 36%,
    16% 24%,
    23% 24%,
    23% 13%,
    18% 13%
  );
  display: grid;
  justify-items: end;
  min-width: 0;
  isolation: isolate;
  transform: translateX(calc(clamp(-130px, -6vw, -80px) + 24px));
}

.video-hole::before {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 1;
  width: min(100%, 1220px);
  max-width: 100%;
  aspect-ratio: 1.76 / 1;
  content: "";
  pointer-events: none;
  background: rgba(0, 0, 0, 0.26);
  clip-path: var(--hole-shape);
  filter: blur(1px);
  opacity: 0.42;
  transform: translate(10px, 12px) translateY(-50%);
}

.video-hole::after {
  position: absolute;
  top: 50%;
  right: -14%;
  z-index: 0;
  width: 135%;
  height: 135%;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at 64% 60%, rgba(255, 155, 44, 0.38), rgba(255, 155, 44, 0.14) 18%, transparent 42%),
    radial-gradient(ellipse at 50% 34%, rgba(180, 215, 255, 0.26), rgba(180, 215, 255, 0.1) 16%, transparent 38%),
    radial-gradient(ellipse at 46% 74%, rgba(120, 178, 72, 0.16), transparent 34%),
    linear-gradient(22deg, transparent 38%, rgba(255, 165, 54, 0.13) 48%, transparent 60%),
    linear-gradient(152deg, transparent 42%, rgba(180, 215, 255, 0.1) 51%, transparent 62%);
  filter: blur(16px);
  mix-blend-mode: screen;
  opacity: 0.78;
  transform: translateY(-50%);
}

.pixel-hole {
  position: relative;
  z-index: 2;
  width: min(100%, 1220px);
  max-width: 100%;
  aspect-ratio: 1.76 / 1;
  overflow: hidden;
  background: #080a0d;
  clip-path: var(--hole-shape);
  filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.24));
  image-rendering: pixelated;
  isolation: isolate;
  contain: paint;
}

.pixel-hole::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, 0.12),
    inset -7px -7px 0 rgba(0, 0, 0, 0.58),
    inset 0 0 0 3px rgba(0, 0, 0, 0.28),
    inset 0 0 46px rgba(0, 0, 0, 0.52),
    inset -46px -52px 92px rgba(0, 0, 0, 0.76),
    inset 28px 30px 62px rgba(0, 0, 0, 0.38);
}

.pixel-hole::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 14%, transparent 66%, rgba(0, 0, 0, 0.5)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 22%, transparent 74%, rgba(0, 0, 0, 0.46));
}

.hole-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hole-video.is-active {
  opacity: 1;
}

:where(.reveal-on-scroll) {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

:where(.reveal-on-scroll).is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hole-datetime {
  position: absolute;
  bottom: 5.8%;
  left: 48%;
  z-index: 4;
  display: grid;
  min-width: 132px;
  justify-items: center;
  gap: 2px;
  padding: 7px 12px 8px;
  border: 1px solid rgba(255, 244, 184, 0.22);
  border-radius: 4px;
  background: rgba(5, 8, 10, 0.52);
  color: #fff4bf;
  font-family: "Minecraft Ten", "MinecraftTen", "Arial Black", sans-serif;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.75),
    0 0 10px rgba(255, 166, 54, 0.34);
  transform: translateX(-50%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 22px rgba(0, 0, 0, 0.26);
  pointer-events: none;
}

.hole-datetime span {
  color: rgba(255, 244, 191, 0.72);
  font-size: clamp(0.5rem, 0.62vw, 0.68rem);
}

.hole-datetime strong {
  font-size: clamp(0.78rem, 0.92vw, 1.05rem);
  font-weight: 400;
}

@keyframes ambient-drift {
  0% {
    opacity: 0.74;
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }

  100% {
    opacity: 1;
    transform: translate3d(1.5%, 1%, 0) scale(1.04);
  }
}

@keyframes page-arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes content-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-glow {
  from {
    opacity: 0.72;
  }

  to {
    opacity: 1;
  }
}

@keyframes hero-breath {
  from {
    transform: scale(1.035) translate3d(-0.6%, 0, 0);
  }

  to {
    transform: scale(1.075) translate3d(0.8%, -0.6%, 0);
  }
}

@keyframes avatar-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(72, 214, 160, 0.08),
      0 16px 36px rgba(0, 0, 0, 0.36);
    transform: translateY(0);
  }

  50% {
    box-shadow:
      0 0 0 5px rgba(72, 214, 160, 0.12),
      0 18px 42px rgba(0, 0, 0, 0.4),
      0 0 24px rgba(72, 214, 160, 0.12);
    transform: translateY(-2px);
  }
}

@keyframes title-focus {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes card-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes disc-panel-arrive {
  from {
    opacity: 0;
    transform: translate(18px, -50%) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
  }
}

@keyframes disc-slot-arrive {
  from {
    opacity: 0;
    transform: translateY(10px) rotate(-8deg) scale(0.82);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes disc-idle {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  45% {
    transform: translateY(-2px) rotate(4deg);
  }

  70% {
    transform: translateY(1px) rotate(-2deg);
  }
}

@keyframes player-arrive {
  from {
    opacity: 0;
    transform: translate(-50%, 16px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes jukebox-breathe {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.09);
  }
}

@keyframes jukebox-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes inserted-disc-spin {
  from {
    transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
  }

  to {
    transform: translateX(-50%) translateY(0) scale(1) rotate(360deg);
  }
}

@keyframes hole-arrive {
  from {
    opacity: 0;
    transform: translateX(clamp(-130px, -6vw, -80px)) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateX(clamp(-130px, -6vw, -80px)) scale(1);
  }
}

@keyframes hole-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes hub-float {
  0%,
  100% {
    box-shadow:
      var(--shadow),
      0 0 0 rgba(72, 214, 160, 0);
  }

  50% {
    box-shadow:
      var(--shadow),
      0 0 34px rgba(72, 214, 160, 0.08);
  }
}

@keyframes date-float {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -3px);
  }
}

@keyframes date-pulse {
  0%,
  100% {
    color: #fff4bf;
    text-shadow:
      0 2px 0 rgba(0, 0, 0, 0.75),
      0 0 10px rgba(255, 166, 54, 0.34);
  }

  50% {
    color: #fffbe2;
    text-shadow:
      0 2px 0 rgba(0, 0, 0, 0.75),
      0 0 16px rgba(255, 190, 74, 0.52),
      0 0 28px rgba(255, 190, 74, 0.18);
  }
}

@keyframes jukebox-pulse {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 22px rgba(255, 166, 48, 0.18);
  }

  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 0 34px rgba(255, 196, 84, 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 900px) {
  .page-shell {
    align-items: stretch;
    padding: 12px 12px 132px;
  }

  .site-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hub {
    margin-left: 0;
    min-height: auto;
  }

  .hero-visual::after {
    background: rgba(8, 10, 13, 0.86);
  }

  .hub-content {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .profile,
  .link-grid,
  .portfolio-link,
  .disc-grid {
    grid-column: auto;
    grid-row: auto;
  }

  .disc-grid {
    position: static;
    display: grid;
    grid-auto-columns: 48px;
    grid-auto-flow: column;
    grid-template-columns: none;
    width: 100%;
    max-height: none;
    justify-self: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px;
    scroll-padding-inline: 8px;
    scroll-snap-type: x proximity;
    transform: none;
    -webkit-overflow-scrolling: touch;
  }

  .jukebox-player {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: 58px minmax(0, 1fr);
    transform: none;
  }

  .jukebox-drop {
    width: 58px;
    height: 58px;
  }

  .jukebox-drop img {
    width: 46px;
    height: 46px;
  }

  .profile {
    grid-template-columns: 64px 1fr;
    gap: 14px;
  }

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

  .disc-slot {
    width: 48px;
    scroll-snap-align: start;
  }

  .disc-slot img {
    width: 34px;
    height: 34px;
  }

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

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .link-card {
    min-height: 82px;
    padding: 15px;
  }

  .portfolio-link {
    padding: 9px 11px;
  }

  .track-row {
    align-items: start;
  }

  .track-row strong {
    font-size: 0.84rem;
  }

  .control-row {
    gap: 8px;
  }

  .control-row button {
    min-height: 38px;
    min-width: 72px;
  }

  .video-hole {
    justify-items: center;
    padding-bottom: 24px;
    transform: none;
  }

  .video-hole::before {
    right: 50%;
    width: min(100%, 420px);
    transform: translate(calc(50% + 10px), calc(-50% + 12px));
  }

  .video-hole::after {
    right: 50%;
    width: min(118%, 500px);
    transform: translate(50%, -50%);
  }

  .pixel-hole {
    width: min(100%, 360px);
  }

  .hole-datetime {
    min-width: 104px;
    padding: 6px 9px 7px;
    left: 48%;
  }

  .minecraft-tooltip {
    display: none;
  }
}
