:root {
  --navy: #000080;
  --blue: #0000ee;
  --cyan: #00ffff;
  --yellow: #ffff00;
  --magenta: #ff00ff;
  --silver: #c0c0c0;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: #111;
  font-family: "Times New Roman", Times, serif;
  background-color: #02024c;
  background-image:
    radial-gradient(circle at 12px 14px, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 42px 35px, #00ffff 0 1px, transparent 2px),
    radial-gradient(circle at 70px 8px, #ff00ff 0 1px, transparent 2px),
    linear-gradient(135deg, transparent 75%, rgba(0, 255, 255, .09) 76%);
  background-size: 82px 53px, 82px 53px, 82px 53px, 24px 24px;
}

#shader-canvas {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  image-rendering: pixelated;
  background: #02024c;
}

.no-webgl #shader-canvas { display: none; }

.cursor-spark {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  color: var(--cyan);
  font: bold 18px "Courier New", monospace;
  text-shadow: 1px 1px #000, 0 0 4px currentColor;
  animation: cursor-fall .65s steps(6, end) forwards;
}

.custom-cursor {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  opacity: 0;
  pointer-events: none;
  image-rendering: pixelated;
  transform: translate3d(-100px, -100px, 0);
  transform-origin: 2px 2px;
  transition: opacity .05s steps(1, end);
  will-change: transform;
}

.custom-cursor.is-visible { opacity: 1; }
.custom-cursor.is-clicking { filter: brightness(1.8); }
.nyan-mode .custom-cursor { display: none; }

@media (pointer: fine) {
  html.custom-cursor-ready,
  html.custom-cursor-ready body,
  html.custom-cursor-ready body *,
  html.custom-cursor-ready body *::before,
  html.custom-cursor-ready body *::after {
    cursor: url("assets/cursor-hidden.png") 0 0, none !important;
  }
}

html.nyan-mode,
html.nyan-mode body,
html.nyan-mode body *,
html.nyan-mode body *::before,
html.nyan-mode body *::after {
  cursor: url("assets/cursor-hidden.png") 0 0, none !important;
}

.nyan-cursor {
  position: fixed;
  z-index: 9998;
  top: 0;
  left: 0;
  display: none;
  width: 120px;
  height: 80px;
  object-fit: fill;
  image-rendering: pixelated;
  pointer-events: none;
  border: 2px outset #fff;
  background: #000;
  box-shadow: 0 0 6px #fff, 0 0 12px #0ff, 0 0 20px #f0f;
  transform: translate3d(-200px, -200px, 0);
  will-change: transform;
}

.nyan-mode .nyan-cursor { display: block; }

.cat-swarm {
  position: fixed;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .2s steps(2, end);
}

.cat-swarm.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.floating-cat {
  position: absolute;
  top: var(--top);
  left: calc(-1 * var(--size) - 35px);
  width: var(--size);
  height: var(--size);
  margin: 0;
  animation: cat-cruise var(--duration) linear var(--delay) infinite alternate;
  will-change: transform;
}

.floating-cat.reverse { animation-direction: alternate-reverse; }

.floating-cat img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, .65));
  animation: cat-bob 1.7s ease-in-out infinite alternate;
  pointer-events: auto;
}

.floating-cat:nth-child(2n) img { animation-duration: 2.15s; }
.floating-cat:nth-child(3n) img { animation-duration: 1.35s; }

.floating-cat::after {
  content: attr(data-cry);
  position: absolute;
  top: -7px;
  right: -24px;
  padding: 2px 4px;
  color: #000;
  background: var(--yellow);
  border: 2px outset #fff;
  font: bold 10px "Comic Sans MS", "Courier New", sans-serif;
  transform: rotate(7deg);
  box-shadow: 2px 2px #000;
}

.cat-toggle {
  position: fixed;
  z-index: 72;
  bottom: 14px;
  left: 14px;
  padding: 6px 9px;
  color: #000;
  background: var(--yellow);
  border: 3px outset white;
  font: bold 11px "MS Sans Serif", Arial, sans-serif;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .6);
}

.cat-toggle:active { border-style: inset; }

.cat-score {
  position: fixed;
  z-index: 72;
  bottom: 51px;
  left: 14px;
  padding: 4px 7px;
  color: #ff2a2a;
  background: #000;
  border: 3px inset white;
  font: bold 11px "Courier New", monospace;
  letter-spacing: 1px;
  text-shadow: 0 0 3px #f00;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .6);
}

