* {
  box-sizing: border-box;
}

/* =========================================================
   SITE EDITING MAP
   - Global Background: page background, fog, vignette.
   - Landing Page: enter screen, REC text, distorted title.
   - Shared Window Layout: 98.css-style windows, nav, panels.
   - Homepage: hero title, floater, welcome grid, status terminal, guestbook.
   - Photos/Shrine/Characters Pages: gallery, shelf, and profile layouts.
   - Responsive: mobile/tablet adjustments at the bottom.
   Tip: change image filenames only after copying the new file
   into this folder.
   ========================================================= */

/* Custom font used on the landing page REC/title/terminal text. */
@font-face {
  font-family: "FoundFootage3270";
  src: url("3270-Regular.ttf") format("truetype");
  font-display: swap;
}

html {
  min-height: 100%;
  background: #080a0d;
}

/* Global Background */
body {
  min-height: 100vh;
  margin: 0;
  padding: 18px;
  color: #111;
  font-family: "MS UI Gothic", "Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
  display: flex;
  justify-content: center;
}

.room-bg {
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .08) 50%, rgba(0, 0, 0, .55)),
    url("site-bg.gif");
  background-size: cover;
  background-position: center 74%;
  background-repeat: no-repeat;
}

.room-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0 50%, rgba(0, 0, 0, .65) 100%),
    rgba(0, 0, 0, .18);
  opacity: 1;
}

.static-layer,
.scanline-layer,
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.fog-layer {
  display: none;
}

.fog-layer::after {
  content: none;
}

@keyframes fogDrift {
  from {
    transform: translateX(-18%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes fogPulse {
  0%, 100% {
    opacity: .45;
    transform: translateY(0);
  }

  50% {
    opacity: .82;
    transform: translateY(18px);
  }
}

.static-layer {
  display: none;
}

.scanline-layer {
  display: none;
}

.vignette {
  z-index: 11;
  box-shadow: inset 0 0 180px rgba(0,0,0,.8);
}

.hide-static .static-layer,
.hide-scanlines .scanline-layer {
  display: none;
}

.pause-motion *,
.pause-motion *::before,
.pause-motion *::after {
  animation-play-state: paused !important;
  transition: none !important;
}

@keyframes staticShift {
  50% { transform: translate(2px, -2px); }
}

a {
  color: #111;
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  color: #6d0000;
  text-decoration: underline;
}

button,
textarea,
input {
  font: inherit;
}

.window-shell {
  width: min(1060px, calc(100vw - 24px));
  position: relative;
  z-index: 1;
}

/* Landing Page */
.landing-body {
  align-items: center;
  min-height: 100vh;
}

.landing-screen {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 28px));
}

.landing-window {
  background: #d2d2d2;
  box-shadow:
    inset -1px -1px #444,
    inset 1px 1px #eee,
    inset -3px -3px #fff,
    inset 3px 3px #777,
    0 22px 70px rgba(0, 0, 0, .85);
  padding: 6px;
}

.landing-content {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 46px 28px;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, .56), rgba(0, 0, 0, .78)),
    url("header-bg.png");
  background-size: cover;
  background-position: center;
  border: 1px solid #111;
  filter: grayscale(1);
}

.landing-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.1) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

.landing-content::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(transparent 0 72%, rgba(255, 255, 255, .1) 73%, transparent 74%),
    radial-gradient(ellipse at center, transparent 0 52%, rgba(0, 0, 0, .62) 100%);
  opacity: .55;
  pointer-events: none;
  animation: exposureBreathe 3.7s steps(3, end) infinite;
}

.landing-title {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-family: "FoundFootage3270", "MS UI Gothic", monospace;
  font-size: clamp(44px, 9vw, 86px);
  letter-spacing: 0;
  text-shadow:
    5px 5px 0 #000,
    -1px -1px 0 #000,
    -9px 0 10px rgba(255, 255, 255, .16),
    7px 0 8px rgba(0, 0, 0, .7);
  filter: contrast(1.25) grayscale(1);
  animation: foundFootageTitle 2.6s steps(2, end) infinite;
}

.distorted-title::before,
.distorted-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: blur(1px);
  opacity: .36;
}

.distorted-title::before {
  color: #f1f1f1;
  transform: translate(-13px, 4px) scaleX(1.04);
  mix-blend-mode: overlay;
  clip-path: inset(0 0 44% 0);
  animation: footageDragLeft 1.8s steps(2, end) infinite;
}

