/* ── Reset & Base ────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

*::selection {
  background-color: #d00000 !important;
  color: #000000 !important;
}

*::-moz-selection {
  background-color: #d00000 !important;
  color: #000000 !important;
}

*::-webkit-selection {
  background-color: #d00000 !important;
  color: #000000;
}

a,
button,
input[type="submit"],
input[type="button"],
[role="button"],
.mc-block,
.vinyl-sleeve,
.vinyl-disk-img,
.collage-item,
.stack-photo,
.tag,
.logo,
.magnetic-link {
  touch-action: manipulation;
}

html {
  font-family: 'Courier Prime', Courier, monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background: #000000;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: clip;
}

/* ── Main Page ───────────────────────────────────── */
.main-page {
  min-height: 100vh;
  background-color: #000000;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: center top;
  opacity: 0;
  transition: opacity 0.5s ease 0.4s;
}

.main-page.visible {
  opacity: 1;
}

.constellation-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
  mix-blend-mode: screen;
}

.main-page.visible .constellation-canvas {
  opacity: 0.22;
}

/* ── Top Navigation Bar ──────────────────────────── */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  height: 72px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateY(-100%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.top-bar.visible {
  transform: translateY(0);
}

.logo {
  font-family: 'Special Elite', Courier, monospace;
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: -0.01em;
  cursor: pointer;
  user-select: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: invert(1) grayscale(1);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo:hover .logo-icon {
  transform: rotate(15deg) scale(1.1);
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  border-bottom: 1.5px dashed #ffffff;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo:hover::after {
  width: 100%;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-tab {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
  position: relative;
  padding: 6px 0;
}

.nav-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #ffffff;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-tab:hover {
  color: #ffffff;
}

.nav-tab:hover::after {
  width: 100%;
}

/* Hover style using :has() and :not() - dims other tabs when one is hovered */
.nav-tabs:has(.nav-tab:hover) .nav-tab:not(:hover) {
  opacity: 0.35;
}

.contact-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-family: 'Special Elite', Courier, monospace;
  font-size: 0.82rem;
  color: #ffffff;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: 0;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
}

.contact-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.contact-btn:hover {
  border-style: solid;
  border-color: #ffffff;
}

.contact-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-btn span {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.contact-btn:hover span {
  color: #000000;
}

.contact-btn .arrow-icon {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease, color 0.3s ease;
  stroke: #ffffff;
}

.contact-btn:hover .arrow-icon {
  transform: translateX(3px);
  stroke: #000000;
}



/* ── Hero Section ────────────────────────────────── */
.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 72px clamp(1.5rem, 4vw, 3rem) 2rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-animated-container {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
  width: clamp(260px, 45vw, 420px);
  height: clamp(260px, 45vw, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-animated-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.12));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-animated-image:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 45px rgba(255, 255, 255, 0.22));
}

.hero-animated-image.animating {
  animation: none;
}

.about-hero-title {
  font-family: 'Special Elite', Courier, monospace;
  max-width: 900px;
  font-size: clamp(2rem, 7vw, 4.5rem);
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1rem;
}

.about-hero-subtitle {
  font-family: 'Courier Prime', Courier, monospace;
  max-width: 700px;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}