.cat-explosion {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: explosion-pop 1.7s steps(8, end) forwards;
}

.cat-explosion img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  filter: saturate(1.35) contrast(1.18) drop-shadow(0 0 9px #ff0);
}

.cat-piece {
  position: fixed;
  z-index: 89;
  pointer-events: none;
  background-repeat: no-repeat;
  filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, .55));
  will-change: transform, opacity;
  animation: cat-piece-blast 1.15s cubic-bezier(.15, .7, .3, 1) forwards;
}

.skip-link {
  position: fixed;
  top: 6px;
  left: 6px;
  z-index: 99;
  padding: 6px;
  background: white;
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.page-shell {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100% - 20px));
  margin: 18px auto;
  background: #fff;
  border: 5px ridge #e6e6e6;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, .65);
}

.construction-strip {
  overflow: hidden;
  padding: 5px;
  border-bottom: 3px outset white;
  color: black;
  text-align: center;
  font: bold 14px Arial, sans-serif;
  letter-spacing: 2px;
  background: repeating-linear-gradient(-45deg, #ffe800 0 10px, #050505 10px 20px);
  text-shadow: 1px 1px #ffe800, -1px -1px #ffe800, 1px -1px #ffe800, -1px 1px #ffe800;
}

.masthead { background: var(--navy); }

.logo-row {
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  align-items: center;
  padding: 18px 8px 14px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(255, 0, 255, .35), transparent 58%),
    var(--navy);
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font: bold 13px "Courier New", monospace;
  letter-spacing: 4px;
}

h1 {
  margin: 2px 0;
  color: var(--yellow);
  font: 900 clamp(35px, 7vw, 64px) Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 2px;
  line-height: .95;
  text-shadow: 4px 4px 0 #f00, 7px 7px 0 #000;
  transform: skew(-4deg);
}

h1 span { color: var(--cyan); }

.domain-name {
  display: inline-block;
  margin: 9px 0 1px;
  padding: 2px 8px;
  color: #000;
  background: var(--yellow);
  border: 2px outset white;
  font: bold 16px "Courier New", monospace;
  letter-spacing: -1px;
  transform: rotate(-1deg);
}

.tagline {
  margin: 8px 0 0;
  color: #fff;
  font-weight: bold;
  font-style: italic;
}

.sparkle {
  color: white;
  font-size: 58px;
  text-shadow: 0 0 4px #0ff, 0 0 12px #0ff;
  animation: twinkle .8s steps(2, end) infinite;
}

.nav-bar {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  background: var(--silver);
  border-top: 3px outset #fff;
  border-bottom: 3px outset #fff;
}

.nav-bar a,
.nav-bar button,
.gray-button,
.big-button,
.webring button {
  border: 3px outset #fff;
  border-radius: 0;
  padding: 5px 12px;
  color: #000;
  background: var(--silver);
  font: bold 13px "MS Sans Serif", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.nav-bar a:active,
.nav-bar button:active,
.gray-button:active,
.big-button:active,
.webring button:active { border-style: inset; }

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px dashed var(--magenta);
  outline-offset: 2px;
}

.hero {
  padding: 12px 18px 16px;
  text-align: center;
  background: #000;
}

.blink-line {
  margin: 0 0 10px;
  color: var(--cyan);
  font: bold 16px "Courier New", monospace;
}

.new-badge {
  display: inline-block;
  padding: 2px 5px;
  color: #000;
  background: var(--yellow);
  animation: blink .75s steps(2, end) infinite;
}

.hero-frame {
  position: relative;
  width: min(620px, 94%);
  margin: 0 auto 12px;
  padding: 6px;
  background: var(--silver);
  border: 5px ridge #fff;
}

.hero-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  image-rendering: pixelated;
  border: 2px inset white;
}

.hero-stamp {
  position: absolute;
  right: -25px;
  bottom: 28px;
  padding: 8px;
  color: #000;
  background: var(--yellow);
  border: 3px solid #f00;
  font: 900 18px Arial, sans-serif;
  transform: rotate(-11deg);
  box-shadow: 3px 3px #000;
}

marquee {
  padding: 4px 0;
  color: var(--yellow);
  border: 1px dashed var(--magenta);
  font: bold 14px "Courier New", monospace;
}

