/* ==========================================================
   brunafernandes.org — early-2000s HTML heavy stylesheet
   ========================================================== */

:root {
  --pink: #ff5fb4;
  --hotpink: #ff1493;
  --purple: #7b2cbf;
  --lilac: #c77dff;
  --yellow: #fff275;
  --gold: #e6c34a;
  --gold-dark: #b8901c;
  --sky: #7fdbff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", cursive;
  color: #fff;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><text y='20' font-size='20'>💖</text></svg>") 4 4, auto;
  /* tiled hearts + gradient */
  background-color: #b5179e;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><text x='4' y='20' font-size='14' opacity='0.18'>♥</text><text x='26' y='42' font-size='10' opacity='0.14'>♥</text></svg>"),
    linear-gradient(180deg, #ff5fb4 0%, #b5179e 40%, #7b2cbf 100%);
  background-attachment: fixed;
}

.comic { font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", cursive; }
.tiny { font-size: 12px; }
a { color: var(--yellow); }
a:visited { color: #ffb3e6; }
a:hover { color: #fff; text-decoration: none; background: var(--hotpink); }

/* ---------- blink (RIP <blink>) ---------- */
.blink { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ---------- SPLASH ---------- */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(circle at 50% 40%, #ff8fd0 0%, #b5179e 45%, #3c096c 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 20px;
}
#splash.hidden { display: none; }
.splash-box {
  background: rgba(0,0,0,0.25);
  border: 4px ridge var(--gold);
  padding: 30px 26px;
  max-width: 640px;
  box-shadow: 0 0 40px rgba(255,255,255,0.35);
}
.splash-title { font-size: clamp(38px, 8vw, 72px); margin-bottom: 8px; }
.splash-sub { color: var(--yellow); font-size: 22px; margin: 6px 0 14px; letter-spacing: 2px; }
.splash-warn { font-size: 13px; color: #ffe0f5; margin-bottom: 20px; }
.enter-btn {
  font-family: inherit;
  font-size: clamp(16px, 3vw, 24px);
  font-weight: bold;
  color: #3c096c;
  background: linear-gradient(#fff9c4, #ffd23f 50%, #ffb703);
  border: 4px outset #ffd23f;
  padding: 14px 26px;
  cursor: pointer;
  text-shadow: 1px 1px 0 #fff;
  animation: pulse 1.2s ease-in-out infinite;
}
.enter-btn:hover { background: linear-gradient(#ffd23f, #fff9c4); border-style: inset; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.splash-tiny { font-size: 12px; color: #ffe0f5; margin-top: 14px; }
.splash-loading { font-family: "Courier New", monospace; font-size: 12px; margin-top: 8px; color: #ffe0f5; }

/* ---------- WORDART ---------- */
.wordart {
  font-family: "Impact", "Arial Black", "Haettenschweiler", sans-serif;
  font-weight: 900;
  letter-spacing: 1px;
  display: inline-block;
  transform: skewX(-8deg);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0,0,0,0.35);
  filter: drop-shadow(3px 3px 0 #000) drop-shadow(0 0 6px rgba(255,255,255,0.6));
  line-height: 1.05;
  margin: 0;
}
h1.wordart { font-size: clamp(44px, 9vw, 92px); }
h2.wordart { font-size: clamp(28px, 5vw, 44px); margin: 0 0 14px; }
.wordart-rainbow {
  background-image: linear-gradient(90deg, #ff004c, #ff8a00, #ffe600, #2bff00, #00d0ff, #7a00ff, #ff00d4);
  background-size: 300% 100%;
  animation: rainbow-slide 6s linear infinite;
}
@keyframes rainbow-slide { to { background-position: 300% 0; } }
.wordart-blue { background-image: linear-gradient(180deg, #d0f4ff 0%, #2f80ed 45%, #0b3d91 55%, #7fdbff 100%); }
.wordart-gold { background-image: linear-gradient(180deg, #fff6b0 0%, #ffd23f 45%, #b8901c 55%, #fff1a8 100%); }
.wordart-pink { background-image: linear-gradient(180deg, #ffe0f5 0%, #ff5fb4 45%, #c9184a 55%, #ffb3e6 100%); }
.bounce { animation: rainbow-slide 6s linear infinite, bounce 2.4s ease-in-out infinite; }
@keyframes bounce {
  0%,100% { transform: skewX(-8deg) translateY(0) rotate(-2deg); }
  50% { transform: skewX(-8deg) translateY(-8px) rotate(2deg); }
}

/* ---------- LAYOUT ---------- */
.topbar {
  background: #3c096c;
  color: var(--yellow);
  border-bottom: 3px ridge var(--gold);
  font-size: 14px;
  padding: 3px 0;
  position: relative; z-index: 3;
}
.visitor-inline { font-family: "Courier New", monospace; background: #000; padding: 0 3px; color: #0f0; }
table.page {
  width: 800px; max-width: 100%;
  position: relative; z-index: 2;
  margin: 12px auto 80px;
}
.page-cell {
  padding: 16px 12px 24px;
  background: rgba(60, 9, 108, 0.35);
  border: 4px double rgba(255,255,255,0.7);
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
}
.header { text-align: center; padding: 6px 0 10px; }
.subtitle {
  color: var(--yellow);
  font-size: clamp(18px, 3.4vw, 28px);
  text-shadow: 2px 2px 0 #7b2cbf, 0 0 10px #ff5fb4;
  margin-top: 6px;
}
.new-badge { margin-top: 10px; }
.badge-new {
  display: inline-block;
  background: #ff0000; color: #fff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 13px; padding: 1px 6px;
  border: 2px solid #ffff00; transform: rotate(-6deg);
  margin-right: 6px;
}

/* ---------- HERO ---------- */
.hero { margin: 16px auto 8px; text-align: center; }
.goldframe {
  display: inline-block;
  padding: 10px;
  background: linear-gradient(135deg, #fff1a8, #e6c34a 30%, #b8901c 50%, #e6c34a 70%, #fff1a8);
  border: 3px solid #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45), inset 0 0 0 2px #b8901c;
  animation: frame-glow 3s ease-in-out infinite;
}
@keyframes frame-glow {
  0%,100% { box-shadow: 0 6px 20px rgba(0,0,0,0.45), 0 0 0 rgba(255,255,255,0); }
  50% { box-shadow: 0 6px 20px rgba(0,0,0,0.45), 0 0 26px rgba(255,255,255,0.7); }
}
.goldframe img { display: block; width: 420px; max-width: 76vw; height: auto; border: 2px solid #3c096c; }
.caption { color: var(--yellow); font-size: 15px; margin-top: 8px; text-shadow: 1px 1px 0 #3c096c; }

/* ---------- PHOTO ROW ---------- */
table.photo-row { margin: 10px auto 0; width: 100%; }
table.photo-row td { width: 33.33%; text-align: center; vertical-align: top; }
.whiteframe {
  display: inline-block;
  background: #fff; padding: 6px;
  border: 2px ridge #ddd;
  transition: transform .2s;
}
.whiteframe:hover { transform: rotate(-3deg) scale(1.05); }
.whiteframe img { display: block; width: 100%; height: auto; border: 1px solid #999; }
.whiteframe .caption { color: #7b2cbf; text-shadow: none; font-size: 13px; margin: 4px 0 0; }

/* ---------- HR ---------- */
hr.rainbow-hr {
  border: 0; height: 6px; margin: 26px 10px;
  background: linear-gradient(90deg, #ff004c, #ff8a00, #ffe600, #2bff00, #00d0ff, #7a00ff, #ff00d4);
  box-shadow: 0 2px 0 #000;
}

/* ---------- SECTIONS ---------- */
.section { text-align: center; padding: 6px 8px; }
table.infobox {
  margin: 0 auto 18px;
  border-color: var(--gold);
  background: #fff0fa;
  color: #3c096c;
  font-size: 15px;
  max-width: 100%;
  border-style: ridge;
}
table.infobox th { background: var(--hotpink); color: #fff; font-size: 17px; letter-spacing: 1px; text-shadow: 1px 1px 0 #7b2cbf; }
table.infobox td { border: 1px dotted #c77dff; text-align: left; }
table.infobox td.k { font-weight: bold; color: var(--hotpink); white-space: nowrap; }
.why {
  text-align: left; display: inline-block; max-width: 560px;
  background: rgba(255,255,255,0.12); border: 2px dashed var(--yellow);
  padding: 12px 18px; font-size: 15px;
}
.why ol { margin: 8px 0 0; padding-left: 26px; }
.why li { margin: 4px 0; }

/* ---------- POEM PAPER ---------- */
.paper {
  display: inline-block;
  text-align: left;
  color: #2b1a4a;
  background:
    linear-gradient(90deg, transparent 38px, #ffb3c6 38px, #ffb3c6 40px, transparent 40px),
    repeating-linear-gradient(#fffdf5, #fffdf5 27px, #cfe3ff 27px, #cfe3ff 28px);
  padding: 20px 24px 20px 56px;
  border: 1px solid #ccc;
  box-shadow: 4px 4px 0 #3c096c, 8px 8px 0 rgba(0,0,0,0.25);
  font-size: 16px; line-height: 28px;
  transform: rotate(-1deg);
  max-width: 100%;
}
.paper p { margin: 0 0 28px; }
.paper .dots { color: #999; margin: 0 0 28px; }
.paper .author { font-style: italic; color: #7b2cbf; margin: 0; }

/* ---------- POLAROIDS ---------- */
.polaroids { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 12px; }
.polaroid {
  background: #fff; padding: 10px 10px 8px;
  width: 190px;
  box-shadow: 3px 4px 10px rgba(0,0,0,0.4);
  color: #3c096c; font-size: 13px;
  transition: transform .2s;
  position: relative;
}
.polaroid::before { /* tape */
  content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 20px;
  margin-left: -35px; background: rgba(255,255,150,0.75); transform: rotate(-3deg);
  border-left: 1px dashed rgba(0,0,0,0.15); border-right: 1px dashed rgba(0,0,0,0.15);
}
.polaroid img { width: 100%; height: 220px; object-fit: cover; display: block; border: 1px solid #ccc; margin-bottom: 6px; }
.tilt-l { transform: rotate(-4deg); } .tilt-r { transform: rotate(3deg); }
.tilt-l2 { transform: rotate(-2deg); } .tilt-r2 { transform: rotate(5deg); }
.polaroid:hover { transform: rotate(0) scale(1.08); z-index: 5; }
.polaroid:active { animation: wiggle .3s linear infinite; }
@keyframes wiggle { 0%,100% { transform: rotate(-4deg) scale(1.08);} 50% { transform: rotate(4deg) scale(1.08);} }

/* ---------- NOTE ---------- */
.note {
  display: inline-block; text-align: left; max-width: 560px;
  background: #fff0fa; color: #3c096c;
  border: 6px ridge var(--pink);
  padding: 14px 20px; font-size: 15px;
}
.note p { margin: 0 0 12px; }
.note .tiny { color: #999; margin: 0; }

/* ---------- FOOTER ---------- */
.footer { text-align: center; margin-top: 30px; font-size: 13px; color: #ffe0f5; }
.footer > div { margin: 10px 0; }
.counter-box { display: block; }
.counter { display: inline-flex; gap: 2px; margin-top: 4px; }
.counter span {
  display: inline-block; width: 22px; height: 30px; line-height: 30px;
  background: #000; color: #39ff14; font-family: "Courier New", monospace;
  font-weight: bold; font-size: 20px; border: 2px inset #666;
}
.construction {
  display: inline-block; padding: 6px 14px; font-weight: bold; color: #000;
  background: repeating-linear-gradient(45deg, #ffd23f 0 12px, #111 12px 24px);
  text-shadow: 0 0 4px #ffd23f, 0 0 8px #ffd23f, 1px 1px 0 #fff;
  border: 2px solid #000;
}
.construction span { animation: pulse 0.8s infinite; display: inline-block; }
.buttons88 { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.btn88 {
  display: inline-block; width: 88px; height: 31px; font-size: 9px; line-height: 11px;
  font-family: Verdana, Arial, sans-serif; font-weight: bold; padding-top: 4px;
  border: 1px solid #000; color: #fff; text-align: center;
}
.b1 { background: linear-gradient(#1a5fb4, #062a5c); }
.b2 { background: linear-gradient(#333, #000); color: #0f0; }
.b3 { background: linear-gradient(#ff5fb4, #c9184a); }
.b4 { background: linear-gradient(#ffd23f, #b8901c); color: #000; }

/* ---------- WINAMP-ish PLAYER ---------- */
.winamp {
  position: fixed; right: 10px; bottom: 10px; z-index: 50;
  width: 250px; background: #2b2b3a; border: 2px outset #8a8aa0;
  color: #39ff14; font-family: Verdana, Arial, sans-serif; font-size: 11px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.winamp-title { background: linear-gradient(90deg, #0b0b60, #3a3aa0); color: #ffd23f; padding: 2px 6px; font-weight: bold; text-align: center; letter-spacing: 1px; }
.winamp-screen { background: #000; margin: 4px; padding: 3px; border: 1px inset #666; }
.winamp-controls { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 6px; }
#mute-btn {
  font-family: Verdana, Arial, sans-serif; font-size: 11px; font-weight: bold;
  background: #c0c0c0; border: 2px outset #fff; padding: 3px 8px; cursor: pointer; color: #000;
}
#mute-btn:active { border-style: inset; }
.winamp-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 18px; }
.winamp-eq i { width: 4px; background: #39ff14; display: inline-block; animation: eq 0.6s ease-in-out infinite; }
.winamp-eq i:nth-child(2) { animation-delay: .1s; } .winamp-eq i:nth-child(3) { animation-delay: .25s; }
.winamp-eq i:nth-child(4) { animation-delay: .05s; } .winamp-eq i:nth-child(5) { animation-delay: .35s; } .winamp-eq i:nth-child(6) { animation-delay: .15s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 18px; } }
.winamp.muted .winamp-eq i { animation: none; height: 3px; background: #555; }
#yt-holder { position: fixed; left: -9999px; top: -9999px; width: 200px; height: 113px; opacity: 0.01; pointer-events: none; }

/* ---------- SPARKLES / FALLING ---------- */
#sparkles, #falling { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.sparkle {
  position: absolute; width: 14px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M10 0 L11.5 8.5 L20 10 L11.5 11.5 L10 20 L8.5 11.5 L0 10 L8.5 8.5 Z' fill='white'/></svg>") no-repeat center/contain;
  animation: twinkle var(--d, 2s) ease-in-out var(--dl, 0s) infinite;
  filter: drop-shadow(0 0 4px #fff);
}
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(0.3) rotate(0deg);} 50% { opacity: 1; transform: scale(1.1) rotate(45deg);} }
.fall {
  position: absolute; top: -30px; font-size: 18px;
  animation: fall var(--d, 9s) linear var(--dl, 0s) infinite;
  opacity: 0.85;
}
@keyframes fall {
  0% { transform: translateY(0) rotate(0deg) translateX(0); }
  50% { transform: translateY(50vh) rotate(180deg) translateX(30px); }
  100% { transform: translateY(105vh) rotate(360deg) translateX(-20px); }
}

/* ---------- CURSOR TRAIL ---------- */
.trail {
  position: fixed; pointer-events: none; z-index: 9998; font-size: 16px;
  animation: trail 0.9s ease-out forwards;
}
@keyframes trail { to { transform: translateY(-40px) scale(0.3); opacity: 0; } }

/* ---------- PIXEL SPRITES ---------- */
.sprite-row { display: flex; justify-content: center; gap: 30px; margin: 10px 0; }
.px-sprite { display: inline-block; position: relative; }
.px-sprite .px { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.px-sprite[data-sprite="heart"] { animation: heartbeat 1s ease-in-out infinite; }
@keyframes heartbeat { 0%,100% { transform: scale(1);} 30% { transform: scale(1.2);} 60% { transform: scale(0.95);} }
.px-sprite[data-sprite="star"] { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.px-sprite[data-sprite="butterfly"] { animation: flutter 1.6s ease-in-out infinite; }
@keyframes flutter { 0%,100% { transform: translateY(0) rotate(-6deg);} 50% { transform: translateY(-10px) rotate(6deg);} }
.px-sprite[data-sprite="flower"] { animation: sway 2s ease-in-out infinite; transform-origin: bottom center; }
@keyframes sway { 0%,100% { transform: rotate(-8deg);} 50% { transform: rotate(8deg);} }
#cat-walk {
  position: fixed; bottom: 0; left: 0; z-index: 40; pointer-events: none;
  animation: catwalk 28s linear infinite;
}
@keyframes catwalk {
  0% { left: -80px; transform: scaleX(1); }
  49% { left: calc(100vw + 10px); transform: scaleX(1); }
  50% { left: calc(100vw + 10px); transform: scaleX(-1); }
  99% { left: -80px; transform: scaleX(-1); }
  100% { left: -80px; transform: scaleX(1); }
}
#cat-walk .px-sprite { animation: catbob 0.4s steps(2) infinite; }
@keyframes catbob { 0% { transform: translateY(0);} 100% { transform: translateY(-3px);} }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
  table.photo-row td { display: block; width: 100%; margin-bottom: 12px; }
  .whiteframe { width: 70%; }
  .winamp { width: 200px; right: 6px; bottom: 6px; }
  .paper { transform: none; padding-left: 48px; font-size: 14px; }
  .polaroid { width: 150px; }
  .polaroid img { height: 170px; }
}

/* ---------- ANIMATED GIFS (home-made) ---------- */
.gif { image-rendering: pixelated; image-rendering: crisp-edges; width: 64px; height: auto; vertical-align: middle; }
.sprite-row { flex-wrap: wrap; align-items: center; }
.sprite-row.small .gif { width: 48px; }
.sprite-row .gif:hover { transform: scale(1.3) rotate(-8deg); }
.hero { position: relative; }
.hero-side {
  position: absolute; top: 20px; display: none; flex-direction: column; gap: 22px; align-items: center;
}
.hero-left { left: 8px; } .hero-right { right: 8px; }
@media (min-width: 720px) { .hero-side { display: flex; } }
.hero-side .gif { animation: floaty 3s ease-in-out infinite; }
.hero-side .gif:nth-child(2) { animation-delay: .7s; }
.hero-side .gif:nth-child(3) { animation-delay: 1.4s; }
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-8px);} }

.side-col {
  position: fixed; top: 60px; z-index: 1; display: none; flex-direction: column; gap: 26px; align-items: center;
  width: 130px; pointer-events: none;
}
.side-left { left: 10px; } .side-right { right: 10px; }
@media (min-width: 1150px) { .side-col { display: flex; } }
.side-col .gif { animation: floaty 3.5s ease-in-out infinite; }
.side-col .gif:nth-child(odd) { animation-delay: 1s; }

#bird-fly {
  position: fixed; top: 46px; left: -100px; z-index: 40; pointer-events: none;
  animation: birdfly 22s linear infinite;
}
@keyframes birdfly {
  0% { left: -100px; top: 46px; }
  25% { top: 90px; }
  50% { top: 40px; }
  75% { top: 110px; }
  100% { left: calc(100vw + 20px); top: 60px; }
}
#dog-walk {
  position: fixed; bottom: 0; right: -100px; z-index: 40; pointer-events: none;
  animation: dogwalk 34s linear infinite; animation-delay: -12s;
}
@keyframes dogwalk {
  0% { right: -100px; transform: scaleX(1); }
  49% { right: calc(100vw + 10px); transform: scaleX(1); }
  50% { right: calc(100vw + 10px); transform: scaleX(-1); }
  99% { right: -100px; transform: scaleX(-1); }
  100% { right: -100px; transform: scaleX(1); }
}
@media (max-width: 640px) { .gif { width: 44px; } .sprite-row { gap: 14px; } }

/* ---------- section titles/content always on their own line (mobile fix) ---------- */
h2.wordart { display: table; margin-left: auto; margin-right: auto; }
.paper { display: block; width: fit-content; margin: 0 auto; }
table.infobox { display: table; }
.section .sprite-row { clear: both; }
@media (max-width: 640px) {
  .paper { padding: 16px 14px 16px 44px; font-size: 14px; line-height: 26px; }
  .paper p, .paper .dots { margin-bottom: 26px; }
  .paper { background: linear-gradient(90deg, transparent 30px, #ffb3c6 30px, #ffb3c6 32px, transparent 32px), repeating-linear-gradient(#fffdf5, #fffdf5 25px, #cfe3ff 25px, #cfe3ff 26px); }
  h2.wordart small { display: block; font-size: 60%; }
}

/* ==========================================================
   LAYOUT WRAPPER (page + right-hand ad column)
   ========================================================== */
.layout {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: 14px; position: relative; z-index: 2;
  margin: 12px auto 80px; padding: 0 6px;
}
.layout table.page { margin: 0; }
/* the fixed gif columns need more room now that there is an ad column */
@media (min-width: 1150px) and (max-width: 1339px) { .side-col { display: none; } }

/* ---------- FAKE ADS (right sidebar) ---------- */
.ad-col {
  flex: 0 0 176px; width: 176px;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.ad-col .ad-label {
  font-family: Verdana, Arial, sans-serif; font-size: 9px; letter-spacing: 2px; color: #ffe0f5;
  text-transform: uppercase; opacity: .8;
}
.ad {
  display: block; width: 176px; text-decoration: none;
  background: #fff; color: #000; border: 2px solid #000; outline: 2px solid #fff;
  font-family: Verdana, Arial, sans-serif; font-size: 11px; line-height: 1.3;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.35);
  position: relative; overflow: hidden; cursor: pointer;
  transition: transform .15s;
}
.ad:hover { transform: scale(1.04) rotate(-1deg); background: #fff; color: #000; z-index: 3; }
.ad .ad-tag {
  position: absolute; top: 0; left: 0; background: #000; color: #fff; font-size: 8px; padding: 1px 4px; letter-spacing: 1px; z-index: 2;
}
.ad img { display: block; width: 100%; height: 120px; object-fit: cover; border-bottom: 2px solid #000; }
.ad .ad-head { font-family: Impact, "Arial Black", sans-serif; font-size: 15px; letter-spacing: .5px; padding: 5px 7px 0; line-height: 1.05; }
.ad .ad-body { padding: 3px 7px 5px; }
.ad .ad-cta {
  display: block; margin: 0 7px 7px; padding: 4px; text-align: center; font-weight: bold; font-size: 11px;
  color: #fff; border: 2px outset #ccc;
}
.ad-1 .ad-head { color: #c9184a; }
.ad-1 .ad-cta { background: linear-gradient(#ff5fb4, #c9184a); animation: pulse 1s ease-in-out infinite; }
.ad-1 { border-color: #ff1493; animation: ad-border .6s steps(2) infinite; }
@keyframes ad-border { to { outline-color: #ffff00; border-color: #00d0ff; } }
.ad-2 { background: #ffff00; }
.ad-2 .ad-head { color: #ff0000; animation: blink .5s steps(2, start) infinite; }
.ad-2 .ad-cta { background: linear-gradient(#ff0000, #900); }
.ad-3 { background: #e8f3ff; }
.ad-3 .ad-head { color: #0b3d91; }
.ad-3 .ad-cta { background: linear-gradient(#2f80ed, #0b3d91); }
.ad-4 { background: #f0ffe8; }
.ad-4 .ad-head { color: #1a7a00; }
.ad-4 .ad-cta { background: linear-gradient(#2bff00, #1a7a00); color: #000; }
.ad-5 { background: #222; color: #0f0; }
.ad-5 .ad-head { color: #ffd23f; }
.ad-5 .ad-body { color: #0f0; font-family: "Courier New", monospace; font-size: 10px; }
.ad-5 .ad-cta { background: linear-gradient(#555, #111); border-color: #888; }
.ad-6 .ad-head { color: #7b2cbf; }
.ad-6 .ad-cta { background: linear-gradient(#c77dff, #7b2cbf); }
.ad .ad-burst { position: absolute; top: 0; right: 0; background: #ff0000; color: #fff; font-weight: bold; font-size: 10px; padding: 2px 6px; transform: rotate(8deg); z-index: 2; }
.ad .ad-mini { font-size: 9px; color: #666; padding: 0 7px 6px; }
.ad-5 .ad-mini { color: #888; }
.ad-visitor { font-family: "Courier New", monospace; color: #0f0; background: #000; padding: 0 3px; }
@media (max-width: 1009px) {
  .ad-col { width: 100%; flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: stretch; }
  .ad-col .ad-label { width: 100%; text-align: center; }
}

/* ==========================================================
   BRUNAFERNANDIZE™
   ========================================================== */
.btn-2000 {
  font-family: inherit; font-size: 15px; font-weight: bold; color: #3c096c;
  background: linear-gradient(#fff9c4, #ffd23f 50%, #ffb703);
  border: 3px outset #ffd23f; padding: 8px 14px; cursor: pointer; text-shadow: 1px 1px 0 #fff;
  white-space: nowrap;
}
.btn-2000:hover { background: linear-gradient(#ffd23f, #fff9c4); }
.btn-2000:active { border-style: inset; }
.btn-2000.hot { background: linear-gradient(#ffb3e6, #ff5fb4 50%, #c9184a); border-color: #ff5fb4; color: #fff; text-shadow: 1px 1px 0 #7b2cbf; animation: pulse 1.4s ease-in-out infinite; }
.btn-2000.hot:hover { background: linear-gradient(#ff5fb4, #ffb3e6); }

.bfz-box {
  display: block; max-width: 640px; margin: 0 auto; text-align: left;
  background: #fff0fa; color: #3c096c;
  border: 6px ridge var(--pink); padding: 14px 18px; font-size: 15px;
}
.bfz-label { display: block; font-weight: bold; margin-bottom: 6px; }
.bfz-label .tiny { font-weight: normal; color: #7b2cbf; }
.bfz-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.bfz-row input {
  flex: 1 1 220px; min-width: 0; font-family: inherit; font-size: 17px; padding: 8px 10px;
  border: 3px inset #c77dff; background: #fff; color: #3c096c;
}
.bfz-row input:focus { outline: 3px solid var(--yellow); }
.bfz-chips { margin-top: 8px; color: #7b2cbf; line-height: 2; }
.chip {
  font-family: inherit; font-size: 12px; cursor: pointer; margin: 0 2px;
  background: #fff; color: #7b2cbf; border: 1px dashed #c77dff; padding: 1px 8px; border-radius: 12px;
}
.chip:hover { background: var(--hotpink); color: #fff; border-style: solid; }
.bfz-status { margin-top: 8px; min-height: 1.2em; font-weight: bold; }
.bfz-status.busy { color: #7b2cbf; animation: blink 1s steps(2, start) infinite; }
.bfz-status.ok { color: #1a7a00; }
.bfz-status.err { color: #c9184a; }

.bfz-results { max-width: 640px; margin: 12px auto 0; }
.bfz-table { width: 100%; border-collapse: collapse; background: #fff; color: #3c096c; border: 3px ridge var(--gold); font-size: 14px; }
.bfz-table td { padding: 7px 8px; border-bottom: 1px dotted #c77dff; text-align: left; vertical-align: middle; }
.bfz-table tr { cursor: pointer; }
.bfz-table tr:hover td, .bfz-table tr:focus td { background: #ffe0f5; }
.bfz-table td.n { width: 28px; color: #c77dff; font-weight: bold; }
.bfz-table td.go { width: 1%; white-space: nowrap; font-weight: bold; color: var(--hotpink); font-size: 12px; }
.bfz-table tr:hover td.go { text-decoration: underline; }

.bfz-how { font-size: 14px; margin-bottom: 10px; line-height: 1.5; }
.b1w, .b2w { display: inline-block; padding: 0 6px; border-radius: 3px; font-weight: bold; color: #fff; text-shadow: 1px 1px 0 #7b2cbf; }
.b1w { background: var(--pink); } .b2w { background: var(--purple); }
.bfz-mode { margin-top: 8px; color: #7b2cbf; }
.bfz-mode.m1 .b2w, .bfz-mode.m2 .b1w { opacity: .35; }
.bfz-mode.m3 { color: #c9184a; font-weight: bold; }
.bfz-score { margin-top: 10px; font-size: 17px; color: #c9184a; text-align: center; position: relative; min-height: 1.4em; }
.shake { animation: shake .4s linear; }
@keyframes shake { 0%,100% { transform: translateX(0);} 25% { transform: translateX(-6px);} 75% { transform: translateX(6px);} }

.bfz-panels { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: flex-start; margin-top: 18px; }
.bfz-panel { flex: 1 1 320px; max-width: 520px; min-width: 0; text-align: center; }
.bfz-panel-title { font-family: Impact, "Arial Black", sans-serif; font-size: 18px; letter-spacing: 1px; color: var(--yellow); text-shadow: 2px 2px 0 #7b2cbf; margin-bottom: 4px; }
.bfz-panel-title .tiny { font-family: inherit; letter-spacing: 0; font-weight: normal; }
.bfz-song { color: #fff; font-size: 14px; margin-bottom: 8px; text-shadow: 1px 1px 0 #3c096c; }
.bfz-song .tiny { color: #ffe0f5; }
.bfz-song .bruna { background: var(--hotpink); padding: 0 4px; border-radius: 3px; }
.paper.bfz-paper {
  transform: none; width: auto; max-width: 100%; display: block; text-align: left;
  font-size: 15px; line-height: 28px; padding: 20px 16px 20px 52px; max-height: 560px; overflow: auto;
  white-space: normal; overflow-wrap: anywhere;
}
.bfz-paper-out { transform: rotate(0.6deg); }
.bfz-paper .w { cursor: pointer; border-radius: 3px; padding: 0 1px; transition: background .1s; }
.bfz-paper .w:hover { background: #ffe08a; outline: 2px solid #ffd23f; }
.bfz-paper .w.hit { background: #ffb3e6; outline: 2px solid var(--hotpink); }
.bfz-paper .bruna {
  background: linear-gradient(#ff8fd0, #ff1493); color: #fff; font-weight: bold; padding: 0 5px; border-radius: 4px;
  text-shadow: 1px 1px 0 #7b2cbf; box-shadow: 0 0 6px rgba(255,20,147,0.6); animation: bruna-pop .35s ease-out;
}
@keyframes bruna-pop { 0% { transform: scale(0.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.bfz-actions { margin-top: 10px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.bfz-actions .btn-2000 { font-size: 13px; padding: 6px 10px; }
.bfz-back { font-size: 15px; font-weight: bold; }
.bfz-burst { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.bfz-burst span { position: absolute; animation: burst 1.2s ease-out forwards; font-size: 18px; }
@keyframes burst { 0% { transform: translate(0,0) rotate(0) scale(.5); opacity: 1; } 100% { transform: translate(var(--x), -120px) rotate(var(--r)) scale(1.3); opacity: 0; } }
@media (max-width: 640px) {
  .paper.bfz-paper { padding: 14px 10px 14px 40px; font-size: 14px; line-height: 25px; max-height: 420px; }
  .bfz-row .btn-2000 { flex: 1 1 100%; }
}

/* ==========================================================
   ☠ CURSED MODE (the butterfly easter egg) ☠
   ========================================================== */
body.cursed {
  background-color: #050508;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><text x='4' y='20' font-size='14' opacity='0.10'>☠</text><text x='26' y='42' font-size='10' opacity='0.08'>☠</text></svg>"),
    linear-gradient(180deg, #1a0005 0%, #0a020e 45%, #000 100%);
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><text y='20' font-size='20'>💀</text></svg>") 4 4, auto;
  animation: cursed-flicker 7s steps(1) infinite;
}
@keyframes cursed-flicker {
  0%, 100% { filter: none; }
  92% { filter: none; }
  93% { filter: brightness(1.6) contrast(1.2); }
  94% { filter: none; }
  96.5% { filter: brightness(0.4); }
  97% { filter: none; }
}
body.cursed .topbar { background: #000; color: #ff2b2b; border-color: #5c0000; }
body.cursed .visitor-inline { color: #ff2b2b; }
body.cursed a { color: #ff4d4d; }
body.cursed a:visited { color: #a33; }
body.cursed a:hover { color: #fff; background: #5c0000; }
body.cursed .page-cell { background: rgba(10, 0, 4, 0.8); border-color: rgba(140, 0, 0, 0.7); box-shadow: 0 0 35px rgba(255, 0, 0, 0.25); }
body.cursed .wordart { -webkit-text-stroke: 1.5px rgba(255,0,0,0.4); filter: drop-shadow(3px 3px 0 #000) drop-shadow(0 0 8px rgba(255,0,0,0.7)); }
body.cursed .wordart-rainbow, body.cursed .bounce {
  background-image: linear-gradient(90deg, #3d0000, #ff1a1a, #7c7c8a, #ff1a1a, #3d0000);
  animation-duration: 3s;
}
body.cursed .wordart-blue { background-image: linear-gradient(180deg, #d0d0da 0%, #6a6a7a 45%, #16161c 55%, #8a8a9a 100%); }
body.cursed .wordart-pink { background-image: linear-gradient(180deg, #ff9a9a 0%, #c40000 45%, #3d0000 55%, #ff6a6a 100%); }
body.cursed .wordart-gold { background-image: linear-gradient(180deg, #e8e8f0 0%, #9a9aa8 45%, #2c2c34 55%, #cfcfda 100%); }
body.cursed .subtitle { color: #ff4d4d; text-shadow: 2px 2px 0 #000, 0 0 12px #f00; }
body.cursed .badge-new { background: #000; border-color: #ff1a1a; color: #ff1a1a; }
body.cursed hr.rainbow-hr { background: linear-gradient(90deg, #000, #5c0000, #ff1a1a, #5c0000, #000); box-shadow: 0 2px 0 #000; }
body.cursed .gif, body.cursed .px-sprite { filter: grayscale(1) brightness(0.45) sepia(1) hue-rotate(-45deg) saturate(4); }
body.cursed .px-sprite.bfz-egg { filter: grayscale(0.2) brightness(0.9) hue-rotate(90deg) saturate(2) drop-shadow(0 0 6px #f00); }
body.cursed .sparkle { filter: sepia(1) saturate(8) hue-rotate(-50deg) brightness(0.7) drop-shadow(0 0 4px #f00); }
body.cursed .fall { filter: grayscale(1) brightness(0.35) drop-shadow(0 0 3px #f00); }
body.cursed .trail { filter: grayscale(1) brightness(0.5) sepia(1) hue-rotate(-45deg) saturate(5); }

/* boxes & controls */
body.cursed .bfz-box { background: #101014; color: #b9b9c6; border-color: #5c0000; }
body.cursed .bfz-label .tiny, body.cursed .bfz-chips { color: #7a7a8a; }
body.cursed .bfz-row input { background: #000; color: #ff9a9a; border-color: #5c0000; }
body.cursed .bfz-row input:focus { outline-color: #ff1a1a; }
body.cursed .chip { background: #000; color: #a33; border-color: #5c0000; }
body.cursed .chip:hover { background: #5c0000; color: #fff; }
body.cursed .btn-2000 { background: linear-gradient(#3a3a44, #16161c 50%, #000); border-color: #444; color: #d0d0da; text-shadow: 1px 1px 0 #000; }
body.cursed .btn-2000:hover { background: linear-gradient(#16161c, #3a3a44); }
body.cursed .btn-2000.hot { background: linear-gradient(#ff4d4d, #8b0000 50%, #3d0000); border-color: #8b0000; color: #fff; text-shadow: 1px 1px 0 #000; }
body.cursed .bfz-status.ok { color: #ff4d4d; }
body.cursed .bfz-table { background: #101014; color: #b9b9c6; border-color: #5c0000; }
body.cursed .bfz-table td { border-bottom-color: #33333e; }
body.cursed .bfz-table tr:hover td, body.cursed .bfz-table tr:focus td { background: #2a0008; }
body.cursed .bfz-table td.n { color: #5c0000; }
body.cursed .bfz-table td.go { color: #ff1a1a; }
body.cursed .b1w { background: #8b0000; text-shadow: 1px 1px 0 #000; }
body.cursed .b2w { background: #2c2c34; text-shadow: 1px 1px 0 #000; }
body.cursed .bfz-mode { color: #7a7a8a; }
body.cursed .bfz-mode.m3, body.cursed .bfz-score { color: #ff1a1a; }

/* the paper turns into something you found in a basement */
body.cursed .paper {
  color: #c9c9d2;
  background:
    linear-gradient(90deg, transparent 38px, #5c0000 38px, #5c0000 40px, transparent 40px),
    repeating-linear-gradient(#141418, #141418 27px, #2a2a32 27px, #2a2a32 28px);
  border-color: #000;
  box-shadow: 4px 4px 0 #000, 0 0 22px rgba(255, 0, 0, 0.35);
}
body.cursed .bfz-panel-title { color: #ff2b2b; text-shadow: 2px 2px 0 #000, 0 0 8px #f00; }
body.cursed .bfz-song { color: #b9b9c6; text-shadow: 1px 1px 0 #000; }
body.cursed .bfz-song .tiny { color: #7a7a8a; }
body.cursed .bfz-song .bruna { background: #8b0000; }
body.cursed .bfz-paper .w:hover { background: #4a0000; outline-color: #ff1a1a; }
body.cursed .bfz-paper .w.hit { background: #3d000d; outline-color: #8b0000; color: #ff9a9a; }
body.cursed .bfz-paper .bruna {
  background: linear-gradient(#8b0000, #2c0000); color: #ff2b2b; text-shadow: 0 0 6px #f00, 1px 1px 0 #000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

/* winamp possessed */
body.cursed .winamp { background: #0c0c10; border-color: #3a3a44; }
body.cursed .winamp-title { background: linear-gradient(90deg, #2c0000, #8b0000); color: #ff2b2b; }
body.cursed .winamp-eq i { background: #ff1a1a; }
body.cursed #mute-btn { background: #2c2c34; border-color: #555; color: #ff9a9a; }
body.cursed .footer { color: #7a7a8a; }
body.cursed .construction { background: repeating-linear-gradient(45deg, #8b0000 0 12px, #000 12px 24px); color: #fff; text-shadow: 0 0 4px #f00, 0 0 8px #f00; border-color: #5c0000; }

/* the butterfly begs to be clicked */
#bfz-step2 .px-sprite[data-sprite="butterfly"] { cursor: pointer; }
#bfz-step2 .px-sprite[data-sprite="butterfly"]:hover { filter: drop-shadow(0 0 8px #fff); }
