/* ============================================================
   FAKEHAM'S LIDNET — a 1990s web page that escaped captivity
   ============================================================ */

@font-face {
  font-family: "Luckiest Guy";
  src: url("assets/fonts/luckiest-guy.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "VT323";
  src: url("assets/fonts/vt323.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Comic Neue";
  src: url("assets/fonts/comic-neue-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #0b0022;
  --ink: #1a0033;
  --deep: #12002e;
  --panel: #170033;
  --paper: #fffdf0;
  --pink: #ff2bd6;
  --hot-pink: #ff007a;
  --cyan: #00f0ff;
  --blue: #2a5cff;
  --lime: #39ff14;
  --yellow: #ffe600;
  --orange: #ff7a00;
  --purple: #7b2cff;
  --win-gray: #c0c0c0;
  --win-light: #ffffff;
  --win-dark: #404040;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: #ffffff;
  background-color: var(--void);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.4px),
    radial-gradient(circle at 20% 70%, rgba(0, 240, 255, 0.7) 0 1px, transparent 1.4px),
    linear-gradient(135deg, transparent 0 46%, rgba(255, 43, 214, 0.13) 46% 47%, transparent 47% 100%),
    linear-gradient(45deg, transparent 0 46%, rgba(0, 240, 255, 0.09) 46% 47%, transparent 47% 100%);
  background-size: 130px 130px, 190px 190px, 92px 92px, 92px 92px;
  font-family: "Comic Neue", "Comic Sans MS", "Chalkboard SE", cursive;
  font-weight: 700;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(123, 44, 255, 0.35), transparent 60%),
    radial-gradient(ellipse at 100% 80%, rgba(255, 43, 214, 0.12), transparent 55%),
    radial-gradient(ellipse at 0% 95%, rgba(0, 240, 255, 0.1), transparent 50%);
}

img {
  max-width: 100%;
}

a {
  color: #0033cc;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--deep);
  background: var(--yellow);
  text-decoration-style: wavy;
}

a:visited {
  color: #6d1bb4;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  font-family: "VT323", monospace;
  font-size: 1.3rem;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- The mandatory starfield ---------- */

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 230, 0, 0.8) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(0, 240, 255, 0.8) 0 1px, transparent 1.7px);
  background-size: 210px 210px, 330px 330px, 270px 270px;
  background-position: 17px 33px, 91px 140px, 200px 20px;
  animation: star-drift 90s linear infinite;
}

.starfield::before {
  content: "";
  position: absolute;
  inset: -50%;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1.2px, transparent 1.9px),
    radial-gradient(circle, rgba(255, 43, 214, 0.75) 0 1.2px, transparent 1.9px);
  background-size: 250px 250px, 410px 410px;
  animation: twinkle 4.5s steps(2, end) infinite;
}

@keyframes star-drift {
  to { background-position: 227px 243px, 421px 470px, 470px 290px; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}

/* ---------- Sparkle cursor trail ---------- */

.sparkle-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: "VT323", monospace;
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 0 7px currentColor;
  animation: sparkle-fade 0.85s ease-out forwards;
  will-change: transform, opacity;
}

@keyframes sparkle-fade {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -90%) scale(0.35) rotate(100deg); }
}

/* ---------- Top news ticker ---------- */

.top-ticker {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: stretch;
  min-height: 38px;
  border-bottom: 3px solid var(--yellow);
  background: #020008;
  box-shadow: 0 4px 0 rgba(255, 43, 214, 0.65);
  font-family: "VT323", monospace;
}

.ticker-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: repeating-linear-gradient(135deg, #d00000 0 12px, #8c0000 12px 24px);
  color: #fff;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-shadow: 2px 2px 0 #3d0000;
  border-right: 3px solid var(--yellow);
}

.ticker-viewport {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
}

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

.ticker-copy {
  flex: 0 0 auto;
  padding-right: 3rem;
  color: var(--yellow);
  font-size: 1.28rem;
  letter-spacing: 0.045em;
  white-space: nowrap;
}

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

/* ---------- Page shell ---------- */

.page-shell {
  position: relative;
  z-index: 2;
  width: min(1130px, calc(100% - 24px));
  margin: 18px auto 34px;
}

/* ---------- Masthead ---------- */

.masthead {
  position: relative;
  padding: 20px 12px 8px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--yellow);
  font-family: "VT323", monospace;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.14em;
  text-shadow: 2px 2px 0 #4a0060, 0 0 12px rgba(255, 230, 0, 0.45);
}