.nyan-trigger {
  position: relative;
  margin: 13px 0 3px;
  padding: 10px 24px;
  color: #000;
  background: var(--yellow);
  border: 4px outset #fff;
  font: 900 18px "Comic Sans MS", "Arial Black", sans-serif;
  letter-spacing: 2px;
  text-shadow: 1px 1px #fff;
  box-shadow: 0 0 5px #fff, 0 0 12px #0ff, 0 0 22px #f0f;
  animation: nyan-glow .65s steps(2, end) infinite alternate;
}

.nyan-trigger::before,
.nyan-trigger::after {
  content: "★";
  position: absolute;
  top: 8px;
  color: #f0f;
}

.nyan-trigger::before { left: -22px; }
.nyan-trigger::after { right: -22px; }
.nyan-trigger:active { border-style: inset; }
.nyan-mode .nyan-trigger { color: #fff; background: #f00000; }
.nyan-hint { margin: 2px 0 0; color: #0ff; font: bold 9px "Courier New", monospace; }

.intro {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px;
  padding: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='16' height='16' fill='%23e8e8e8'/%3E%3Cpath d='M0 16L16 0M-8 8L8-8M8 24L24 8' stroke='%23d6d6d6' stroke-width='1'/%3E%3C/svg%3E");
}

.box { border: 4px ridge #fff; }
.sidebar { padding: 10px; background: #fff; text-align: center; }

.box h2 {
  margin: 0;
  padding: 5px 8px;
  color: #fff;
  background: var(--navy);
  font: bold 18px Arial, sans-serif;
  letter-spacing: 1px;
  text-align: center;
}

.avatar {
  display: grid;
  width: 94px;
  height: 94px;
  margin: 12px auto;
  place-items: center;
  color: #000;
  background: #ffe800;
  border: 5px outset #fffb91;
  border-radius: 50%;
  font: bold 29px "Courier New", monospace;
}

.sidebar p { margin: 6px 0; }
.online { color: #008000; font-weight: bold; animation: blink 1s steps(2, end) infinite; }
.tiny { font-size: 11px; }

.welcome { padding-bottom: 12px; background: #ffffdb; }
.welcome > p { padding: 0 16px; font-size: 17px; line-height: 1.35; }
.welcome a, footer a { color: var(--blue); }

.update-box {
  margin: 14px;
  padding: 10px;
  color: white;
  background: #006400;
  border: 3px inset white;
  font-family: "Courier New", monospace;
}

.update-box strong { color: var(--yellow); }
.update-box ul { margin: 7px 0 0; padding-left: 22px; }

.links-section {
  margin: 0 12px 12px;
  padding-bottom: 14px;
  background: #fff;
}

.center { text-align: center; padding: 0 10px; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 8px 14px;
}

.site-button {
  display: grid;
  min-height: 72px;
  padding: 6px;
  place-content: center;
  color: white;
  border: 3px outset #ddd;
  text-align: center;
  text-decoration: none;
  font-family: Arial, sans-serif;
  text-shadow: 2px 2px black;
}

.site-button:hover { filter: brightness(1.25); transform: translateY(-2px); }
.site-button b { font-size: 18px; line-height: .9; }
.site-button span { margin-top: 4px; font-size: 10px; }
.nasa { background: radial-gradient(circle, #184fff, #000033); }
.museum { background: repeating-linear-gradient(45deg, #551a8b 0 5px, #9020d0 5px 10px); }
.weather { background: linear-gradient(#158fff 50%, #168616 50%); }
.library { background: #8b0000; }

.guestbook-preview {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 12px;
  padding: 0 14px 12px;
  background: #ffd7ff;
}

.guestbook-preview h2 { grid-column: 1 / -1; margin: 0 -14px; }
.guestbook-preview p { margin: 0; }
.big-button { padding: 10px 18px; color: #fff; background: #f00000; }
.latest-message { grid-column: 1 / -1; padding: 5px; border: 1px dashed #900090; font-style: italic; }

.awards {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: #000;
}

.award {
  display: grid;
  width: 130px;
  min-height: 72px;
  padding: 4px;
  place-content: center;
  color: var(--yellow);
  border: 3px double var(--yellow);
  text-align: center;
  font-family: Arial, sans-serif;
}

.award span { color: var(--cyan); font-size: 25px; line-height: .8; }
.award small { color: white; }
.award.flame { color: #ff6a00; border-color: #ff6a00; }

footer {
  padding: 14px;
  color: white;
  background: var(--navy);
  text-align: center;
  font-family: Arial, sans-serif;
}

footer p { margin: 6px; }

.counter {
  display: inline-block;
  padding: 4px 7px;
  color: #ff2222;
  background: #000;
  border: 3px inset white;
  font: 22px "Courier New", monospace;
  letter-spacing: 4px;
  text-shadow: 0 0 4px #f00;
}

.webring {
  display: flex;
  max-width: 570px;
  margin: 12px auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px;
  color: #000;
  background: var(--silver);
  border: 3px ridge white;
  font-size: 12px;
}

.legal { color: #bfbfff; font-size: 10px; }
.secret { color: #8f8fff; border: 0; background: transparent; text-decoration: underline; }

.shader-credit {
  color: var(--cyan);
  font: bold 10px "Courier New", monospace;
}

.led,
.midi-led {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #0f0;
  border: 1px solid #003c00;
  box-shadow: 0 0 5px #0f0;
  animation: blink .65s steps(2, end) infinite;
}

dialog {
  width: min(460px, calc(100% - 24px));
  padding: 3px;
  border: 3px outset white;
  border-radius: 0;
  background: var(--silver);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .55);
}

dialog::backdrop { background: rgba(0, 0, 70, .75); }
.dialog-title { display: flex; justify-content: space-between; align-items: center; padding: 4px 5px; color: white; background: var(--navy); font-family: Arial, sans-serif; }
.dialog-title button { width: 22px; height: 22px; padding: 0; border: 2px outset white; background: var(--silver); font-weight: bold; }
.dialog-body { padding: 14px; }
.dialog-body label { display: grid; grid-template-columns: 110px 1fr; gap: 8px; margin-bottom: 12px; font-weight: bold; }
.dialog-body input, .dialog-body textarea { width: 100%; border: 2px inset white; border-radius: 0; font: 16px "Courier New", monospace; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

.screensaver {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow: hidden;
  color: #fff;
  background: #000;
  font-family: "Courier New", monospace;
}

.screensaver[hidden] { display: none; }
.screensaver button { position: absolute; z-index: 2; top: 12px; right: 12px; padding: 7px; color: #0ff; border: 1px solid #0ff; background: #000; cursor: pointer; }
.screensaver p { position: absolute; bottom: 10px; width: 100%; color: #888; text-align: center; }
.flying-logo { position: absolute; padding: 14px; color: var(--yellow); border: 5px ridge #fff; background: var(--navy); font: 900 36px Impact, sans-serif; text-align: center; text-shadow: 3px 3px #f00; animation: fly 6s linear infinite alternate; }
.flying-logo span { color: var(--cyan); }

.midi-player {
  position: fixed;
  z-index: 70;
  right: 14px;
  bottom: 14px;
  width: 330px;
  color: #000;
  background: var(--silver);
  border: 3px outset #fff;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .65);
  font-family: "MS Sans Serif", Arial, sans-serif;
  user-select: none;
}

.midi-player.minimized { width: 250px; }
.midi-player.minimized .midi-body { display: none; }

.midi-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 4px;
  color: #fff;
  background: linear-gradient(90deg, #000080, #1084d0);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .5px;
  touch-action: none;
}

.midi-titlebar button {
  width: 20px;
  height: 18px;
  padding: 0;
  color: #000;
  background: var(--silver);
  border: 2px outset #fff;
  font-weight: bold;
  line-height: 12px;
}

.midi-body { padding: 7px; }

.midi-screen {
  padding: 6px 8px;
  color: #6cff00;
  background: #001700;
  border: 3px inset #fff;
  font: 10px "Courier New", monospace;
  text-shadow: 0 0 3px #22ff00;
}

.midi-screen strong {
  display: block;
  overflow: hidden;
  margin: 4px 0;
  color: #e5ff00;
  font-size: 16px;
  white-space: nowrap;
}

.time-row { display: flex; justify-content: space-between; color: #00ffaa; }

.equalizer {
  display: flex;
  height: 26px;
  align-items: end;
  gap: 3px;
  padding: 2px 0;
}

.equalizer i {
  width: 9%;
  height: 5px;
  background: repeating-linear-gradient(to top, #0f0 0 2px, transparent 2px 4px);
}

.midi-player.playing .equalizer i { animation: equalize .55s steps(4, end) infinite alternate; }
.midi-player.playing .equalizer i:nth-child(2n) { animation-duration: .34s; }
.midi-player.playing .equalizer i:nth-child(3n) { animation-duration: .72s; }

.midi-progress,
.volume-label input {
  width: 100%;
  height: 15px;
  margin: 6px 0;
  accent-color: var(--navy);
}

.transport { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.transport button {
  min-height: 29px;
  color: #000;
  background: var(--silver);
  border: 3px outset white;
  font-weight: bold;
}
.transport button:active { border-style: inset; }

.track-select-label,
.volume-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 10px;
  font-weight: bold;
}

.track-select-label select {
  min-width: 0;
  flex: 1;
  border: 2px inset white;
  border-radius: 0;
  background: white;
  font: 11px "MS Sans Serif", Arial, sans-serif;
}

.volume-label input { margin: 0; }
.midi-marquee { overflow: hidden; margin-top: 6px; padding: 3px; color: #fff; background: #000080; border: 1px inset white; font: 10px "Courier New", monospace; white-space: nowrap; }

@keyframes blink { 50% { visibility: hidden; } }
@keyframes twinkle { 50% { color: var(--magenta); transform: scale(.7); } }
@keyframes fly {
  0% { left: 2%; top: 5%; transform: rotate(-8deg); }
  35% { left: 60%; top: 20%; transform: rotate(8deg); }
  70% { left: 18%; top: 65%; transform: rotate(-14deg); }
  100% { left: 66%; top: 72%; transform: rotate(10deg); }
}

@keyframes cursor-fall {
  from { opacity: 1; transform: translate(-4px, -4px) scale(1) rotate(0); }
  to { opacity: 0; transform: translate(-12px, 28px) scale(.15) rotate(180deg); }
}

@keyframes nyan-glow {
  from { transform: rotate(-1deg) scale(.98); filter: hue-rotate(0deg); }
  to { transform: rotate(1deg) scale(1.04); filter: hue-rotate(80deg); }
}

@keyframes equalize {
  0% { height: 4px; }
  40% { height: 24px; }
  70% { height: 12px; }
  100% { height: 20px; }
}

@keyframes cat-cruise {
  from { transform: translate3d(0, 0, 0) rotate(-7deg); }
  to { transform: translate3d(calc(100vw + var(--size) + 70px), var(--bob), 0) rotate(7deg); }
}

@keyframes cat-bob {
  from { transform: translateY(-8px) rotate(-3deg) scale(.97); }
  to { transform: translateY(8px) rotate(3deg) scale(1.03); }
}

@keyframes explosion-pop {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.55) rotate(-7deg); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1.18) rotate(5deg); }
  78% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.9) rotate(2deg); }
}

@keyframes cat-piece-blast {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }
  72% {
    opacity: 1;
    transform: translate3d(var(--piece-x), var(--piece-y), 0) rotate(var(--piece-spin)) scale(.82);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--piece-x), calc(var(--piece-y) + 90px), 0) rotate(var(--piece-spin)) scale(.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  #shader-canvas { display: none; }
  .cursor-spark { display: none; }
  .floating-cat { animation: none; display: none; }
  .nyan-trigger { animation: none; }
}

@media (max-width: 650px) {
  .page-shell { width: calc(100% - 8px); margin: 4px auto; box-shadow: none; }
  .logo-row { grid-template-columns: 45px 1fr 45px; }
  .sparkle { font-size: 35px; }
  .nav-bar { flex-wrap: wrap; }
  .intro { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .sidebar h2, .sidebar hr, .sidebar .tiny, .sidebar button { grid-column: 1 / -1; }
  .avatar { grid-row: 2 / span 3; }
  .link-grid { grid-template-columns: 1fr 1fr; }
  .hero-stamp { right: -5px; }
  .awards { flex-wrap: wrap; }
  .webring { flex-wrap: wrap; justify-content: center; }
  .midi-player { right: 5px; bottom: 5px; width: min(330px, calc(100vw - 10px)); }
  .cat-toggle { bottom: 5px; left: 5px; }
  .cat-score { bottom: 42px; left: 5px; }
}

@media (max-width: 400px) {
  h1 { font-size: 34px; }
  .sparkle { display: none; }
  .logo-row { grid-template-columns: 1fr; }
  .guestbook-preview { grid-template-columns: 1fr; text-align: center; }
  .guestbook-preview h2, .latest-message { grid-column: 1; }
  .dialog-body label { grid-template-columns: 1fr; }
}
