* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #000000;
  --text-dark: #eeeeee;
  --bg-light: #f5f0e8;
  --text-light: #222222;
  --line-dark: #222222;
  --line-light: #d8d0c6;
  --mobile-font: Arial, sans-serif;
  --mid-font: Georgia, serif;
  --wide-font: "Space Mono", monospace;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--mobile-font);
  overflow-x: hidden;
}

.sin-page {
  background: var(--bg-dark);
  color: var(--text-dark);
}

.virtue-page {
  background: var(--bg-light);
  color: var(--text-light);
}

.page {
  position: relative;
  min-height: 100vh;
  width: 100%;
}

.ascii-bg {
  display: none;
}

.page-inner {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* main image */
.image-slot {
  display: block;
  width: 18rem;
  max-width: 88vw;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.image-slot:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* one obvious return */
.back {
  position: fixed;
  left: 0.8rem;
  bottom: 0.8rem;
  z-index: 8;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.45;
  text-decoration: none;
}

.back:hover {
  opacity: 1;
}

/* hidden/random dots */
.ghost-dot {
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 10;
  color: inherit;
  text-decoration: none;
  opacity: 0.25;
  font-size: 1.2rem;
  cursor: pointer;
}

.ghost-dot:hover {
  opacity: 0.8;
}

/* mobile/minimize extras */
.mobile-extras {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  padding: 1rem;
  border-top: 1px solid var(--line-dark);
  background: rgba(0, 0, 0, 0.95);
}

.virtue-page .mobile-extras {
  border-top: 1px solid var(--line-light);
  background: rgba(245, 240, 232, 0.96);
}

.mobile-extras::before {
  content: "small-window route revealed";
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

.mobile-extras p {
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.audio-btn,
.fake-search-btn {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-dark);
  background: #111111;
  color: #eeeeee;
  cursor: pointer;
  font-size: 0.7rem;
  margin-bottom: 0.7rem;
}

.virtue-page .audio-btn,
.virtue-page .fake-search-btn {
  background: #ebe4d8;
  color: #222222;
  border-color: var(--line-light);
}

.fake-search {
  margin-top: 0.6rem;
}

.fake-search input {
  width: 100%;
  max-width: 18rem;
  padding: 0.6rem;
  border: 1px solid var(--line-dark);
  background: #111111;
  color: #eeeeee;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.virtue-page .fake-search input {
  background: #fffaf2;
  color: #222222;
  border-color: var(--line-light);
}

.hidden-link-wrap {
  margin-top: 0.8rem;
  display: flex;
  justify-content: flex-end;
}

.hidden-link-image {
  display: block;
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border: 1px solid var(--line-dark);
  cursor: pointer;
}

.virtue-page .hidden-link-image {
  border-color: var(--line-light);
}

/* SMALL STATE: hidden content appears */
@media screen and (max-width: 599px) {
  body {
    font-family: var(--mobile-font);
  }

  .page-inner {
    align-items: flex-start;
    padding-top: 2rem;
  }

  .mobile-extras {
    display: block;
  }

  .image-slot {
    width: 16rem;
    max-width: 82vw;
  }
}

/* MIDDLE STATE: different layout, not just resized */
@media screen and (min-width: 600px) and (max-width: 1199px) {
  body {
    font-family: var(--mid-font);
  }

  .page-inner {
    justify-content: flex-start;
    align-items: center;
    padding-left: 8vw;
  }

  .image-slot {
    width: 24rem;
    max-width: 60vw;
  }

  .image-slot:hover {
    transform: translateX(1rem);
  }
}

/* LARGE STATE: centered and larger */
@media screen and (min-width: 1200px) {
  body {
    font-family: var(--wide-font);
  }

  .page-inner {
    justify-content: center;
    align-items: center;
  }

  .image-slot {
    width: 32rem;
    max-width: 55vw;
  }
}

/* ANIMATION */
.pulse-word {
  position: fixed;
  right: 1rem;
  bottom: 6rem;
  font-size: 2rem;
  opacity: 0.35;
  pointer-events: none; 
  animation: pulseWord 2.5s infinite ease-in-out;
}

@keyframes pulseWord {
  0% { transform: scale(1); opacity: 0.25; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 0.25; }
}