/* ── Content Sections ────────────────────────────── */
.about-content-section {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem clamp(1.5rem, 4vw, 3rem);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-content-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-kicker {
  font-family: 'Courier Prime', Courier, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.section-title {
  font-family: 'Special Elite', Courier, monospace;
  max-width: 900px;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.2;
  color: #ffffff;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-description {
  font-family: 'Courier Prime', Courier, monospace;
  max-width: 800px;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
}

.section-content {
  display: grid;
  gap: 2rem;
}

.content-card {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1.5px solid #ffffff;
  border-radius: 0;
  background: #111111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: visible;
}

.content-card::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.content-card:hover {
  border-color: #ffffff;
  background: #151515;
  transform: scale(1.02) rotate(0deg) !important;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.1);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.card-icon {
  font-family: 'Special Elite', Courier, monospace;
  font-size: 0.85rem;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
  border-radius: 0;
  background: #ffffff;
  border: 1px solid #ffffff;
  transition: all 0.3s ease;
  font-weight: 700;
}

.content-card:hover .card-icon {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
}

.card-title {
  font-family: 'Special Elite', Courier, monospace;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: normal;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.card-label {
  font-family: 'Courier Prime', Courier, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.3rem;
}

.card-description {
  font-family: 'Courier Prime', Courier, monospace;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  font-family: 'Courier Prime', Courier, monospace;
  font-size: 0.72rem;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  transition: all 0.25s ease;
}

.tag:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: #000000;
}

/* Grid layout for multiple cards */
.journey-timeline {
  display: grid;
  gap: 2rem;
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 0;
  box-shadow: 0 0 0 2px #ffffff;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 18px;
  width: 2px;
  height: calc(100% + 1rem);
  background: repeating-linear-gradient(
    to bottom,
    #ffffff,
    #ffffff 4px,
    transparent 4px,
    transparent 8px
  );
}

.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ── Sidequests List ── */
.sidequests-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 2rem;
  width: 100%;
}

.sidequest-item {
  display: flex;
  gap: 2.5rem;
  max-width: 840px;
  position: relative;
  transition: transform 0.3s ease;
  width: 100%;
}

.sidequest-item.item-left {
  align-self: flex-start;
}

.sidequest-item.item-right {
  align-self: flex-end;
  flex-direction: row-reverse;
  text-align: right;
}

.sidequest-item.item-center {
  align-self: center;
  max-width: 680px;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.sidequest-num {
  font-family: 'Special Elite', Courier, monospace;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1;
  font-weight: bold;
}

.sidequest-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.sidequest-label {
  font-family: 'Courier Prime', Courier, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.sidequest-title {
  font-family: 'Special Elite', Courier, monospace;
  font-size: 1.4rem;
  color: #ffffff;
  border-bottom: 1.5px dashed rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding-bottom: 4px;
  align-self: flex-start;
}

.sidequest-item.item-right .sidequest-title {
  align-self: flex-end;
}

.sidequest-item.item-center .sidequest-title {
  align-self: center;
}

.sidequest-description {
  font-family: 'Courier Prime', Courier, monospace;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.sidequest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.sidequest-item.item-right .sidequest-tags {
  justify-content: flex-end;
}

.sidequest-item.item-center .sidequest-tags {
  justify-content: center;
}

.sidequest-item:hover {
  transform: translateY(-2px);
}

.surfing-item .surfing-polaroid {
  margin-top: 2rem;
  width: clamp(260px, 45vw, 320px);
}

/* ── Currently Doing Plate Logbook ── */
.plate-logbook {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 680px;
  margin: 0 auto;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 2rem;
  background: rgba(255, 255, 255, 0.01);
  position: relative;
}

.plate-logbook::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 24px;
  width: 60px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(-2.5deg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.plate-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.plate-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.plate-item:hover {
  transform: translateX(4px);
}

.plate-status {
  font-family: 'Courier Prime', Courier, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  user-select: none;
}

.plate-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
}

.plate-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.plate-title {
  font-family: 'Special Elite', Courier, monospace;
  font-size: 0.98rem;
  color: #ffffff;
}

.plate-subtitle {
  font-family: 'Courier Prime', Courier, monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.plate-progress {
  font-family: 'Courier Prime', Courier, monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
}

/* ── Responsive Design ───────────────────────────── */
@media (max-width: 768px) {
  .about-hero {
    padding: 64px clamp(1rem, 3vw, 1.5rem) 1.5rem;
  }

  .hero-animated-container {
    width: 320px;
    height: 320px;
    margin-bottom: 1.5rem;
  }

  .about-hero-title {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .about-hero-subtitle {
    font-size: 0.95rem;
  }

  .about-content-section {
    padding: 4rem clamp(1rem, 3vw, 1.5rem);
  }

  .section-title {
    font-size: 2rem;
  }

  .hobbies-grid,
  .sidequests-grid {
    grid-template-columns: 1fr;
  }

  .card-header {
    gap: 1rem;
  }

  .card-icon {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .about-hero {
    padding: 64px 1rem 1rem;
  }

  .hero-animated-container {
    width: 270px;
    height: 270px;
  }

  .about-hero-title {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
  }

  .about-hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .about-content-section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .content-card {
    padding: 1rem;
  }

  .card-header {
    flex-direction: column;
    gap: 1rem;
  }

  .timeline-item {
    padding-left: 2.5rem;
  }
}




/* ── Animated Me Image ───────────────────────────────── */
.animated-me-container {
  width: 50%;
  max-width: 400px;
  margin: 0 auto 3rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.animated-me {
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.1));
}

.animated-me:hover {
  transform: scale(1.05);
}

.animated-me.animating {
  animation: pulse 0.5s ease-in-out infinite alternate;
}

@keyframes pulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

/* ── Typewriter Explosion Particles ───────────────────── */
.typewriter-particle {
  position: fixed;
  font-family: 'Special Elite', Courier, monospace;
  font-size: 1.5rem;
  color: #ffffff;
  pointer-events: none;
  z-index: 1000;
  animation: explode 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes explode {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0) rotate(0deg);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(1.5) rotate(var(--rot));
  }
}

.reach-section {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem clamp(1.5rem, 4vw, 3rem) 7rem;
}

.reach-title {
  font-family: 'Special Elite', Courier, monospace;
  max-width: 760px;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 2rem;
}

.reach-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 880px;
  padding: 2.5rem;
  border: 2px solid #ffffff;
  border-radius: 0;
  background: #000000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  position: relative;
}

/* Tape at top of the form clip */
.reach-form::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 90px;
  height: 24px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(1.5px);
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reach-field {
  display: grid;
  gap: 8px;
}

.reach-field-full {
  grid-column: 1 / -1;
}

.reach-field label {
  font-family: 'Special Elite', Courier, monospace;
  font-size: 0.8rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
}

.reach-field input,
.reach-field textarea {
  width: 100%;
  border: none;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  padding: 10px 0;
  font-family: 'Courier Prime', Courier, monospace;
  font-size: 0.95rem;
  outline: none;
  transition: border-bottom-color 0.25s ease;
}

.reach-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.reach-field input:focus,
.reach-field textarea:focus {
  border-bottom-color: #ffffff;
  background: transparent;
  box-shadow: none;
}

.reach-send {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 44px;
  padding: 0 24px;
  border: 2px solid #ffffff;
  border-radius: 0;
  background: #ffffff;
  color: #000000;
  font-family: 'Special Elite', Courier, monospace;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.reach-send:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .name-warp-section {
    min-height: 55vh;
    padding: 4rem 0;
  }

  .name-warp-container {
    height: 250px;
  }

  .connect-btn {
    padding: 12px 30px;
    font-size: 0.88rem;
    margin-top: 1rem;
  }

  .reach-section {
    padding: 4rem 1.25rem 5rem;
  }

  .reach-form {
    grid-template-columns: 1fr;
  }
}


/* ── Footer ──────────────────────────────────────── */
.footer {
  position: relative;
  padding: 0 clamp(1.5rem, 4vw, 3rem) 4rem;
  z-index: 10;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.12) 30%,
      rgba(255, 255, 255, 0.12) 70%,
      transparent 100%);
  margin-bottom: 3.5rem;
}

/* Peeking Cat Animation */
.peeking-cat-container {
  position: absolute;
  top: 0;
  right: 12%;
  width: 70px;
  height: 52px;
  transform: translateY(-100%);
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.peeking-cat {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  filter: grayscale(100%) contrast(1.2);
}

.footer:hover .peeking-cat {
  transform: translateY(0);
}

.postcard-footer {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  border: 2px solid #ffffff;
  padding: 2.5rem;
  background: #000000;
  position: relative;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.9);
}

/* Postcard vertical divider */
.postcard-footer::after {
  content: '';
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 50%;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.22) 6px,
    transparent 6px,
    transparent 12px
  );
}

