/* THE GOD TERMINAL — the costume's web browser (js/costume-web.js).
 * Off-palette on purpose, like the costume: Luna-beige browser chrome, Win98 grey popups,
 * and pages dressed however their webmasters thought looked kewl. */

/* ───────── browser chrome ───────── */
.cw {
  --cw-comic: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Comic Neue', cursive;
  --cw-times: 'Times New Roman', Times, Georgia, serif;
  --cw-arial: Arial, Helvetica, sans-serif;
  --cw-verdana: Verdana, Geneva, Tahoma, sans-serif;
  --cw-impact: Impact, 'Arial Black', Haettenschweiler, sans-serif;
  --cw-mono: 'Lucida Console', 'Courier New', var(--font-mono), monospace;
  --cw-spring: cubic-bezier(.2, 1.6, .4, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--cs-face);
  font-size: 0.875rem;
}
.cw .cw-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cw input, .cw textarea { user-select: text; -webkit-user-select: text; }

.cw-menubar {
  display: flex;
  gap: 0.1rem;
  padding: 0.1rem 0.25rem;
  border-bottom: 1px solid #d8d4c4;
  background: linear-gradient(#fbfaf6, #ece9d8);
}
.cw-menu {
  min-height: 1.85rem;
  padding: 0 0.65rem;
  border: 0;
  border-radius: 2px;
  background: none;
  color: #000;
  font-size: 0.875rem;
  transition: transform 120ms var(--cw-spring);
}
.cw-menu:hover, .cw-menu.is-open { background: var(--cs-select); color: #fff; }
.cw-menu.is-pressed { transform: scale(1.1); }

.cw-toolbar {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.25rem 0.35rem;
  border-bottom: 1px solid #c9c5b4;
  background: linear-gradient(180deg, #fdfcf9 0%, #f3f1e8 55%, #e2dfd0 100%);
  box-shadow: inset 0 1px 0 #fff;
}
.cw-tool {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.2rem 0.6rem 0.2rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
  color: #1b1b1b;
  font-size: 0.875rem;
  transition: transform 120ms var(--cw-spring), background-color 120ms, border-color 120ms;
}
.cw-tool-icon { flex: none; width: 2.1rem; height: 2.1rem; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.28)); }
.cw-tool:hover:not(:disabled) { border-color: #cbc6b2; background: linear-gradient(#fff, #f1efe6); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.cw-tool.is-pressed { transform: scale(1.1); background: linear-gradient(#e6e3d6, #f8f7f2); }
.cw-tool:disabled { color: #9b9b9b; }
.cw-tool:disabled .cw-tool-icon { filter: grayscale(1) opacity(0.4); }
.cw-sep { align-self: stretch; width: 1px; margin: 0.35rem 0.25rem; background: #c9c5b4; box-shadow: 1px 0 0 #fff; }

/* The throbber: a little globe that spins while a comet orbits it. */
.cw-throb {
  position: relative;
  flex: none;
  width: 3.4rem;
  height: 2.75rem;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid #22386a;
  border-radius: 3px;
  background:
    radial-gradient(1px 1px at 18% 24%, #fff 60%, transparent 70%),
    radial-gradient(1px 1px at 78% 18%, #cfe3ff 60%, transparent 70%),
    radial-gradient(1px 1px at 86% 76%, #fff 60%, transparent 70%),
    radial-gradient(1px 1px at 12% 80%, #cfe3ff 60%, transparent 70%),
    radial-gradient(circle at 50% 130%, #2c63c8 0%, #102a63 55%, #060f2a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.cw-throb-globe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.7rem;
  height: 1.7rem;
  margin: -0.85rem 0 0 -0.85rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 28%, rgba(255, 255, 255, 0.75), transparent 40%),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(170, 225, 255, 0.55) 5px 6px),
    radial-gradient(circle at 50% 50%, #59b0f5, #1b5fc2 62%, #0a2c6a);
  background-size: 100% 100%, 12px 100%, 100% 100%;
  box-shadow: 0 0 8px rgba(120, 190, 255, 0.65);
}
.cw.is-busy .cw-throb-globe { animation: cw-globe 0.7s linear infinite; }
@keyframes cw-globe { to { background-position: 0 0, 12px 0, 0 0; } }
.cw-throb-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.7rem;
  height: 2.7rem;
  margin: -1.35rem 0 0 -1.35rem;
  border: 1px solid rgba(255, 228, 140, 0.35);
  border-radius: 50%;
  transform: rotate(-24deg) scaleY(0.36);
}
.cw-throb-orbit i { position: absolute; inset: -1px; border-radius: 50%; }
.cw-throb-orbit i::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -4px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #fff6c2;
  box-shadow: 0 0 6px 3px #ffd23a;
}
.cw.is-busy .cw-throb-orbit i { animation: cw-orbit 0.9s linear infinite; }
@keyframes cw-orbit { to { transform: rotate(360deg); } }

.cw-addr {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.4rem;
  border-bottom: 1px solid #c9c5b4;
  background: var(--cs-face);
}
.cw-addr-label { color: #6b6b6b; font-size: 0.875rem; }
.cw-addr-field {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 2.1rem;
  border: 1px solid #7f9db9;
  background: #fff;
}
.cw-addr-icon { flex: none; width: 1.3rem; height: 1.3rem; margin: 0 0.3rem 0 0.35rem; }
.cw-url {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: #000;
  font-family: var(--cs-font);
  font-size: max(0.9375rem, 16px);
}
.cw-url::selection { background: var(--cs-select); color: #fff; }
.cw-addr-drop {
  position: relative;
  flex: none;
  width: 1.5rem;
  height: 100%;
  border: 0;
  border-left: 1px solid #c3d3fd;
  background: linear-gradient(#eef3fd, #c6d7fb);
  transition: transform 120ms var(--cw-spring);
}
.cw-addr-drop::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -2px 0 0 -5px;
  border: 5px solid transparent;
  border-top-color: #4d6185;
}
.cw-addr-drop:hover, .cw-addr-drop.is-open { background: linear-gradient(#fdfeff, #d6e3fd); }
.cw-addr-drop.is-pressed { transform: scale(1.15); }
.cw-go {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.1rem;
  padding: 0 0.55rem 0 0.25rem;
  border: 1px solid transparent;
  border-radius: 3px;
  background: none;
  color: #000;
  font-size: 0.875rem;
  transition: transform 120ms var(--cw-spring);
}
.cw-go-icon { flex: none; width: 1.45rem; height: 1.45rem; }
.cw-go:hover { border-color: #cbc6b2; background: linear-gradient(#fff, #f1efe6); }
.cw-go.is-pressed { transform: scale(1.12); }

.cw-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 2px;
  overflow: hidden;
  border: 1px solid #7f9db9;
  background: #fff;
}
.cw-view {
  position: absolute;
  inset: 0;
  overflow: auto;
  overscroll-behavior: contain;
  container-type: inline-size;
  background: #fff;
}
.cw-view::-webkit-scrollbar { width: 17px; height: 17px; }
.cw-view::-webkit-scrollbar-track { background: #f4f3ee; box-shadow: inset 1px 0 0 #e3e1d6; }
.cw-view::-webkit-scrollbar-thumb { border: 1px solid #93a8d8; border-radius: 3px; background: linear-gradient(90deg, #d6e3fe, #bcd0fb 50%, #aac1f6); }
.cw-view::-webkit-scrollbar-thumb:hover { background: linear-gradient(90deg, #e3ecff, #c9daff 50%, #b8cdfb); }
.cw-layer { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.cw-layer > .cw-pop { pointer-events: auto; }

.cw-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.9rem;
  padding: 0 0.45rem;
  border-top: 1px solid #fff;
  background: var(--cs-face);
  color: #222;
  font-size: 0.8125rem;
}
.cw-status-main { display: flex; align-items: center; gap: 0.35rem; flex: 1; min-width: 0; }
.cw-status-icon { flex: none; width: 1.1rem; height: 1.1rem; }
.cw-status-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-progress {
  flex: none;
  width: 8.5rem;
  height: 1.1rem;
  padding: 2px;
  border: 1px solid #a9a594;
  border-radius: 2px;
  background: #fff;
  opacity: 0;
  transition: opacity 260ms;
}
.cw-progress.is-on { opacity: 1; }
.cw-progress-fill {
  display: block;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 55%),
    repeating-linear-gradient(90deg, #35b83a 0 7px, transparent 7px 9px);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 140ms linear;
}
.cw-zone { display: flex; align-items: center; gap: 0.35rem; flex: none; padding-left: 0.6rem; border-left: 1px solid #c9c5b4; box-shadow: inset 1px 0 0 #fff; }
.cw-zone-icon { width: 1.1rem; height: 1.1rem; }

.cw-dd {
  position: absolute;
  z-index: 20;
  min-width: 13rem;
  padding: 2px;
  border: 1px solid #aca899;
  background: #fff;
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.35);
}
.cw-dd-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.2rem;
  padding: 0.2rem 1rem 0.2rem 0.45rem;
  border: 0;
  background: none;
  color: #000;
  font-size: 0.875rem;
  text-align: left;
  white-space: nowrap;
  transform-origin: 15% 50%;
  transition: transform 120ms var(--cw-spring);
}
.cw-dd-item:hover:not(:disabled) { background: var(--cs-select); color: #fff; }
.cw-dd-item:disabled { color: #a0a0a0; }
.cw-dd-item:disabled .cw-dd-icon { filter: grayscale(1) opacity(0.5); }
.cw-dd-item.is-pressed { transform: scale(1.05); }
.cw-dd-icon { flex: none; width: 1.25rem; height: 1.25rem; }
.cw-dd-sep { margin: 2px; border: 0; border-top: 1px solid #ccc8b8; }

/* ───────── pages: the dial-up reveal and shared period furniture ───────── */
.cw-pg { min-height: 100%; font-size: 1rem; line-height: 1.35; overflow-wrap: break-word; }
.cw-pg.is-loading .cw-r:not(.is-in), .cw-pg.is-loading .cw-img:not(.is-in) { visibility: hidden; }
.cw-img { position: relative; display: inline-block; vertical-align: middle; }
.cw-img.is-broken > * { visibility: hidden; }
.cw-img.is-broken::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid #a0a0a0;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
  background: #f2f2f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 1.5h7l4 4v9h-11z' fill='%23fff' stroke='%23888'/%3E%3Cpath d='M5 7.5l6 6M11 7.5l-6 6' stroke='%23e0392b' stroke-width='2'/%3E%3C/svg%3E") 5px 5px / 18px 18px no-repeat;
}
.cw-px { display: block; image-rendering: crisp-edges; image-rendering: pixelated; }

.cw-a {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  color: #0000ee;
  font: inherit;
  text-decoration: underline;
  vertical-align: baseline;
  transition: transform 120ms var(--cw-spring);
}
.cw .cw-a { cursor: pointer; }
.cw-a:hover { color: #e00000; }
.cw-a.is-visited { color: #551a8b; }
.cw-a.is-pressed { transform: scale(1.12); }

.cw-blink { animation: cw-blink 1.05s steps(1, end) infinite; }
@keyframes cw-blink { 50% { visibility: hidden; } }

.cw-marquee { overflow: hidden; white-space: nowrap; }
.cw-marquee-track { display: inline-block; padding-left: 100%; animation: cw-marquee var(--cw-marquee-s, 14s) linear infinite; }
@keyframes cw-marquee { to { transform: translateX(-100%); } }

.cw-counter {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  vertical-align: middle;
  border: 2px outset #777;
  background: #222;
}
.cw-digit {
  display: inline-block;
  min-width: 1.15em;
  overflow: hidden;
  background: linear-gradient(#000, #2a2a2a 49%, #000 51%, #1c1c1c);
  color: #7dff6a;
  font: 700 1.125rem/1.35 var(--cw-mono);
  text-align: center;
  text-shadow: 0 0 6px rgba(125, 255, 106, 0.7);
}

.cw-uc { display: inline-flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.cw-uc-sign { width: 5.5rem; height: 5.5rem; filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.35)); }
.cw-uc-dig { transform-origin: 44px 45px; animation: cw-dig 0.55s ease-in-out infinite alternate; }
@keyframes cw-dig { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
.cw-uc-tape {
  padding: 0.15rem 0.6rem;
  border: 5px solid;
  border-image: repeating-linear-gradient(-45deg, #111 0 5px, #ffc400 5px 10px) 5;
  background: #ffc400;
  color: #111;
  font: 900 0.8125rem/1.2 var(--cw-arial);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.cw-88s { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin: 1rem 0; }
.cw-88 {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 6.8rem;
  height: 2.5rem;
  padding: 0 0.4rem;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.55), inset -1px -1px 0 rgba(0, 0, 0, 0.35);
  font-family: var(--cw-verdana);
  line-height: 1.05;
  text-align: left;
  text-shadow: none;
}
.cw-88 small { font-size: 0.75rem; }
.cw-88 b { font-size: 0.95rem; letter-spacing: 0.02em; }
.cw-88.is-blue { background: linear-gradient(#6b98ff, #1d3fa8); color: #fff; }
.cw-88.is-green { background: linear-gradient(#66dc78, #1b7a2a); color: #fff; }
.cw-88.is-red { background: linear-gradient(#ff7a5a, #a3160c); color: #fff; }
.cw-88.is-grey { background: linear-gradient(#f2f2f2, #9a9a9a); color: #111; }

.cw-ring {
  max-width: 26rem;
  margin: 1rem auto;
  padding: 0.5rem 0.8rem;
  border: 4px ridge #c0c0c0;
  background: #fff;
  color: #000;
  font-family: var(--cw-times);
  text-align: center;
}
.cw-ring-name { font-size: 1.0625rem; font-weight: 700; }
.cw-ring-links { margin-top: 0.2rem; font-size: 1rem; }
.cw-ring-sep { margin: 0 0.55rem; color: #888; }

.cw-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.25rem 0.85rem 0.25rem 0.45rem;
  border: 2px outset #dcdcdc;
  background: linear-gradient(#fefefe, #d7d7d7);
  color: #0000cc;
  font: 700 0.9375rem var(--cw-comic);
  transition: transform 120ms var(--cw-spring);
}
.cw .cw-pill { cursor: pointer; }
.cw-pill:hover { color: #e00000; }
.cw-pill.is-pressed { transform: scale(1.08); border-style: inset; }
.cw-pill-icon { flex: none; width: 1.6rem; height: 1.6rem; }
.cw-mail-env { animation: cw-spin3d 1.8s linear infinite; }
@keyframes cw-spin3d { to { transform: rotateY(360deg); } }

/* ───────── in-page windows (Win98 grey: the web's own popups) ───────── */
.cw-pop {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  max-width: calc(100% - 8px);
  padding: 2px;
  border: 2px solid;
  border-color: #dfdfdf #404040 #404040 #dfdfdf;
  background: #c0c0c0;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080, 4px 6px 16px rgba(0, 0, 0, 0.42);
  color: #000;
  font-family: Tahoma, var(--cw-arial);
}
.cw-pop-bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.8rem;
  padding: 0 2px 0 0.45rem;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  touch-action: none;
}
.cw-pop-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; font-weight: 700; }
.cw-pop-x {
  position: relative;
  flex: none;
  width: 1.5rem;
  height: 1.35rem;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: #c0c0c0;
  box-shadow: inset -1px -1px 0 #808080;
  transition: transform 120ms var(--cw-spring);
}
.cw-pop-x::before, .cw-pop-x::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  height: 2px;
  background: #000;
  transform: translate(-50%, -50%) rotate(45deg);
}
.cw-pop-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.cw-pop-x.is-pressed { transform: scale(1.18); border-color: #404040 #fff #fff #404040; }
.cw-pop-body { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.85rem 0.85rem 0.35rem; }
.cw-pop-icon { flex: none; width: 2.3rem; height: 2.3rem; filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.2)); }
.cw-pop-main { flex: 1; min-width: 0; }
.cw-pop-text { margin: 0.15rem 0 0; font-size: 0.9375rem; line-height: 1.38; }
.cw-pop-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; padding: 0.5rem 0.6rem 0.75rem; }
.cw-pop-btn {
  min-width: 5.4rem;
  min-height: 2.2rem;
  padding: 0 0.85rem;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: #c0c0c0;
  box-shadow: inset -1px -1px 0 #808080;
  color: #000;
  font: 0.875rem Tahoma, var(--cw-arial);
  transition: transform 120ms var(--cw-spring);
}
.cw-pop-btn:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }
.cw-pop-btn.is-pressed { transform: scale(1.1); border-color: #404040 #fff #fff #404040; }
.cw-pop.is-loud .cw-pop-text { color: #d00000; font: 900 1.05rem/1.3 var(--cw-arial); animation: cw-loud 0.9s steps(1, end) infinite; }
@keyframes cw-loud { 50% { color: #0018d0; } }
.cw-pop.is-final .cw-pop-bar { background: linear-gradient(90deg, #006a5a, #20b49a); }

.cw-gb { display: flex; flex-direction: column; gap: 0.25rem; }
.cw-gb-label { font-size: 0.8125rem; }
.cw-field {
  width: 100%;
  padding: 0.3rem 0.4rem;
  border: 2px inset #fff;
  background: #fff;
  color: #000;
  font-family: var(--cw-comic);
  font-size: max(0.9375rem, 16px);
  resize: none;
}
.cw-load { display: block; height: 1.15rem; margin-top: 0.55rem; padding: 2px; border: 2px inset #fff; background: #fff; }
.cw-load-fill { display: block; height: 100%; background: repeating-linear-gradient(90deg, #000080 0 10px, transparent 10px 12px); transform: scaleX(0); transform-origin: left; }
.cw-src .cw-pop-body { padding: 2px; }
.cw-src-pre {
  max-height: 18rem;
  margin: 0;
  padding: 0.5rem 0.6rem;
  overflow: auto;
  border: 2px inset #fff;
  background: #fff;
  color: #000;
  font: 0.8125rem/1.45 var(--cw-mono);
  white-space: pre-wrap;
  user-select: text;
  -webkit-user-select: text;
}
.cw-about { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.875rem; }
.cw-about b { font-size: 1rem; }

/* Effects drawn in the page layer (the terminal's particle canvas sits under the costume). */
.cw-spark {
  position: absolute;
  z-index: 10000;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 0 10px currentColor, 0 0 3px #fff, 0 0 2px #fff;
  will-change: transform, opacity;
}
.cw-glitter { font-size: 1.3rem; }
.cw-shock {
  position: absolute;
  z-index: 9998;
  width: 10rem;
  height: 10rem;
  border: 3px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 14px currentColor, inset 0 0 14px currentColor;
  pointer-events: none;
}
.cw-trail { position: absolute; left: -0.25rem; top: -0.1rem; z-index: 9999; width: 1.15rem; height: 1.15rem; pointer-events: none; }
.cw-float {
  position: absolute;
  z-index: 10001;
  pointer-events: none;
  font: 900 2.7rem/1 var(--cw-comic);
  white-space: nowrap;
  -webkit-text-stroke: 3px #fff;
  paint-order: stroke fill;
  text-shadow: 2px 3px 0 rgba(0, 0, 0, 0.35);
}
.cw-float.is-red { color: #e00000; }
.cw-float.is-gold { color: #ffcc00; -webkit-text-stroke-color: #7a3e00; }

/* ───────── Crumbmoor MUD ───────── */
.cw-mud {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.75rem;
  background: #1c1a26 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32'%3E%3Crect width='64' height='32' fill='%231c1a26'/%3E%3Cpath d='M0 15.5h64M0 31.5h64M32 0v16M1 16v16M63 16v16' stroke='%23000' stroke-width='2' opacity='.55'/%3E%3Cpath d='M2 1.5h28M34 1.5h28M2 17.5h28M34 17.5h28' stroke='%23fff' stroke-opacity='.06'/%3E%3C/svg%3E");
  color: #c0c0c0;
  font-family: var(--cw-verdana);
}
.mud-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0.1rem 0.9rem; text-align: center; }
.mud-logo {
  color: #ffd23a;
  font: 3rem/0.95 var(--font-display);
  letter-spacing: 0.14em;
  text-shadow: 3px 3px 0 #a33a00, 0 0 18px rgba(255, 170, 40, 0.45);
}
.mud-tag { color: #a7a7b8; font-size: 0.875rem; }
.mud-online { color: #6f6; font-weight: 700; white-space: nowrap; }
.mud-applet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 56rem;
  flex: 1;
  min-height: 22rem;
  margin: 0 auto;
  padding: 3px;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  background: #c0c0c0;
}
.mud-applet-bar {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.2rem 0.45rem;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font: 700 0.8125rem Tahoma, var(--cw-arial);
}
.mud-applet-host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; opacity: 0.85; }
.mud-screen-wrap { position: relative; flex: 1; min-height: 10rem; border: 2px inset #fff; border-bottom: 0; background: #000; }
.mud-screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 0.5rem 0.65rem;
  color: #c0c0c0;
  font: 0.9375rem/1.38 var(--cw-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  scrollbar-color: #4a4a4a #000;
  user-select: text;
  -webkit-user-select: text;
}
.mud-line.mud-banner { font-weight: 700; line-height: 1.02; white-space: pre; overflow-wrap: normal; }
.mud-line.mud-quest { margin: 0.2rem 0; text-shadow: 0 0 10px rgba(255, 210, 60, 0.9); animation: mud-quest 1.6s ease-out; }
@keyframes mud-quest { from { background: rgba(255, 210, 60, 0.6); } to { background: transparent; } }
.mud-flash {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 55%, rgba(255, 240, 160, 0.95), rgba(255, 170, 30, 0.35) 45%, transparent 75%);
}
.mud-input-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.35rem 0.25rem 0.65rem;
  border: 2px inset #fff;
  border-top: 1px solid #333;
  background: #000;
  font: 0.9375rem var(--cw-mono);
}
.mud-prompt { flex: none; white-space: nowrap; }
.mud-input {
  flex: 1;
  min-width: 0;
  height: 2.2rem;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  caret-color: #6f6;
  font-family: var(--cw-mono);
  font-size: max(0.9375rem, 16px);
}
.mud-send, .mud-macro {
  flex: none;
  min-height: 2.3rem;
  padding: 0 0.7rem;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: #c0c0c0;
  box-shadow: inset -1px -1px 0 #808080;
  color: #000;
  font: 700 0.8125rem/1 Tahoma, var(--cw-arial);
  transition: transform 120ms var(--cw-spring);
}
.mud-macros { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.3rem 0.1rem 0.1rem; }
.mud-macro { min-width: 2.9rem; }
.mud-send.is-pressed, .mud-macro.is-pressed { transform: scale(1.12); border-color: #404040 #fff #fff #404040; }
.mud-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.3rem 0.5rem; font-size: 0.9375rem; }
.mud-foot .cw-a { color: #ffff55; }
.mud-foot .cw-a.is-visited { color: #ff88ff; }
.mud-foot .cw-pill { min-height: 2.3rem; font-size: 0.875rem; }
.mud-best { color: #8a8a99; font-size: 0.8125rem; text-align: center; }
.mud-r { color: #cd3a3a; }
.mud-R { color: #ff6060; }
.mud-g { color: #30c030; }
.mud-G { color: #60ff60; }
.mud-y { color: #d0a040; }
.mud-Y { color: #ffff60; }
.mud-b { color: #5a78ff; }
.mud-B { color: #8aa4ff; }
.mud-m { color: #c848c8; }
.mud-M { color: #ff70ff; }
.mud-c { color: #30c0c0; }
.mud-C { color: #60ffff; }
.mud-w { color: #c0c0c0; }
.mud-W { color: #fff; }
.mud-d { color: #7a7a7a; }

/* ───────── Darren's homepage ───────── */
.cw-darren {
  padding: 1rem 0.7rem 2rem;
  background: #0a1650 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cg fill='%23ffe866'%3E%3Cpath d='M18 10l2.4 5.2 5.6.6-4.2 3.8 1.2 5.6-5-2.9-5 2.9 1.2-5.6-4.2-3.8 5.6-.6z'/%3E%3Ccircle cx='64' cy='22' r='1.6'/%3E%3Ccircle cx='38' cy='58' r='1.1'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Ccircle cx='76' cy='66' r='1.7'/%3E%3Ccircle cx='10' cy='72' r='1.1'/%3E%3Cpath d='M58 68l1.5 3.6 3.8.4-2.9 2.5.9 3.8-3.3-2-3.3 2 .9-3.8-2.9-2.5 3.8-.4z'/%3E%3C/g%3E%3C/svg%3E");
  color: #000;
  font-family: var(--cw-comic);
}
.dar-card {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1rem 1.2rem 1.4rem;
  border: 6px ridge #c0c0c0;
  background: #fffbe2;
  box-shadow: 0 0 0 3px #000, 8px 10px 0 rgba(0, 0, 0, 0.45);
  text-align: center;
}
.dar-title { margin: 0.2rem 0 0.35rem; font: italic 900 2.6rem/1.05 var(--cw-times); }
.dar-title span {
  background: linear-gradient(90deg, #ff1a1a, #ff8a00, #ffe600, #00c832, #0066ff, #8a00ff, #ff1a1a) 0 0 / 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px #000;
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.3));
  animation: dar-rainbow 3s linear infinite;
}
@keyframes dar-rainbow { to { background-position: -200% 0; } }
.dar-new { margin: 0 0 0.4rem; color: #b00000; font-weight: 700; }
.dar-newbadge { display: inline-block; padding: 0 0.35rem; background: #f00; color: #ff0; font-weight: 900; transform: rotate(-6deg); }
.dar-marquee { margin: 0.4rem -1.2rem 0.8rem; padding: 0.25rem 0; background: #000080; color: #ffff00; font: 700 1.0625rem var(--cw-comic); }
.dar-row { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0.6rem 0; text-align: left; }
.dar-intro { max-width: 30rem; margin: 0; font-size: 1.0625rem; }
.dar-cat { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; margin: 1rem 0 0.4rem; }
.dar-cat-pic { padding: 6px; border: 1px solid #999; background: #fff; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.22); transform: rotate(-2deg); }
.dar-cat-pic .cw-px { width: 9rem; height: auto; background: linear-gradient(#bfe6ff, #e9f6ff 70%, #c9e9b0 70%); }
.dar-caption { margin: 0.3rem 0 0; font-size: 0.9375rem; font-style: italic; }
.dar-h2 { margin: 1rem 0 0.3rem; color: #008000; font: 700 1.5rem var(--cw-comic); text-shadow: 1px 1px 0 #9f9; }
.dar-links { margin: 0 0 0.6rem; padding: 0; list-style: none; font-size: 1.0625rem; line-height: 1.85; }
.dar-links li::before { content: '★ '; color: #f0b400; }
.dar-hot { color: #f00; font-size: 0.8125rem; font-weight: 900; }
.dar-count { margin: 0.8rem 0; font-weight: 700; }
.dar-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 0.5rem 0; }
.dar-best { margin: 0.6rem 0 0; color: #555; font: 0.875rem var(--cw-times); }
.dar-pop .cw-pop-text { font-family: var(--cw-comic); }
.dar-duckbox { position: relative; height: 7rem; }
.dar-duck {
  position: absolute;
  left: 0;
  top: 0;
  width: 3.8rem;
  height: 3.8rem;
  padding: 0;
  border: 0;
  background: none;
  transition: translate 170ms cubic-bezier(.2, .9, .3, 1.3), transform 120ms var(--cw-spring);
}
.cw .dar-duck { cursor: pointer; }
.dar-duck .cw-px { width: 100%; height: 100%; }

/* ───────── the All Your Base shrine ───────── */
.cw-ayb {
  padding: 0 0 1.5rem;
  background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%23fff'%3E%3Crect x='12' y='18' width='1' height='1'/%3E%3Crect x='70' y='8' width='2' height='2' opacity='.8'/%3E%3Crect x='96' y='52' width='1' height='1'/%3E%3Crect x='40' y='76' width='1' height='1' opacity='.6'/%3E%3Crect x='84' y='104' width='2' height='2' opacity='.5'/%3E%3Crect x='20' y='98' width='1' height='1'/%3E%3Crect x='56' y='40' width='1' height='1' opacity='.7'/%3E%3C/g%3E%3C/svg%3E");
  color: #fff;
  font-family: var(--cw-arial);
  text-align: center;
}
.ayb-hero {
  display: block;
  width: 100%;
  height: 11rem;
  padding: 0;
  border: 0;
  border-bottom: 3px solid #2a2a3a;
  background: #02020a;
  transition: transform 120ms var(--cw-spring);
}
.cw .ayb-hero { cursor: pointer; }
.ayb-hero.is-pressed { transform: scale(1.01); }
.ayb-hero-canvas { display: block; width: 100%; height: 100%; }
.ayb-hero-tip { position: absolute; right: 0.6rem; bottom: 0.4rem; color: #8f8; font: 700 0.8125rem var(--cw-mono); opacity: 0.85; }
.ayb-title {
  margin: 1rem 0.5rem 0.25rem;
  color: #ffd000;
  font: 3rem/1 var(--cw-impact);
  letter-spacing: 0.02em;
  text-shadow: 3px 3px 0 #c00000, 6px 6px 0 #000, 0 0 26px rgba(255, 140, 0, 0.55);
}
.ayb-welcome { margin: 0.4rem 0.6rem; color: #ff0; font: 700 1.0625rem var(--cw-comic); }
.ayb-marquee { margin: 0.6rem 0; padding: 0.3rem 0; border-block: 2px solid #0a0; background: #002800; color: #5f5; font: 700 1.0625rem var(--cw-mono); }
.ayb-main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; max-width: 52rem; margin: 1rem auto; padding: 0 0.8rem; text-align: left; }
.ayb-script { padding: 0.8rem 1rem; border: 2px solid #2c2; background: rgba(0, 22, 0, 0.8); font: 0.9375rem/1.55 var(--cw-mono); }
.ayb-h2 { margin: 0 0 0.5rem; color: #5f5; font: 700 1.1rem var(--cw-arial); letter-spacing: 0.12em; text-align: center; }
.ayb-line { color: #e8e8e8; opacity: 0; transform: translateX(-8px); transition: opacity 160ms, transform 240ms cubic-bezier(.2, .9, .3, 1.3); }
.ayb-line.is-said { opacity: 1; transform: none; }
.ayb-line.is-narration { color: #9cf; font-style: italic; }
.ayb-line.is-big { color: #ff0; font-size: 1.1rem; font-weight: 700; text-shadow: 0 0 10px rgba(255, 80, 40, 0.9); }
.ayb-who { margin-right: 0.45rem; }
.ayb-who.is-captain { color: #6cf; }
.ayb-who.is-mechanic { color: #fc6; }
.ayb-who.is-operator { color: #9f9; }
.ayb-who.is-cats { color: #f55; }
.ayb-side { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.ayb-screen { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.ayb-bezel {
  position: relative;
  width: 12.5rem;
  height: 10rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: linear-gradient(#5d626e, #2b2f38);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), 0 6px 0 #15171c, 0 10px 22px rgba(0, 0, 0, 0.6);
}
.ayb-glass {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px / 14px;
  background: radial-gradient(circle at 50% 40%, #0b1d10, #000 75%);
  box-shadow: inset 0 0 18px #000;
}
.ayb-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0 2px, transparent 2px 4px), linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 40%);
  pointer-events: none;
}
.ayb-villain { position: absolute; left: 50%; top: 50%; width: 7.4rem; height: 7.4rem; opacity: 0; transform: translate(-50%, -54%); filter: drop-shadow(0 0 6px rgba(255, 40, 60, 0.5)); transition: opacity 200ms; }
/* "We get signal": the main screen fills with snow until it turns on. */
.ayb-screen.is-signal .ayb-glass {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .75 0 0 0 0 .95 0 0 0 0 .8 0 0 0 1.6 -.35'/%3E%3C/filter%3E%3Crect width='96' height='96' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 50% 40%, #1d4a2a, #041008 75%);
  animation: ayb-snow 0.24s steps(4, end) infinite;
}
@keyframes ayb-snow { to { background-position: 37px 61px, 0 0; } }
.ayb-screen.is-on .ayb-glass { background: radial-gradient(circle at 50% 40%, #2c6a40, #08200f 75%); }
.ayb-screen.is-on .ayb-villain { opacity: 1; }
.ayb-ha { position: absolute; left: 0; right: 0; bottom: 1.05rem; z-index: 1; text-align: center; color: #f33; font: 700 1rem var(--cw-mono); text-shadow: 0 0 8px #f00; opacity: 0; }
.ayb-ha.is-on { opacity: 1; animation: cw-blink 0.5s steps(1, end) infinite; }
.ayb-screen-label { color: #888; font: 700 0.75rem var(--cw-mono); letter-spacing: 0.2em; }
.ayb-bomb { display: flex; align-items: center; gap: 0.7rem; }
.ayb-bomb-pic { position: relative; flex: none; display: block; width: 3.4rem; height: 3.4rem; }
.ayb-bomb-pic .cw-px { width: 100%; height: 100%; }
.ayb-fuse {
  position: absolute;
  left: 66%;
  top: -16%;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: radial-gradient(#fff, #ffd23a 35%, #ff5a00 65%, transparent 70%);
  animation: ayb-fuse 0.16s steps(2, end) infinite alternate;
}
@keyframes ayb-fuse { to { transform: scale(1.5) rotate(45deg); opacity: 0.7; } }
.ayb-bomb-text { color: #f80; font: 700 0.9375rem var(--cw-comic); text-align: left; }
.ayb-midi { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem 0.6rem; padding: 0.45rem 0.6rem; border: 2px outset #888; background: #1d1d1d; }
.ayb-midi-name { color: #0f0; font: 0.875rem var(--cw-mono); }
.ayb-midi-btns { display: flex; gap: 0.35rem; }
.ayb-midi-btn { min-height: 2.3rem; color: #000; font: 700 0.8125rem var(--cw-arial); }
.ayb-count { margin: 1rem 0; color: #ff0; font: 700 1rem var(--cw-comic); }
.ayb-uc { margin: 0.5rem 0; }
.ayb-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 0.8rem 0; }
.ayb-best { margin: 0.4rem 1rem; color: #9a9a9a; font-size: 0.8125rem; }
.cw-ayb .cw-a { color: #6f6; }
.cw-ayb .cw-a:hover { color: #ff0; }
.cw-ayb .cw-a.is-visited { color: #c8f; }

/* ───────── PalSpace ───────── */
.cw-pals {
  padding: 0 0 1.2rem;
  background: #140012 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M18 26c-6-5-10-8-10-12a5 5 0 0 1 10-1 5 5 0 0 1 10 1c0 4-4 7-10 12z' fill='%23ff4fb8' opacity='.35'/%3E%3Cpath d='M54 62c-4-3.4-7-5.4-7-8.2a3.5 3.5 0 0 1 7-.7 3.5 3.5 0 0 1 7 .7c0 2.8-3 4.8-7 8.2z' fill='%23c86bff' opacity='.35'/%3E%3Ccircle cx='52' cy='16' r='1.3' fill='%23fff' opacity='.6'/%3E%3Ccircle cx='14' cy='56' r='1' fill='%23fff' opacity='.5'/%3E%3C/svg%3E");
  color: #fff;
  font-family: var(--cw-verdana);
  font-size: 0.9375rem;
}
.cw-pals .cw-a { color: #9cf; }
.cw-pals .cw-a:hover { color: #fff; }
.cw-pals .cw-a.is-visited { color: #c9b8ff; }
.pal-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding: 0.5rem 0.8rem;
  border-bottom: 3px solid #0b2e7a;
  background: linear-gradient(#4677da, #1d4aa8);
}
.pal-logo { line-height: 1; }
.pal-logo b { color: #fff; font: 900 1.7rem var(--cw-arial); letter-spacing: -0.04em; }
.pal-logo span { color: #bcd4ff; font-weight: 700; }
.pal-logo small { display: block; margin-top: 0.15rem; color: #dce8ff; font-size: 0.75rem; }
.pal-nav { display: flex; flex-wrap: wrap; gap: 0.15rem 0.65rem; }
.cw-pals .pal-nav-a { color: #fff; font-size: 0.875rem; font-weight: 700; text-decoration: none; }
.cw-pals .pal-nav-a:hover { text-decoration: underline; }
.pal-marquee { padding: 0.2rem 0; background: #ff2fa0; color: #fff; font: 700 0.9375rem var(--cw-comic); }
.pal-cols { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: 1rem; max-width: 58rem; margin: 0.9rem auto; padding: 0 0.8rem; }
.pal-name { position: relative; display: inline-block; margin: 0 0 0.5rem; font: 900 2.3rem/1.1 var(--cw-comic); }
.pal-glitter {
  background: linear-gradient(115deg, #ff5fc8, #fff 16%, #ff9ce6 30%, #c86bff 46%, #fff 58%, #ff5fc8 74%, #ffd6f3 90%, #ff5fc8) 0 0 / 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 6px rgba(255, 90, 200, 0.75)) drop-shadow(2px 2px 0 #5a0040);
  animation: pal-glitter 2.6s linear infinite;
}
@keyframes pal-glitter { to { background-position: -200% 0; } }
.pal-twinkle { position: absolute; color: #fff; font-size: 1.05rem; font-style: normal; text-shadow: 0 0 8px #ff9ce6; animation: pal-twinkle 1.5s ease-in-out infinite; }
.pal-twinkle:nth-of-type(1) { left: -0.6rem; top: -0.3rem; }
.pal-twinkle:nth-of-type(2) { right: -0.7rem; top: 0.1rem; animation-delay: -0.5s; }
.pal-twinkle:nth-of-type(3) { left: 45%; bottom: -0.45rem; animation-delay: -1s; }
@keyframes pal-twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.6); } 50% { opacity: 1; transform: scale(1.25) rotate(90deg); } }
.pal-id { display: flex; align-items: flex-start; gap: 0.8rem; }
.pal-pic { flex: none; padding: 4px; border: 1px solid #ff8ad8; background: #fff; }
.pal-pic .cw-px { width: 8rem; height: 8rem; background: radial-gradient(circle at 50% 38%, #fff0fa, #ff9ce0 80%); }
.pal-facts p { margin: 0 0 0.4rem; font-size: 0.9375rem; }
.pal-quote { color: #ffc6ec; font-style: italic; }
.pal-online { color: #7dff6a; font-weight: 700; }
.pal-box { margin-top: 0.8rem; border: 2px solid #ff5fc8; background: rgba(22, 0, 20, 0.85); }
.pal-box-head { padding: 0.3rem 0.6rem; background: linear-gradient(#ff8ad8, #de339d); color: #fff; font-size: 0.9375rem; font-weight: 700; text-shadow: 1px 1px 0 #8a0058; }
.pal-box-body { padding: 0.6rem; }
.pal-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; }
.pal-contact-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.6rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid #ff8ad8;
  background: rgba(255, 90, 200, 0.12);
  color: #ffd6f3;
  font: 700 0.8125rem var(--cw-verdana);
  text-align: left;
  transition: transform 120ms var(--cw-spring), background-color 120ms;
}
.cw .pal-contact-btn, .cw .pal-friend, .cw .pal-play { cursor: pointer; }
.pal-contact-btn:hover { background: rgba(255, 90, 200, 0.32); }
.pal-contact-btn.is-pressed { transform: scale(1.08); }
.pal-contact-icon { flex: none; width: 1.35rem; height: 1.35rem; }
.pal-url { margin: 0; color: #9cf; font-size: 0.875rem; word-break: break-all; }
.pal-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.pal-table th { width: 30%; padding: 0.35rem; color: #ff9ce6; text-align: left; vertical-align: top; background: rgba(255, 90, 200, 0.15); }
.pal-table td { padding: 0.35rem 0.45rem; }
.pal-table tr + tr > * { border-top: 1px solid rgba(255, 138, 216, 0.35); }
.pal-views { margin: 0.8rem 0 0; font-weight: 700; }
.pal-song { padding: 0.6rem 0.7rem; border: 2px solid #7a5cff; background: linear-gradient(#26134e, #110726); }
.pal-song-head { margin-bottom: 0.45rem; color: #c9b8ff; font-size: 0.875rem; font-weight: 700; text-align: center; }
.pal-song-row { display: flex; align-items: center; gap: 0.65rem; }
.pal-play {
  position: relative;
  flex: none;
  width: 2.8rem;
  height: 2.8rem;
  border: 2px solid #d6c9ff;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b49dff, #5a35d6);
  box-shadow: 0 0 12px rgba(150, 110, 255, 0.6);
  transition: transform 120ms var(--cw-spring);
}
.pal-play::before {
  content: '';
  position: absolute;
  left: 54%;
  top: 50%;
  border: 0.55rem solid transparent;
  border-left: 0.85rem solid #fff;
  border-right: 0;
  transform: translate(-50%, -50%);
}
.pal-song.is-playing .pal-play::before { width: 0.85rem; height: 0.95rem; left: 50%; border: 0; border-inline: 0.28rem solid #fff; }
.pal-play.is-pressed { transform: scale(1.15); }
.pal-song-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pal-song-info b { overflow: hidden; color: #fff; font-size: 0.9375rem; text-overflow: ellipsis; white-space: nowrap; }
.pal-song-info span { color: #c9b8ff; font-size: 0.8125rem; }
.pal-eq { display: flex; align-items: flex-end; gap: 2px; height: 1.7rem; }
.pal-eq i { width: 4px; height: 100%; background: linear-gradient(#ff5fc8, #7dff6a); transform: scaleY(0.15); transform-origin: bottom; }
.pal-song.is-playing .pal-eq i { animation: pal-eq calc(0.32s + var(--i) * 0.05s) ease-in-out calc(var(--i) * -0.13s) infinite alternate; }
@keyframes pal-eq { from { transform: scaleY(0.15); } to { transform: scaleY(1); } }
.pal-song-bar { height: 0.5rem; margin-top: 0.55rem; border: 1px solid #7a5cff; background: #0a0418; }
.pal-song-fill { display: block; height: 100%; background: linear-gradient(90deg, #ff5fc8, #c86bff); transform: scaleX(0); transform-origin: left; transition: transform 1s linear; }
.pal-song-time { display: block; margin-top: 0.25rem; color: #c9b8ff; font: 0.8125rem var(--cw-mono); text-align: right; }
.pal-ext { margin: 0.8rem 0 0; padding: 0.55rem; border: 2px solid #ff5fc8; background: rgba(22, 0, 20, 0.85); font-size: 1rem; text-align: center; }
.pal-ext b { color: #ff9ce6; }
.pal-h3 { margin: 0.2rem 0 0.3rem; color: #ff9ce6; font-size: 0.9375rem; }
.pal-about { margin: 0 0 0.6rem; color: #ffe6f6; font: 0.9375rem/1.45 var(--cw-comic); }
.pal-friends-count { margin: 0 0 0.55rem; }
.pal-red { color: #ff5a5a; }
.pal-top8 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem 0.4rem; }
.pal-friend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.15rem;
  border: 0;
  background: none;
  color: #9cf;
  font: 700 0.75rem var(--cw-verdana);
  text-decoration: underline;
  transition: transform 120ms var(--cw-spring);
}
.pal-friend:hover { color: #fff; }
.pal-friend.is-pressed { transform: scale(1.1); }
.pal-friend-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-av { display: block; padding: 3px; border: 1px solid rgba(255, 255, 255, 0.4); }
.pal-av .cw-px { width: 3rem; height: 3rem; }
.pal-friend .pal-av .cw-px { width: min(4.2rem, 16cqw); height: auto; aspect-ratio: 1; }
.pal-comments-head { margin: 0 0 0.45rem; font-size: 0.875rem; }
.pal-comment { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 0.6rem; padding: 0.55rem 0.2rem; border-top: 1px solid rgba(255, 138, 216, 0.35); }
.pal-comment-who { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.pal-comment-name { color: #9cf; font-size: 0.75rem; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.pal-comment-date { color: #ff9ce6; font-size: 0.75rem; font-weight: 700; }
.pal-comment-body p { margin: 0.2rem 0 0; font: 0.9375rem var(--cw-comic); }
.pal-comment.is-new { animation: pal-new 1.6s ease-out; }
@keyframes pal-new { from { background: rgba(255, 240, 120, 0.55); } to { background: transparent; } }
.pal-uc { display: flex; margin: 1.1rem auto 0; width: max-content; }
.pal-foot { margin: 1rem; color: #c9a3bd; font-size: 0.75rem; text-align: center; }

/* ───────── error pages ───────── */
.cw-err { max-width: 44rem; padding: 1.4rem 1.6rem; background: #fff; color: #000; font-family: var(--cw-verdana); font-size: 0.9375rem; }
.cw-err-head { display: flex; align-items: center; gap: 0.8rem; }
.cw-err-icon { flex: none; width: 2.7rem; height: 2.7rem; }
.cw-err h1 { margin: 0; color: #000; font: 700 1.35rem var(--cw-verdana); }
.cw-err hr { border: 0; border-top: 1px solid #c0c0c0; }
.cw-err-list { padding-left: 1.4rem; line-height: 1.65; }
.cw-err-code { margin: 0.2rem 0; color: #808080; font-size: 0.875rem; }
.cw-404 { padding: 0.8rem 1rem; background: #fff; color: #000; font: 1.0625rem/1.4 var(--cw-times); }
.cw-404 h1 { margin: 0.4rem 0 0.8rem; font: 700 2rem var(--cw-times); }
.cw-404 address { font-style: italic; }

/* ───────── narrow pages (the window's width, not the screen's) ───────── */
@container (max-width: 680px) {
  .pal-cols { grid-template-columns: minmax(0, 1fr); }
  .ayb-main { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 520px) {
  .dar-row { flex-direction: column; text-align: center; }
  .dar-title { font-size: 2rem; }
  .ayb-title { font-size: 2.2rem; }
  .ayb-hero { height: 8.5rem; }
  .mud-screen { font-size: 0.8125rem; }
  .mud-logo { font-size: 3rem; }
  .pal-name { font-size: 2rem; }
  .pal-pic .cw-px { width: 6.5rem; height: 6.5rem; }
}

/* ───────── small screens & touch ───────── */
@media (max-width: 599px) {
  .cw-tool-label, .cw-addr-label, .cw-go-label, .cw-zone { display: none; }
  .cw-tool { justify-content: center; min-width: 2.75rem; padding: 0.2rem; }
  .cw-toolbar { gap: 0; }
  .cw-sep { margin-inline: 0.15rem; }
  .cw-throb { width: 2.9rem; }
  .cw-progress { width: 5rem; }
}
@media (pointer: coarse) {
  .cw-menu { min-height: 2.5rem; }
  .cw-dd-item { min-height: 2.75rem; }
  .cw-addr-field { height: 2.6rem; }
  .cw-addr-drop { width: 2.4rem; }
  .cw-go { min-height: 2.6rem; }
  .cw-pop-bar { min-height: 2.5rem; }
  .cw-pop-x { width: 2.4rem; height: 2.1rem; }
  .cw-pop-btn { min-height: 2.75rem; }
  .mud-macro, .mud-send { min-height: 2.6rem; }
}

/* ───────── reduced motion: no blinking, digging or flashing; slower scrolling ───────── */
html[data-reduced-motion="on"] .cw-blink,
html[data-reduced-motion="on"] .cw-uc-dig,
html[data-reduced-motion="on"] .cw-mail-env,
html[data-reduced-motion="on"] .ayb-fuse,
html[data-reduced-motion="on"] .ayb-ha.is-on,
html[data-reduced-motion="on"] .ayb-screen.is-signal .ayb-glass,
html[data-reduced-motion="on"] .cw-pop.is-loud .cw-pop-text,
html[data-reduced-motion="on"] .pal-twinkle { animation: none; }
html[data-reduced-motion="on"] .cw-marquee-track { animation-duration: calc(var(--cw-marquee-s, 14s) * 2); }