.distorted-title::after {
  color: #1d1d1d;
  transform: translate(15px, -2px) scaleX(.96);
  mix-blend-mode: multiply;
  clip-path: inset(42% 0 0 0);
  animation: footageDragRight 2.2s steps(2, end) infinite;
}

.found-footage-stamp {
  position: relative;
  z-index: 2;
  justify-self: start;
  width: min(430px, 100%);
  margin-bottom: -8px;
  color: #e5e5e5;
  text-align: left;
  font-family: "FoundFootage3270", "MS UI Gothic", monospace;
  font-size: 12px;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #000;
  opacity: .82;
  animation: recFlicker 1.1s steps(2, end) infinite;
}

.found-footage-stamp::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  background: #8b0000;
  box-shadow: 0 0 8px rgba(120, 0, 0, .9);
}

@keyframes foundFootageTitle {
  0%, 100% {
    transform: translate(0, 0) skewX(0deg);
    filter: contrast(1.25) grayscale(1) blur(0);
  }

  18% {
    transform: translate(-1px, -4px) skewX(-1deg);
    filter: contrast(1.4) grayscale(1) blur(.35px);
  }

  20% {
    transform: translate(3px, -3px) skewX(2deg);
    filter: contrast(1.7) grayscale(1) blur(1px);
  }

  23%, 72% {
    transform: translate(-1px, -5px) skewX(-.5deg);
    filter: contrast(1.25) grayscale(1) blur(0);
  }
}

@keyframes footageDragLeft {
  0%, 100% {
    transform: translate(-10px, 3px) scaleX(1.03);
    opacity: .24;
  }

  35% {
    transform: translate(-23px, 4px) scaleX(1.08);
    opacity: .5;
  }

  36% {
    transform: translate(-4px, 2px) scaleX(1.01);
    opacity: .15;
  }
}

@keyframes footageDragRight {
  0%, 100% {
    transform: translate(12px, -2px) scaleX(.98);
    opacity: .2;
  }

  48% {
    transform: translate(28px, -3px) scaleX(.92);
    opacity: .42;
  }

  49% {
    transform: translate(6px, 0) scaleX(1.02);
    opacity: .12;
  }
}

@keyframes exposureBreathe {
  0%, 100% {
    opacity: .45;
  }

  50% {
    opacity: .72;
  }
}

@keyframes recFlicker {
  0%, 100% {
    opacity: .82;
  }

  50% {
    opacity: .48;
  }
}

.landing-subtitle {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #e8e8e8;
  text-shadow: 2px 2px 0 #000;
}

.landing-polaroid {
  position: absolute;
  right: -6px;
  top: 28px;
  z-index: 1;
  width: min(230px, 34vw);
  opacity: .84;
  filter: drop-shadow(8px 10px 6px rgba(0, 0, 0, .85));
  animation: floaterDrift 4.5s ease-in-out infinite;
  pointer-events: none;
}

.landing-terminal {
  position: relative;
  z-index: 2;
  width: min(430px, 100%);
  padding: 12px;
  color: #e8e8e8;
  text-align: left;
  font-family: "FoundFootage3270", "MS UI Gothic", monospace;
  background: rgba(0, 0, 0, .72);
  border: 1px solid #9b9b9b;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .08), 4px 4px 0 rgba(0, 0, 0, .55);
}

.landing-terminal p {
  margin: 0 0 5px;
}

.landing-terminal p:last-child {
  margin-bottom: 0;
}

.enter-button {
  position: relative;
  z-index: 2;
  min-width: 150px;
  padding: 8px 22px;
  color: #111;
  background: silver;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px grey, inset 2px 2px #dfdfdf;
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
}

.enter-button:hover {
  color: #111;
  text-decoration: none;
  filter: brightness(1.08);
}

/* Cursor Trail: corrupted dust on the landing page. */
.cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  overflow: hidden;
}

.cursor-trail span {
  position: fixed;
  display: block;
  opacity: .72;
  box-shadow: 0 0 6px rgba(255, 255, 255, .28);
  image-rendering: pixelated;
  animation: cursorDustFade .85s steps(5, end) forwards;
}

@keyframes cursorDustFade {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: .72;
  }

  100% {
    transform: translate(8px, -14px) scale(.15);
    opacity: 0;
  }
}

