/* INTERCATS.CA — consolidated styles (90's Geocities vibe) */

/* Hide index-only blocks (marquee, music note, badges) on other pages in SPA shell */
body:not(.page-home) .shell-index-only { display: none !important; }

* { margin: 0; padding: 0; box-sizing: border-box; }
button, input, select, textarea { font-family: inherit; }

body {
  background-color: #000010;
  color: #00ff00;
  font-family: "Comic Sans MS", "Chalkboard SE", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><text y='24' font-size='24'>🐾</text></svg>") 4 4, auto;
}

#starfield { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.star { position: absolute; background: white; border-radius: 50%; animation: twinkle var(--d) ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: 0.1; transform: scale(0.8); } to { opacity: 1; transform: scale(1.2); } }

#wrapper { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; padding: 10px; text-align: center; }
body.page-gallery #wrapper { max-width: 860px; }

/* ── Header / title ── */
#site-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: #ffff00;
  text-shadow: 2px 2px 0 #ff00ff, 4px 4px 0 #00ffff, 0 0 20px #ffff00;
  animation: rainbow 3s linear infinite;
  letter-spacing: 2px;
  margin-top: 18px;
  line-height: 1.1;
}
.page-home #site-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  text-shadow: 2px 2px 0 #ff00ff, 4px 4px 0 #00ffff, 0 0 20px #ffff00, 0 0 40px #ff8800;
}

@keyframes rainbow { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }

#subtitle {
  color: #ff00ff;
  font-size: 1rem;
  margin-top: 6px;
  letter-spacing: 3px;
  text-shadow: 0 0 10px #ff00ff;
}
.page-home #subtitle { font-size: 1.1rem; }