.wordart {
  position: relative;
  isolation: isolate;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 4px auto 10px;
  padding: 0.04em 0.1em 0.1em;
  font-family: "Luckiest Guy", Impact, "Arial Black", sans-serif;
  font-size: clamp(1.95rem, 9.5vw, 7.4rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.015em;
  text-align: center;
  white-space: nowrap;
  color: var(--pink);
  background-image: repeating-linear-gradient(
    180deg,
    #ffd1f7 0 12%,
    #ff8ae8 12% 28%,
    #ff2bd6 28% 60%,
    #ff5ce0 60% 72%,
    #c400a0 72% 100%
  );
  background-size: 100% 170%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.055em var(--deep);
  paint-order: stroke fill;
  transform: rotate(-2.5deg) skewX(-3deg);
  filter:
    drop-shadow(0.035em 0.045em 0 var(--yellow))
    drop-shadow(0.075em 0.09em 0 var(--purple))
    drop-shadow(0.11em 0.135em 0 rgba(8, 0, 24, 0.7))
    drop-shadow(0 0 0.18em rgba(255, 43, 214, 0.55));
  animation: wordart-shine 8s ease-in-out infinite alternate;
}

@keyframes wordart-shine {
  from { background-position: 0 0; }
  to { background-position: 0 90%; }
}

.tagline {
  display: inline-block;
  max-width: 760px;
  margin: 8px auto 12px;
  padding: 7px 18px;
  color: #ffffff;
  background: rgba(18, 0, 46, 0.92);
  border: 3px double var(--cyan);
  box-shadow: 5px 5px 0 var(--pink);
  font-family: "VT323", monospace;
  font-size: clamp(1.02rem, 2.6vw, 1.36rem);
  line-height: 1.25;
  letter-spacing: 0.03em;
  transform: rotate(0.4deg);
}

.signal {
  color: var(--lime);
  white-space: nowrap;
}

/* ---------- 88x31 badges ---------- */

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px 0 8px;
}

.web-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 88px;
  height: 31px;
  padding: 1px 3px;
  overflow: hidden;
  border: 2px solid;
  color: #fff;
  font-family: "VT323", monospace;
  font-size: 0.76rem;
  line-height: 0.85;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.65);
}

.web-badge b {
  font-weight: 400;
}

