/* ============================================================
   Domi Sowwy — a gloriously dumb early-2000s cat shrine.
   Comic Sans. Tiled animated bg. Blink. Mismatched on purpose.
   Palette: Y2K neon gamer — space navy + lime + cyan + blue + hazard yellow.
   ============================================================ */

:root {
  --bg:    #0b1026;
  --neon:  #39ff14;
  --cyan:  #00e5ff;
  --blue:  #2979ff;
  --yellow:#ffd400;
  --orange:#ff7a00;
  --ink:   #06122e;
  --cream: #f3ffe9;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

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

body {
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive, system-ui;
  color: #dff7ff;
  text-align: center;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ctext y='22' font-size='22'%3E%F0%9F%90%BE%3C/text%3E%3C/svg%3E") 4 4, auto;

  /* calm dark sky: gentle vignette + faint, sparse, STATIC star dots.
     (the glorps + fireworks provide the motion; the bg stays readable) */
  background-color: #0b1026;
  background-image:
    radial-gradient(ellipse at 50% -10%, #1a2750 0%, #0b1026 55%, #070b1d 100%),
    radial-gradient(circle at 1px 1px, #ffffff14 1px, transparent 1.6px);
  background-size: 100% 100%, 52px 52px;
  background-attachment: fixed;
}

/* ---- Geocities chrome ---------------------------------------------------- */

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: repeating-linear-gradient(45deg, #000, #000 12px, var(--yellow) 12px, var(--yellow) 24px);
  padding: 4px;
}
.sowwy-meter {
  background: #000; border: 3px ridge #5af; margin: 0 auto; max-width: 720px;
  height: 26px; position: relative; border-radius: 4px; overflow: hidden;
}
.sowwy-meter > .fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--neon), var(--cyan), var(--yellow), var(--neon));
  background-size: 300% 100%;
  animation: meterhue 3s linear infinite;
  transition: width .6s cubic-bezier(.2,1.4,.4,1);
}
@keyframes meterhue { to { background-position: 300% 0; } }
.sowwy-meter > .label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: bold; color: #fff; text-shadow: 1px 1px 0 #000; letter-spacing: 1px;
}

.marquee {
  position: fixed; top: 34px; left: 0; right: 0; z-index: 49;
  background: #000; color: var(--neon); font-size: 14px; white-space: nowrap; overflow: hidden;
  border-bottom: 2px solid var(--neon);
}
.marquee > span {
  display: inline-block; padding-left: 100%;
  animation: scroll-left 18s linear infinite;
}
@keyframes scroll-left { to { transform: translateX(-100%); } }