.postcard-left {
  flex: 1.25;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.postcard-msg {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.handwritten {
  font-family: 'Caveat', cursive;
  font-size: 1.45rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.handwritten.signature {
  font-size: 1.9rem;
  font-weight: 700;
  text-align: right;
  margin-top: 0.5rem;
}

.postcard-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.postcard-meta .typewriter {
  font-family: 'Courier Prime', Courier, monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.postcard-meta .typewriter-sub {
  font-family: 'Courier Prime', Courier, monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
}

.postcard-right {
  flex: 0.85;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-left: 2rem;
}

/* ── Passport Stamps Booklet ── */
.passport-booklet {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.passport-header {
  font-family: 'Special Elite', Courier, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  border-bottom: 1.5px dashed rgba(255, 255, 255, 0.12);
  padding-bottom: 6px;
}

.passport-stamps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
}

@media (max-width: 620px) {
  .passport-stamps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.passport-stamp-slot {
  position: relative;
  height: 84px;
  background: transparent;
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.passport-stamp-slot .stamp-title {
  font-family: 'Special Elite', Courier, monospace;
  font-size: 0.54rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.passport-stamp-slot .stamp-status {
  font-family: 'Courier Prime', Courier, monospace;
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
}

/* Unlocked Stamp state */
.passport-stamp-slot.unlocked {
  background: #ffffff;
  border: 1px solid #d3d3d3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  filter: url(#distressed-stamp);
  transform: rotate(var(--rot, 3deg)) scale(1.02);
}

.passport-stamp-slot.unlocked .stamp-title {
  color: #000000;
  font-weight: 700;
}

.passport-stamp-slot.unlocked .stamp-status {
  color: rgba(0, 0, 0, 0.7);
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.7);
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 0.5rem;
}

/* Specific rotation per slot to look like manual stamps */
.passport-stamp-slot:nth-child(1).unlocked { --rot: -4deg; }
.passport-stamp-slot:nth-child(2).unlocked { --rot: 2deg; }
.passport-stamp-slot:nth-child(3).unlocked { --rot: -2deg; }
.passport-stamp-slot:nth-child(4).unlocked { --rot: 3deg; }
.passport-stamp-slot:nth-child(5).unlocked { --rot: -3deg; }

/* Apply holes to unlocked stamps only */
.passport-stamp-slot:not(.unlocked) .stamp-holes {
  display: none;
}

/* perforation holes for stamp */
.stamp-holes {
  position: absolute;
  inset: -6px;
  background-image: 
    radial-gradient(circle, #000000 3.5px, transparent 4px),
    radial-gradient(circle, #000000 3.5px, transparent 4px),
    radial-gradient(circle, #000000 3.5px, transparent 4px),
    radial-gradient(circle, #000000 3.5px, transparent 4px);
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-position: top center, bottom center, center left, center right;
  background-size: 11px 11px;
  pointer-events: none;
  z-index: 10;
}

/* Passport Stamp Earned Toast Notification */
.passport-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #ffffff;
  color: #000000;
  border: 1px solid #d3d3d3;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 999999;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  font-family: 'Special Elite', Courier, monospace;
}

.passport-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-kicker {
  font-family: 'Courier Prime', Courier, monospace;
  font-size: 0.65rem;
  color: rgba(0, 0, 0, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.toast-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.postcard-address {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.address-line {
  font-family: 'Special Elite', Courier, monospace;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1.5px dashed rgba(255, 255, 255, 0.25);
  padding-bottom: 6px;
}

.address-line.line-to {
  color: #ffffff;
}

.address-line.link-line {
  border-bottom: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.post-link {
  font-family: 'Courier Prime', Courier, monospace;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-link:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .postcard-footer {
    flex-direction: column;
    padding: 1.75rem;
    gap: 2rem;
  }
  
  .postcard-footer::after {
    display: none;
  }
  
  .postcard-right {
    padding-left: 0;
    align-items: stretch;
  }
  
  .postage-stamp {
    align-self: flex-end;
  }
}

.phone-puzzle {
  display: grid;
  gap: 10px;
  width: min(100%, 380px);
  padding: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease, padding 0.25s ease;
}

.phone-puzzle.active {
  max-height: 230px;
  opacity: 1;
  padding: 14px;
  transform: translateY(0);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.phone-puzzle label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.54);
  line-height: 1.45;
}

.phone-puzzle-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.phone-puzzle input {
  min-width: 0;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  padding: 0 13px;
  outline: none;
  font: inherit;
}

.phone-puzzle button {
  height: 38px;
  min-width: 78px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  padding: 0 13px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.phone-puzzle-result {
  min-height: 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.phone-puzzle-result.unlocked {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* ── Vinyl Showcase Turntable Station ── */
.vinyl-showcase-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 820px;
  margin: 1.5rem auto 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
  position: relative;
  overflow: visible;
}

.vinyl-showcase-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  width: 100%;
  border: none;
  padding-bottom: 0;
}

.vinyl-crate-label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-transform: uppercase;
}

.vinyl-crate-hint {
  font-family: 'Courier Prime', monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.05em;
}

.vinyl-showcase-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  gap: 2rem;
  min-height: 310px;
}

/* ── Left & Right Navigation Arrows (< and >) ── */
.vinyl-nav-btn {
  font-family: 'Courier Prime', monospace;
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  background: transparent;
  border: none;
  width: auto;
  height: auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  z-index: 30;
  box-shadow: none;
  flex-shrink: 0;
  line-height: 1;
}

.vinyl-nav-btn:hover {
  background: transparent;
  color: #cccccc;
  border: none;
  box-shadow: none;
  transform: scale(1.25);
}

.vinyl-prev-btn:hover {
  transform: scale(1.25) translateX(-6px);
}

.vinyl-next-btn:hover {
  transform: scale(1.25) translateX(6px);
}

.vinyl-nav-btn:active {
  transform: scale(0.92);
  color: #888888;
}

/* ── Vinyl Stage Container ── */
.vinyl-player-container {
  position: relative;
  width: 500px;
  height: 290px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  perspective: 1200px;
}

.vinyl-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 500px;
  height: 290px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, filter 0.5s ease;
  will-change: transform, opacity;
}

.vinyl-player.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
  transform: translateZ(0) rotateY(0deg) scale(1);
  filter: blur(0px);
}

.vinyl-player.inactive {
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transform: scale(0.7) translateZ(-200px);
  filter: blur(6px);
  visibility: hidden;
}

/* 3D Crate-Digging Exit/Enter Transitions */
.vinyl-player.exit-left {
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transform: translateX(-50%) rotateY(-35deg) scale(0.8) translateZ(-100px);
  filter: blur(4px);
}

.vinyl-player.exit-right {
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transform: translateX(50%) rotateY(35deg) scale(0.8) translateZ(-100px);
  filter: blur(4px);
}

.vinyl-player.enter-left {
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transform: translateX(-50%) rotateY(-35deg) scale(0.8) translateZ(-100px);
  filter: blur(4px);
}

.vinyl-player.enter-right {
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transform: translateX(50%) rotateY(35deg) scale(0.8) translateZ(-100px);
  filter: blur(4px);
}

.vinyl-sleeve {
  position: absolute;
  left: 0;
  top: 20px;
  width: 250px;
  height: 250px;
  z-index: 10;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.vinyl-player:hover .vinyl-sleeve {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.sleeve-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid #ffffff;
}

.vinyl-disk-wrapper {
  position: absolute;
  left: 5px;
  top: 25px;
  width: 240px;
  height: 240px;
  z-index: 5;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
}

.vinyl-disk-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: grab;
  will-change: transform;
}

.vinyl-disk-img.scratching {
  cursor: grabbing;
}

/* Hover state: slide out slightly (approx 20-30%) */
.vinyl-player:hover:not(.playing) .vinyl-disk-wrapper {
  transform: translateX(60px) rotate(15deg);
}

/* Active/playing state: slide out 70% and rotate */
.vinyl-player.playing .vinyl-disk-wrapper {
  transform: translateX(180px); /* overlaps 70px with sleeve, exposing ~76% */
}

/* Play/Pause Overlay Icon - Hidden */
.play-overlay {
  display: none !important;
}

/* Shake/vibrate effect when scratching the record */
@keyframes sleeve-vibrate {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(1px, 1.5px) rotate(0.15deg); }
  50% { transform: translate(-1px, -1.5px) rotate(-0.15deg); }
  75% { transform: translate(1.5px, -1px) rotate(0.1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.vinyl-player:has(.scratching) .vinyl-sleeve {
  animation: sleeve-vibrate 0.1s linear infinite;
}

/* ── Turntable HUD Info Bar ── */
.vinyl-hud {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.5rem 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font-family: 'Courier Prime', monospace;
  box-shadow: none;
  gap: 1.2rem;
  z-index: 15;
}

.vinyl-hud-left {
  flex-shrink: 0;
}

.vinyl-hud-counter {
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.vinyl-hud-center {
  flex-grow: 1;
  text-align: center;
  overflow: hidden;
}

.vinyl-hud-artist {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s ease;
}

.vinyl-hud-track {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
  transition: opacity 0.3s ease;
}

.vinyl-hud-right {
  flex-shrink: 0;
}

.vinyl-hud-status {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  border: none;
  box-shadow: none;
}

.vinyl-hud-status.is-playing {
  background: transparent;
  color: #ffffff;
  border: none;
  box-shadow: none;
  animation: none;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

@keyframes hud-pulse {
  from { text-shadow: 0 0 4px rgba(255, 255, 255, 0.3); }
  to { text-shadow: 0 0 12px rgba(255, 255, 255, 0.9); }
}

/* Make sure the music card itself doesn't hide the overflow of the vinyl */
.music-card {
  overflow: visible !important;
  z-index: 20;
}



/* ── Exploding Photo Stacks ───────────────────────── */
.photo-stack {
  --photo-w: clamp(190px, 28vw, 250px);
  position: relative;
  width: min(100%, 1120px);
  min-height: clamp(360px, 52vw, 560px);
  margin: 0 auto;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.photo-stack::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(64vw, 720px);
  height: min(42vw, 420px);
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.16), transparent 58%),
    radial-gradient(circle at 40% 45%, rgba(255, 255, 255, 0.08), transparent 42%);
  filter: blur(34px);
  opacity: 0.38;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-stack.is-exploded::before {
  opacity: 0.72;
  transform: translate(-50%, -50%) scale(1.12);
}

.photo-stack-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  perspective: 1200px;
}

.stack-photo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--photo-w);
  aspect-ratio: 0.78;
  padding: 10px 10px 34px;
  border: 1px solid #e8e2d3;
  border-radius: 2px;
  background: #f7f1e3;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.42),
    0 2px 0 rgba(255, 255, 255, 0.7) inset,
    0 -18px 28px rgba(0, 0, 0, 0.08) inset;
  transform:
    translate(-50%, -50%)
    translate(var(--collapsed-x), var(--collapsed-y))
    rotate(var(--collapsed-rot));
  transform-origin: center 58%;
  transition:
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s ease,
    filter 0.45s ease,
    opacity 0.45s ease;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  will-change: transform;
}

.stack-photo:nth-child(1) { z-index: 9; transition-delay: 0ms; }
.stack-photo:nth-child(2) { z-index: 8; transition-delay: 22ms; }
.stack-photo:nth-child(3) { z-index: 7; transition-delay: 44ms; }
.stack-photo:nth-child(4) { z-index: 6; transition-delay: 66ms; }
.stack-photo:nth-child(5) { z-index: 5; transition-delay: 88ms; }
.stack-photo:nth-child(6) { z-index: 4; transition-delay: 110ms; }
.stack-photo:nth-child(7) { z-index: 3; transition-delay: 132ms; }
.stack-photo:nth-child(8) { z-index: 2; transition-delay: 154ms; }
.stack-photo:nth-child(9) { z-index: 1; transition-delay: 176ms; }

.stack-photo::before,
.stack-photo::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.stack-photo::before {
  left: 50%;
  top: -12px;
  width: 74px;
  height: 22px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.stack-photo::after {
  left: 16px;
  right: 16px;
  bottom: 12px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.26) 0 10px, transparent 10px 17px);
  opacity: 0.22;
}

.stack-photo img {
  display: block;
  width: 100%;
  height: calc(100% - 22px);
  object-fit: cover;
  background: #080808;
  filter: saturate(0.92) contrast(1.06);
  pointer-events: none;
}

.photo-stack:not(.is-exploded):hover .stack-photo,
.photo-stack:not(.is-exploded):focus-within .stack-photo {
  transform:
    translate(-50%, -50%)
    translate(var(--hover-x), var(--hover-y))
    rotate(var(--hover-rot))
    translateZ(24px);
}

.photo-stack:not(.is-exploded):hover .stack-photo:hover,
.photo-stack:not(.is-exploded):focus-within .stack-photo:focus-visible {
  z-index: 20;
  transform:
    translate(-50%, -50%)
    translate(var(--hover-x), calc(var(--hover-y) - 18px))
    rotate(0deg)
    translateZ(64px)
    scale(1.04);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.58);
}

.photo-stack.is-exploded {
  min-height: clamp(600px, 74vw, 760px);
  z-index: 60;
}

.photo-stack.is-exploded .stack-photo {
  transform:
    translate(-50%, -50%)
    translate(var(--explode-x), var(--explode-y))
    rotate(var(--explode-rot))
    scale(0.88);
  box-shadow:
    0 28px 58px rgba(0, 0, 0, 0.58),
    0 2px 0 rgba(255, 255, 255, 0.7) inset,
    0 -18px 28px rgba(0, 0, 0, 0.08) inset;
}

.photo-stack.is-exploded .stack-photo:hover,
.photo-stack.is-exploded .stack-photo:focus-visible {
  z-index: 70;
  transform:
    translate(-50%, -50%)
    translate(var(--explode-x), calc(var(--explode-y) - 18px))
    rotate(0deg)
    scale(0.98);
}

.photo-stack.is-exploded .stack-photo.is-selected {
  z-index: 90;
  transform:
    translate(-50%, -50%)
    translate(0, 0)
    rotate(0deg)
    scale(1.12);
  box-shadow:
    0 44px 90px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.7) inset;
}

.photo-stack-close {
  position: absolute;
  left: 50%;
  bottom: clamp(0.5rem, 2vw, 1.25rem);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.74);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.48);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(16px) scale(0.86);
  transition: opacity 0.32s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
  z-index: 100;
}

.photo-stack-close::before,
.photo-stack-close::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 2px;
  background: #ffffff;
  transform: rotate(45deg);
}

.photo-stack-close::after {
  transform: rotate(-45deg);
}

.photo-stack.is-exploded .photo-stack-close {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.photo-stack-close:hover,
.photo-stack-close:focus-visible {
  background: #ffffff;
}

.photo-stack-close:hover::before,
.photo-stack-close:hover::after,
.photo-stack-close:focus-visible::before,
.photo-stack-close:focus-visible::after {
  background: #000000;
}

@media (max-width: 900px) {
  .photo-stack {
    --photo-w: clamp(145px, 32vw, 210px);
    min-height: 560px;
  }

  .photo-stack.is-exploded .photo-stack-frame {
    transform: scale(0.78);
  }
}

@media (max-width: 620px) {
  .photo-stack {
    --photo-w: clamp(120px, 42vw, 160px);
    min-height: 470px;
  }

  .photo-stack.is-exploded {
    min-height: 560px;
  }

  .photo-stack.is-exploded .photo-stack-frame {
    transform: scale(0.58);
  }

}





/* ── Card Tilting for Scrapbook Vibe ── */
.journey-timeline .content-card:nth-child(1) { transform: rotate(-0.8deg); }
.journey-timeline .content-card:nth-child(2) { transform: rotate(1deg); }
.journey-timeline .content-card:nth-child(3) { transform: rotate(-0.5deg); }

.sidequests-grid .content-card:nth-child(1) { transform: rotate(0.8deg); }
.sidequests-grid .content-card:nth-child(2) { transform: rotate(-1.2deg); }
.sidequests-grid .content-card:nth-child(3) { transform: rotate(0.6deg); }
.sidequests-grid .content-card:nth-child(4) { transform: rotate(-0.8deg); }
.sidequests-grid .content-card:nth-child(5) { transform: rotate(1deg); }

/* margin notes (creative doodles/annotations) */
.content-card::before {
  content: 'note://';
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-family: 'Caveat', cursive;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.25);
  font-weight: normal;
  pointer-events: none;
}



/* ── Hobby Sections ── */
.hobby-section {
  padding: 4rem clamp(1.5rem, 4vw, 3rem) !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hobby-section .hobby-content {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.hobby-section .polaroid {
  width: clamp(240px, 50vw, 340px);
  margin: 0;
}

.hobby-section::before {
  content: 'log://' attr(id);
  position: absolute;
  bottom: 10px;
  right: clamp(1.5rem, 4vw, 3rem);
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.25);
  font-weight: normal;
  pointer-events: none;
}

/* ── Music Section Collage & Layout Adjustments ── */
#music-section .hobby-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  width: 100%;
}

.artists-collage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 220px;
  margin: 3rem auto 0 auto;
  box-sizing: border-box;
}

.artists-collage .collage-item {
  position: absolute;
  width: 110px;
  height: 110px;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  background: transparent;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  z-index: 2;
}

/* Specific overlapping percentage coordinates to spread them out organically across full width */
.artists-collage .collage-item:nth-child(1) { left: 0%; top: 20px; --rot: -8deg; }
.artists-collage .collage-item:nth-child(2) { left: 10.5%; top: 5px; --rot: 5deg; z-index: 3; }
.artists-collage .collage-item:nth-child(3) { left: 21%; top: 30px; --rot: -6deg; }
.artists-collage .collage-item:nth-child(4) { left: 31.5%; top: 10px; --rot: 8deg; z-index: 3; }
.artists-collage .collage-item:nth-child(5) { left: 42%; top: 25px; --rot: -4deg; z-index: 4; }
.artists-collage .collage-item:nth-child(6) { left: 52.5%; top: 5px; --rot: 7deg; z-index: 3; }
.artists-collage .collage-item:nth-child(7) { left: 63%; top: 35px; --rot: -9deg; }
.artists-collage .collage-item:nth-child(8) { left: 73.5%; top: 15px; --rot: 6deg; z-index: 3; }
.artists-collage .collage-item:nth-child(9) { left: 84%; top: 20px; --rot: -3deg; }

.artists-collage .collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.15);
  transition: filter 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.artists-collage .collage-item:hover {
  transform: scale(1.25) rotate(0deg);
  z-index: 100 !important;
}

.artists-collage .collage-item:hover img {
  filter: grayscale(0%) contrast(1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
}

@media (min-width: 768px) {
  .artists-collage {
    height: 320px;
    margin-top: 5rem;
  }
  .artists-collage .collage-item {
    width: 170px;
    height: 170px;
  }
  /* On tablets/desktops we can have more dramatic vertical offsets */
  .artists-collage .collage-item:nth-child(1) { top: 40px; }
  .artists-collage .collage-item:nth-child(2) { top: 10px; }
  .artists-collage .collage-item:nth-child(3) { top: 60px; }
  .artists-collage .collage-item:nth-child(4) { top: 20px; }
  .artists-collage .collage-item:nth-child(5) { top: 50px; }
  .artists-collage .collage-item:nth-child(6) { top: 15px; }
  .artists-collage .collage-item:nth-child(7) { top: 70px; }
  .artists-collage .collage-item:nth-child(8) { top: 30px; }
  .artists-collage .collage-item:nth-child(9) { top: 45px; }
}

@media (min-width: 1024px) {
  #music-section .hobby-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4.5rem;
  }
}

/* ── Scrapbook Decor Images ── */
.decor-image {
  position: absolute;
  pointer-events: auto;
  cursor: grab;
  z-index: 2; /* Sits behind content cards but above the graph paper background */
  filter: grayscale(100%) opacity(0.35) contrast(1.1); /* clearly visible outline watermark, like raw typewriter prints on paper */
  transition: filter 0.4s ease, transform 0.4s ease;
  user-select: none;
  -webkit-user-drag: none;
}

/* Subtly increase opacity when hovering over sections for a responsive feel */
section:hover .decor-image {
  filter: grayscale(100%) opacity(0.65) contrast(1.15);
}

.decor-image:hover {
  filter: grayscale(0%) opacity(0.95) contrast(1.15) !important;
  z-index: 15; /* rise above non-dragged elements */
}

.decor-image:active {
  cursor: grabbing;
}

.decor-coffee {
  width: 90px;
  height: auto;
  top: 40px;
  right: 8%;
  transform: rotate(12deg);
}

.decor-laptop {
  width: 95px;
  height: auto;
  bottom: 20px;
  left: 2%;
  transform: rotate(-15deg);
}

.decor-plane {
  width: 80px;
  height: auto;
  top: 15px;
  right: 5%;
  transform: rotate(-25deg);
}

.decor-cassette {
  width: 85px;
  height: auto;
  top: 20px;
  right: 15%;
  transform: rotate(8deg);
}

.decor-guitar {
  width: 110px;
  height: auto;
  bottom: -30px;
  left: 2%;
  transform: rotate(-20deg);
}

.decor-headphone {
  width: 75px;
  height: auto;
  top: 180px;
  right: 3%;
  transform: rotate(18deg);
}

.decor-greek {
  width: 100px;
  height: auto;
  top: 30px;
  right: 8%;
  transform: rotate(-10deg);
}

.decor-brain {
  width: 85px;
  height: auto;
  bottom: 40px;
  left: 3%;
  transform: rotate(15deg);
}

.decor-waves {
  width: 120px;
  height: auto;
  top: 15px;
  right: 5%;
  transform: rotate(5deg);
}

.decor-tiger {
  width: 110px;
  height: auto;
  bottom: 20px;
  left: 4%;
  transform: rotate(-8deg);
}

.decor-dumbell {
  width: 90px;
  height: auto;
  top: 30px;
  right: 5%;
  transform: rotate(-12deg);
}

.decor-leaf {
  width: 80px;
  height: auto;
  bottom: 30px;
  left: 2%;
  transform: rotate(25deg);
}

.decor-hero-leaf {
  width: 85px;
  height: auto;
  bottom: 50px;
  left: 6%;
  transform: rotate(-15deg);
}

.decor-wolf {
  width: 110px;
  height: auto;
  bottom: 40px;
  left: 4%;
  transform: rotate(-12deg);
}

.decor-guitar2 {
  width: 90px;
  height: auto;
  bottom: -15px;
  left: 12%;
  transform: rotate(18deg);
}

.decor-eins {
  width: 95px;
  height: auto;
  top: 25px;
  left: 4%;
  transform: rotate(-5deg);
}

.decor-currently-laptop {
  width: 95px;
  height: auto;
  top: 20px;
  right: 5%;
  transform: rotate(12deg);
}

.decor-currently-brain {
  width: 85px;
  height: auto;
  bottom: 30px;
  left: 3%;
  transform: rotate(-10deg);
}

.decor-money {
  width: 100px;
  height: auto;
  bottom: 50px;
  left: 4%;
  transform: rotate(-15deg);
}

.decor-reach-plane {
  width: 80px;
  height: auto;
  top: 30px;
  right: 6%;
  transform: rotate(20deg);
}

/* Responsive adjustments to avoid content overlap */
@media (max-width: 1024px) {
  .decor-guitar, .decor-guitar2, .decor-laptop, .decor-currently-laptop, .decor-brain, .decor-currently-brain, .decor-tiger, .decor-leaf, .decor-hero-leaf, .decor-wolf, .decor-eins, .decor-money {
    display: none; /* hide elements on left margins/background to save layout width */
  }
}

@media (max-width: 768px) {
  /* Fully darkened true black background on mobile */
  body,
  .main-page {
    background: #000000 !important;
    background-image: none !important;
  }

  .constellation-canvas {
    display: none !important;
  }

  .grain {
    display: none !important;
  }

  .decor-image {
    width: 60px;
    opacity: 0.2;
  }
  section:hover .decor-image {
    opacity: 0.35;
  }

  .vinyl-showcase-wrapper {
    padding: 1.2rem 0.6rem;
    border-radius: 12px;
  }
  .vinyl-showcase-header {
    margin-bottom: 1.2rem;
  }
  .vinyl-crate-label {
    font-size: 0.8rem;
  }
  .vinyl-crate-hint {
    font-size: 0.68rem;
  }
  .vinyl-showcase-main {
    gap: 0.5rem;
    min-height: 200px;
  }
  .vinyl-nav-btn {
    width: auto;
    height: auto;
    font-size: 2.5rem;
    padding: 0 4px;
  }
  .vinyl-player-container {
    padding: 0;
    width: 320px;
    height: 190px;
  }
  .vinyl-player {
    width: 320px;
    height: 190px;
  }
  .vinyl-sleeve {
    width: 160px;
    height: 160px;
    top: 15px;
  }
  .vinyl-disk-wrapper {
    width: 150px;
    height: 150px;
    top: 20px;
    left: 5px;
  }
  .vinyl-player.playing .vinyl-disk-wrapper {
    transform: translateX(110px);
  }
  .vinyl-player:hover:not(.playing) .vinyl-disk-wrapper {
    transform: translateX(30px) rotate(15deg);
  }
  .vinyl-hud {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
}

/* ── Minecraft Pocket Miner Mini Game ──────────────── */
#minecraft-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.mc-console-wrapper {
  width: 100%;
  max-width: 380px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: center;
}

.mc-console {
  width: 100%;
  padding: 22px;
  border: 1.5px solid #ffffff;
  border-radius: 0;
  background: #111111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: visible;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mc-console::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.mc-console:hover {
  border-color: #ffffff;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
}

/* LCD green-screen display */
.mc-screen {
  background: #12180e;
  border: 1.5px solid #2e3b24;
  color: #a4e07a;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8);
}

/* Retro green screen scanlines */
.mc-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 24, 14, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 10;
}