.badge-netscape {
  background: linear-gradient(135deg, #000 0 45%, #2b2b2b 45% 100%);
  border-color: #fff #555 #555 #fff;
}

.badge-netscape .badge-n {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 22px;
  background: #fff;
  color: #000;
  font-family: "Luckiest Guy", Impact, sans-serif;
  font-size: 1.05rem;
  text-shadow: none;
}

.badge-notepad {
  background: linear-gradient(#fff, #d7d7d7);
  border-color: #fff #555 #555 #fff;
  color: #000;
  text-shadow: none;
}

.badge-y2k {
  background: repeating-linear-gradient(45deg, #001a00 0 6px, #003300 6px 12px);
  border-color: var(--lime);
  color: var(--lime);
}

.badge-html {
  background: linear-gradient(#0b2bb5, #00115e);
  border-color: #9fb7ff #00004d #00004d #9fb7ff;
}

.badge-irc {
  background: linear-gradient(#4a0060, #19002e);
  border-color: var(--pink);
  color: var(--yellow);
}

.flame-row {
  margin-top: 4px;
  color: var(--orange);
  font-family: "VT323", monospace;
  font-size: 1.25rem;
  letter-spacing: 0.6em;
  text-shadow: 0 0 8px var(--hot-pink);
  animation: flame-flicker 1.3s steps(2, end) infinite;
}

@keyframes flame-flicker {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.65; transform: scaleY(1.16); }
}

/* ---------- Main layout ---------- */

.layout {
  display: grid;
  grid-template-columns: 182px minmax(0, 1fr) 204px;
  grid-template-areas: "left main right";
  gap: 14px;
  align-items: start;
}

.sidebar-left { grid-area: left; }
.main-column { grid-area: main; min-width: 0; }
.sidebar-right { grid-area: right; }

/* ---------- Side panels ---------- */

.panel {
  position: relative;
  margin-bottom: 14px;
  background: var(--panel);
  border: 3px ridge var(--pink);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.55);
}

.panel-title {
  margin: 0;
  padding: 5px 7px 6px;
  color: #fff;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 8px),
    linear-gradient(90deg, #e0009e, var(--purple) 52%, #007fd4);
  border-bottom: 2px solid #05000f;
  font-family: "VT323", monospace;
  font-size: 1.22rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  text-shadow: 2px 2px 0 #3b0060;
}

.panel-body {
  padding: 9px;
  color: #e6dcff;
  background-color: var(--deep);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 12px 12px;
  font-family: "VT323", monospace;
  font-size: 1.06rem;
  line-height: 1.18;
}

.panel-body a {
  color: var(--cyan);
}

.panel-body a:hover {
  color: var(--deep);
}

/* Chunky nav buttons */

.nav-stack {
  display: grid;
  gap: 6px;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin: 0;
  padding: 6px 8px;
  color: #fff;
  background: linear-gradient(#ff9cf0, #e000ab 55%, #8b0071);
  border: 3px outset #ffd1f8;
  box-shadow: 2px 2px 0 #000;
  font-family: "VT323", monospace;
  font-size: 1.22rem;
  line-height: 1;
  letter-spacing: 0.035em;
  text-align: left;
  text-decoration: none;
  text-shadow: 2px 2px 0 #4a003a;
  cursor: pointer;
}

.nav-button > span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
}

.nav-button:hover {
  color: var(--ink);
  background: linear-gradient(#fff7a5, #ffc400 55%, #d67a00);
  border-color: #fffbd1;
  text-shadow: 1px 1px 0 #fff;
  text-decoration: none;
}

.nav-button:active {
  border-style: inset;
  transform: translate(1px, 1px);
  box-shadow: none;
}

.nav-button-alt {
  background: linear-gradient(#7dfcff, #00b8d4 55%, #006e8a);
  border-color: #c9feff;
  text-shadow: 1px 1px 0 #003a4d;
}

.nav-button-alt:hover {
  background: linear-gradient(#eaffb0, var(--lime) 55%, #1aa300);
  color: var(--ink);
}

/* Webring */

.webring-blurb {
  margin: 0 0 8px;
  color: #ffe600;
  font-size: 0.98rem;
  line-height: 1.05;
  text-align: center;
}

.webring-buttons {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.tiny-button {
  padding: 4px 5px;
  color: #ffffff;
  background: linear-gradient(#4a4a4a, #111);
  border: 2px outset #bdbdbd;
  font-family: "VT323", monospace;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.tiny-button:hover {
  background: linear-gradient(var(--yellow), var(--orange));
  color: var(--ink);
}

.tiny-button:active {
  border-style: inset;
}

.webring-count {
  margin: 0;
  color: #c7b6ef;
  font-size: 0.98rem;
  line-height: 1.05;
  text-align: center;
}

.webring-count b {
  color: var(--lime);
  font-weight: 400;
}

/* Fake awards */

.award-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.award {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 2px;
  border: 2px outset;
  font-family: "VT323", monospace;
  font-size: 0.82rem;
  line-height: 0.9;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
}

.award-gold {
  color: #2a1600;
  background: linear-gradient(135deg, #fffbd0, #ffd700 55%, #b47b00);
  border-color: #fffbd0 #7a5200 #7a5200 #fffbd0;
  text-shadow: 1px 1px 0 #fff3a0;
}

.award-pink {
  color: #fff;
  background: linear-gradient(135deg, #ff7ae4, #c400a0);
  border-color: #ffc7f5 #6a0057 #6a0057 #ffc7f5;
}

.award-green {
  color: #001a00;
  background: linear-gradient(135deg, #d6ffb0, #39ff14 60%, #0f9e00);
  border-color: #efffd9 #087000 #087000 #efffd9;
  text-shadow: 1px 1px 0 #b9ffb0;
}

.award-blue {
  color: #fff;
  background: linear-gradient(135deg, #9ce6ff, #0077c8 60%, #003b70);
  border-color: #d5f7ff #002d55 #002d55 #d5f7ff;
}

.award-caption {
  margin: 7px 0 0;
  color: #bba8e8;
  font-size: 0.92rem;
  line-height: 1.05;
  text-align: center;
}

/* ---------- Fake browser window ---------- */

.window {
  padding: 3px;
  background: var(--win-gray);
  border: 3px solid;
  border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
  box-shadow:
    6px 6px 0 rgba(0, 0, 0, 0.6),
    0 0 0 2px rgba(255, 43, 214, 0.35);
}

.window-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 2px;
  padding: 3px 4px 3px 5px;
  color: #ffffff;
  background: linear-gradient(90deg, #00005c 0%, #000080 22%, #1084d0 100%);
  font-family: Tahoma, Verdana, "DejaVu Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 1px 1px 0 #000;
}

.window-title {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-app-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0 3px;
  color: var(--lime);
  background: #000;
  border: 1px solid var(--lime);
  font-family: "VT323", monospace;
  font-size: 0.9rem;
  letter-spacing: -0.05em;
  text-shadow: none;
}

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

.win-btn {
  display: grid;
  place-items: center;
  width: 19px;
  height: 17px;
  padding: 0;
  color: #000;
  background: var(--win-gray);
  border: 2px solid;
  border-color: var(--win-light) #3d3d3d #3d3d3d var(--win-light);
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.win-btn:hover {
  background: #e7e7e7;
}

.win-btn:active {
  border-color: #3d3d3d var(--win-light) var(--win-light) #3d3d3d;
}

.win-btn-close {
  font-size: 14px;
}

.menubar {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 2px 6px;
  color: #000;
  background: var(--win-gray);
  border-bottom: 1px solid #8a8a8a;
  font-family: Tahoma, Verdana, "DejaVu Sans", sans-serif;
  font-size: 11px;
  line-height: 1.4;
  user-select: none;
}

.menubar-right {
  margin-left: auto;
  color: #333;
}

.window-body {
  padding: 5px 4px 4px;
  background: var(--win-gray);
}

/* ---------- Tabs ---------- */

.tabs {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px 5px 0;
  margin-bottom: -1px;
}

.tab {
  position: relative;
  top: 3px;
  padding: 6px 17px 7px;
  color: #111;
  background: linear-gradient(#f3f3f3, #b9b9b9);
  border: 2px solid;
  border-color: var(--win-light) #555 #555 var(--win-light);
  border-radius: 4px 4px 0 0;
  font-family: Tahoma, Verdana, "DejaVu Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
}

.tab:hover:not([aria-selected="true"]) {
  background: linear-gradient(#ffffff, #dcdcdc);
}

.tab[aria-selected="true"] {
  top: 0;
  z-index: 3;
  padding-bottom: 10px;
  background: var(--paper);
  border-bottom-color: var(--paper);
}

.tab-icon {
  margin-right: 3px;
  color: #b00094;
  font-family: "VT323", monospace;
  font-size: 1.08rem;
}

.tab[aria-selected="true"] .tab-icon {
  color: var(--hot-pink);
}

/* ---------- Tab content ---------- */

.tab-panels {
  padding: 3px;
  background: var(--paper);
  border: 2px solid;
  border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
}

.tab-panel {
  position: relative;
  padding: 19px 25px 23px;
  overflow: hidden;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(26, 0, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 0, 51, 0.035) 1px, transparent 1px);
  background-size: 21px 21px;
  font-size: 1.03rem;
  line-height: 1.52;
}

.tab-panel[hidden] {
  display: none !important;
}

.tab-panel:focus-visible {
  outline: 4px dashed var(--pink);
  outline-offset: -4px;
}

.tab-panel p {
  margin: 0 0 1em;
}

.tab-panel p:last-child {
  margin-bottom: 0;
}

.tab-panel b,
.tab-panel strong {
  color: #a0007c;
}

.panel-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: -3px 0 0 !important;
  padding: 3px 9px 3px 4px;
  color: #61008f;
  background: #f2e8ff;
  border-left: 5px solid var(--pink);
  font-family: "VT323", monospace;
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: 0.025em;
}

.sticker {
  display: inline-block;
  padding: 1px 6px;
  color: #fff;
  background: #e00030;
  border: 1px solid #7a001a;
  box-shadow: 2px 2px 0 var(--ink);
  font-family: "VT323", monospace;
  font-size: 0.95rem;
  line-height: 1.05;
  transform: rotate(-3deg);
}

.sticker-cyan {
  color: var(--ink);
  background: var(--cyan);
  border-color: #006c78;
}

.sticker-lime {
  color: var(--ink);
  background: var(--lime);
  border-color: #147a00;
}

.content-heading {
  margin: 0.18em 0 0.34em;
  color: #2b0060;
  font-family: "Luckiest Guy", Impact, "Arial Black", sans-serif;
  font-size: clamp(2.05rem, 5.3vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.015em;
  text-shadow:
    3px 3px 0 var(--yellow),
    6px 6px 0 var(--pink);
  transform: rotate(-1deg);
  transform-origin: left center;
}

.rainbow-text {
  display: inline-block;
  color: var(--pink);
  background: linear-gradient(90deg, #ff003c, #ff7a00, #d4b000, #18a800, #008fc4, #7b2cff, #ff2bd6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@supports not (background-clip: text) {
  .rainbow-text {
    color: var(--pink);
    -webkit-text-fill-color: currentColor;
  }
}

/* Topic list */

.topic-list {
  display: grid;
  gap: 6px;
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
}

.topic-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 11px;
  background: #fff7c2;
  border: 2px solid #e8c400;
  box-shadow: 3px 3px 0 rgba(26, 0, 51, 0.18);
  line-height: 1.35;
}

.topic-list li:nth-child(even) {
  background: #f6ecff;
  border-color: #c39bff;
}

.topic-star {
  flex: 0 0 auto;
  color: var(--hot-pink);
  font-family: "VT323", monospace;
  font-size: 1.22rem;
  line-height: 1.15;
  animation: star-pulse 2.4s steps(2, end) infinite;
}

.topic-list li:nth-child(even) .topic-star {
  color: var(--purple);
  animation-delay: 0.7s;
}

@keyframes star-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.28) rotate(12deg); }
}

.fine-print {
  position: relative;
  margin-top: 20px;
  padding: 13px 15px 10px;
  background: #f2ffe0;
  border: 3px dashed var(--purple);
  box-shadow: 4px 4px 0 rgba(123, 44, 255, 0.2);
  transform: rotate(-0.35deg);
}

.fine-print-label {
  display: inline-block;
  margin-top: -24px;
  margin-bottom: 4px;
  padding: 1px 7px;
  color: #fff;
  background: var(--purple);
  font-family: "VT323", monospace;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.fine-print p {
  margin: 2px 0 0;
}

/* Where? */

.schedule-sign {
  margin: 16px 0 20px;
  padding: 15px 14px 13px;
  color: var(--lime);
  background:
    radial-gradient(circle at 50% 50%, rgba(57, 255, 20, 0.09), transparent 70%),
    #03000c;
  border: 4px double var(--lime);
  box-shadow:
    inset 0 0 28px rgba(57, 255, 20, 0.14),
    5px 5px 0 var(--ink);
  font-family: "VT323", monospace;
  text-align: center;
}

.schedule-day {
  margin: 0 !important;
  color: var(--cyan);
  font-size: clamp(1.15rem, 3.2vw, 1.5rem);
  letter-spacing: 0.18em;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.65);
}

.schedule-time {
  margin: 2px 0 5px !important;
  color: var(--yellow);
  font-size: clamp(3.1rem, 9vw, 5.1rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-shadow:
    3px 3px 0 var(--pink),
    6px 6px 0 var(--purple),
    0 0 22px rgba(255, 230, 0, 0.45);
}

.schedule-time span {
  font-size: 0.5em;
  letter-spacing: 0.05em;
}

.schedule-onair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 0 4px !important;
  color: var(--pink);
  font-size: 1.25rem;
  letter-spacing: 0.2em;
}

.led {
  display: inline-block;
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  background: #ff3b3b;
  border: 2px solid #7a0000;
  border-radius: 50%;
  box-shadow: 0 0 9px #ff3b3b, inset 0 0 2px #fff;
  animation: led-blink 1.1s steps(2, end) infinite;
}

.led.is-live {
  background: var(--lime);
  border-color: #0b6b00;
  box-shadow: 0 0 12px var(--lime), inset 0 0 2px #fff;
}

@keyframes led-blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0.35; }
}

.schedule-countdown {
  margin: 0 !important;
  color: #d9ccff;
  font-size: 1.13rem;
  letter-spacing: 0.04em;
}

.schedule-countdown strong {
  color: var(--lime);
  font-weight: 400;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}

.ways-in {
  width: 100%;
  margin: 16px 0 18px;
  border: 3px solid var(--purple);
  border-collapse: collapse;
  font-family: "VT323", monospace;
  font-size: 1.08rem;
  line-height: 1.15;
}

.ways-in caption {
  padding: 5px 8px;
  color: #fff;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border: 3px solid var(--purple);
  border-bottom: 0;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-shadow: 1px 1px 0 #3d005a;
}

.ways-in th,
.ways-in td {
  padding: 7px 9px;
  border: 2px solid #b79bff;
  text-align: left;
  vertical-align: top;
}

.ways-in thead th {
  color: var(--yellow);
  background: var(--deep);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.ways-in tbody th {
  width: 38%;
  color: #5a00a3;
  background: #f0e5ff;
  font-weight: 400;
}

.ways-in tbody tr:nth-child(even) td {
  background: #fffbd8;
}

.ways-in td b {
  color: #b0007c;
  font-weight: 400;
}

.muted {
  color: #6f5a8c;
}

.local-time {
  padding: 8px 11px;
  background: #e8f8ff;
  border-left: 5px solid #00a7d4;
  font-size: 0.98rem;
}

.tip-box {
  margin-top: 16px;
  padding: 9px 13px;
  background: #fff3b0;
  border: 2px dashed var(--orange);
  box-shadow: 3px 3px 0 rgba(255, 122, 0, 0.22);
  font-size: 0.98rem;
  line-height: 1.35;
  transform: rotate(0.25deg);
}

.tip-icon {
  color: var(--orange);
  font-family: "VT323", monospace;
  font-size: 1.2rem;
}

/* Who? */

.intro-line {
  font-size: 1.05rem;
}

.profiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 13px 0 18px;
}

.profile-card {
  padding: 13px 13px 12px;
  text-align: center;
  background:
    linear-gradient(rgba(255, 43, 214, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 43, 214, 0.055) 1px, transparent 1px),
    #f8f0ff;
  background-size: 11px 11px;
  border: 3px ridge var(--pink);
  box-shadow: 4px 4px 0 rgba(26, 0, 51, 0.22);
}

.profile-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 7px;
  color: var(--lime);
  background: var(--ink);
  border: 3px ridge var(--cyan);
  border-radius: 50%;
  font-family: "VT323", monospace;
  font-size: 1.28rem;
  line-height: 1;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}

.profile-icon-floppy {
  color: var(--yellow);
  border-color: var(--pink);
  border-radius: 4px;
  font-size: 1.5rem;
  text-shadow: 0 0 8px rgba(255, 230, 0, 0.6);
}

.profile-card h3 {
  margin: 0 0 4px;
  color: #2b0060;
  font-family: "Luckiest Guy", Impact, "Arial Black", sans-serif;
  font-size: 1.42rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.profile-handle {
  margin: 0 0 6px;
  font-family: "VT323", monospace;
  font-size: 1.18rem;
  line-height: 1.1;
}

.profile-note {
  margin: 0 auto 9px;
  max-width: 27ch;
  font-size: 0.92rem;
  line-height: 1.3;
}

.profile-stamp {
  display: inline-block;
  margin: 0 !important;
  padding: 2px 7px;
  color: var(--yellow);
  background: var(--ink);
  border: 1px solid var(--yellow);
  font-family: "VT323", monospace;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  transform: rotate(-2deg);
}

.join-box {
  padding: 14px 16px;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(57, 255, 20, 0.07) 0 10px, transparent 10px 20px),
    #efffdc;
  border: 4px double #149600;
  box-shadow: 4px 4px 0 rgba(20, 150, 0, 0.22);
}

.join-title {
  margin-bottom: 6px !important;
  color: #0a6200;
  font-family: "VT323", monospace;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.join-box p {
  line-height: 1.4;
}

.big-link {
  display: inline-block;
  margin-top: 3px;
  padding: 6px 13px;
  color: var(--lime);
  background: var(--ink);
  border: 3px outset var(--lime);
  box-shadow: 3px 3px 0 var(--pink);
  font-family: "VT323", monospace;
  font-size: 1.14rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.big-link:hover {
  color: var(--ink);
  background: var(--lime);
  text-decoration: none;
}

/* Status bar */

.statusbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 3px 0;
  color: #000;
  font-family: Tahoma, Verdana, "DejaVu Sans", sans-serif;
  font-size: 10px;
  line-height: 1.3;
}

.statusbar-item {
  padding: 1px 5px;
  border: 1px solid;
  border-color: #8a8a8a #fff #fff #8a8a8a;
}

.statusbar-right {
  margin-left: auto;
}

/* ---------- Construction sign ---------- */

.construction {
  margin-top: 16px;
  overflow: hidden;
  background: var(--yellow);
  border: 3px solid #000;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.55);
  transform: rotate(-0.3deg);
}

.construction-stripes {
  height: 11px;
  background: repeating-linear-gradient(45deg, #000 0 11px, var(--yellow) 11px 22px);
  background-size: 31px 31px;
  animation: construction-scroll 1.6s linear infinite;
}

@keyframes construction-scroll {
  to { background-position: 31px 0; }
}

.construction-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 8px 12px;
  color: #000;
  text-align: center;
}

.construction-body strong {
  display: block;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-shadow: 1px 1px 0 #fff;
}

.construction-body small {
  display: block;
  font-family: "VT323", monospace;
  font-size: 1rem;
  line-height: 1;
}

.construction-icon {
  color: #000;
  font-family: "VT323", monospace;
  font-size: 1.65rem;
  line-height: 1;
  animation: sign-wobble 1.5s ease-in-out infinite;
}

@keyframes sign-wobble {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

/* ---------- Right sidebar widgets ---------- */

.status-heading {
  margin: 0 0 7px;
  color: var(--lime);
  font-family: "VT323", monospace;
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.55);
}

.status-label {
  margin: 0;
  color: #ff9cf0;
  font-family: "VT323", monospace;
  font-size: 0.98rem;
  letter-spacing: 0.13em;
  text-align: center;
}

.countdown {
  margin: 1px 0 6px;
  color: var(--lime);
  font-family: "VT323", monospace;
  font-size: 1.48rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 0 9px rgba(57, 255, 20, 0.45);
}

.status-small {
  margin: 5px 0 0;
  color: #bda9e8;
  font-size: 0.96rem;
  line-height: 1.1;
  text-align: center;
}

.midi-file {
  margin: 0 0 7px;
  color: var(--yellow);
  font-size: 1.1rem;
  line-height: 1;
  text-align: center;
}

.big-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 7px 8px;
  color: var(--ink);
  background: linear-gradient(#fff9b0, var(--yellow) 45%, #e7a000 100%);
  border: 3px outset #fffbd1;
  box-shadow: 3px 3px 0 #000;
  font-family: "VT323", monospace;
  font-size: 1.2rem;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  text-shadow: 1px 1px 0 #fff;
  text-transform: uppercase;
  cursor: pointer;
}

.big-button:hover {
  color: var(--ink);
  background: linear-gradient(#ffffff, var(--lime) 55%, #17a000);
}

.big-button:active {
  border-style: inset;
  transform: translate(1px, 1px);
  box-shadow: none;
}

.midi-button[aria-pressed="true"] {
  background: linear-gradient(#ffb3e8, var(--pink) 55%, #9b0080);
  border-color: #ffd1f8;
  color: #fff;
  text-shadow: 1px 1px 0 #4a003a;
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  margin: 8px 0 5px;
  padding: 3px;
  background: #020008;
  border: 2px inset #6f6f6f;
}

.equalizer span {
  flex: 1 1 0;
  height: 20%;
  background: linear-gradient(to top, var(--lime), var(--cyan) 65%, var(--yellow));
  box-shadow: 0 0 4px rgba(57, 255, 20, 0.5);
  animation: equalize 0.6s steps(4, end) infinite alternate;
  animation-play-state: paused;
}

.equalizer span:nth-child(2) { animation-delay: -0.12s; animation-duration: 0.48s; }
.equalizer span:nth-child(3) { animation-delay: -0.3s; animation-duration: 0.72s; }
.equalizer span:nth-child(4) { animation-delay: -0.05s; animation-duration: 0.52s; }
.equalizer span:nth-child(5) { animation-delay: -0.24s; animation-duration: 0.66s; }
.equalizer span:nth-child(6) { animation-delay: -0.17s; animation-duration: 0.44s; }
.equalizer span:nth-child(7) { animation-delay: -0.35s; animation-duration: 0.78s; }

.panel-midi.is-playing .equalizer span {
  animation-play-state: running;
}

@keyframes equalize {
  0% { height: 12%; }
  35% { height: 88%; }
  65% { height: 42%; }
  100% { height: 100%; }
}

.midi-note {
  margin: 6px 0 0;
  color: #bda9e8;
  font-size: 0.92rem;
  line-height: 1.05;
  text-align: center;
}

.counter-body {
  text-align: center;
}

.counter-label {
  margin: 0 0 5px;
  color: #ff9cf0;
  font-size: 0.98rem;
  line-height: 1;
  letter-spacing: 0.08em;
}

.odometer {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #020008;
  border: 2px inset #6f6f6f;
}

.odometer span {
  flex: 1 1 0;
  padding: 1px 0;
  color: var(--lime);
  background: #050014;
  border: 1px solid #1d5c14;
  font-family: "VT323", monospace;
  font-size: 1.55rem;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 0 7px rgba(57, 255, 20, 0.8);
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li + li {
  margin-top: 3px;
}

.link-list a {
  color: var(--cyan);
  font-size: 1.04rem;
  line-height: 1.1;
  text-decoration: none;
}

.link-list a:hover {
  color: var(--ink);
  background: var(--yellow);
  text-decoration: underline;
}

.link-note {
  margin: 8px 0 0;
  color: #9e8bc8;
  font-size: 0.88rem;
  line-height: 1.05;
  text-align: center;
}

/* ---------- Footer ---------- */

.footer {
  margin-top: 22px;
}

.rainbow-bar {
  height: 9px;
  background: linear-gradient(90deg, #ff0000, #ff7a00, #ffe600, #39ff14, #00f0ff, #2a5cff, #7b2cff, #ff2bd6, #ff0000);
  background-size: 200% 100%;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  animation: rainbow-slide 7s linear infinite;
}

@keyframes rainbow-slide {
  to { background-position: 200% 0; }
}

.footer-inner {
  padding: 18px 16px 15px;
  text-align: center;
  background: rgba(10, 0, 35, 0.94);
  border-left: 2px dashed var(--cyan);
  border-right: 2px dashed var(--cyan);
  font-family: "VT323", monospace;
  color: #e3d9ff;
  text-shadow: 1px 1px 0 #000;
}

.footer-inner p {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.footer-big {
  color: var(--yellow);
  font-family: "Luckiest Guy", Impact, "Arial Black", sans-serif;
  font-size: clamp(1.55rem, 4.2vw, 2.25rem) !important;
  line-height: 1 !important;
  letter-spacing: 0.03em;
  text-shadow: 2px 2px 0 var(--pink), 4px 4px 0 #3b0060;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.footer-links a,
.link-button {
  color: var(--cyan);
  font-family: "VT323", monospace;
  font-size: 1.05rem;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

.footer-links a:hover,
.link-button:hover {
  color: var(--ink);
  background: var(--yellow);
}

.footer-badges {
  margin: 9px 0 7px;
}

.badge-small {
  width: 96px;
  height: 28px;
  font-size: 0.71rem;
}

.footer-fine {
  max-width: 760px;
  margin: 0 auto 5px !important;
  color: #b6a5dc;
  font-size: 0.96rem !important;
  line-height: 1.12 !important;
}

.footer-fine a {
  color: var(--yellow);
}

/* ---------- Guestbook dialog ---------- */

.guestbook-dialog {
  width: min(660px, calc(100% - 22px));
  max-width: none;
  max-height: calc(100vh - 24px);
  margin: auto;
  padding: 0;
  overflow: visible;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.guestbook-dialog::backdrop {
  background: rgba(4, 0, 16, 0.84);
  backdrop-filter: blur(2px);
}

.guestbook-window {
  padding: 3px;
  background: var(--win-gray);
  border: 3px solid;
  border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.65);
}

.guestbook-body {
  max-height: min(78vh, 720px);
  padding: 18px 22px 20px;
  overflow-y: auto;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(26, 0, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 0, 51, 0.035) 1px, transparent 1px);
  background-size: 21px 21px;
}

.guestbook-kicker {
  margin: 0 0 3px;
  color: #a0007c;
  font-family: "VT323", monospace;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
}

.guestbook-heading {
  margin-top: 0;
  font-size: clamp(1.8rem, 6vw, 2.55rem);
}

.guestbook-intro {
  margin: 0 0 14px;
  font-size: 0.97rem;
  line-height: 1.4;
}

.guestbook-form {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: #f4eaff;
  border: 2px solid #c39bff;
  box-shadow: 3px 3px 0 rgba(26, 0, 51, 0.14);
}

.guestbook-form label {
  color: #5a00a3;
  font-family: "VT323", monospace;
  font-size: 1.05rem;
  line-height: 1;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  padding: 7px 9px;
  color: var(--ink);
  background: #fff;
  border: 2px inset #8a8a8a;
  font-family: "Comic Neue", "Comic Sans MS", cursive;
  font-size: 0.95rem;
  font-weight: 700;
}

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

.guestbook-form .big-button {
  margin-top: 4px;
}

.form-status {
  min-height: 1.1em;
  margin: 1px 0 0 !important;
  color: #0a7a00;
  font-family: "VT323", monospace;
  font-size: 1rem;
  line-height: 1.1;
}

.guestbook-divider {
  margin: 16px 0 10px;
  color: var(--pink);
  font-family: "VT323", monospace;
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  text-align: center;
}

.guestbook-subhead {
  margin: 0 0 8px;
  color: #2b0060;
  font-family: "Luckiest Guy", Impact, "Arial Black", sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.guestbook-entries {
  display: grid;
  gap: 7px;
}

.guestbook-entry {
  padding: 8px 11px;
  background: #fbf7ff;
  border: 2px solid #d5c2ff;
  border-left: 5px solid var(--pink);
  box-shadow: 2px 2px 0 rgba(26, 0, 51, 0.1);
}

.entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 3px;
}

.entry-name {
  color: #a0007c;
  font-family: "VT323", monospace;
  font-size: 1.12rem;
  line-height: 1;
}

.entry-date {
  color: #76658f;
  font-family: "VT323", monospace;
  font-size: 0.9rem;
  line-height: 1;
}

.entry-message {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  line-height: 1.3;
}

.entry-empty {
  padding: 10px;
  color: #6f5a8c;
  background: #f8f2ff;
  border: 2px dashed #c39bff;
  font-family: "VT323", monospace;
  font-size: 1rem;
  text-align: center;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 120;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 9px 17px;
  color: var(--yellow);
  background: var(--deep);
  border: 3px solid var(--pink);
  box-shadow: 5px 5px 0 var(--cyan);
  font-family: "VT323", monospace;
  font-size: 1.1rem;
  line-height: 1.15;
  text-align: center;
  transform: translate(-50%, 14px);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Blinking (use responsibly, or not) ---------- */

.blink {
  animation: blink 1.15s steps(2, end) infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.15; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 170px minmax(0, 1fr);
    grid-template-areas:
      "left main"
      "right right";
  }

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

  .sidebar-right .panel {
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 14px, 700px);
    margin-top: 12px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main"
      "left"
      "right";
    gap: 12px;
  }

  .sidebar-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .sidebar-left .panel {
    margin-bottom: 0;
  }

  .sidebar-left .panel:first-child {
    grid-column: 1 / -1;
  }

  .sidebar-left .nav-stack {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .tab-panel {
    padding: 15px 15px 19px;
    font-size: 1rem;
  }

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

  .menubar {
    gap: 9px;
    overflow: hidden;
  }

  .menubar-right {
    display: none;
  }

  .tagline {
    padding: 6px 12px;
  }

  .award-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 560px) {
  .top-ticker {
    min-height: 33px;
  }

  .ticker-label {
    padding: 0 8px;
    font-size: 1.05rem;
  }

  .ticker-copy {
    font-size: 1.08rem;
  }

  .masthead {
    padding-top: 15px;
  }

  .eyebrow {
    letter-spacing: 0.06em;
  }

  .badge-row {
    gap: 4px;
  }

  .web-badge {
    transform: scale(0.92);
    transform-origin: center;
  }

  .window-titlebar {
    font-size: 11px;
  }

  .window-app-icon {
    display: none;
  }

  .menubar {
    gap: 7px;
    font-size: 10px;
  }

  .tab {
    flex: 1 1 0;
    padding: 6px 7px 7px;
    font-size: 12px;
  }

  .tab-icon {
    display: none;
  }

  .panel-kicker {
    font-size: 0.93rem;
  }

  .content-heading {
    text-shadow:
      2px 2px 0 var(--yellow),
      4px 4px 0 var(--pink);
  }

  .topic-list li {
    padding: 6px 8px;
    font-size: 0.93rem;
  }

  .ways-in {
    font-size: 0.96rem;
  }

  .ways-in th,
  .ways-in td {
    padding: 5px 6px;
  }

  .ways-in tbody th {
    width: 42%;
  }

  .sidebar-right {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar-left {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar-left .nav-stack {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar-left .panel:first-child {
    grid-column: auto;
  }

  .award-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .construction-body {
    gap: 7px;
    padding: 7px 6px;
  }

  .construction-body strong {
    font-size: 1.08rem;
  }

  .construction-body small {
    font-size: 0.88rem;
  }

  .construction-icon {
    font-size: 1.3rem;
  }

  .footer-inner {
    padding-left: 10px;
    padding-right: 10px;
  }

  .guestbook-body {
    padding: 15px 13px 18px;
  }
}

/* ---------- Motion preferences ---------- */

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

  .ticker-track {
    animation: none;
    transform: none;
  }

  .ticker-viewport {
    overflow-x: auto;
  }

  .starfield,
  .starfield::before,
  .wordart,
  .flame-row,
  .rainbow-bar,
  .construction-stripes,
  .construction-icon,
  .topic-star,
  .blink,
  .led,
  .equalizer span {
    animation: none !important;
  }

  .starfield::before {
    opacity: 0.5;
  }

  .sparkle-layer {
    display: none;
  }

  .toast {
    transition: none;
  }
}

/* ---------- Window control states ---------- */

.window.is-minimized .menubar,
.window.is-minimized .window-body,
.window.is-minimized .statusbar {
  display: none;
}

.window.is-maximized {
  position: fixed;
  inset: 12px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
}

.window.is-maximized .window-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.window.is-maximized .tab-panels {
  flex: 1 1 auto;
}

.window.is-maximized .tab-panel {
  height: 100%;
}

@media (max-width: 560px) {
  .window.is-maximized {
    inset: 5px;
  }
}

/* Last-resort wordart fallback for browsers without clipped backgrounds */
@supports not (background-clip: text) {
  .wordart {
    color: var(--pink);
    background: none;
    -webkit-text-fill-color: var(--pink);
  }
}

/* Keep the pixel font crisp instead of letting the browser fake-bold it */
.panel-body,
.nav-button,
.tiny-button,
.web-badge,
.award,
.flame-row,
.eyebrow,
.tagline,
.panel-kicker,
.schedule-sign,
.ways-in,
.footer-inner,
.status-heading,
.status-label,
.countdown,
.status-small,
.counter-label,
.odometer,
.midi-file,
.big-button,
.midi-note,
.link-list a,
.link-note,
.guestbook-kicker,
.guestbook-form label,
.form-status,
.guestbook-divider,
.entry-name,
.entry-date,
.entry-empty,
.toast,
.skip-link,
.profile-handle,
.profile-stamp,
.join-title,
.big-link,
.construction-body small,
.construction-icon,
.ticker-label,
.ticker-copy,
.window-app-icon,
.tab-icon,
.statusbar,
.footer-links a,
.link-button,
.footer-big {
  font-weight: 400;
}
