:root {
  --sky-1: #b9e8ff;
  --sky-2: #6eb9f6;
  --blue-1: #e5f8ff;
  --blue-2: #9bd8ff;
  --blue-3: #55aaf1;
  --blue-4: #1d69c7;
  --pink: #ff4fc8;
  --purple: #8e55ff;
  --yellow: #ffe65b;
  --red: #ff5b5b;
  --green: #66d978;
  --ink: #063a94;
  --deep: #052c7c;
  --panel: rgba(239, 250, 255, .92);
  --panel-solid: #f1fbff;
  --line: #58aeee;
  --shadow: rgba(11, 79, 160, .28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .62), transparent 120px),
    radial-gradient(ellipse at 18% 18%, rgba(255, 255, 255, .9) 0 8%, transparent 8.4%),
    radial-gradient(ellipse at 78% 12%, rgba(255, 255, 255, .7) 0 10%, transparent 10.5%),
    linear-gradient(180deg, var(--sky-1), var(--sky-2) 58%, #d9f8ff);
  overflow-x: hidden;
}

a {
  color: #2448c9;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--pink);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

p,
h1,
h2,
h3,
dl,
dd,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.page-clouds {
  position: fixed;
  inset: auto 0 0;
  height: 96px;
  pointer-events: none;
  z-index: 3;
  background:
    radial-gradient(circle at 3% 88%, #fff 0 38px, transparent 39px),
    radial-gradient(circle at 8% 72%, #fff 0 54px, transparent 55px),
    radial-gradient(circle at 16% 88%, #fff 0 42px, transparent 43px),
    radial-gradient(circle at 71% 92%, #fff 0 46px, transparent 47px),
    radial-gradient(circle at 79% 76%, #fff 0 62px, transparent 63px),
    radial-gradient(circle at 91% 92%, #fff 0 52px, transparent 53px),
    linear-gradient(180deg, transparent 0 44px, #fff 45px 100%);
  opacity: .94;
}

.browser-window {
  position: relative;
  width: min(1448px, calc(100% - 20px));
  margin: 10px auto 86px;
  border: 3px solid #4d8bdc;
  border-top-color: #c9e8ff;
  background: #dff5ff;
  box-shadow:
    0 18px 40px rgba(23, 84, 155, .35),
    0 0 0 1px rgba(255, 255, 255, .75) inset;
  z-index: 4;
}

.browser-titlebar {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 10px;
  color: #102d66;
  font-size: 15px;
  background: linear-gradient(#d9ecff, #8fbff5 58%, #6da5ed);
  border-bottom: 2px solid #377ccf;
}

.browser-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  font-weight: 700;
}

.browser-title span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.browser-favicon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  object-fit: contain;
}

.browser-buttons {
  display: flex;
  gap: 5px;
}

.browser-buttons span {
  position: relative;
  width: 26px;
  height: 22px;
  border: 1px solid #295da8;
  background: linear-gradient(#eff8ff, #7fb5ed);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .85);
}

/* minimize: bottom line */
.browser-min::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 11px;
  height: 2px;
  transform: translateX(-50%);
  background: #1b3c72;
}

/* maximize: window outline */
.browser-max::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 10px;
  transform: translate(-50%, -50%);
  border: 1px solid #1b3c72;
  border-top: 3px solid #1b3c72;
}

.browser-buttons .browser-close {
  background: linear-gradient(#ff9f9f, #df3d3d);
}

/* close: X */
.browser-close::before,
.browser-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 2px;
  background: #fff;
  box-shadow: 0 0 1px rgba(120, 20, 20, .6);
}

.browser-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.browser-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.browser-toolbar {
  height: 42px;
  display: grid;
  grid-template-columns: 30px 30px 30px 30px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-bottom: 3px solid #4d97df;
  background: linear-gradient(#f2fbff, #b9dfff);
}

.toolbar-button,
.toolbar-star {
  display: grid;
  place-items: center;
  height: 28px;
  color: #315bb4;
  font-weight: 900;
  border: 1px solid transparent;
}

.toolbar-home::before {
  content: "";
  width: 18px;
  height: 18px;
  background: #315bb4;
  clip-path: polygon(50% 5%, 95% 42%, 82% 42%, 82% 92%, 58% 92%, 58% 65%, 42% 65%, 42% 92%, 18% 92%, 18% 42%, 5% 42%);
}

.toolbar-star {
  line-height: 1;
  color: #ffd93c;
  font-size: 22px;
  text-shadow: 0 1px 0 #7354ca;
}

.address-bar {
  min-width: 0;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  overflow: hidden;
  color: #254591;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 2px solid #74aeea;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 1px 4px rgba(28, 96, 176, .18);
}

.site-grid {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.1)),
    #8dccfb;
}

.sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* cap the column so long titles can't push the sidebar over the page */
  align-content: start;
  gap: 9px;
  min-width: 0;
}

.side-panel,
.content-panel,
.dock-card {
  border: 2px solid #72b6f1;
  border-radius: 8px;
  background: var(--panel);
  box-shadow:
    0 4px 14px var(--shadow),
    inset 0 0 0 2px rgba(255, 255, 255, .78);
}

.side-panel {
  padding: 7px;
}

.side-panel h2,
.content-panel h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 31px;
  padding: 4px 8px;
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    -1px -1px 0 #2066c3,
    1px -1px 0 #2066c3,
    -1px 1px 0 #2066c3,
    1px 1px 0 #2066c3,
    0 2px 0 #174d9a;
  border: 1px solid #8bd0ff;
  border-radius: 6px;
  background: linear-gradient(#7cc9ff, #3f96e9);
}

.portrait-panel {
  min-height: 204px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .7), transparent 45%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.32) 0 8px, rgba(255,255,255,.08) 8px 16px),
    linear-gradient(#8ed5ff, #daf6ff);
}

.dash-portrait {
  display: block;
  width: 176px;
  height: 176px;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 10px;
  background: linear-gradient(160deg, #76cbff, #dff8ff);
  box-shadow: inset 0 0 0 2px rgba(88, 172, 239, .85), 0 2px 8px rgba(11, 79, 160, .25);
}

.info-panel dl {
  display: grid;
  gap: 4px;
  padding: 10px 9px 2px;
  color: #112d8d;
  font: 700 13px/1.25 "Courier New", monospace;
}

.info-panel div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 4px;
}

.info-panel dt {
  color: #4058c7;
}

.info-panel dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.menu-panel {
  display: grid;
  gap: 4px;
}

.menu-panel a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  min-height: 26px;
  padding: 2px 12px;
  color: #274fd2;
  font: 700 14px/1.2 "Courier New", monospace;
  text-decoration: none;
  border-radius: 6px;
}

.menu-panel a:hover,
.menu-panel a:focus-visible {
  background: rgba(255, 79, 200, .12);
  outline: 1px dashed #ff63c8;
}

.menu-panel span {
  color: #be4cff;
  text-align: center;
}

.cool-meter {
  position: relative;
  min-height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cool-meter strong {
  position: relative;
  z-index: 1;
  color: #9a58ff;
  font-size: 22px;
  text-transform: uppercase;
  text-shadow:
    -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff,
    0 -2px 0 #fff, 0 2px 0 #fff, -2px 0 0 #fff, 2px 0 0 #fff,
    0 0 9px rgba(255, 255, 255, .95);
}

.rainbow-line {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 210px;
  height: 210px;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%,
    transparent 0 68px,
    #8a3fff 68px 74px,
    #3f7bff 74px 80px,
    #2fc46a 80px 86px,
    #ffe24a 86px 92px,
    #ff9b34 92px 98px,
    #ff4d4d 98px 104px,
    transparent 104px);
}

.visitors {
  text-align: center;
}

.visitors h2 {
  font-size: 14px;
}

.counter {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
  margin: 10px 0 6px;
  padding: 6px;
  color: #2b46dd;
  font: 900 28px/1 "Courier New", monospace;
  letter-spacing: 3px;
  background: #eefaff;
  border: 2px solid #6eb7ef;
  box-shadow: inset 0 0 0 2px #bfeaff;
}

.visitors p {
  color: #3979d8;
  font-size: 13px;
}

.palace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* let the homepage hero stretch to fill the column so it sits level with the
   taller sidebar instead of leaving a gap under it (min-height stays a floor) */
#view-home:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
#view-home .hero-scene {
  flex: 1 1 auto;
}