.mc-block-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.mc-mobile-tool,
.mc-touch-tool {
  display: none;
}

.mc-block {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: transform 0.05s ease, filter 0.2s ease;
}

.mc-block:hover {
  filter: brightness(1.12);
}

.mc-block:active {
  transform: scale(0.92);
}

.mc-block-cracks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-size: cover;
  transition: opacity 0.1s ease;
  z-index: 3;
}

.mc-block-cracks.crack-light {
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M 10 10 L 25 30 L 30 50' fill='none' stroke='%23a4e07a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.mc-block-cracks.crack-medium {
  opacity: 0.75;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M 10 10 L 25 30 L 30 50 M 50 10 L 35 30 L 30 50 M 25 30 L 5 35' fill='none' stroke='%23a4e07a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.mc-block-cracks.crack-heavy {
  opacity: 0.95;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M 10 10 L 25 30 L 30 50 M 50 10 L 35 30 L 30 50 M 25 30 L 5 35 M 35 30 L 55 35 M 30 50 L 35 58 L 25 58' fill='none' stroke='%23a4e07a' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.mc-block-symbol {
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.mc-screen-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
  max-width: 190px;
  font-family: 'Courier Prime', Courier, monospace;
  z-index: 2;
}

.mc-block-name {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a4e07a;
  text-shadow: 0 0 4px rgba(164, 224, 122, 0.4);
}

.mc-block-hp-bar {
  width: 100%;
  height: 6px;
  background: #182213;
  border: 1px solid #3d5032;
  overflow: hidden;
  position: relative;
}

.mc-block-hp-fill {
  height: 100%;
  background: #a4e07a;
  box-shadow: 0 0 6px #a4e07a;
  transition: width 0.1s ease-out;
}

.mc-block-hp-text {
  font-size: 0.7rem;
  opacity: 0.8;
  letter-spacing: 0.02em;
}

/* Controls and buttons */
.mc-controls {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mc-inventory {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.mc-inv-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 4px;
  border-radius: 0;
  position: relative;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.mc-inv-slot::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px dashed rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.mc-inv-slot:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: #1f1f1f;
}

.mc-inv-icon {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mc-inv-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
}

.mc-inv-count {
  font-size: 0.72rem;
  font-family: 'Courier Prime', Courier, monospace;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
}

.mc-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mc-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  color: #ffffff;
  cursor: pointer;
  font-family: 'Courier Prime', Courier, monospace;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mc-btn.afford {
  border: 1.5px solid #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.mc-btn.afford:hover {
  background: #ffffff;
  color: #000000;
  border-style: solid;
}

.mc-btn.afford:active {
  transform: translateY(1px);
}

.mc-btn:disabled:not(.afford) {
  opacity: 0.35;
  cursor: not-allowed;
}

.mc-btn-label {
  font-size: 0.82rem;
}

.mc-btn-cost {
  font-size: 0.65rem;
  margin-top: 2px;
  opacity: 0.8;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.mc-btn.afford:hover .mc-btn-cost {
  color: #000000;
}

.mc-tool-info {
  font-size: 0.72rem;
  text-align: center;
  font-family: 'Courier Prime', Courier, monospace;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* Animations & Particles */
@keyframes mc-shake {
  0% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-3px, 1px) rotate(-1.5deg); }
  40% { transform: translate(2px, -1.5px) rotate(1deg); }
  60% { transform: translate(-2px, 2px) rotate(-0.5deg); }
  80% { transform: translate(2px, 1px) rotate(1.5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.mc-block.shake {
  animation: mc-shake 0.15s ease-in-out;
}

@keyframes mc-tool-hammer {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(46px, -56px) rotate(-48deg) scale(0.86);
  }

  18% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(24px, -34px) rotate(-24deg) scale(1);
  }

  46% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(2px, -6px) rotate(18deg) scale(1.06);
  }

  72% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(18px, -28px) rotate(-36deg) scale(0.98);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(44px, -54px) rotate(-48deg) scale(0.86);
  }
}

@media (max-width: 768px) {
  .mc-screen {
    gap: 12px;
    overflow: visible;
  }

  .mc-mobile-tool {
    position: absolute;
    left: 50%;
    top: -58px;
    min-width: 132px;
    min-height: 48px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 8px;
    align-items: center;
    padding: 7px 9px;
    border: 1px solid rgba(164, 224, 122, 0.55);
    background: rgba(10, 18, 8, 0.92);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.55),
      0 8px 20px rgba(0, 0, 0, 0.38),
      inset 0 0 12px rgba(164, 224, 122, 0.08);
    color: #a4e07a;
    font-family: 'Courier Prime', Courier, monospace;
    pointer-events: none;
    z-index: 12;
  }

  .mc-mobile-tool-label {
    grid-column: 2;
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.68;
  }

  .mc-mobile-tool-visual {
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(164, 224, 122, 0.36);
    background: rgba(164, 224, 122, 0.08);
  }

  .mc-mobile-tool-name {
    grid-column: 2;
    min-width: 0;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 4px rgba(164, 224, 122, 0.35);
  }

  .mc-mobile-tool img,
  .mc-touch-tool img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.55));
  }

  .mc-mobile-tool-hand,
  .mc-touch-tool-hand {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #a4e07a;
    font-family: 'Courier Prime', Courier, monospace;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.04em;
  }

  .mc-mobile-tool.has-image .mc-mobile-tool-hand,
  .mc-touch-tool.has-image .mc-touch-tool-hand {
    display: none;
  }

  .mc-mobile-tool:not(.has-image) img,
  .mc-touch-tool:not(.has-image) img {
    display: none;
  }

  .mc-touch-tool {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    z-index: 14;
    transform-origin: 18% 82%;
  }

  .mc-touch-tool:not(.has-image) {
    width: 50px;
    height: 32px;
    border: 1px solid rgba(164, 224, 122, 0.65);
    background: rgba(10, 18, 8, 0.9);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36);
  }

  .mc-touch-tool.swing {
    animation: mc-tool-hammer 0.34s cubic-bezier(0.2, 0.9, 0.25, 1) both;
  }
}

