:root {
  --fg: #cfe8cf;
  --bg: #000;
  --accent: #86ff8f;
  --ui: #1a1a1a;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "VT323", ui-monospace, Menlo, Monaco, "Cascadia Mono", Consolas, monospace;
  font-size: 22px;
  letter-spacing: .02em;
}

.page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 2rem;
}

.art-wrap {
  position: relative;
  cursor: url("assets/hand-pointer.svg") 10 2, pointer; /* large pointer finger */
  user-select: none;
}

#art {
  display: block;
  max-width: min(92vw, 540px);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 18px rgba(255,255,255,.10));
}

.label {
  position: absolute;
  top: -2.4rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.05);
  border: 1px dashed #2f2f2f;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: 1rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity .15s ease;
  pointer-events: none;
}

.art-wrap:hover .label,
.art-wrap:focus .label { opacity: 1; }

.result {
  min-height: 1.6em;
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(134,255,143,.25);
}

.share {
  background: var(--ui);
  color: #fff;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: .55rem 1rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
}
.share:hover { filter: brightness(1.1); }

/* 💦 splash layer and animation */
#splashLayer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.splash {
  position: absolute;
  font-size: 1.35rem;     /* size will be adjusted via inline style */
  will-change: transform, opacity;
  animation: squirt 1000ms ease-out forwards;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.15));
}

@keyframes squirt {
  0%   { transform: translate(var(--x,0), var(--y,0)) scale(0.8) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  60%  { transform: translate(calc(var(--x,0) * 1.1), calc(var(--y,-60px))) scale(1.05) rotate(8deg); }
  100% { transform: translate(calc(var(--x,0) * 1.2), calc(var(--y,-120px))) scale(1) rotate(15deg); opacity: 0; }
}

.rubme-block {
  display: grid;
  place-items: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.rubme-img {
  max-width: min(80vw, 480px);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 12px rgba(255,255,255,.12));
}

.main-logo {
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
}
.main-logo-img {
  max-width: min(85vw, 560px);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 16px rgba(255,255,255,.12));
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.86);
  color: #d2ffd6;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: .8rem 1rem;
  font-family: "VT323", ui-monospace, monospace;
  font-size: 20px;
  max-width: min(92vw, 720px);
  line-height: 1.25;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: auto;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast a {
  color: #86ff8f;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(134,255,143,.6);
}
.toast a:hover { filter: brightness(1.1); }

@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}