/* -----------------------------------------------------------------
   Phase B — Legacy 2005 Mode (Web 1.0 aesthetic)
   Deliberately cluttered, bevelled, tiled, WordArt-heavy.
   ----------------------------------------------------------------- */

.legacy {
  min-height: 100vh;
  min-width: 920px;
  padding: 0 0 28px;
  background: #c0c0c0;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
}

/* ---------- DataDrei-style site frame ---------- */

.legacy-dd {
  width: 880px;
  max-width: calc(100vw - 24px);
  margin: 0 auto;
  background: #fff;
  border: 1px solid #336699;
  box-shadow: 2px 2px 0 #808080;
}

.legacy-dd__tabs {
  display: flex;
  width: 100%;
  border-bottom: 1px solid #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.legacy-dd__tab {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  color: #fff;
  border-right: 1px solid #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legacy-dd__tab:last-child {
  border-right: 0;
}

.legacy-dd__tab--1 { background: #cc0000; }
.legacy-dd__tab--2 { background: #ff6600; }
.legacy-dd__tab--3 { background: #cccc00; color: #000; }
.legacy-dd__tab--4 { background: #009900; }
.legacy-dd__tab--5 { background: #00cccc; color: #000; }
.legacy-dd__tab--6 { background: #0066cc; }
.legacy-dd__tab--7 { background: #663399; }
.legacy-dd__tab--8 { background: #663300; }

.legacy-dd__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 8px;
  background: #e8e8e8;
  border-bottom: 1px solid #999;
  font-size: 11px;
  font-family: Arial, Helvetica, sans-serif;
}

.legacy-dd__stats-text {
  flex: 1;
  text-align: right;
  color: #333;
}

.legacy-dd__fix {
  flex-shrink: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  background: #ffffcc;
  border: 2px outset #fff;
  cursor: pointer;
  color: #c00;
}

.legacy-dd__fix:hover,
.legacy-dd__fix:focus-visible {
  background: #ffcccc;
  outline: 1px dotted #000;
}

.legacy-dd__breadcrumb {
  font-size: 12px;
  margin-bottom: 6px;
}

.legacy-dd__breadcrumb a {
  color: #0000cc;
  text-decoration: underline;
}

.legacy-dd__rule {
  border: 0;
  border-top: 1px solid #336699;
  margin: 8px 0 10px;
}

.legacy-dd__banner-inline {
  margin: 10px 0;
  padding: 6px 8px;
  background: #ffff99;
  border: 1px dashed #cc0000;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.legacy-dd__hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.legacy-dd__btn-link {
  display: inline-block;
  text-decoration: none;
  color: #000;
  text-align: center;
  line-height: 1.2;
}

.legacy-dd__grid {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 10px;
}

.legacy-dd__cell {
  width: 50%;
  vertical-align: top;
  padding: 0 4px 8px 0;
  border: 0;
}

.legacy-dd__cell + .legacy-dd__cell {
  padding-left: 4px;
  padding-right: 0;
}

.panel--dd {
  background: #fff;
  border: 1px solid #6699cc;
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 10px;
}

.panel--dd-tight {
  min-height: 140px;
}

.panel--dd__h2 {
  margin: 0 0 8px;
  padding: 0 0 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0000aa;
  text-decoration: underline;
  border-bottom: 1px solid #ccc;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  text-shadow: none;
}

.panel--dd__lead {
  margin: 0 0 8px;
  font-size: 13px;
}

.panel--dd p,
.panel--dd li {
  font-size: 13px;
  line-height: 1.45;
}

.panel--dd ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.legacy-dd__list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
  font-size: 13px;
}

.legacy-dd__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent #cc0000;
}

.legacy-dd__teaser {
  width: 100%;
}

.legacy-dd__teaser-box {
  border: 1px solid #6699cc;
  padding: 8px;
  text-align: center;
  background: #f5f5f5;
}

.legacy-dd__teaser-box img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  border: 1px solid #333;
  margin: 0 auto 6px;
}

.legacy-dd__sidebox {
  background: #ffffcc;
  border: 1px solid #999900;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.legacy-dd__label {
  color: #cc0000;
  font-weight: 700;
}

.legacy-dd__navblock {
  margin-bottom: 10px;
  border: 1px solid #000066;
}

.legacy-dd__navhead {
  background: #000080;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-bottom: 1px solid #000066;
}

.legacy-dd__navlist {
  list-style: none;
  margin: 0;
  padding: 6px 8px 8px;
  background: #fff;
  font-size: 12px;
}

.legacy-dd__navlist li {
  margin-bottom: 4px;
}

.legacy-dd__navlist a {
  color: #0000cc;
  text-decoration: underline;
}

/* ---------- Top skip banner ---------- */

.legacy__exit-banner {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #ffff00;
  color: #cc0000;
  border-bottom: 3px solid #000;
  font-weight: 700;
  text-align: center;
  padding: 6px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "Verdana", sans-serif;
  font-size: 13px;
}

.legacy__exit-banner marquee {
  display: block;
  width: 100%;
  margin: 0 auto;
  color: #cc0000;
  text-align: center;
}

.legacy__skip-btn {
  align-self: center;
  font-family: "Arial Black", "Verdana", sans-serif;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(180deg, #ff3b3b, #990000);
  border: 2px outset #ff7b7b;
  padding: 6px 14px;
  box-shadow: 2px 2px 0 #000;
  cursor: pointer;
  text-shadow: 1px 1px 0 #000;
  letter-spacing: 0.05em;
}

.legacy__skip-btn:hover,
.legacy__skip-btn:focus-visible {
  background: linear-gradient(180deg, #ff6666, #cc0000);
  outline: 2px dashed #fff;
}

.legacy__chaos-strip {
  border-top: 3px double #000;
  border-bottom: 3px double #000;
  background:
    repeating-linear-gradient(
      90deg,
      #ff00ff 0 12px,
      #00ffff 12px 24px,
      #ffff00 24px 36px
    );
  color: #000;
  font-family: "Arial Black", "Impact", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #fff;
}

.legacy__chaos-strip marquee {
  padding: 4px 0;
  border-top: 1px dotted #000;
}

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

.legacy__masthead {
  text-align: left;
  padding: 12px 14px 10px;
  background: #fff;
}

.wordart {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
  color: #000080;
  text-align: left;
  transform: none;
  filter: none;
  background: none;
  -webkit-text-fill-color: #000080;
}

.legacy__subtitle {
  margin: 8px 0 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: #cc0000;
  text-shadow: none;
  letter-spacing: 0.04em;
}

.legacy__under-construction {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: #000;
  color: #ffff00;
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 13px;
  border: 2px dashed #ffff00;
}

/* DIY "under construction" GIF (animated barber-pole + cone) */
.uc-gif {
  display: inline-block;
  width: 26px;
  height: 22px;
  background:
    linear-gradient(
      -45deg,
      #ffcc00 0 6px,
      #000 6px 12px
    );
  background-size: 16px 16px;
  border: 1px solid #000;
  animation: ucScroll 700ms linear infinite;
}

@keyframes ucScroll {
  to {
    background-position: 16px 0;
  }
}

.blink {
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- Cluttered layout ---------- */

.legacy__layout {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 0;
  padding: 0 10px 10px;
  border-top: 1px solid #ccc;
  background: #fff;
}

.legacy__sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 14px;
}

.legacy__main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Shared panel — bevelled Windows-style */
.panel {
  background: #c0c0c0;
  color: #000;
  border: 2px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  box-shadow:
    inset -1px -1px 0 #808080,
    inset 1px 1px 0 #dfdfdf,
    3px 3px 0 rgba(0, 0, 0, 0.5);
  padding: 10px 12px 14px;
}

.panel h2 {
  margin: 0 0 8px;
  padding: 4px 8px;
  background: linear-gradient(180deg, #000080, #1084d0);
  color: #fff;
  font-family: "Verdana", sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1px solid #000;
  text-shadow: 1px 1px 0 #000;
}

.panel.panel--dd h2.panel--dd__h2 {
  margin: 0 0 8px;
  padding: 0 0 4px;
  background: none;
  color: #0000aa;
  border: 0;
  border-bottom: 1px solid #ccc;
  text-shadow: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
}

.panel h3 {
  margin: 0 0 6px;
  font-family: "Verdana", sans-serif;
  font-size: 12px;
  color: #000080;
  border-bottom: 1px dashed #808080;
  padding-bottom: 3px;
}

.panel p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.45;
}

.panel a {
  color: #0000ee;
  text-decoration: underline;
}

.panel a:visited {
  color: #551a8b;
}

.panel a:hover,
.panel a:focus-visible {
  color: #ff0000;
}

.tiny {
  font-size: 11px;
  font-family: "Verdana", sans-serif;
  color: #222;
}

/* ---------- Sidebar widgets ---------- */

.legacy__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Verdana", sans-serif;
  font-size: 12px;
}

.legacy__nav li {
  padding: 3px 0;
  border-bottom: 1px dotted #808080;
}

.legacy__nav a {
  text-decoration: none;
  color: #0000ee;
}

.legacy__nav a:hover,
.legacy__nav a:focus-visible {
  color: #fff;
  background: #000080;
  padding: 0 4px;
  margin: 0 -4px;
  text-decoration: underline;
}

.hit-counter {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: #000;
  border: 2px inset #888;
}

.hit-counter span {
  display: inline-block;
  min-width: 16px;
  padding: 2px 4px;
  background: #000;
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  border: 1px solid #111;
  text-shadow: 0 0 4px #00ff00;
}

.panel--chaos {
  background:
    repeating-linear-gradient(
      -45deg,
      #ffff8b 0 8px,
      #ffd6d6 8px 16px
    );
  border-color: #fff;
  border-right-color: #700000;
  border-bottom-color: #700000;
}

.legacy__auction {
  margin: 0 0 10px;
  padding: 0 0 0 16px;
  font-family: "Verdana", sans-serif;
  font-size: 11px;
  line-height: 1.35;
}

.legacy__auction li {
  margin-bottom: 5px;
  color: #6b0000;
  font-weight: 700;
}

.legacy__auction-btn {
  display: inline-block;
  text-decoration: none;
  background: #ffeb3b;
}

/* ---------- Main content ---------- */

.legacy__skills {
  margin: 0 0 8px;
  padding-left: 22px;
  font-size: 13px;
}

.legacy__skills li {
  margin-bottom: 4px;
}

.legacy__job {
  border-top: 1px dashed #808080;
  padding: 8px 0 4px;
}

.legacy__job:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.legacy__job h3 {
  font-size: 14px;
  color: #000080;
  margin: 0 0 2px;
  border: 0;
  padding: 0;
}

.legacy__job .tiny {
  margin: 0 0 4px;
  color: #555;
}

.legacy__details {
  margin-top: 10px;
  background: #ffffe0;
  border: 1px dashed #808080;
  padding: 6px 10px;
}

.legacy__details summary {
  cursor: pointer;
  color: #000080;
  font-family: "Verdana", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.legacy__projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.legacy__projects a {
  display: block;
  padding: 6px;
  text-decoration: none;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
  color: #000080;
  font-family: "Verdana", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.legacy__projects a:hover,
.legacy__projects a:focus-visible {
  background: #ffff99;
  outline: 2px dashed #ff0000;
}

.legacy__projects img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border: 1px solid #000;
  margin-bottom: 4px;
}

.legacy__guestbook {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "Verdana", sans-serif;
  font-size: 12px;
}

.legacy__guestbook input,
.legacy__guestbook textarea {
  width: 100%;
  padding: 4px 6px;
  background: #fff;
  border: 2px inset #c0c0c0;
  font-family: inherit;
  font-size: 12px;
}

.btn-3d {
  align-self: flex-start;
  font-family: "Verdana", sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 18px;
  background: #c0c0c0;
  border: 2px outset #eee;
  box-shadow: inset 1px 1px 0 #fff, 2px 2px 0 #404040;
  color: #000;
}

.btn-3d:active {
  border-style: inset;
}

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

.legacy__footer {
  width: 100%;
  margin: 0;
  padding: 10px 12px 12px;
  text-align: center;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  background: #000080;
  border-top: 2px solid #000040;
}

.legacy__footer p {
  margin: 2px 0;
}

.legacy__footer a {
  color: #ccccff;
}

.legacy__stickers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 120;
}

.sticker {
  position: absolute;
  padding: 4px 8px;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  font-family: "Arial Black", "Impact", sans-serif;
  font-size: 15px;
  transform: rotate(-10deg);
  animation: stickerPulse 750ms steps(2) infinite;
}

.sticker--new {
  left: 1.2rem;
  top: 26%;
  background: #ff0000;
  color: #fff;
}

.sticker--wow {
  right: 1.8rem;
  top: 34%;
  background: #00ff00;
  color: #000;
  transform: rotate(9deg);
}

.sticker--sale {
  right: 2.2rem;
  bottom: 1.4rem;
  background: #ffff00;
  color: #000;
  transform: rotate(-6deg);
}

@keyframes stickerPulse {
  50% {
    filter: contrast(1.4) saturate(2);
  }
}


/* ================================================================
   HARDCORE CHAOS EXTENSIONS
   ================================================================ */

/* ---------- Floating symbols (float-field) ---------- */

#float-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9989;
  overflow: hidden;
}

.float-symbol {
  position: absolute;
  bottom: -40px;
  animation: floatUp linear forwards;
  text-shadow: 0 0 8px currentColor;
  font-weight: 900;
  user-select: none;
}

@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0) rotate(0deg);               opacity: 1; }
  50%  { transform: translateY(-50vh) translateX(var(--drift, 0px)) rotate(180deg); opacity: 0.9; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-115vh) translateX(calc(var(--drift, 0px) * 2)) rotate(360deg); opacity: 0; }
}