@keyframes mc-particle-fade {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0) rotate(var(--rot));
    opacity: 0;
  }
}

.mc-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--color);
  pointer-events: none;
  z-index: 5;
  animation: mc-particle-fade 0.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes mc-float-up {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-35px);
    opacity: 0;
  }
}

.mc-floating-text {
  position: absolute;
  color: #a4e07a;
  font-family: 'Courier Prime', Courier, monospace;
  font-weight: 700;
  font-size: 0.82rem;
  pointer-events: none;
  z-index: 15;
  text-shadow: 0 0 3px rgba(164, 224, 122, 0.6);
  animation: mc-float-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 480px) {
  .mc-console-wrapper {
    max-width: 100%;
    padding: 0 10px;
  }
}

/* ── Minecraft HUD & Game Over Screen ──────────────── */
#mc-health-bar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10005;
  display: flex;
  gap: 4px;
}

.mc-heart-invincible {
  animation: mc-heart-flash 0.15s infinite;
}

@keyframes mc-heart-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

#mc-hit-flash {
  position: fixed;
  inset: 0;
  background: rgba(180, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0;
  z-index: 10008;
  transition: opacity 0.08s ease;
}

#mc-gameover-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 0, 0, 0.85);
  z-index: 10010;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  text-align: center;
  padding: 20px;
}