/* Shared Window Layout */
.title-bar,
.mini-title {
  min-height: 25px;
  color: #fff;
  font-size: 12px;
  background: linear-gradient(#9b0202, #670000);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  box-shadow:
    inset 1px 1px #e4e4e4,
    inset -1px -1px #222,
    inset 2px 2px #a7a7a7,
    inset -2px -2px #777;
}

.window-controls {
  display: flex;
  gap: 2px;
}

.window-controls span {
  width: 18px;
  height: 16px;
  background: #c0c0c0;
  box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #777;
}

.site-window {
  position: relative;
  background: #d2d2d2;
  box-shadow:
    inset -1px -1px #444,
    inset 1px 1px #eee,
    inset -3px -3px #fff,
    inset 3px 3px #777,
    0 18px 50px rgba(0,0,0,.7);
  padding: 6px;
}

/* Homepage Header */
.hero {
  position: relative;
  overflow: visible;
  min-height: 285px;
  display: flex;
  align-items: center;
  padding: 28px 40px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .35) 48%, rgba(0, 0, 0, .18)),
    url("header-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid #111;
  filter: grayscale(1);
}

.hero h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 8vw, 76px);
  letter-spacing: 0;
  text-shadow: 3px 3px 0 #000, -1px -1px 0 #000;
  animation: titleFloat 3.8s ease-in-out infinite;
}

.hero h1 > span {
  font-size: .82em;
}

.terminal-title > span {
  display: inline-block;
  animation: terminalPulse 1.9s steps(2, end) infinite;
  transform-origin: 50% 70%;
}

.terminal-title > span:nth-child(2n) {
  animation-delay: -.25s;
}

.terminal-title > span:nth-child(3n) {
  animation-delay: -.55s;
}

.terminal-title > span:nth-child(5n) {
  animation-delay: -.85s;
}

.terminal-title .url-part {
  font-size: .82em;
}

@keyframes terminalPulse {
  0%, 100% {
    transform: translateY(0) skewX(0deg);
    text-shadow: 3px 3px 0 #000, -1px -1px 0 #000;
  }

  25% {
    transform: translateY(-1px) skewX(-1.2deg);
    text-shadow: 4px 3px 0 #000, -1px -1px 0 #2b0000;
  }

  50% {
    transform: translateY(1px) skewX(1deg);
    text-shadow: 2px 3px 0 #000, 1px 0 0 rgba(120, 0, 0, .65);
  }

  75% {
    transform: translateY(0) skewX(-.6deg);
    text-shadow: 3px 4px 0 #000, -1px 0 0 rgba(255, 255, 255, .22);
  }
}

.title-floater {
  position: absolute;
  top: 38px;
  right: -8px;
  z-index: 4;
  width: min(285px, 31vw);
  filter: grayscale(1) drop-shadow(8px 10px 5px rgba(0, 0, 0, .75));
  animation: floaterDrift 4.5s ease-in-out infinite;
  pointer-events: none;
}

.side-page-floater {
  position: fixed;
  left: max(10px, calc((100vw - 1060px) / 2 - 96px));
  top: 42%;
  z-index: 20;
  width: 150px;
  image-rendering: pixelated;
  filter: grayscale(.18) contrast(1.08) drop-shadow(7px 9px 4px rgba(0, 0, 0, .62));
  pointer-events: none;
  transform: rotate(4deg);
  animation: sideFloaterDrift 4.2s ease-in-out infinite;
}

