/* ===================================================================
   Y2K MODE. Everything in here is scoped to html[data-y2k] and layers
   over styles.css. Toggle with the 💿 button in the footer or ?y2k.
   =================================================================== */

html[data-y2k] {
  --bg: #000428;
  --surface: #0b1550;
  --ink: #eaf6ff;
  --muted: #9fd0ff;
  --line: #4d7cff;
  --accent: #ff00e6;
  --accent-ink: #ffffff;
  --soft: #12206e;
  --danger: #ff3355;
  --danger-soft: #3a0a1f;
  --tier-bg: #04051c;
  --tier-row: #0d1a5c;
  --tier-chip: #182a8a;
  --tier-chip-ink: #ffffff;
  --tier-note: #9fd0ff;
  --goated: #ff3cf0;
  --mid: #ffe93c;
  --dead: #00e5ff;
  --paw-ink: rgba(0, 229, 255, .22);
  --radius: 6px;
  --display: "Audiowide", "Orbitron", Impact, "Arial Black", sans-serif;
  --body: Verdana, Tahoma, "Trebuchet MS", sans-serif;
  --comic: "Comic Sans MS", "Comic Neue", "Chalkboard SE", cursive;
  --chrome: linear-gradient(180deg, #ffffff 0%, #d6ecff 30%, #5b8cff 48%, #eaf6ff 52%, #a9d4ff 75%, #ffffff 100%);
  --gloss: linear-gradient(180deg, #a8dcff 0%, #3d9bff 48%, #0a5ce6 52%, #57bdff 100%);
  --rainbow: linear-gradient(90deg, #ff004c, #ff8a00, #ffee00, #47ff00, #00e5ff, #2f4bff, #ff00e6);
}

/* Y2K-only furniture stays out of the normal theme whatever its own display is. */
html:not([data-y2k]) .y2k-only { display: none !important; }

/* ---------- page ---------- */
html[data-y2k] body {
  font-size: 15px;
  background:
    radial-gradient(1.5px 1.5px at 22px 31px, #fff 100%, transparent) 0 0 / 220px 220px,
    radial-gradient(1px 1px at 120px 90px, #cfe8ff 100%, transparent) 0 0 / 220px 220px,
    radial-gradient(1.5px 1.5px at 180px 160px, #fff 100%, transparent) 0 0 / 220px 220px,
    radial-gradient(1px 1px at 60px 200px, #9fd0ff 100%, transparent) 0 0 / 220px 220px,
    linear-gradient(180deg, #020024 0%, #090979 45%, #00d4ff 100%) fixed;
  color: var(--ink);
}
html[data-y2k] a { color: #7fff00; text-decoration: underline; }
html[data-y2k] a:visited { color: #d18cff; }
html[data-y2k] .lede, html[data-y2k] .hint, html[data-y2k] figcaption { font-family: var(--comic); }
html[data-y2k] strong { color: #ffe93c; }

/* Rainbow rules between sections. */
html[data-y2k] section { position: relative; padding-block: 34px 44px; }
html[data-y2k] section::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--rainbow); box-shadow: 0 0 10px rgba(255, 255, 255, .5);
}
html[data-y2k] section:last-of-type::after { display: none; }

/* ---------- chrome WordArt headings ---------- */
html[data-y2k] h1, html[data-y2k] h2, html[data-y2k] h3 {
  font-family: var(--display); font-style: italic; letter-spacing: .02em;
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(2px 2px 0 #000) drop-shadow(0 0 10px rgba(0, 229, 255, .8));
}
html[data-y2k] h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
html[data-y2k] .hero .aka { font-size: .5em; }
html[data-y2k] .hero .aka { color: #ffe93c; -webkit-text-fill-color: #ffe93c; font-family: var(--comic); font-style: normal; }
html[data-y2k] .badge, html[data-y2k] h2 .anchor { color: var(--ink); -webkit-text-fill-color: var(--ink); background: #000; border: 2px outset #9fd0ff; border-radius: 4px; }
html[data-y2k] h2 .anchor { opacity: 1; color: #7fff00; -webkit-text-fill-color: #7fff00; border: 0; background: none; }
html[data-y2k] section:target h2 { filter: drop-shadow(2px 2px 0 #000) drop-shadow(0 0 14px #ff00e6); }

/* ---------- hero ---------- */
html[data-y2k] .hero { background: none; padding-block: 26px 30px; }
html[data-y2k] .eyebrow { color: #00e5ff; text-shadow: 0 0 8px #00e5ff; font-family: var(--body); }
html[data-y2k] .hero .walmoji { filter: drop-shadow(0 0 10px #ff00e6) drop-shadow(0 0 20px #00e5ff); }
html[data-y2k] .hero-photo { border: 6px ridge #c0c0c0; border-radius: 0; transform: none; box-shadow: 0 0 18px #00e5ff; }
html[data-y2k] .hero-photo img { aspect-ratio: 3 / 4; }
html[data-y2k] .hero-photo:hover { transform: none; }

.blink { animation: y2k-blink 1s steps(1) infinite; }
@keyframes y2k-blink { 50% { opacity: 0; } }
html[data-y2k] .new {
  font: 700 .75rem var(--body); color: #000; background: #ffee00; padding: 2px 6px;
  border: 2px outset #fff; margin-left: 8px; vertical-align: middle; transform: rotate(-6deg); display: inline-block;
}

/* Marquee banner across the very top. */
.marquee-bar { background: #000; color: #47ff00; font: 700 13px/1 "Courier New", monospace; padding: 6px 0; border-bottom: 2px solid #47ff00; letter-spacing: .05em; }
.marquee-bar marquee { display: block; }

/* LED hit counter. */
.counter { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font: 700 .8rem var(--body); color: #fff; text-transform: uppercase; }
.counter .digits { display: inline-flex; gap: 2px; padding: 3px; background: #333; border: 2px inset #999; }
.counter .digits span { display: inline-block; width: 16px; padding: 2px 0; text-align: center; background: #000; color: #47ff00; font: 700 1rem "Courier New", monospace; text-shadow: 0 0 6px #47ff00; }

/* ---------- nav: glossy aqua ---------- */
html[data-y2k] .nav { background: linear-gradient(180deg, #e6f0ff 0%, #b8cdf5 50%, #8fb0ee 51%, #c8dbfa 100%); border-block: 2px solid #fff; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 3px 8px rgba(0, 0, 0, .5); }
html[data-y2k] .nav a {
  background: var(--gloss); border: 1px solid #022a66; color: #fff; font: 700 .8rem var(--body);
  text-shadow: 0 1px 0 #013; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 2px 3px rgba(0, 0, 0, .5); border-radius: 999px;
}
html[data-y2k] .nav a:hover { filter: brightness(1.15); color: #fff; border-color: #022a66; }
html[data-y2k] .nav a[aria-current] { background: linear-gradient(180deg, #ffb8f8 0%, #ff3cf0 48%, #c000b0 52%, #ff7af4 100%); border-color: #4a0044; }
html[data-y2k] .nav .brand img { filter: drop-shadow(0 0 4px #fff); }

/* ---------- panels: bevelled everything ---------- */
html[data-y2k] .rules li, html[data-y2k] .facts li, html[data-y2k] .meow, html[data-y2k] .gallery figure, html[data-y2k] .schedule, html[data-y2k] .callout {
  border: 3px outset #9fd0ff; border-radius: 4px;
  background: linear-gradient(180deg, #182a8a 0%, #0b1550 100%);
  box-shadow: 0 0 12px rgba(0, 229, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
html[data-y2k] .rule-ico { background: #000; border: 2px inset #9fd0ff; border-radius: 4px; }
html[data-y2k] .callout { border-left-width: 3px; }
html[data-y2k] .callout.danger { border-color: #ff3355; background: linear-gradient(180deg, #5a0a2a, #2a0515); box-shadow: 0 0 14px rgba(255, 51, 85, .6); }
html[data-y2k] .callout-title { color: #ff3355; -webkit-text-fill-color: #ff3355; background: none; filter: drop-shadow(1px 1px 0 #000); }

html[data-y2k] .schedule thead th { background: var(--gloss); color: #fff; text-shadow: 0 1px 0 #013; border-bottom: 2px solid #fff; }
html[data-y2k] .schedule tbody tr + tr td { border-top: 1px dotted #4d7cff; }
html[data-y2k] .schedule .time { color: #ffe93c; text-shadow: 0 0 8px #ffe93c; }
html[data-y2k] .tag { border: 2px outset #fff; border-radius: 3px; }
html[data-y2k] .tag.auto { background: #47ff00; color: #003; }
html[data-y2k] .tag.you { background: #ff00e6; color: #fff; }

/* ---------- tier lists: neon ---------- */
html[data-y2k] .tierlist { border: 3px ridge #c0c0c0; box-shadow: 0 0 0 2px #00e5ff, 0 0 22px #00e5ff; }
html[data-y2k] .tier-label { background: var(--chrome) !important; color: #000; font-style: italic; text-shadow: 0 1px 0 #fff; border-right: 2px solid #000; }
html[data-y2k] .tier-goated .tier-label { box-shadow: inset 0 0 0 3px #ff3cf0; }
html[data-y2k] .tier-mid .tier-label { box-shadow: inset 0 0 0 3px #ffe93c; }
html[data-y2k] .tier-dead .tier-label { box-shadow: inset 0 0 0 3px #00e5ff; }
html[data-y2k] .tier-items li { border: 2px outset #9fd0ff; }
html[data-y2k] .tier-items li.ghost { border: 0; font-family: var(--comic); }

/* ---------- soundboard: glossy orbs ---------- */
html[data-y2k] .play { background: radial-gradient(circle at 35% 28%, #fff 0, #ff8af6 22%, #ff00e6 58%, #6a0060 100%); box-shadow: 0 0 16px #ff00e6, inset 0 -6px 10px rgba(0, 0, 0, .4); }
html[data-y2k] .play:disabled { background: radial-gradient(circle at 35% 28%, #ddd, #666 60%, #222); box-shadow: none; }
html[data-y2k] .meow.playing { box-shadow: 0 0 0 3px #47ff00, 0 0 24px #47ff00; }
html[data-y2k] .bars i { background: #47ff00; box-shadow: 0 0 6px #47ff00; }
html[data-y2k] .meow .status { color: #7fff00; font-family: var(--comic); }

/* ---------- gallery ---------- */
html[data-y2k] .gallery figure { border: 6px ridge #c0c0c0; }
html[data-y2k] .lightbox img { border: 6px ridge #c0c0c0; border-radius: 0; }
html[data-y2k] .lb-close { background: var(--gloss); border: 1px solid #022a66; }

/* ---------- paws: hue-cycling ---------- */
html[data-y2k] .paws { animation: y2k-hue 9s linear infinite; }
@keyframes y2k-hue { to { filter: hue-rotate(360deg); } }

/* ---------- footer: badges + guestbook ---------- */
html[data-y2k] footer { color: #fff; font-family: var(--comic); }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0; }
.badge88 {
  width: 88px; height: 31px; display: inline-flex; align-items: center; justify-content: center;
  font: 700 9px/1.05 Verdana, sans-serif; text-transform: uppercase; text-align: center; letter-spacing: .02em;
  border: 2px outset #ccc; color: #fff; text-decoration: none; padding: 0 3px;
}
.badge88.construction { background: repeating-linear-gradient(45deg, #ffee00 0 8px, #000 8px 16px); color: #000; text-shadow: 0 0 3px #ffee00, 0 0 3px #ffee00; }
.badge88.netscape { background: linear-gradient(180deg, #2b5bd7, #061a5c); }
.badge88.notepad { background: linear-gradient(180deg, #d9d9d9, #8f8f8f); color: #000; }
.badge88.ie { background: linear-gradient(180deg, #4cc3ff, #0a5ce6); }
.badge88.valid { background: linear-gradient(180deg, #ffb400, #ff6a00); color: #000; }
.badge88.guestbook { background: linear-gradient(180deg, #ff7af4, #a4008f); }
html[data-y2k] .y2k-toggle { background: var(--gloss); color: #fff; border: 1px solid #022a66; text-shadow: 0 1px 0 #013; }
.y2k-toggle {
  font: 700 .85rem var(--display, inherit); padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); margin-left: 6px; vertical-align: middle;
}
.y2k-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- sparkle cursor trail ---------- */
.sparkle {
  position: fixed; pointer-events: none; z-index: 9999; font-size: 14px; line-height: 1;
  animation: y2k-sparkle .7s ease-out forwards; text-shadow: 0 0 6px currentColor;
}
@keyframes y2k-sparkle { to { transform: translate(var(--dx), 24px) rotate(90deg) scale(.2); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html[data-y2k] .paws { animation: none; }
  .blink { animation: none; }
}

/* ===================================================================
   WALLYSPACE. A MySpace profile, 2006 defaults: Verdana 11px, #6699cc
   blue, #ff6600 orange headings, light-blue box headers, white tables.
   =================================================================== */
html[data-y2k] .ws-bar { background: #6699cc; border-bottom: 1px solid #036; font: 11px Verdana, sans-serif; color: #fff; }
html[data-y2k] .ws-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 6px; }
html[data-y2k] .ws-logo { font: 700 22px/1 "Arial Black", Impact, sans-serif; color: #fff; text-decoration: none; letter-spacing: -.02em; display: inline-flex; align-items: baseline; gap: 8px; }
html[data-y2k] .ws-logo small { font: 11px Verdana, sans-serif; color: #dbe9ff; }
html[data-y2k] .ws-links { color: #dbe9ff; }
html[data-y2k] .ws-links a { color: #fff; text-decoration: none; }
html[data-y2k] .ws-links a:hover { text-decoration: underline; }

html[data-y2k] .ws { font: 11px/1.5 Verdana, Tahoma, sans-serif; color: #000; }
html[data-y2k] .ws::after { display: none; }
html[data-y2k] .ws-grid { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; background: #fff; padding: 12px; border: 3px ridge #c0c0c0; box-shadow: 0 0 22px #00e5ff; }
html[data-y2k] .ws a { color: #003399; text-decoration: underline; }
html[data-y2k] .ws a:visited { color: #003399; }
html[data-y2k] .ws strong { color: #000; }
html[data-y2k] .ws-muted { color: #666; font-weight: 400; }
html[data-y2k] .ws-name { font: 700 22px Arial, sans-serif; color: #000; background: none; -webkit-text-fill-color: #000; filter: none; margin: 0 0 6px; font-style: normal; letter-spacing: 0; }

html[data-y2k] .ws-profile { display: grid; grid-template-columns: 120px 1fr; gap: 10px; margin-bottom: 12px; }
html[data-y2k] .ws-profile img { width: 120px; height: 120px; border: 1px solid #000; object-fit: cover; background: #fff; }
html[data-y2k] .ws-stats p { margin: 0 0 6px; }

html[data-y2k] .ws-box { border: 1px solid #6699cc; margin-bottom: 12px; background: #fff; }
html[data-y2k] .ws-head { background: #b1d0f0; color: #336699; font: 700 12px Verdana, sans-serif; padding: 4px 6px; border-bottom: 1px solid #6699cc; }
html[data-y2k] .ws-body { padding: 8px; }
html[data-y2k] .ws-body p { margin: 0 0 8px; }
html[data-y2k] .ws-body h4 { font: 700 13px Arial, sans-serif; color: #ff6600; margin: 6px 0 2px; }
html[data-y2k] .ws-song audio { width: 100%; height: 32px; margin-top: 4px; }

html[data-y2k] .ws-contact { list-style: none; margin: 0; padding: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; background: #fff; }
html[data-y2k] .ws-contact a { text-decoration: none; }
html[data-y2k] .ws-contact a:hover { text-decoration: underline; }

html[data-y2k] .ws-table { width: 100%; border-collapse: collapse; }
html[data-y2k] .ws-table th { width: 34%; text-align: left; vertical-align: top; background: #b1d0f0; color: #336699; padding: 4px 6px; border-bottom: 1px solid #fff; font-weight: 700; }
html[data-y2k] .ws-table td { padding: 4px 6px; border-bottom: 1px solid #dbe9ff; vertical-align: top; }

html[data-y2k] .ws-network { border: 2px solid #6699cc; padding: 10px; text-align: center; font-size: 14px; margin-bottom: 12px; background: #fff; }
html[data-y2k] .ws-blog { margin: 0; padding: 8px 8px 8px 24px; }
html[data-y2k] .ws-blog li { margin-bottom: 3px; }

html[data-y2k] .ws-top8 { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
html[data-y2k] .ws-top8 a { display: grid; justify-items: center; gap: 2px; text-decoration: none; text-align: center; }
html[data-y2k] .ws-top8 span { display: grid; place-items: center; width: 100%; aspect-ratio: 1; font-size: 34px; background: #eef4fb; border: 1px solid #6699cc; }
html[data-y2k] .ws-top8 a:hover { text-decoration: underline; }

html[data-y2k] .ws-comments { list-style: none; margin: 0; padding: 0; }
html[data-y2k] .ws-comments li { display: grid; grid-template-columns: 96px 1fr; border-top: 1px solid #6699cc; }
html[data-y2k] .ws-who { background: #b1d0f0; padding: 6px; text-align: center; display: grid; justify-items: center; gap: 2px; }
html[data-y2k] .ws-who span { font-size: 30px; display: grid; place-items: center; width: 60px; height: 60px; background: #fff; border: 1px solid #6699cc; }
html[data-y2k] .ws-said { padding: 6px 8px; }
html[data-y2k] .ws-said time { display: block; color: #666; margin-bottom: 4px; }
html[data-y2k] .ws-said p { margin: 0; }

@media (max-width: 720px) {
  html[data-y2k] .ws-grid { grid-template-columns: 1fr; }
  html[data-y2k] .ws-top8 { grid-template-columns: repeat(4, 1fr); }
  html[data-y2k] .ws-links { display: none; }
}