/* ---------- Fake loading bar in masthead ---------- */

.legacy__fake-loading {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 10px auto 8px;
  max-width: 480px;
  padding: 8px 12px;
  background: #001800;
  border: 2px solid #00ff00;
  box-shadow: 0 0 8px rgba(0,255,0,0.4), inset 0 0 10px rgba(0,255,0,0.05);
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #00ff00;
}

.legacy__fl-label {
  text-align: center;
  text-shadow: 0 0 4px #00ff00;
}

.legacy__fl-bar {
  height: 14px;
  background: #000;
  border: 1px inset #00aa00;
  overflow: hidden;
  position: relative;
}

.legacy__fl-fill {
  height: 100%;
  background: linear-gradient(90deg, #004400, #00ff00, #88ff00, #00ff00);
  background-size: 200% 100%;
  animation: fillStuck 9s ease-in-out infinite, fillShimmer 1.2s linear infinite;
  width: 87%;
}

@keyframes fillStuck {
  0%   { width: 0%; }
  60%  { width: 87%; }
  100% { width: 87%; }
}

@keyframes fillShimmer {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ---------- Congratulations banner ---------- */

.legacy__congrats {
  margin: 8px auto 0;
  max-width: 700px;
  padding: 8px 12px;
  background: #000;
  color: #ffff00;
  font-family: "Arial Black", "Impact", sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  border: 3px double #ff00ff;
  text-shadow: 0 0 6px #ff0000, 2px 2px 0 #000;
  letter-spacing: 0.04em;
  animation: congratsPulse 600ms steps(2) infinite;
}

@keyframes congratsPulse {
  50% {
    background: #1a0030;
    border-color: #ffff00;
    color: #ff00ff;
  }
}

.legacy__ip-tracker {
  margin: 4px 0 0;
  color: #00ffff;
  font-family: "Courier New", monospace;
  text-shadow: 0 0 4px #00ffff;
}

/* ---------- Rainbow horizontal rule ---------- */

.legacy-rainbow-hr {
  height: 5px;
  border: none;
  background: linear-gradient(
    90deg,
    #ff0000, #ff4400, #ff8800, #ffcc00,
    #ffff00, #aaff00, #00ff00, #00ffaa,
    #00ffff, #0088ff, #0000ff, #4400ff,
    #8800ff, #cc00ff, #ff00ff, #ff0055,
    #ff0000
  );
  background-size: 200% 100%;
  animation: rainbowSlide 1.8s linear infinite;
  margin: 0;
}

@keyframes rainbowSlide {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ---------- MIDI player ---------- */

.midi-player {
  background: #0a0a0a;
  border: 2px inset #333;
  padding: 6px 8px;
  font-family: "Courier New", monospace;
  font-size: 10px;
}

.midi-player .tiny {
  color: #00ff00;
  font-family: "Courier New", monospace;
  text-shadow: 0 0 4px #00ff00;
  margin: 0 0 4px;
}

.midi-controls {
  display: flex;
  gap: 4px;
  margin: 4px 0;
}

.midi-controls .btn-3d {
  font-size: 10px;
  padding: 2px 7px;
  line-height: 1.4;
}

.midi-viz {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 22px;
  padding: 2px 0 0;
}

.midi-viz span {
  flex: 1;
  background: #00ff00;
  box-shadow: 0 0 4px #00ff00;
  animation: midiBar ease infinite alternate;
  min-height: 2px;
}

.midi-viz span:nth-child(1) { animation-duration: 380ms; animation-delay:   0ms; }
.midi-viz span:nth-child(2) { animation-duration: 440ms; animation-delay:  60ms; }
.midi-viz span:nth-child(3) { animation-duration: 310ms; animation-delay: 130ms; }
.midi-viz span:nth-child(4) { animation-duration: 490ms; animation-delay:  20ms; }
.midi-viz span:nth-child(5) { animation-duration: 360ms; animation-delay:  90ms; }
.midi-viz span:nth-child(6) { animation-duration: 420ms; animation-delay:  45ms; }

@keyframes midiBar {
  from { height: 2px; }
  to   { height: 20px; }
}

/* ---------- ICQ / Online status dot ---------- */

.icq-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00cc00;
  box-shadow: 0 0 4px #00cc00;
  animation: icqPulse 1.4s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 2px;
}

@keyframes icqPulse {
  0%, 100% { box-shadow: 0 0 4px #00cc00; transform: scale(1); }
  50%       { box-shadow: 0 0 12px #00ff00, 0 0 24px #00ff00; transform: scale(1.15); }
}

/* ---------- Horoscope ---------- */

.horoscope-sign {
  font-size: 32px;
  text-align: center;
  line-height: 1;
  margin: 2px 0 4px;
  animation: signFloat 2.2s ease-in-out infinite alternate;
  text-shadow: 0 0 8px #ff00ff;
  color: #ff00ff;
}

@keyframes signFloat {
  from { transform: translateY(0) rotate(-3deg); }
  to   { transform: translateY(-5px) rotate(3deg); }
}

/* ---------- Award badges ---------- */

.panel--awards {
  background: linear-gradient(135deg, #ffe8a0, #ffd060);
  border-color: #ffaa00;
  border-right-color: #886600;
  border-bottom-color: #886600;
}

.award-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.award-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "Arial Black", "Impact", sans-serif;
  font-size: 8px;
  font-weight: 900;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  line-height: 1.15;
  cursor: default;
}

.award--top {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  color: #000;
  animation: badgeBounce 3s ease-in-out infinite;
}

.award--wow {
  background: linear-gradient(135deg, #ff00ff 0%, #7700cc 100%);
  color: #fff;
  animation: badgeBounce 2.6s ease-in-out infinite reverse;
}

.award--hot {
  background: linear-gradient(135deg, #ff4400 0%, #ff0000 100%);
  color: #ffff00;
  animation: badgeBounce 3.4s ease-in-out infinite;
}

@keyframes badgeBounce {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  30%       { transform: scale(1.12) rotate(2deg); }
  60%       { transform: scale(0.96) rotate(-1deg); }
}

/* ---------- Sponsored ad panel ---------- */

.legacy__ad {
  border: 3px dashed #ff0000;
  background: linear-gradient(135deg, #fffbe6 0%, #fff0a0 100%);
  padding: 8px 10px;
  text-align: center;
  font-family: "Comic Neue", "Comic Sans MS", cursive;
  animation: adBorderPulse 1.5s ease infinite;
}

.legacy__ad-title {
  font-size: 13px;
  font-weight: 900;
  color: #cc0000;
  text-shadow: 1px 1px 0 #fff;
  letter-spacing: 0.04em;
}

.legacy__ad-body {
  font-size: 11px;
  color: #000;
  margin: 3px 0;
  line-height: 1.3;
}

.legacy__ad-price {
  font-size: 24px;
  font-weight: 900;
  color: #ff0000;
  text-shadow: 2px 2px 0 #000;
  line-height: 1.1;
  animation: blink 0.45s steps(2) infinite;
}

@keyframes adBorderPulse {
  0%, 100% { border-color: #ff0000; background-position: 0% 0%; }
  50%       { border-color: #0000ff; background-position: 100% 100%; }
}

/* ---------- Windows status bar ---------- */

#legacy-statusbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9899;
  background: linear-gradient(180deg, #d4d0c8, #bfbbb2);
  border-top: 2px solid #fff;
  display: flex;
  align-items: stretch;
  height: 22px;
  font-family: "Tahoma", "Verdana", sans-serif;
  font-size: 11px;
  color: #000;
  box-shadow: 0 -2px 0 #808080;
}

.statusbar__cell {
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-right: 1px solid #808080;
  border-left: 1px solid #fff;
  white-space: nowrap;
  flex-shrink: 0;
  height: 100%;
}

.statusbar__ticker {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-right: 1px solid #808080;
  border-left: 1px solid #fff;
}

.statusbar__ticker-inner {
  white-space: nowrap;
  animation: tickerScroll 28s linear infinite;
}

@keyframes tickerScroll {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ---------- Extra XP popup variants ---------- */

#popup-million {
  left: 6%;
  top: 12%;
  transform: none;
  animation: xpPopSimple 140ms ease-out;
}

#popup-virus {
  left: auto;
  right: 3%;
  top: 30%;
  transform: none;
  animation: xpPopSimple 140ms ease-out;
}

#popup-survey {
  left: 28%;
  top: 50%;
  transform: none;
  animation: xpPopSimple 140ms ease-out;
}

@keyframes xpPopSimple {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.xp-window--prize .xp-window__titlebar {
  background: linear-gradient(180deg, #c06000 0%, #884400 40%, #c06000 100%);
}

.xp-window--prize {
  border-color: #c06000;
}

.xp-window--virus .xp-window__titlebar {
  background: linear-gradient(180deg, #aa0000 0%, #700000 40%, #aa0000 100%);
}

.xp-window--virus {
  border-color: #dd0000;
}

.xp-window--survey .xp-window__titlebar {
  background: linear-gradient(180deg, #006830 0%, #004820 40%, #006830 100%);
}

.xp-window--survey {
  border-color: #006830;
}

/* ---------- XP-style popup ---------- */

/* Above legacy status bar (9899) when dialogs are inside #legacy */
#legacy .xp-window {
  z-index: 10050;
}

.xp-window {
  position: fixed;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  z-index: 200;
  width: min(440px, calc(100% - 32px));
  font-family: "Tahoma", "Verdana", sans-serif;
  background: #ece9d8;
  border: 2px solid #0b4ea2;
  box-shadow:
    0 0 0 1px #000,
    8px 8px 0 rgba(0, 0, 0, 0.4);
  color: #000;
  animation: xpPop 140ms ease-out;
}

@keyframes xpPop {
  from {
    transform: translate(-50%, -20%) scale(0.92);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
}

.xp-window.is-intrusive {
  animation: xpShake 420ms ease;
  border-color: #d10000;
}

@keyframes xpShake {
  0%, 100% { transform: translate(-50%, 0); }
  20%      { transform: translate(-52%, -1%); }
  40%      { transform: translate(-48%, 1%); }
  60%      { transform: translate(-52%, 0); }
  80%      { transform: translate(-48%, 0); }
}

.xp-window__titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 4px 10px;
  background: linear-gradient(
    180deg,
    #0b4ea2 0%,
    #0a66c2 40%,
    #0b4ea2 100%
  );
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.xp-window__controls {
  display: flex;
  gap: 2px;
}

.xp-window__controls button {
  width: 22px;
  height: 20px;
  background: #d4d0c8;
  border: 1px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  color: #000;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  font-family: inherit;
}

.xp-btn-close {
  background: #d10000 !important;
  color: #fff !important;
}

.xp-window__body {
  display: flex;
  gap: 14px;
  padding: 18px 16px 14px;
}

.xp-window__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffea00, #e0a000 70%, #7a5a00);
  border: 2px solid #000;
  border-radius: 50%;
  font-weight: 900;
  font-size: 28px;
  color: #000;
  box-shadow: inset 0 0 0 2px #fff6;
}

.xp-window__content {
  flex: 1;
}

.xp-window__content p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
}

.xp-window__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.xp-btn {
  min-width: 72px;
  padding: 4px 14px;
  background: #ece9d8;
  border: 1px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  box-shadow: inset 1px 1px 0 #fff;
  font-family: inherit;
  font-size: 12px;
  color: #000;
}

.xp-btn:active {
  border-color: #404040 #fff #fff #404040;
  box-shadow: inset -1px -1px 0 #fff;
}

.xp-btn--primary {
  font-weight: 700;
  outline: 1px dotted #000;
  outline-offset: -4px;
}