.hero-scene {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  padding: 26px 18px 22px;
  border: 2px solid #74b6ec;
  border-radius: 8px;
  background-color: #aee8ff;
  background-image:
    linear-gradient(180deg, rgba(123, 180, 255, .02), rgba(150, 220, 255, .24)),
    url("background.webp");
  background-position:
    center top,
    center top;
  background-size:
    100% 100%,
    100% auto;
  background-repeat:
    no-repeat,
    no-repeat;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45);
}

.hero-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 30%),
    radial-gradient(ellipse at 52% 20%, rgba(255,255,255,.26), transparent 26%),
    linear-gradient(90deg, rgba(61, 137, 219, .28), transparent 18%, transparent 82%, rgba(61, 137, 219, .18));
}

.top-badge {
  position: relative;
  z-index: 1;
  width: min(560px, 96%);
  margin: 4px auto 18px;
  padding: 9px 12px;
  color: #2b4fd6;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .02em;
  background: rgba(250, 246, 255, .94);
  border: 3px dotted #a46cff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .75), 0 4px 10px rgba(80, 116, 219, .18);
}

.badge-star {
  color: #ff4fc8;
  text-shadow: 0 0 4px rgba(255, 79, 200, .5);
}

.hero-title {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title h1 {
  display: block;
  width: min(820px, 98%);
  margin: 0 auto;
  line-height: 0;
}

.hero-wordmark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transform-origin: center;
  filter: drop-shadow(0 7px 0 rgba(16, 69, 178, .34));
  animation:
    rd-glow 2.8s ease-in-out infinite,
    rd-bob 4.4s ease-in-out infinite;
}