@keyframes sideFloaterDrift {
  0%, 100% {
    transform: translateY(0) rotate(4deg);
  }

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

@keyframes floaterDrift {
  0%, 100% {
    transform: translateY(0) rotate(3deg);
  }

  50% {
    transform: translateY(-12px) rotate(-1deg);
  }
}

@keyframes titleFloat {
  0%, 100% {
    transform: translateY(0);
  }

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

.music-strip {
  height: 25px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #eee;
  background: #3f3f3f;
  border-bottom: 1px solid #111;
}

.music-strip button {
  width: 28px;
  height: 25px;
  min-width: 28px;
  min-height: 25px;
  padding: 0;
  color: #fff;
  background: #555;
  border-right: 1px solid #111;
}

.back-link {
  display: grid;
  place-items: center;
  align-self: stretch;
  padding: 0 10px;
  color: #fff;
  background: #555;
  border-right: 1px solid #111;
  font-weight: normal;
  text-decoration: none;
}

.back-link:hover {
  color: #fff;
  background: #6d0000;
  text-decoration: none;
}

.marquee-wrap {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

#marqueeText {
  margin: 0;
  display: inline-block;
  min-width: 100%;
  animation: marquee 13s linear infinite;
}

#marqueeText.no-marquee {
  display: block;
  text-align: center;
  animation: none;
}

@keyframes marquee {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* Navigation And Sidebar Widgets */
.main-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 250px;
  grid-template-rows: minmax(560px, auto);
  grid-template-areas:
    "nav welcome status";
  border: 1px solid #999;
}

.sidebar {
  grid-area: nav;
  background: #bababa;
  border-right: 1px solid #999;
}

.right-sidebar {
  grid-area: status;
  background: #bababa;
  border-left: 1px solid #999;
}

.nav-box h2 {
  margin: 24px 10px 18px;
  text-align: center;
  font-size: 18px;
}

.nav-box a {
  display: block;
  padding: 7px 10px;
  border-top: 1px solid #999;
  background: linear-gradient(#dedede, #aeaeae);
  font-weight: normal;
}

.nav-box a:last-child {
  border-bottom: 1px solid #999;
}

.nav-box a:hover {
  color: #fff;
  background: linear-gradient(#9b0202, #5a0000);
  text-decoration: none;
}

.mini-window {
  margin: 16px 10px;
  border: 1px solid #777;
  box-shadow: inset -1px -1px #444, inset 1px 1px #fff;
  background: linear-gradient(#e7e7e7, #c7c7c7);
}

.mini-title {
  min-height: 22px;
  padding: 3px 5px;
}

.mini-body {
  padding: 12px;
}

.mini-body label {
  display: block;
  margin: 6px 0;
}

.toybox {
  display: grid;
  grid-template-columns: repeat(4, 24px);
  justify-content: center;
  gap: 9px;
}

.toybox span {
  width: 24px;
  height: 24px;
  display: block;
  background: var(--c);
  box-shadow:
    inset -2px -2px rgba(0, 0, 0, .45),
    inset 2px 2px rgba(255, 255, 255, .5),
    2px 2px 0 #777;
  image-rendering: pixelated;
}

.toybox span:nth-child(3n) {
  transform: rotate(4deg);
}

.toybox span:nth-child(4n) {
  transform: rotate(-5deg);
}

.status-terminal {
  color: #e8e8e8;
  background: #080808;
  border: 2px inset #ddd;
  font-family: "FoundFootage3270", "MS UI Gothic", monospace;
  line-height: 1.35;
  text-align: left;
}

.status-terminal p {
  margin: 0 0 8px;
}

.status-terminal p:last-child {
  margin-bottom: 0;
}

.inventory-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.45;
}

.inventory-list li {
  margin-bottom: 5px;
}

.inventory-list button {
  width: 100%;
  padding: 2px 4px;
  color: #111;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
}

.inventory-list button:hover,
.inventory-list button:focus-visible {
  color: #fff;
  background: #5a0000;
  border-color: #111;
  outline: none;
}

.inventory-popup[hidden] {
  display: none;
}

.inventory-popup {
  position: fixed;
  top: 34%;
  left: 50%;
  z-index: 25;
  width: min(330px, calc(100vw - 28px));
  margin: 0;
  transform: translateX(-50%);
  box-shadow:
    inset -1px -1px #444,
    inset 1px 1px #fff,
    9px 11px 0 rgba(0, 0, 0, .45);
}

.inventory-popup .mini-title {
  cursor: move;
  user-select: none;
}

.inventory-popup-body {
  color: #e8e8e8;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.14) 0 1px, transparent 1px 4px),
    #090909;
  border: 2px inset #ddd;
  font-family: "FoundFootage3270", "MS UI Gothic", monospace;
}

.inventory-popup-body p {
  min-height: 74px;
  margin: 0 0 12px;
  line-height: 1.35;
}

/* Fake Y2K horror ad under Inventory. Edit the text in home.html. */
.horror-ad {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 120px;
  padding: 10px;
  overflow: hidden;
  color: #f4f4f4;
  text-align: center;
  text-decoration: none;
  background:
    linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .75)),
    repeating-linear-gradient(135deg, #151515 0 7px, #330000 7px 14px);
  border: 2px ridge #8a8a8a;
  box-shadow:
    inset 0 0 0 1px #000,
    inset 0 0 22px rgba(255, 255, 255, .14);
  text-shadow: 1px 1px 0 #000;
  animation: adJitter 2.8s steps(2, end) infinite;
}

.horror-ad::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.16) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
  opacity: .32;
  pointer-events: none;
}

