/* bani.link — platform-specific styles atop BaniChimu DS */
@import url('./colors_and_type.css');

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--ff-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

/* Faint film grain over the whole page */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1000;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}

/* Holo gradient text */
.holo-text {
  background: linear-gradient(135deg,#E5A8FF 0%,#B69CFF 45%,#9DD5FF 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animated holo bar */
.holo-bar {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--holo-cyan) 20%, var(--holo-lilac) 50%, var(--holo-pink) 80%, transparent 100%);
  background-size: 200% 100%;
  animation: holo-sweep 6s linear infinite;
  filter: drop-shadow(0 0 6px rgba(182,156,255,0.6));
}
@keyframes holo-sweep {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

@keyframes sticker-spin {
  to { transform: rotate(360deg); }
}
.spin { animation: sticker-spin 16s linear infinite; }

@keyframes pulse-live {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(229,168,255,0.65), 0 0 12px rgba(229,168,255,0.8); }
  50% { opacity: 0.85; box-shadow: 0 0 0 8px rgba(229,168,255,0), 0 0 12px rgba(229,168,255,0.4); }
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--holo-pink);
  animation: pulse-live 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

/* === Page chrome (margins) === */
.chrome-margin {
  position: fixed;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-faint);
  pointer-events: none;
  white-space: nowrap;
  z-index: 50;
}
.chrome-left {
  left: 14px; top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
}
.chrome-right {
  right: 14px; top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
}
.chrome-top {
  left: 0; right: 0; top: 14px; text-align: center;
  letter-spacing: 0.4em; color: var(--bone-dim);
}
.chrome-bottom-l { left: 24px; bottom: 14px; color: var(--bone-dim); }
.chrome-bottom-r { right: 24px; bottom: 14px; color: var(--bone-dim); }

.dot-col {
  position: fixed; right: 22px; top: 38%;
  display: flex; flex-direction: column; gap: 14px;
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--bone); z-index: 50;
}

@media (max-width: 720px) {
  .chrome-left, .chrome-right, .dot-col { display: none; }
  .chrome-top { font-size: 10px; letter-spacing: 0.3em; }
  .chrome-bottom-l, .chrome-bottom-r { font-size: 10px; }
}

/* === Stinger transition === */
.stinger {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  display: none;
}
.stinger.active { display: block; }
.stinger .wipe {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,#E5A8FF 0%,#B69CFF 45%,#9DD5FF 100%);
  transform: translateX(-100%);
  animation: wipe-in 0.5s cubic-bezier(0.7,0,0.3,1) forwards;
}
.stinger.exit .wipe {
  animation: wipe-out 0.5s cubic-bezier(0.7,0,0.3,1) forwards;
}
@keyframes wipe-in {
  to { transform: translateX(0); }
}
@keyframes wipe-out {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}
.stinger .sticker {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0);
  width: 200px; height: 200px;
  animation: sticker-pop 0.5s 0.15s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes sticker-pop {
  0%   { transform: translate(-50%,-50%) scale(0) rotate(0deg); opacity: 0; }
  60%  { transform: translate(-50%,-50%) scale(1.1) rotate(180deg); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(0.95) rotate(360deg); opacity: 0; }
}

/* === Card shapes === */
.holo-glow { box-shadow: 0 0 24px rgba(182,156,255,0.35); }
.holo-glow-strong { box-shadow: 0 0 32px rgba(229,168,255,0.45), 0 0 60px rgba(157,213,255,0.25); }

/* === Reveal === */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.fade-up { animation: fade-up 0.6s var(--ease-out) both; }