/* ── Nav ── */
#navbar,
.nav-row {
  margin: 14px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.nav-row { margin: 12px 0; }

.nav-btn {
  display: inline-block;
  padding: 5px 14px;
  background: #000080;
  color: #ffffff;
  font-size: 0.85rem;
  text-decoration: none;
  border: 2px outset #8888ff;
  cursor: pointer;
}
.nav-btn:hover { background: #0000cc; border-style: inset; color: #ffff00; }
.nav-btn:active { border-style: inset; }

/* Selected (current page): pressed look + purple; hover does not change it */
.nav-btn.selected,
.nav-btn.selected:hover {
  background: #0000cc;
  border-style: inset;
  color: #aa00ff;
}

/* ── Construction tape ── */
.construction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0;
  font-size: 0.85rem;
  color: #ffff00;

}
.construction-tape {
  flex: 1;
  height: 16px;
  background: repeating-linear-gradient(-45deg, #ffcc00 0px, #ffcc00 10px, #000000 10px, #000000 20px);
  border: 1px solid #ffcc00;
}
.construction-icon { font-size: 1.4rem; animation: spin 2s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── Index: marquee, badges, cat frame, counter, midi, guestbook teaser ── */
.marquee-bar {
  background: #000080;
  border: 2px solid #00ffff;
  padding: 5px 0;
  margin: 12px 0;
  color: #ffff00;
  font-size: 0.95rem;
  overflow: hidden;
  white-space: nowrap;
}

.badge-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0; }
.badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: bold;
  border: 2px solid;
  animation: badgePulse 1s ease-in-out infinite alternate;
}
.badge-new  { background: #ff0000; color: #fff; border-color: #ffff00; }
.badge-cool { background: #0000ff; color: #ffff00; border-color: #00ffff; }
.badge-hot  { background: #ff6600; color: #fff; border-color: #ffff00; }
.badge-wow  { background: #9900cc; color: #00ffff; border-color: #ff00ff; }
@keyframes badgePulse { from { transform: scale(1); box-shadow: 0 0 4px currentColor; } to { transform: scale(1.08); box-shadow: 0 0 12px currentColor; } }

#cat-frame {
  margin: 16px auto;
  display: inline-block;
  border: 6px ridge #ff00ff;
  box-shadow: 0 0 0 3px #ffff00, 0 0 0 6px #00ffff, 0 0 30px #ff00ff, inset 0 0 20px rgba(255,0,255,0.2);
  background: #111;
}
#cat-frame::before {
  content: "★ COMPLIMENTARY PHOTO (additional photos available upon request) ★";
  display: block;
  background: linear-gradient(90deg, #ff00ff, #00ffff, #ffff00, #ff00ff);
  background-size: 200%;
  animation: gradientMove 3s linear infinite;
  color: #000;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 4px;
  letter-spacing: 2px;
}
@keyframes gradientMove { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }

#cat-img { display: block; width: 100%; height: auto; margin: 0 auto; }
#cat-placeholder {
  width: 320px;
  max-width: 90vw;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 40% 30%, #1a0033, #000020);
  color: #ff00ff;
  font-size: 5rem;
  gap: 8px;
}
#cat-placeholder span { font-size: 0.75rem; color: #888; letter-spacing: 1px; }
#rezuzia-btn-wrap { margin: -6px 0 10px; }
#rezuzia-btn {
  background: #000080; color: #ffff00;
  border: 2px outset #8888ff; padding: 5px 18px;
  font-size: 0.9rem; cursor: pointer;
  animation: badgePulse 1s ease-in-out infinite alternate;
}
#rezuzia-btn:hover { background: #0000cc; border-style: inset; }
#rezuzia-btn:disabled { background: #222; color: #555; border-color: #444; animation: none; cursor: default; }
#rezuzia-status { font-size: 0.75rem; color: #888; margin-top: 4px; min-height: 1em; }

#cat-blurb {
  background: rgba(0, 0, 128, 0.7);
  border: 2px dashed #00ffff;
  padding: 14px 20px;
  margin: 10px 0 16px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
}
#cat-blurb h2 { color: #ffff00; font-size: 1.3rem; text-align: center; text-shadow: 0 0 10px #ffff00; margin-bottom: 4px; }
#cat-blurb .aka { text-align: center; color: #aaaaff; font-size: 0.9rem; margin-bottom: 12px; line-height: 1.5; }
#cat-blurb .fact-label { color: #00ffff; }
#cat-blurb .warning { color: #ff8800; font-size: 0.9rem; }

#counter-section { margin: 12px 0; color: #00ff00; font-size: 0.9rem; }
#counter-display { display: inline-flex; gap: 2px; background: #000; border: 2px inset #666; padding: 4px 8px; margin-top: 4px; }
.digit {
  display: inline-block;
  background: #001100;
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-size: 1.4rem;
  font-weight: bold;
  width: 22px;
  text-align: center;
  border: 1px solid #003300;
  text-shadow: 0 0 6px #00ff00;
  transition: color 0.1s;
}
.digit.tick { color: #ffffff; }
#counter-status { font-size: 0.7rem; color: #444; margin-top: 4px; min-height: 1em; }

#midi-warning {
  background: #330000;
  border: 2px solid #ff0000;
  padding: 8px 14px;
  margin: 12px 0;
  font-size: 0.8rem;
  color: #ff8888;
}
#midi-player { margin: 8px 0; }
.midi-btn {
  background: #000080;
  color: #ffff00;
  border: 2px outset #8888ff;
  padding: 5px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  animation: badgePulse 1s ease-in-out infinite alternate;
}
.midi-btn:hover { background: #0000cc; border-style: inset; }
.midi-btn.playing { background: #660000; border-color: #ff4444; color: #ffffff; }

#guestbook-section {
  background: rgba(0,50,0,0.5);
  border: 2px solid #00aa00;
  padding: 12px;
  margin: 12px 0;

}
#guestbook-section h3 { color: #00ff00; font-size: 1rem; margin-bottom: 8px; text-shadow: 0 0 8px #00ff00; }
#guestbook-section a { color: #ffff00; font-size: 0.85rem; text-decoration: none; }
#guestbook-section a:hover { text-decoration: underline; }
#guestbook-preview { margin-top: 10px; text-align: left; }
.preview-entry { border-top: 1px dashed #006600; padding: 6px 0; font-size: 0.82rem; color: #aaffaa; }
.preview-entry .pname { color: #ffff00; font-weight: bold; }
.preview-entry .ploc  { color: #8888ff; font-size: 0.75rem; }
.preview-entry .pmsg  { color: #ccffcc; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#preview-loading { color: #555; font-size: 0.8rem; padding: 6px 0; }

/* ── About: content blocks, quiz, skills, likes/hates ── */
.content-block {
  background: rgba(0, 0, 128, 0.7);
  border: 2px dashed #00ffff;
  padding: 16px 20px;
  margin: 12px 0;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.8;
  text-align: left;
}
.content-block h2 {
  color: #ffff00;
  font-size: 1.2rem;
  text-align: center;
  text-shadow: 0 0 8px #ffff00;
  margin-bottom: 12px;
}
.content-block h3 { color: #00ffff; font-size: 1rem; margin: 12px 0 4px; }
.highlight { color: #ffff00; }
.dim { color: #888; font-size: 0.85rem; }
.warn { color: #ff8800; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 500px) { .two-col { grid-template-columns: 1fr; } }
.likes-box   { background: rgba(0,80,0,0.5);  border: 1px solid #00aa00; padding: 10px 14px; }
.hates-box   { background: rgba(80,0,0,0.5);  border: 1px solid #aa0000; padding: 10px 14px; }
.likes-box h3 { color: #00ff00; margin-top: 0; }
.hates-box h3 { color: #ff4444; margin-top: 0; }

.quiz-row { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #003366; }
.quiz-row:last-child { border-bottom: none; }
.quiz-label { color: #00ffff; min-width: 140px; flex-shrink: 0; }
.quiz-value { color: #ffffff; }

.skill-row { margin: 6px 0; }
.skill-name { color: #aaaaff; font-size: 0.85rem; margin-bottom: 2px; }
.skill-bar { height: 14px; background: #001133; border: 1px solid #0033aa; position: relative; }
.skill-fill { height: 100%; background: linear-gradient(90deg, #0000ff, #00ffff); transition: width 1s ease; }
.skill-label { position: absolute; right: 4px; top: 0; font-size: 0.7rem; color: #ffff00; line-height: 14px; }

/* ── Guestbook: back link, form, entries ── */
.back-link { display: inline-block; margin: 12px 0; }
.back-link a {
  color: #ffff00;
  text-decoration: none;
  border: 2px outset #8888ff;
  background: #000080;
  padding: 4px 12px;
  font-size: 0.85rem;
}
.back-link a:hover { background: #0000cc; border-style: inset; }

#sign-section {
  background: rgba(0, 0, 100, 0.75);
  border: 3px double #ff00ff;
  box-shadow: 0 0 16px #ff00ff44;
  padding: 18px 22px;
  margin: 14px 0;
  text-align: left;
}
#sign-section h2 {
  color: #ffff00;
  font-size: 1.2rem;
  text-align: center;
  text-shadow: 0 0 8px #ffff00;
  margin-bottom: 14px;
}
.form-row { margin-bottom: 10px; }
.form-row label {
  display: block;
  color: #00ffff;
  font-size: 0.85rem;
  margin-bottom: 3px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  background: #000830;
  color: #ffffff;
  border: 1px solid #0044aa;
  padding: 6px 8px;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-row input:focus,
.form-row textarea:focus { border-color: #00ffff; box-shadow: 0 0 6px #00ffff66; }
.form-row textarea { height: 90px; resize: vertical; }
.char-count { font-size: 0.7rem; color: #555; text-align: right; margin-top: 2px; }
.char-count.warn { color: #ff8800; }

#submit-btn {
  display: block;
  margin: 14px auto 0;
  padding: 7px 28px;
  background: #006600;
  color: #ffffff;
  font-size: 1rem;
  border: 2px outset #00cc00;
  cursor: pointer;
  letter-spacing: 1px;
}
#submit-btn:hover  { background: #008800; border-style: inset; }
#submit-btn:active { border-style: inset; }
#submit-btn:disabled { background: #333; color: #666; border-color: #444; cursor: default; }

#form-status {
  margin-top: 10px;
  font-size: 0.9rem;
  min-height: 1.4em;
  text-align: center;
}
#form-status.ok  { color: #00ff00; }
#form-status.err { color: #ff4444; }

#entries-section { margin: 14px 0; text-align: left; }
#entries-header {
  color: #ffff00;
  font-size: 1.1rem;
  text-align: center;
  text-shadow: 0 0 8px #ffff00;
  margin-bottom: 12px;
}
#entries-list { display: flex; flex-direction: column; gap: 12px; }
.entry {
  background: rgba(0, 30, 0, 0.7);
  border: 2px solid #00aa00;
  padding: 12px 16px;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.entry-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 6px; }
.entry-name { color: #ffff00; font-size: 1rem; font-weight: bold; }
.entry-location { color: #aaaaff; font-size: 0.8rem; }
.entry-location::before { content: "📍 "; }
.entry-url a { color: #00ffff; font-size: 0.8rem; text-decoration: none; }
.entry-url a:hover { text-decoration: underline; }
.entry-url::before { content: "🔗 "; }
.entry-date { color: #555; font-size: 0.75rem; margin-left: auto; }
.entry-message { color: #ccffcc; font-family: monospace; font-size: 0.9rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
#entries-loading { color: #666; text-align: center; padding: 20px; }
#entries-empty {
  color: #666;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* ── Gallery ── */
#gallery-status {
  color: #888;
  font-size: 0.85rem;
  margin: 10px 0;
}
#gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 16px 0;
  text-align: left;
}
.gallery-item {
  border: 4px ridge #ff00ff;
  box-shadow: 0 0 0 2px #ffff00, 0 0 12px #ff00ff88;
  background: #111;
  animation: fadeIn 0.4s ease;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 0 0 2px #ffff00, 0 0 24px #ff00ffcc;
}
.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.gallery-item .caption {
  font-size: 0.72rem;
  color: #aaaaff;
  padding: 4px 6px;
  background: #000830;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#gallery-empty {
  color: #666;
  padding: 30px;
  font-size: 0.95rem;
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border: 4px ridge #ff00ff;
  box-shadow: 0 0 0 3px #ffff00, 0 0 40px #ff00ff;
  object-fit: contain;
}
#lightbox-caption {
  color: #ffff00;
  font-size: 0.9rem;
  text-shadow: 0 0 8px #ffff00;
}
#lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  font-size: 1.2rem;
  color: #ffffff;
  background: #660000;
  border: 2px outset #ff4444;
  padding: 4px 12px;
  cursor: pointer;
}
#lightbox-nav { display: flex; gap: 12px; }
.lb-nav-btn {
  background: #000080;
  color: #ffff00;
  border: 2px outset #8888ff;
  padding: 4px 16px;
  font-size: 1rem;
  cursor: pointer;
}
.lb-nav-btn:hover { background: #0000cc; border-style: inset; }

/* ── Links page ── */
.link-section {
  background: rgba(0, 0, 128, 0.7);
  border: 2px dashed #00ffff;
  padding: 14px 20px;
  margin: 12px 0;
  text-align: left;
}
.link-section h2 {
  color: #ffff00;
  font-size: 1.1rem;
  text-shadow: 0 0 8px #ffff00;
  margin-bottom: 12px;
  border-bottom: 1px dashed #004488;
  padding-bottom: 6px;
}
.link-list { list-style: none; }
.link-list li {
  padding: 6px 0;
  border-bottom: 1px dashed #002244;
  font-size: 0.9rem;
}
.link-list li:last-child { border-bottom: none; }
.link-list a { color: #00ffff; text-decoration: none; font-weight: bold; }
.link-list a:hover { color: #ffff00; text-decoration: underline; }
.link-list a:visited { color: #aa88ff; }
.link-desc { color: #aaaaaa; font-size: 0.82rem; display: block; margin-top: 1px; }
.link-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 1px 5px;
  border: 1px solid;
  margin-left: 6px;
  vertical-align: middle;

}
.link-section .badge-new   { background: #ff0000; color: #fff; border-color: #ffff00; }
.link-section .badge-cool  { background: #0000aa; color: #ffff00; border-color: #00ffff; }
.link-section .badge-cat   { background: #660066; color: #ffccff; border-color: #ff00ff; }

.disclaimer {
  background: rgba(50,0,0,0.6);
  border: 2px solid #660000;
  padding: 10px 16px;
  margin: 12px 0;
  color: #ff8888;
  font-size: 0.8rem;
  text-align: left;
}

/* ── Zuzia's Mood widget (home page) ── */
#zuzia-mood {
  background: rgba(50, 0, 80, 0.7);
  border: 2px solid #ff00ff;
  box-shadow: 0 0 12px #ff00ff66, inset 0 0 20px rgba(255, 0, 255, 0.1);
  padding: 10px 16px;
  margin: 12px 0;
  text-align: center;
}
#zuzia-mood-label {
  color: #ff00ff;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-shadow: 0 0 8px #ff00ff;
  margin-bottom: 4px;
}
#zuzia-mood-text {
  color: #ffff00;
  font-size: 1.1rem;
  font-weight: bold;
  text-shadow: 0 0 10px #ffff00;
  animation: moodPulse 2s ease-in-out infinite alternate;
}
@keyframes moodPulse { from { opacity: 0.8; } to { opacity: 1; text-shadow: 0 0 16px #ffff00, 0 0 30px #ff880066; } }

/* ── Cat Facts page ── */
#catfact-box { text-align: center; }
#catfact-display {
  background: rgba(0, 0, 0, 0.4);
  border: 2px inset #8888ff;
  padding: 20px 24px;
  margin: 14px 0 8px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#catfact-text {
  color: #00ffff;
  font-size: 1.1rem;
  line-height: 1.7;
  font-style: italic;
}
#catfact-num {
  color: #666;
  font-size: 0.75rem;
  margin-top: 4px;
}
#catfact-btn-wrap { margin: 10px 0 16px; }
#catfact-btn {
  background: #000080; color: #ffff00;
  border: 2px outset #8888ff; padding: 5px 18px;
  font-size: 0.9rem; cursor: pointer;
  animation: badgePulse 1s ease-in-out infinite alternate;
}
#catfact-btn:hover { background: #0000cc; border-style: inset; }

/* ── Games arcade ── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.game-card {
  display: block;
  background: rgba(0, 0, 128, 0.7);
  border: 3px ridge #ff00ff;
  box-shadow: 0 0 12px #ff00ff44;
  padding: 16px;
  text-decoration: none;
  text-align: center;
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
  transition: transform 0.15s, box-shadow 0.15s;
}
.game-card:hover {
  transform: scale(1.04);
  box-shadow: 0 0 24px #ff00ffaa;
}
.game-card h3 {
  color: #ffff00;
  font-size: 1.1rem;
  margin-bottom: 8px;
  text-shadow: 0 0 8px #ffff00;
}
.game-card p {
  color: #ccccff;
  font-size: 0.82rem;
  line-height: 1.5;
}
.game-card .badge-new {
  display: inline-block;
  margin-bottom: 8px;
}
.coming-soon {
  opacity: 0.45;
  pointer-events: none;
}
.coming-soon h3 { color: #888; text-shadow: none; }
.coming-soon p { color: #666; }

/* ── Leaderboards ── */
.lb-section-title {
  color: #ffff00;
  font-size: 1.2rem;
  text-align: center;
  text-shadow: 0 0 10px #ffff00;
  margin: 18px 0 8px;
}
.lb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin: 0 0 16px;
}
.lb-panel {
  background: rgba(0, 0, 80, 0.6);
  border: 2px solid #00ffff;
  box-shadow: 0 0 8px #00ffff33;
  padding: 10px 12px;
}
.lb-title {
  color: #ffff00;
  font-size: 1rem;
  text-shadow: 0 0 8px #ffff00;
  text-align: center;
  margin-bottom: 8px;
}
.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.lb-table th {
  color: #00ffff;
  font-size: 0.75rem;
  text-align: center;
  border-bottom: 1px solid #004488;
  padding: 3px 6px;
}
.lb-table td {
  color: #ccffcc;
  text-align: center;
  padding: 3px 6px;
  border-bottom: 1px dashed #003322;
}
.lb-table tr:last-child td { border-bottom: none; }
.lb-empty,
.lb-loading {
  color: #666;
  font-size: 0.8rem;
  text-align: center;
  padding: 12px;
}
.lb-submit {
  background: rgba(0, 0, 100, 0.75);
  border: 2px solid #ffff00;
  box-shadow: 0 0 12px #ffff0044;
  padding: 14px;
  margin: 10px 0;
  text-align: center;
}
.lb-submit-title {
  color: #ffff00;
  font-size: 1rem;
  text-shadow: 0 0 8px #ffff00;
  margin-bottom: 6px;
}
.lb-submit-score {
  color: #00ffff;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.lb-submit-form {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lb-name-input {
  background: #000830;
  color: #ffffff;
  border: 1px solid #0044aa;
  padding: 6px 8px;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  width: 160px;
  outline: none;
}
.lb-name-input:focus {
  border-color: #00ffff;
  box-shadow: 0 0 6px #00ffff66;
}
.lb-submit-status {
  margin-top: 6px;
  font-size: 0.8rem;
  min-height: 1.2em;
}
.lb-status-ok { color: #00ff00; }
.lb-status-err { color: #ff4444; }

/* ── Puzzle Slider game ── */
#slider-container {
  margin: 10px auto;
  max-width: 600px;
}
.slider-loading {
  color: #ffff00;
  font-size: 1rem;
  padding: 40px 10px;
  text-align: center;
}
#slider-status {
  display: flex;
  justify-content: space-between;
  padding: 6px 4px;
  font-size: 0.85rem;
  color: #00ffff;
  font-family: "Courier New", monospace;
  text-shadow: 0 0 6px #00ffff66;
}
#slider-board {
  position: relative;
  margin: 0 auto;
  background: #0a0a1a;
  border: 3px ridge #ff00ff;
  box-shadow: 0 0 20px #ff00ff66, 0 0 0 2px #00ffff;
  overflow: hidden;
  touch-action: manipulation;
}
.slider-tile {
  position: absolute;
  cursor: pointer;
  transition: left 0.15s ease-out, top 0.15s ease-out;
  background-color: #222;
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, 0.4),
    inset -3px -3px 0 rgba(0, 0, 0, 0.55);
}
.slider-tile-movable {
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, 0.4),
    inset -3px -3px 0 rgba(0, 0, 0, 0.55),
    0 0 8px #00ffff99, 0 0 2px #00ffffcc;
}
.slider-tile-movable:hover {
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, 0.55),
    inset -3px -3px 0 rgba(0, 0, 0, 0.65),
    0 0 14px #00ffffcc, 0 0 4px #00ffffff;
}
#slider-reference {
  margin: 10px auto;
  text-align: center;
}
#slider-ref-label {
  color: #ff00ff;
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 4px;
  text-shadow: 0 0 6px #ff00ff66;
}
#slider-reference img {
  display: block;
  margin: 0 auto;
  max-width: 180px;
  width: 100%;
  border: 3px ridge #ff00ff;
  box-shadow: 0 0 10px #ff00ff44;
}
#slider-hint {
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
  color: #666;
  font-size: 0.72rem;
  margin: 6px 0 2px;
}
#slider-btn-wrap { margin: 10px 0; }
#slider-new-btn {
  background: #000080;
  color: #ffff00;
  border: 2px outset #8888ff;
  padding: 5px 18px;
  font-size: 0.9rem;
  cursor: pointer;
  animation: badgePulse 1s ease-in-out infinite alternate;
}
#slider-new-btn:hover { background: #0000cc; border-style: inset; }
#slider-win {
  background: rgba(0, 80, 0, 0.7);
  border: 2px solid #00ff00;
  box-shadow: 0 0 16px #00ff0044;
  padding: 12px;
  margin: 10px 0;
  color: #ffff00;
  font-size: 1.1rem;
  text-shadow: 0 0 8px #ffff00;
  animation: badgePulse 1s ease-in-out infinite alternate;
}

/* ── Cat-a-pult game ── */
#game-container {
  width: 100%;
  aspect-ratio: 8 / 5;
  max-height: 72vh;
  min-height: 240px;
  margin: 10px auto;
  border: 3px ridge #ff00ff;
  box-shadow: 0 0 20px #ff00ff66, 0 0 0 2px #00ffff;
  background: #000;
  overflow: hidden;
  touch-action: none;
}
#game-hint {
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
  color: #666;
  font-size: 0.72rem;
  margin: 6px 0 2px;
}

/* ── Footer ── */
footer {
  margin-top: 20px;
  padding: 14px;
  border-top: 2px dashed #333;
  font-size: 0.75rem;
  color: #666;
  line-height: 1.9;
}

/* ── Utilities ── */
.blink { animation: blink 0.8s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.rainbow-text {
  background: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00ff00, #0088ff, #ff00ff);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientMove 2s linear infinite;
}