.horror-ad::after {
  content: "CLICK?";
  position: absolute;
  right: 8px;
  bottom: 7px;
  padding: 2px 5px;
  color: #111;
  background: #d7d7d7;
  border: 1px solid #fff;
  box-shadow: inset -1px -1px #777, inset 1px 1px #fff;
  font-size: 11px;
  font-style: normal;
  animation: adBlink .75s steps(2, end) infinite;
}

.horror-ad strong {
  z-index: 1;
  color: #fff;
  font-size: 19px;
  line-height: .95;
  text-transform: uppercase;
}

.horror-ad span,
.horror-ad em {
  z-index: 1;
}

.ad-alert {
  color: #ffdddd;
  font-size: 11px;
  font-weight: bold;
  animation: adBlink .9s steps(2, end) infinite;
}

.horror-ad em {
  color: #ffb7b7;
  font-size: 11px;
  font-style: normal;
  font-weight: bold;
}

.horror-ad:hover {
  color: #fff;
  filter: contrast(1.25);
  transform: translate(-1px, 1px);
}

@keyframes adBlink {
  50% {
    opacity: .25;
  }
}

@keyframes adJitter {
  0%, 82%, 100% {
    transform: translate(0, 0);
  }

  84% {
    transform: translate(1px, -1px);
  }

  86% {
    transform: translate(-1px, 1px);
  }
}

.centered {
  text-align: center;
}

/* 88x31 Button */
.site-button {
  position: relative;
  width: 88px;
  height: 31px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #f4f4f4;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0;
  border: 2px ridge #888;
  background:
    linear-gradient(rgba(0, 0, 0, .28), rgba(0, 0, 0, .48)),
    url("button-bg.png");
  background-size: cover;
  background-position: center;
  box-shadow:
    inset 0 0 0 1px #000,
    inset 0 0 8px rgba(255, 255, 255, .18);
  text-shadow: 1px 1px 0 #000, -1px 0 0 #7a0000;
  image-rendering: pixelated;
  animation: buttonPulse 1.6s steps(2, end) infinite;
}

.site-button-gif {
  width: 88px;
  height: 31px;
  display: block;
  margin: 0 auto 8px;
  border: 2px ridge #888;
  image-rendering: pixelated;
}

.site-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, .38) 45%, transparent 56% 100%);
  transform: translateX(-100%);
  animation: buttonSweep 2.4s linear infinite;
}

.site-button::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 5px;
  width: 5px;
  height: 5px;
  background: #8c0101;
  box-shadow: 0 0 6px #8c0101;
  animation: buttonBlink .9s steps(2, end) infinite;
}

.site-button span {
  position: relative;
  z-index: 1;
  animation: buttonTextJitter 1.2s steps(2, end) infinite;
}

@keyframes buttonSweep {
  to {
    transform: translateX(100%);
  }
}

@keyframes buttonPulse {
  50% {
    filter: contrast(1.25) brightness(.9);
  }
}

@keyframes buttonBlink {
  50% {
    opacity: .25;
  }
}