#mc-gameover-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.mc-go-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: #ff2222;
  text-shadow: 4px 4px 0px #300000;
  font-family: 'Special Elite', Courier, monospace;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  animation: mc-go-pulse 1.5s infinite alternate;
}

@keyframes mc-go-pulse {
  0% { transform: scale(0.98); text-shadow: 3px 3px 0px #200000; }
  100% { transform: scale(1.02); text-shadow: 5px 5px 0px #400000; }
}

.mc-go-sub {
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 35px;
  font-family: 'Courier Prime', Courier, monospace;
}

.mc-go-btn {
  padding: 12px 28px;
  background: #5a5a5a;
  border: 3px solid #000000;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Courier Prime', Courier, monospace;
  text-transform: uppercase;
  box-shadow: inset -3px -3px 0px #2e2e2e, inset 3px 3px 0px #8e8e8e;
  border-radius: 0;
  transition: background 0.15s, transform 0.05s;
}

.mc-go-btn:hover {
  background: #707070;
  border-color: #ffffff;
}

.mc-go-btn:active {
  transform: scale(0.98);
}

.mc-mob {
  position: fixed;
  z-index: 10002;
  pointer-events: none;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
  display: block;
}

#mc-block-symbol img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  pointer-events: none;
  display: block;
}

/* ── Nether Portal Warning & Transition Overlay ── */
.mc-nether-warning {
  font-family: 'Courier Prime', Courier, monospace;
  font-size: 0.75rem;
  font-weight: bold;
  text-align: center;
  margin-top: 8px;
  color: #c084fc;
  text-shadow: 0 0 5px rgba(192, 132, 252, 0.4);
  animation: mc-warning-blink 0.8s infinite;
}

@keyframes mc-warning-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.nether-portal-transition {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.9) 0%, rgba(15, 23, 42, 1) 100%);
  opacity: 0;
  pointer-events: none;
  transform: scale(0);
  border-radius: 50%;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.5s ease, border-radius 1.5s ease;
}

.nether-portal-transition.active {
  transform: scale(1);
  opacity: 1;
  border-radius: 0%;
  pointer-events: auto;
}