.blink { animation: blink 0.9s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ---- scenes -------------------------------------------------------------- */

#stage { padding: 76px 12px 90px; }

.scene { display: none; max-width: 760px; margin: 0 auto; animation: pop .5s ease; }
.scene.active { display: block; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.scene h1 {
  font-size: clamp(2.4rem, 11vw, 5rem); margin: .2em 0; line-height: 1.05;
  color: #fff;
  text-shadow: 2px 2px 0 var(--neon), 4px 4px 0 var(--blue), 6px 6px 0 #000;
  animation: wobble 3s ease-in-out infinite;
}
@keyframes wobble { 0%,100%{ transform: rotate(-2deg);} 50%{ transform: rotate(2deg);} }

.scene p.say {
  font-size: clamp(1.2rem, 5.5vw, 2rem); font-weight: bold; line-height: 1.3;
  color: var(--ink);
  background: var(--cream); border: 4px dashed var(--neon); border-radius: 14px;
  padding: 14px 16px; margin: 14px auto; max-width: 600px;
  box-shadow: 5px 5px 0 #000a;
}

.cat-wrap { position: relative; display: inline-block; margin: 10px auto; }
.cat {
  width: clamp(200px, 64vw, 340px); height: clamp(200px, 64vw, 340px);
  object-fit: cover; border-radius: 12px;
  border: 6px ridge var(--cyan); background: #fff;
  box-shadow: 6px 6px 0 #000a; cursor: pointer;
  display: grid; place-items: center; font-size: 120px;
}
.cat.gray { filter: grayscale(1) contrast(1.04); }   /* sad-scene mood */
.cat.wiggle { animation: wiggle .5s ease; }
@keyframes wiggle { 0%,100%{transform:rotate(0)} 20%{transform:rotate(-9deg) scale(1.05)} 60%{transform:rotate(9deg) scale(1.05)} }

.mlem {
  position: absolute; top: 40%; left: 50%; transform: translate(-50%,-50%) scale(0);
  font-size: 3rem; pointer-events: none;
}
.mlem.go { animation: mlempop .7s ease; }
@keyframes mlempop { 0%{transform:translate(-50%,-50%) scale(0)} 50%{transform:translate(-50%,-120%) scale(1.4)} 100%{transform:translate(-50%,-160%) scale(0)} }

.tapcue {
  display: inline-block; margin-top: 14px; font-size: 1.3rem; font-weight: bold;
  color: #000; background: var(--neon); border: 3px solid #fff; border-radius: 30px;
  padding: 8px 22px; box-shadow: 3px 3px 0 #000a; animation: bob 1.2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }

/* the disney castle behind the disney scene cat */
.castle { width: clamp(220px, 70vw, 420px); display: block; margin: -10px auto -6px;
  filter: drop-shadow(0 0 12px #00e5ff88); }

/* hit counter */
.counter { margin: 18px auto 0; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: #001; background: #c0c0c0; border: 3px outset #fff; padding: 6px 10px; }
.counter .digits { font-family: "Courier New", monospace; font-weight: bold; background: #000;
  color: var(--neon); padding: 4px 8px; letter-spacing: 3px; border-radius: 3px; }

/* cataas live cat */
.live-cat { margin: 14px auto 0; }
.live-cat img { max-width: clamp(180px, 60vw, 300px); border: 5px groove var(--cyan); background:#fff; border-radius: 8px; }
.live-cat .cap { font-size: 12px; color: var(--cyan); margin-top: 4px; }
.catcam-btn {
  font-family: inherit; font-weight: bold; cursor: pointer;
  font-size: 12px; color: #000; background: var(--neon);
  border: 2px solid #fff; border-radius: 20px; padding: 3px 12px; margin-left: 4px;
  box-shadow: 2px 2px 0 #000a;
}
.catcam-btn:active { transform: translateY(1px); }

/* ---- finale buttons ------------------------------------------------------ */

#finale .buttons { position: relative; min-height: 180px; margin-top: 10px;
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; }

#forgive {
  font-family: inherit; font-weight: bold; cursor: pointer;
  font-size: clamp(1.4rem, 6vw, 2.4rem); color: #04210a;
  background: radial-gradient(circle at 30% 30%, #b6ffce, var(--neon) 55%, #16c000);
  border: 5px solid #fff; border-radius: 40px; padding: 18px 30px;
  box-shadow: 0 0 0 4px var(--cyan), 6px 6px 0 #0007, 0 0 24px var(--neon);
  transition: transform .25s ease, box-shadow .25s ease; transform-origin: center;
  position: relative; z-index: 2;
}
#forgive:hover { transform: scale(1.06) rotate(-1deg); }
#forgive .spark { position:absolute; pointer-events:none; }

/* same big, prominent size as forgive — clearly a real choice — but uncatchable */
#nope {
  font-family: inherit; font-weight: bold; cursor: pointer; z-index: 5;
  font-size: clamp(1.4rem, 6vw, 2.4rem); color: #fff;
  background: radial-gradient(circle at 30% 30%, #ff9a9a, #e23b3b 55%, #9c0d0d);
  border: 5px solid #fff; border-radius: 40px; padding: 18px 30px;
  box-shadow: 0 0 0 4px var(--yellow), 6px 6px 0 #0007, 0 0 18px #e23b3b;
  transition: transform .12s ease, opacity .25s; transform-origin: center;
  touch-action: none; user-select: none;
}

/* ---- celebration overlay ------------------------------------------------- */

#celebrate { display: none; }
#celebrate.go { display: block; }
#celebrate h1 {
  font-size: clamp(3rem, 16vw, 7rem); color: #fff;
  text-shadow: 3px 3px 0 var(--neon), 6px 6px 0 var(--cyan);
  animation: party .6s ease infinite alternate;
}
@keyframes party { from{transform:scale(1) rotate(-3deg)} to{transform:scale(1.08) rotate(3deg)} }
.hearts-float { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.hearts-float span { position: absolute; bottom: -40px; font-size: 28px; animation: rise linear forwards; }
@keyframes rise { to { transform: translateY(-115vh) rotate(360deg); opacity: 0; } }
@keyframes fall { from { transform: translateY(0) rotate(0); } to { transform: translateY(118vh) rotate(380deg); opacity: .15; } }

.tell-domi {
  display: inline-block; margin-top: 18px; font-size: 1.3rem; font-weight: bold;
  font-family: inherit; cursor: pointer;
  color: #000; background: var(--yellow); border: 3px dashed var(--neon); border-radius: 30px;
  padding: 10px 24px; text-decoration: none; box-shadow: 4px 4px 0 #0007;
}
.tell-domi:active { transform: translateY(2px); box-shadow: 2px 2px 0 #0007; }
.tell-domi:hover { background:#fff; }

/* canvas + glorp layers */
#fireworks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.scene { position: relative; z-index: 3; }

/* ---- glorps: a few green-alien cats dancing in fixed spots (no drifting) - */
.glorp-field { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.glorp-fixed { position: fixed; will-change: transform; transform-origin: center; }
.glorp-fixed img { width: clamp(64px, 11vw, 116px); height: auto; display: block;
  border-radius: 12px; box-shadow: 2px 3px 0 #0007; filter: drop-shadow(2px 4px 4px #0006); }
.glorp-fixed.dance { animation: glorp-dance .6s ease-in-out infinite; }
.glorp-fixed.alt { animation-duration: .82s; animation-delay: .15s; }
@keyframes glorp-dance { 0%,100%{ rotate:-12deg; scale:1 1; } 25%{ rotate:12deg; scale:1.06 .94; }
  50%{ rotate:-8deg; scale:.95 1.05; } 75%{ rotate:10deg; scale:1.06 .94; } }
@media (prefers-reduced-motion: reduce) { .glorp-fixed.dance { animation: none; } }

/* floating taunts thrown by the dodging 'no' button */
.taunt {
  position: fixed; z-index: 65; pointer-events: none; white-space: nowrap;
  font-family: inherit; font-weight: bold; font-size: 1.1rem; color: #fff;
  text-shadow: 2px 2px 0 #000, 0 0 8px #e23b3b;
  transform: translate(-50%, -50%);
  animation: taunt-up .9s ease-out forwards;
}
@keyframes taunt-up { from { opacity: 1; }
  to { opacity: 0; transform: translate(-50%, -170%) scale(1.3) rotate(-6deg); } }

/* sparkle trail particles (created by JS) */
.sparkle { position: fixed; pointer-events: none; z-index: 70; font-size: 18px;
  will-change: transform, opacity; animation: fade .8s ease forwards; }
@keyframes fade { from{opacity:1; transform: scale(1)} to{opacity:0; transform: scale(.2) translateY(10px)} }

/* footer */
.footer { margin: 26px auto 10px; font-size: 12px; color:#dff7ff; text-shadow:1px 1px 0 #000;
  position: relative; z-index: 3; max-width: 620px; padding: 0 12px; line-height: 1.5; }
.footer img { vertical-align: middle; }
.footer .disclaimer { display:inline-block; font-size: 10px; color:#9fb6c9; max-width: 560px; margin: 4px auto; }
.foot-link { color: var(--cyan); }

/* Skitch button (upper-right corner) + SFW "flashing" cat overlay */
.skitch-btn {
  position: fixed; top: 6px; right: 8px; z-index: 60;
  font-family: inherit; font-weight: bold; cursor: pointer; font-size: 12px;
  color: #000; background: var(--neon); border: 2px solid #fff; border-radius: 18px;
  padding: 5px 12px; box-shadow: 2px 2px 0 #000a; max-width: 48vw; line-height: 1.1;
}
.skitch-btn:active { transform: translateY(1px); }
.skitch-overlay { position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center; background: #0b1026f2; }
.skitch-overlay.go { display: flex; }
.skitch-inner { text-align: center; padding: 12px; animation: pop .4s ease; }
.skitch-gif { width: clamp(220px, 72vw, 360px); height: auto; max-height: 64vh;
  object-fit: contain; background: #000; border: 4px solid #fff; border-radius: 14px;
  box-shadow: 0 0 26px #000c; cursor: pointer; }
.skitch-tag { display: inline-block; font-size: .85rem; font-weight: bold; color: #ff6b6b;
  border: 1px solid #ff6b6b; border-radius: 6px; padding: 2px 9px; margin-bottom: 10px; letter-spacing: 1px; }
.skitch-close { margin-top: 12px; font-size: .8rem; color: #8fa6bd; }

/* scroll cue — shows only when the page overflows the screen and isn't at bottom */
.scroll-cue {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 79;
  background: #000d; color: var(--neon); border: 2px solid var(--neon); border-radius: 22px;
  padding: 7px 18px; font-size: 13px; font-weight: bold; white-space: nowrap;
  text-shadow: 1px 1px 0 #000; pointer-events: none;
  animation: cuebob 1.1s ease-in-out infinite;
}
@keyframes cuebob { 0%,100%{ transform: translate(-50%,0); } 50%{ transform: translate(-50%,-7px); } }

/* cookie / data notice */
.privacy-notice {
  position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 80;
  margin: 0 auto; max-width: 680px; font-size: 12px; line-height: 1.45;
  color: #eafff5; background: #06122ee6; border: 2px solid var(--neon);
  border-radius: 12px; padding: 10px 14px; box-shadow: 0 0 18px #000a; backdrop-filter: blur(2px);
}
.privacy-notice a { color: var(--cyan); }
.privacy-notice code { color: var(--yellow); }
.privacy-notice .catcam-btn { margin-top: 6px; font-size: 13px; padding: 4px 14px; }
.under-con { position: fixed; bottom: 6px; right: 6px; z-index: 48; width: 150px;
  opacity: .95; pointer-events: none; }
.webring { background:#000; color: var(--neon); display:inline-block; padding:3px 8px; border:2px solid var(--neon);
  font-family: "Courier New", monospace; font-size: 11px; margin-top:6px; }

@media (max-width: 480px) {
  .marquee { font-size: 12px; }
  .under-con { width: 104px; }
  .footer { padding-bottom: 4px; }
}