@keyframes buttonTextJitter {
  0%, 100% {
    transform: translate(0, 0);
  }

  45% {
    transform: translate(1px, 0);
  }

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

textarea {
  width: 100%;
  height: 48px;
  resize: vertical;
  background: #f5f5f5;
  border: 2px inset #ddd;
}

/* Panels And Homepage Content */
.panel {
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.14) 0 1px, transparent 1px 4px),
    linear-gradient(#d9d9d9, #afafaf);
  border: 1px solid #999;
  padding: 22px;
  overflow: hidden;
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.welcome {
  grid-area: welcome;
  display: grid;
  grid-template-columns: minmax(230px, 44%) minmax(0, 56%);
  align-items: center;
  text-align: center;
  min-height: 560px;
  gap: 10px;
}

.welcome article {
  max-width: 520px;
  margin: 0 auto;
}

.welcome p {
  line-height: 1.25;
}

.character-art {
  position: relative;
  width: 230px;
  height: 280px;
  margin: auto;
  filter: grayscale(1) drop-shadow(4px 4px 2px #888);
  animation: bob 3s ease-in-out infinite;
}

@keyframes bob {
  50% { transform: translateY(-8px) rotate(2deg); }
}

.hair {
  position: absolute;
  left: 48px;
  top: 4px;
  width: 136px;
  height: 150px;
  border-radius: 55% 55% 35% 35%;
  background: #363636;
}

.head {
  position: absolute;
  left: 58px;
  top: 38px;
  width: 116px;
  height: 118px;
  border: 4px solid #111;
  border-radius: 48%;
  background: #dadada;
}

.eye {
  position: absolute;
  top: 35px;
  width: 28px;
  height: 28px;
  border: 4px solid #111;
  border-radius: 50%;
  background: #eee;
}

.eye.left { left: 20px; }
.eye.right { right: 20px; }

.mouth {
  position: absolute;
  left: 33px;
  bottom: 26px;
  width: 52px;
  height: 22px;
  border-bottom: 5px solid #111;
  border-radius: 0 0 60px 60px;
}

.body-shape {
  position: absolute;
  left: 35px;
  bottom: 0;
  width: 160px;
  height: 145px;
  border-radius: 50px 50px 20px 20px;
  background: linear-gradient(135deg, #efefef, #333 45%, #111);
  border: 4px solid #111;
}

.welcome-floater {
  width: min(390px, 100%);
  max-height: 510px;
  justify-self: end;
  align-self: center;
  object-fit: contain;
  filter: grayscale(.55) contrast(1.08) drop-shadow(7px 8px 4px rgba(0, 0, 0, .45));
  -webkit-mask-image: radial-gradient(ellipse at 56% 48%, #000 0 56%, rgba(0, 0, 0, .82) 66%, transparent 86%);
  mask-image: radial-gradient(ellipse at 56% 48%, #000 0 56%, rgba(0, 0, 0, .82) 66%, transparent 86%);
  animation: bob 3.4s ease-in-out infinite;
}

hr {
  border: 0;
  border-top: 1px solid #999;
  margin: 10px 0 14px;
}

.lower-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "stamps"
    "chat";
  gap: 12px;
}

.about-section {
  grid-area: about;
  text-align: center;
  min-height: 230px;
}

.profile-window {
  grid-area: profile;
  align-self: start;
  margin: 0 0 0 14px;
  background: #d2d2d2;
  border: 1px solid #777;
  box-shadow: inset -1px -1px #444, inset 1px 1px #fff;
  z-index: 3;
}

#profileHandle {
  cursor: move;
  user-select: none;
}

.profile-body {
  display: flex;
  gap: 14px;
  padding: 16px;
}

.avatar {
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: #050505;
  border-radius: 50%;
  font: 28px Georgia, serif;
  transform: rotate(-8deg);
}

.profile-body h2,
.profile-body p {
  margin: 0 0 4px;
}

.profile-window h3 {
  margin: 12px 14px 8px;
}

.status-box {
  margin: 0 14px 16px;
  padding: 12px;
  background: #bcbcbc;
  border: 2px inset #ddd;
}

.stamp-marquee {
  grid-area: stamps;
  padding: 8px;
  overflow: hidden;
  border-top: 1px solid #999;
  border-bottom: 1px solid #777;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.14) 0 1px, transparent 1px 4px),
    linear-gradient(#cfcfcf, #a9a9a9);
}

.stamp-track {
  display: flex;
  width: max-content;
  gap: 8px;
  animation: stampLoop 24s linear infinite;
}

.stamp-marquee:hover .stamp-track {
  animation-play-state: paused;
}

.stamp {
  flex: 0 0 auto;
  min-width: 104px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0 9px;
  color: #f3f3f3;
  background:
    linear-gradient(rgba(0, 0, 0, .18), rgba(0, 0, 0, .62)),
    #161616;
  border: 2px ridge #8d8d8d;
  box-shadow:
    inset 0 0 0 1px #000,
    inset 0 0 10px rgba(255,255,255,.12),
    2px 2px 0 rgba(0, 0, 0, .28);
  font-family: "FoundFootage3270", "MS UI Gothic", monospace;
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #000;
  white-space: nowrap;
}

.stamp:nth-child(3n) {
  color: #111;
  background: #d7d7d7;
}

.stamp:nth-child(4n) {
  background: #5a0000;
}

@keyframes stampLoop {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 4px));
  }
}

.guestbook {
  grid-area: chat;
}

.guestbook-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.guestbook-heading h2 {
  margin: 0;
}

.guestbook-heading span {
  color: #444;
  font-size: 12px;
}

.guestbook-messages {
  height: 190px;
  overflow-y: auto;
  padding: 10px;
  margin-bottom: 10px;
  background: #f4f4f4;
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
}

.guestbook-entry {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 9px;
  margin-bottom: 9px;
  background: #d2d2d2;
  border: 1px solid #999;
}

.guestbook-entry:last-child {
  margin-bottom: 0;
}

.guestbook-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #050505;
  border-radius: 50%;
  font-weight: bold;
  box-shadow: inset -2px -2px rgba(255,255,255,.12), 2px 2px 0 #777;
}