.wordmark-layer {
  font-family: "Press Start 2P", Impact, "Arial Black", sans-serif;
  font-size: 70px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wordmark-shadow {
  fill: #103ea7;
  stroke: #103ea7;
  stroke-width: 12px;
  stroke-linejoin: miter;
  opacity: .9;
}

.wordmark-blue {
  fill: none;
  stroke: #174fbd;
  stroke-width: 15px;
  stroke-linejoin: miter;
}

.wordmark-white {
  fill: none;
  stroke: #fff;
  stroke-width: 8px;
  stroke-linejoin: miter;
}

.wordmark-fill {
  stroke: #204eb6;
  stroke-width: 2.6px;
  stroke-linejoin: miter;
  paint-order: stroke fill;
}

.wordmark-fill {
  animation: rd-hue 7s linear infinite;
}

.wordmark-sparkle {
  fill: url(#rd-pixel-shine);
  opacity: .7;
  pointer-events: none;
  animation: rd-twinkle 1.9s ease-in-out infinite;
}

.wordmark-shine {
  fill: url(#rd-shine);
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes rd-hue {
  to { filter: hue-rotate(360deg); }
}

@keyframes rd-twinkle {
  0%, 100% { opacity: .3; }
  50% { opacity: .95; }
}

@keyframes rd-glow {
  0%, 100% {
    filter:
      drop-shadow(0 7px 0 rgba(16, 69, 178, .34))
      drop-shadow(0 0 5px rgba(120, 220, 255, .45));
  }
  50% {
    filter:
      drop-shadow(0 7px 0 rgba(16, 69, 178, .34))
      drop-shadow(0 0 18px rgba(120, 220, 255, .95))
      drop-shadow(0 0 30px rgba(255, 120, 230, .55));
  }
}

@keyframes rd-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.hero-title p {
  margin-top: 14px;
  color: #3fd6ff;
  font: 400 16px/1.45 "Press Start 2P", "Courier New", monospace;
  letter-spacing: .01em;
  text-shadow:
    -2px 0 #15399c, 2px 0 #15399c, 0 -2px #15399c, 0 2px #15399c,
    -2px -2px #15399c, 2px -2px #15399c, -2px 2px #15399c, 2px 2px #15399c,
    0 4px 0 #103a8f, 0 6px 0 #0d3079, 0 9px 7px rgba(11, 55, 140, .4);
}

.sub-cm {
  height: 1.5em;
  width: auto;
  vertical-align: middle;
  margin: 0 .4em;
  filter: drop-shadow(0 2px 0 rgba(13, 48, 121, .55));
}

.hero-panels {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 1fr .72fr .88fr;
  gap: 16px;
  align-items: end;
  margin-top: 270px;
}

.content-panel {
  padding: 8px;
  backdrop-filter: blur(2px);
}

.content-panel h2 {
  margin-bottom: 9px;
  font-size: 18px;
}

.about-card {
  min-height: 280px;
}

.about-layout {
  color: #1e43bf;
  font: 700 14px/1.4 "Courier New", monospace;
}

.about-layout p + p {
  margin-top: 8px;
}

.about-layout::after {
  content: "";
  display: block;
  clear: both;
}

.signoff {
  margin-top: 9px;
  color: #2538b5;
  font: 700 15px/1.35 "Courier New", monospace;
}

.about-pic {
  float: right;
  width: 116px;
  height: auto;
  margin: 2px 0 8px 12px;
  filter: drop-shadow(2px 3px 3px rgba(11, 79, 160, .3));
}

.player-card {
  min-height: 280px;
}

.player {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.album-art {
  position: relative;
  width: 118px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid #76b8ee;
  background:
    linear-gradient(135deg, rgba(255,255,255,.5), transparent 55%),
    linear-gradient(180deg, #dff4ff, #aee4ff);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6);
}

.album-gif {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.track-info h3 {
  margin-bottom: 4px;
  color: #173bbd;
  font-size: 18px;
}

.track-info p {
  color: #5429bc;
  font-size: 13px;
}

.equalizer {
  display: grid;
  grid-template-columns: repeat(6, 7px);
  align-items: end;
  gap: 4px;
  height: 36px;
  margin-top: 13px;
}

.equalizer span {
  display: block;
  height: 12px;
  background: linear-gradient(#ff62ce, #50a8ff);
  animation: equalize 900ms ease-in-out infinite;
}

.equalizer span:nth-child(2) { animation-delay: 100ms; }
.equalizer span:nth-child(3) { animation-delay: 240ms; }
.equalizer span:nth-child(4) { animation-delay: 70ms; }
.equalizer span:nth-child(5) { animation-delay: 310ms; }
.equalizer span:nth-child(6) { animation-delay: 170ms; }

body.is-paused .equalizer span {
  animation-play-state: paused;
}

@keyframes equalize {
  0%, 100% { height: 10px; }
  50% { height: 32px; }
}

.player-controls {
  display: grid;
  grid-template-columns: 32px 32px 32px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  margin-top: 10px;
}

.player-controls button {
  height: 30px;
  color: #2848b8;
  border: 2px solid #7eb8ea;
  border-radius: 5px;
  background: linear-gradient(#fff, #bceaff);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.9);
}

.player-controls button:hover,
.player-controls button:focus-visible {
  color: #fff;
  background: linear-gradient(#ff86d8, #8b63ff);
}

.player-controls input {
  min-width: 0;
  accent-color: #6b62ff;
}

.player-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  font-size: 12px;
}

.fave-card {
  min-height: 280px;
}

.fave-card li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 5px;
  padding: 2px 4px;
  color: #2144c5;
  font-size: 14px;
}

.fave-card li span {
  text-align: center;
}

.links-card {
  min-height: 280px;
}

.links-card a {
  display: block;
  padding: 4px 8px;
  border-bottom: 1px dotted #85b9eb;
  font-size: 14px;
}

.updates-card {
  grid-column: 1 / span 2;
  min-height: 200px;
}

.updates-card li {
  padding: 3px 2px;
  color: #2447bd;
  font: 700 13px/1.35 "Courier New", monospace;
}

.updates-card time {
  color: #526aff;
}

.guestbook-card {
  min-height: 200px;
  color: #2447bd;
  font: 700 14px/1.4 "Courier New", monospace;
}

.guestbook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.blinkies-card {
  min-height: 200px;
}

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

.blinkie-grid span {
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 4px;
  color: #fff;
  font: 900 13px/1.1 "Courier New", monospace;
  text-align: center;
  text-transform: uppercase;
  border: 2px solid #74bdf3;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 5px, transparent 5px 11px),
    linear-gradient(90deg, #ff5b5b, #ff9b34, #ffe65b, #66d978, #39e7ff, #8e55ff, #ff4fc8, #ff5b5b);
  background-size: auto, 220px 100%;
  background-repeat: repeat, repeat;
  animation: blinkie-rainbow 5s linear infinite;
  text-shadow: 0 1px 0 #15318c, 1px 0 0 #15318c, -1px 0 0 #15318c, 0 -1px 0 #15318c, 1px 1px 1px rgba(0, 0, 0, .35);
}
@keyframes blinkie-rainbow {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 22px 0, 220px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .blinkie-grid span { animation: none; }
}

.section-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.dock-card {
  min-height: 178px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(231, 249, 255, .94)),
    linear-gradient(135deg, rgba(255, 89, 204, .08), rgba(78, 166, 255, .08));
}

.dock-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff5fc9, #5da8ff);
  text-shadow: 1px 1px 0 #15388e;
}

.dock-card h2 {
  margin-bottom: 6px;
  color: #1944bd;
  font-size: 22px;
}

.dock-card p {
  margin-bottom: 12px;
  color: #2950b8;
}

.site-footer {
  position: relative;
  padding: 18px 12px 20px;
  color: #2254c3;
  text-align: center;
  background:
    radial-gradient(circle at 4% 100%, #fff 0 34px, transparent 35px),
    radial-gradient(circle at 12% 100%, #fff 0 50px, transparent 51px),
    radial-gradient(circle at 92% 100%, #fff 0 42px, transparent 43px),
    radial-gradient(circle at 98% 100%, #fff 0 58px, transparent 59px),
    linear-gradient(180deg, rgba(205, 238, 255, .35), #fff 45px);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 8px;
  font-size: 13px;
}

.site-footer p {
  font-size: 13px;
}

@media (max-width: 1180px) {
  .site-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .portrait-panel {
    min-height: 0;
  }

  .dash-portrait {
    width: 156px;
    height: 156px;
  }

  .hero-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 260px;
  }

  .updates-card {
    grid-column: auto;
  }

  .section-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .72), transparent 90px),
      linear-gradient(180deg, var(--sky-1), var(--sky-2) 58%, #d9f8ff);
  }

  .browser-window {
    width: 100%;
    margin: 0 auto 58px;
    border-width: 0 0 2px;
    box-shadow: none;
  }

  .browser-titlebar {
    height: 38px;
    padding: 0 10px;
  }

  .browser-buttons span {
    width: 22px;
    height: 20px;
  }

  .browser-toolbar {
    display: none;
  }

  .site-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    background: rgba(141, 204, 251, .72);
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: block;
    padding: 6px;
    background: rgba(223, 245, 255, .96);
    border-bottom: 2px solid #58aeee;
    box-shadow: 0 4px 14px rgba(11, 79, 160, .18);
  }

  .sidebar .side-panel:not(.menu-panel) {
    display: none;
  }

  .menu-panel {
    display: flex;
    gap: 6px;
    padding: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .menu-panel h2 {
    display: none;
  }

  .menu-panel a {
    flex: 0 0 auto;
    grid-template-columns: 18px max-content;
    gap: 6px;
    min-height: 42px;
    padding: 0 12px;
    color: #1d4fb9;
    white-space: nowrap;
    border: 1px solid #92c9f4;
    border-radius: 7px;
    background: rgba(255, 255, 255, .82);
  }

  .palace {
    padding: 0 6px 8px;
  }

  .hero-scene {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 14px 8px 12px;
    background-image:
      radial-gradient(120% 90% at 50% -10%, rgba(255, 255, 255, .55), transparent 52%),
      linear-gradient(180deg, #d9f5ff, #9edcff 62%, #d9f8ff);
    background-position: center;
    background-size: 100% 100%;
  }

  .top-badge {
    order: 1;
    width: min(100%, 420px);
    margin: 2px auto 10px;
    padding: 7px 8px;
    font-size: 9px;
    line-height: 1.55;
  }

  .hero-title h1 {
    width: 100%;
  }

  .hero-title {
    order: 2;
  }

  .hero-title p {
    margin-top: 8px;
    font-size: 10px;
    line-height: 1.55;
  }

  .hero-panels {
    order: 4;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0;
  }

  .content-panel {
    padding: 10px;
  }

  .content-panel h2 {
    min-height: 28px;
    font-size: 15px;
  }

  .about-card,
  .player-card,
  .fave-card,
  .links-card,
  .updates-card,
  .guestbook-card,
  .blinkies-card {
    min-height: 0;
  }

  .about-layout,
  .player {
    grid-template-columns: 1fr;
  }

  .about-pic {
    display: none;
  }

  .album-art {
    width: min(118px, 100%);
    justify-self: center;
  }

  .player-controls {
    grid-template-columns: 38px 38px 38px minmax(0, 1fr);
  }

  .section-dock {
    grid-template-columns: 1fr;
  }

  .page-clouds {
    height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .equalizer span {
    animation: none;
  }

  .hero-wordmark,
  .wordmark-fill,
  .wordmark-sparkle {
    animation: none;
  }

  .hero-wordmark {
    filter: drop-shadow(0 7px 0 rgba(16, 69, 178, .34));
  }

  .wordmark-shine {
    display: none;
  }
}
/* ---- /mlp/Ring sidebar widget (overrides onionring.css, which loads first) ---- */
.webring-panel {
  padding: 5px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .7), transparent 45%),
    linear-gradient(180deg, #eaf7ff, #d3ecff);
}

#mlpring {
  padding: 0;
}

/* unpack the widget's table so the cells can be re-stacked with flexbox:
   info text on top, prev/next buttons in a row underneath */
#mlpring table,
#mlpring tbody {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
}

#mlpring tr {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
}

#mlpring table tr td {
  display: block;
  padding: 2px;
  color: #1e43bf;
  font: 700 11.5px/1.5 "Courier New", monospace;
  text-align: center;
}

#mlpring .webring-info {
  order: -1;
  flex: 1 1 100%;
  margin-bottom: 4px;
}

#mlpring a {
  color: #1e43bf;
}

/* the widget inlines its own dark-red color on the ring-name link; overrule it */
#mlpring .webring-info > a {
  color: #d62aa0 !important;
  text-shadow: none !important;
  font-weight: 900;
}

#mlpring .webring-prev a,
#mlpring .webring-next a {
  display: inline-block;
  padding: 4px 8px;
  background: #fff;
  border: 2px solid #74bdf3;
  border-radius: 999px;
  color: #1e43bf;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(30, 67, 191, .25);
  transition: transform .12s ease, background .12s ease;
}

#mlpring .webring-prev a:hover,
#mlpring .webring-next a:hover {
  background: #ffe1f2;
  transform: translateY(-1px);
}

#mlpring .webring-links {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
}