.guestbook-entry header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #aaa;
  padding-bottom: 3px;
  margin-bottom: 5px;
}

.guestbook-entry time {
  color: #555;
  white-space: nowrap;
}

.guestbook-entry p {
  margin: 0;
}

.guestbook-form {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.guestbook-form textarea {
  min-height: 56px;
  resize: vertical;
}

.guestbook-form button {
  grid-column: 2;
  justify-self: start;
  margin-top: 8px;
}

/* Photos, Shrine, And Characters Pages */
.photos-hero {
  min-height: 150px;
}

.photo-page-grid,
.content-page-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid #999;
  min-height: 640px;
}

.photo-page-grid .sidebar,
.content-page-grid .sidebar,
.photo-gallery-window {
  grid-area: auto;
}

.photo-page-grid .sidebar,
.content-page-grid .sidebar {
  border-right: 1px solid #999;
}

.photo-gallery-window {
  min-height: 100%;
  overflow: auto;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 20px 16px;
  padding: 8px 4px 18px;
}

.photo-grid figure {
  position: relative;
  margin: 0;
  padding: 9px 9px 28px;
  background: #d7d7d7;
  border: 1px solid #8a8a8a;
  box-shadow:
    inset -1px -1px #777,
    inset 1px 1px #fff,
    4px 5px 0 rgba(0, 0, 0, .28);
  transform: rotate(var(--tilt, -2deg));
  transform-origin: center;
  cursor: zoom-in;
  transition: filter .16s ease, transform .16s ease, z-index .16s ease;
}

.photo-grid figure:nth-child(2n) {
  --tilt: 2.5deg;
}

.photo-grid figure:nth-child(3n) {
  --tilt: -3.2deg;
}

.photo-grid figure:nth-child(4n) {
  --tilt: 1deg;
}

.photo-grid figure:hover {
  z-index: 4;
  transform: rotate(0deg) translateY(-4px) scale(1.03);
  filter: contrast(1.08);
}

.photo-grid figure:focus-visible {
  outline: 2px solid #5a0000;
  outline-offset: 3px;
}

.photo-grid figure::after {
  content: attr(data-caption);
  position: absolute;
  left: 9px;
  right: 9px;
  top: 9px;
  bottom: auto;
  z-index: 2;
  min-height: 58px;
  padding: 7px 8px;
  color: #e8e8e8;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.12) 0 1px, transparent 1px 4px),
    rgba(0, 0, 0, .86);
  border: 1px solid #dfdfdf;
  box-shadow: 2px 2px 0 #111;
  font-family: "FoundFootage3270", "MS UI Gothic", monospace;
  font-size: 11px;
  line-height: 1.25;
  white-space: pre-wrap;
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}

.photo-grid figure:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  border: 2px inset #ddd;
}

.photo-grid img:hover {
  filter: grayscale(.25);
}

.photo-grid figcaption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  margin: 0;
  text-align: center;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: bold;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
}

.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, .38), rgba(0, 0, 0, .88)),
    rgba(0, 0, 0, .7);
}

.photo-lightbox-window {
  position: relative;
  z-index: 1;
  width: min(860px, 94vw);
  max-height: 92vh;
  padding: 6px;
  background: #d2d2d2;
  box-shadow:
    inset -1px -1px #444,
    inset 1px 1px #eee,
    inset -3px -3px #fff,
    inset 3px 3px #777,
    0 18px 50px rgba(0, 0, 0, .85);
}

.photo-lightbox-body {
  padding: 12px;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.13) 0 1px, transparent 1px 4px),
    #bfbfbf;
  border: 2px inset #ddd;
}

.photo-lightbox-body img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #050505;
  border: 2px inset #ddd;
  filter: grayscale(.35) contrast(1.05);
}

.photo-lightbox-body p {
  margin: 9px 0 0;
  padding: 7px 9px;
  color: #e8e8e8;
  background: #050505;
  border: 1px solid #777;
  font-family: "FoundFootage3270", "MS UI Gothic", monospace;
  font-size: 12px;
}

.shrine-hero,
.characters-hero {
  min-height: 170px;
}

.shrine-page,
.characters-page {
  min-height: 100%;
  overflow: auto;
}

.page-intro {
  max-width: 680px;
  margin: 0 0 18px;
}

.shrine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 14px;
}

.shrine-card,
.character-card {
  background: #c0c0c0;
  border: 1px solid #777;
  box-shadow: inset -1px -1px #444, inset 1px 1px #fff;
}

.shrine-card {
  padding: 10px;
  text-align: center;
  color: #111;
  font: inherit;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}

.shrine-card:hover,
.shrine-card:focus-visible {
  filter: brightness(1.08) contrast(1.08);
  transform: translateY(-3px);
  outline: 1px dotted #111;
  outline-offset: -5px;
}

.shrine-card:active {
  transform: translateY(0);
}

.shrine-card img,
.shrine-object {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  object-fit: cover;
  filter: grayscale(1);
  border: 2px inset #ddd;
  background: #0a0a0a;
  color: #e8e8e8;
  font-family: "FoundFootage3270", "MS UI Gothic", monospace;
  font-size: 32px;
}

.shrine-card h3,
.character-card h3 {
  margin: 10px 0 6px;
}

.shrine-card p,
.character-card p {
  margin: 0 0 6px;
}

.shrine-popup {
  position: absolute;
  z-index: 8;
  width: min(340px, calc(100% - 28px));
  background: #c0c0c0;
  border: 1px solid #777;
  box-shadow:
    inset -1px -1px #444,
    inset 1px 1px #fff,
    8px 10px 0 rgba(0, 0, 0, .42);
}

.shrine-popup .mini-title {
  cursor: move;
  user-select: none;
}

.shrine-popup[hidden] {
  display: none;
}

.shrine-popup-body {
  padding: 14px;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.16) 0 1px, transparent 1px 4px),
    #d7d7d7;
}

.shrine-popup-body p {
  margin: 0;
  line-height: 1.35;
}

.character-grid {
  display: grid;
  gap: 14px;
}

.character-card {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
}

.character-portrait {
  min-height: 145px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0a0a0a;
  border: 2px inset #ddd;
  color: #e8e8e8;
  font-family: "FoundFootage3270", "MS UI Gothic", monospace;
  font-size: 34px;
}

.character-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.character-file {
  align-self: center;
}

footer {
  color: #e4e4e4;
  text-align: center;
  background: #3f3f3f;
  border-top: 1px solid #111;
  padding: 6px;
}

footer p {
  margin: 0;
}

::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: #d0d0d0;
  box-shadow: inset 1px 1px #777;
}

::-webkit-scrollbar-thumb {
  background: #aaa;
  border: 2px outset #ddd;
}

/* Responsive Layout */
@media (max-width: 900px) {
  body {
    padding: 10px;
  }

  .main-grid,
  .lower-grid,
  .welcome,
  .photo-page-grid,
  .content-page-grid {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .sidebar,
  .right-sidebar,
  .welcome,
  .about-section,
  .stamp-marquee,
  .guestbook,
  .profile-window {
    grid-area: auto;
  }

  .main-grid {
    grid-template-rows: auto;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid #999;
  }

  .right-sidebar {
    border-left: 0;
    border-top: 1px solid #999;
  }

  .profile-window {
    margin: 0;
  }

  .hero {
    min-height: 130px;
    padding: 24px 18px;
  }

  .title-floater {
    right: -10px;
    top: 52px;
    width: 150px;
    opacity: .72;
  }

  .side-page-floater {
    left: 2px;
    top: 48%;
    width: 92px;
    opacity: .82;
  }

  .landing-content {
    min-height: 500px;
    padding: 42px 18px;
  }

  .landing-polaroid {
    top: 18px;
    right: -10px;
    width: 138px;
    opacity: .52;
  }

  .character-art {
    width: 190px;
    height: 230px;
  }

  .welcome-floater {
    width: min(260px, 84%);
    max-height: 360px;
    align-self: center;
  }

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

  .character-card {
    grid-template-columns: 1fr;
  }
}
