/* ============================================================
   Haley's Moan — Y2K KAWAII KINKY
   Hot pink + black + sparkles. Bagel Fat One + Caveat.
   Single-viewport. Cheeky-horny voice.
   ============================================================ */

:root {
  --pink:        #ff2bd1;
  --pink-soft:   #ffb1e8;
  --pink-cream:  #ffe9f6;
  --ink:         #1a0220;
  --ink-2:       #4a0a4d;
  --yellow:      #fff170;
  --cyan:        #6dffe6;
  --white:       #ffffff;

  --display: "Bagel Fat One", "Cooper Black", "Arial Rounded MT Bold", system-ui, sans-serif;
  --hand:    "Caveat", "Bradley Hand", "Comic Sans MS", cursive;
  --body:    "Outfit", "Plus Jakarta Sans", -apple-system, system-ui, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  font-weight: 500;
  background:
    radial-gradient(120% 80% at 80% 0%, #ff6fd9 0%, transparent 50%),
    radial-gradient(100% 80% at 0% 100%, #ff8be0 0%, transparent 55%),
    var(--pink);
  color: var(--ink);
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* --- Sparkle field --- */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.stars .s {
  position: absolute;
  font-family: var(--display);
  color: var(--white);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  animation: twinkle 3s ease-in-out infinite;
  user-select: none;
}
.s1  { top:  6%; left:  8%; font-size: 22px; animation-delay: 0s;   }
.s2  { top: 12%; left: 88%; font-size: 18px; animation-delay: .3s;  color: var(--yellow); }
.s3  { top: 24%; left: 14%; font-size: 28px; animation-delay: .9s;  color: var(--white); }
.s4  { top: 40%; left: 92%; font-size: 32px; animation-delay: 1.1s; }
.s5  { top: 52%; left:  4%; font-size: 22px; animation-delay: .5s;  color: var(--yellow); }
.s6  { top: 68%; left: 86%; font-size: 18px; animation-delay: 1.4s; }
.s7  { top: 76%; left: 18%; font-size: 28px; animation-delay: .2s;  color: var(--white); }
.s8  { top: 82%; left: 70%; font-size: 22px; animation-delay: .7s;  color: var(--yellow); }
.s9  { top: 88%; left: 36%; font-size: 20px; animation-delay: 1.6s; }
.s10 { top: 32%; left: 50%; font-size: 14px; animation-delay: 2.0s; }
.s11 { top: 60%; left: 48%; font-size: 16px; animation-delay: 1.8s; }
.s12 { top: 18%; left: 60%; font-size: 20px; animation-delay: 0.4s; color: var(--yellow); }
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(.8) rotate(-10deg); }
  50%      { opacity: 1;    transform: scale(1.1) rotate(10deg); }
}

/* --- Ticker (seamless infinite loop) --- */
.ticker {
  position: relative;
  background: var(--ink);
  color: var(--yellow);
  overflow: hidden;
  border-bottom: 4px solid var(--white);
  padding: 9px 0;
  z-index: 2;
}
.ticker__rail {
  display: flex;
  width: max-content;
  animation: tick 32s linear infinite;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform;
}
.ticker__chunk {
  flex: 0 0 auto;
  display: inline-block;
  white-space: nowrap;
}
.ticker__bit { display: inline-block; }
@keyframes tick {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* --- Page --- */
.page {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 28px) clamp(16px, 3vw, 36px) clamp(14px, 2vw, 22px);
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: clamp(14px, 2vw, 22px);
  min-height: calc(100svh - 44px);
}

/* --- Hero --- */
.hero {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  gap: clamp(12px, 2vw, 32px);
  align-items: center;
  position: relative;
}

/* Left: speech bubble + chibi */
.hero__left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  justify-self: end;
}
.speech {
  margin: 0;
  position: relative;
  z-index: 4;
  display: inline-block;
  transform: rotate(-6deg);
  transition: transform 0.18s ease;
}
.speech:hover { transform: rotate(-3deg) scale(1.04); }
.speech:active { transform: rotate(-3deg) scale(0.98); }
.speech__bubble {
  font-family: var(--hand);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  background: var(--white);
  color: var(--ink);
  padding: 12px 18px 14px;
  border: 3px solid var(--ink);
  border-radius: 24px 24px 6px 24px;
  display: inline-block;
  box-shadow: 4px 4px 0 var(--ink);
  line-height: 1.05;
  text-align: center;
  cursor: pointer;
}
.speech__bubble b { color: var(--pink); font-weight: 700; }

/* Chibi as sticker (no animation) */
.chibi {
  position: relative;
  display: inline-block;
  padding: 10px 12px 14px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-4deg);
  margin-top: 6px;
}
.chibi img {
  display: block;
  width: clamp(140px, 16vw, 220px);
  height: auto;
}
.chibi__tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 70px;
  height: 18px;
  background: rgba(255, 241, 112, 0.92);
  border: 1px dashed rgba(0, 0, 0, 0.18);
  z-index: 2;
}

/* Center: title + card */
.hero__center {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  position: relative;
}
.title {
  font-family: var(--display);
  margin: 0;
  line-height: 0.84;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 400;
}
.title__row {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}
.title__row--down {
  margin-top: -4px;
  gap: 18px;
  align-items: center;
}
.title__main {
  font-size: clamp(48px, 7vw, 96px);
  color: var(--ink);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow:
    3px 3px 0 var(--white),
    6px 6px 0 var(--yellow);
}
.title__main .apo { color: var(--pink); }
.title__moan {
  font-size: clamp(56px, 8vw, 112px);
  font-family: var(--display);
  background: linear-gradient(180deg, #fff 0%, var(--yellow) 40%, var(--pink) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 4px 4px 0 var(--ink);
  font-style: italic;
  transform: rotate(-3deg);
}
.title__num {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 30px);
  color: var(--white);
  background: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--white), 3px 3px 0 4px var(--ink);
  transform: rotate(6deg) translateY(-6px);
  letter-spacing: 0.04em;
  align-self: center;
  margin-left: 6px;
  -webkit-text-stroke: 0;
}
.title__num__b { color: var(--pink); }
.bow {
  font-size: clamp(28px, 3vw, 44px);
  font-style: normal;
  color: var(--white);
  -webkit-text-stroke: 2px var(--ink);
  filter: drop-shadow(2px 2px 0 var(--ink));
  transform: translateY(-8px) rotate(-8deg);
  display: inline-block;
}

.deck {
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
}
.deck em {
  font-style: italic;
  background: var(--white);
  padding: 0 6px;
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--ink);
}
.deck__sub {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--display);
  font-size: clamp(13px, 1.1vw, 15px);
  background: var(--ink);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hearts { color: var(--pink); -webkit-text-stroke: 1px var(--ink); }

/* --- Card --- */
.cardwrap {
  position: relative;
  perspective: 1500px;
  padding: 18px;
}
.card {
  position: relative;
  width: clamp(180px, 18vw, 240px);
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-2deg);
  transition: transform 0.18s cubic-bezier(.2,.8,.2,1);
  box-shadow:
    0 0 0 4px var(--white),
    0 0 0 7px var(--ink),
    14px 14px 0 var(--ink),
    18px 18px 0 var(--yellow),
    22px 22px 0 7px var(--ink);
  cursor: grab;
  will-change: transform;
}
.card:active { cursor: grabbing; }
.card__img { width: 100%; display: block; border-radius: inherit; }
.card__holo {
  position: absolute; inset: 0; border-radius: inherit;
  background: conic-gradient(
    from calc(var(--mx, 0.5) * 360deg)
    at calc(var(--mx, 0.5) * 100%) calc(var(--my, 0.5) * 100%),
    #ff2bd1, #ffd84f, #6dffe6, #9d6bff, #ff2bd1);
  mix-blend-mode: color-dodge;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  z-index: 2;
}
.card:hover .card__holo, .card.is-tilted .card__holo { opacity: .55; }
.card__sparkle {
  position: absolute; inset: 0; border-radius: inherit;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,.7) 1.2px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.6) 1.4px, transparent 2px),
    radial-gradient(circle at 40% 82%, rgba(255,255,255,.6) 1.2px, transparent 2px),
    radial-gradient(circle at 85% 30%, rgba(255,255,255,.7) 1.6px, transparent 2.5px);
  background-size: 160px 160px;
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  z-index: 3;
}
.card:hover .card__sparkle, .card.is-tilted .card__sparkle { opacity: .7; }
.card__shine {
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(360px circle at calc(var(--mx, .5) * 100%) calc(var(--my, .5) * 100%),
    rgba(255,255,255,.35), transparent 40%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity .3s;
}
.card:hover .card__shine, .card.is-tilted .card__shine { opacity: 1; }

/* Stamps + tape */
.stamp {
  position: absolute;
  z-index: 5;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(9px, 0.85vw, 11px);
  line-height: 1.1;
  padding: 7px 10px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  user-select: none;
  pointer-events: none;
}
.stamp--tl { top:  -6px; left:  -22px; background: var(--yellow); color: var(--ink); transform: rotate(-14deg); }
.stamp--tr { top:  -10px; right: -26px; background: var(--white);  color: var(--pink); transform: rotate(12deg); }
.stamp--bl { bottom: -6px; left:  -18px; background: var(--pink);   color: var(--white); transform: rotate(-10deg); font-family: var(--hand); font-size: 18px; padding: 4px 12px; border-radius: 16px; }
.stamp--br { bottom: -10px; right: -24px; background: var(--ink); color: var(--yellow); transform: rotate(8deg); }
.tape {
  position: absolute;
  width: 110px;
  height: 22px;
  background: rgba(255, 241, 112, 0.85);
  border: 1px dashed rgba(0,0,0,.2);
  z-index: 6;
  pointer-events: none;
}
.tape--a { top: 12px; left: 36%; transform: translateX(-50%) rotate(-6deg); }
.tape--b { bottom: -8px; right: 28%; transform: rotate(8deg); }

/* Right column */
.hero__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  justify-self: start;
}
.kiss {
  font-size: clamp(50px, 6vw, 80px);
  filter: drop-shadow(3px 3px 0 var(--ink));
  transform: rotate(-10deg);
  display: inline-block;
}
.rosette {
  display: inline-block;
  animation: spin 14s linear infinite;
  filter: drop-shadow(3px 3px 0 var(--ink));
}
@keyframes spin { to { transform: rotate(360deg); } }
.scribble {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 19px;
  color: var(--white);
  margin: 0;
  line-height: 1.1;
  -webkit-text-stroke: 1px var(--ink);
  transform: rotate(-3deg);
}

/* --- Roster --- */
.roster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.r {
  --brand: var(--pink);
  position: relative;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 4px 4px 0 var(--ink);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "icon name tag"
    "icon sub  tag";
  align-items: center;
  gap: 0 10px;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
  overflow: hidden;
}
.r::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .55s ease;
  pointer-events: none;
}
.r:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: var(--pink-cream); }
.r:hover::before { transform: translateX(110%); }
.r:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.r__icon {
  grid-area: icon;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  box-shadow: 2px 2px 0 var(--ink);
  flex-shrink: 0;
  overflow: hidden;
}
.r__icon img,
.r__icon svg {
  width: 20px;
  height: 20px;
  object-fit: contain;
  /* Force any source (PNG/ICO/SVG) to clean white silhouette on brand tile */
  filter: brightness(0) invert(1);
}

/* Multi-color brand marks render natural on white tile */
.r--fansly .r__icon,
.r--th .r__icon {
  background: var(--white);
}
.r--fansly .r__icon img,
.r--th .r__icon img {
  filter: none;
  width: 24px;
  height: 24px;
}

.r__name {
  grid-area: name;
  font-family: var(--display);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.r__sub {
  grid-area: sub;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 16px;
  color: var(--brand);
  line-height: 1.05;
  margin-top: 2px;
  filter: saturate(1.1);
}
.r__tag {
  grid-area: tag;
  align-self: center;
  font-family: var(--display);
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

/* Brand-color mapping for icon tile bg */
.r--of     { --brand: #00aff0; }
.r--fansly { --brand: #1da1f2; }
.r--x      { --brand: #1a0220; }
.r--ig     { --brand: #d62976; }
.r--tw     { --brand: #9146ff; }
.r--dc     { --brand: #5865f2; }
.r--th     { --brand: #7b3ff2; }
.r--am     { --brand: #ff9900; }
.r--hd     { --brand: #111111; }

.r--of  .r__tag,
.r--fansly .r__tag { background: var(--pink); color: var(--white); }
.r--hd  .r__tag { background: var(--yellow); color: var(--ink); }
.r--tw  .r__tag { background: var(--cyan); color: var(--ink); }
.r--ig  .r__tag { background: var(--pink-soft); color: var(--ink); }
.r--am  .r__tag { background: var(--yellow); color: var(--ink); }

/* --- Foot --- */
.foot {
  text-align: center;
  margin: 0;
  padding: 6px 12px 2px;
}
.foot p {
  margin: 0;
  display: inline-block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* --- Tablet --- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 12px; }
  .hero__left, .hero__right {
    flex-direction: row;
    justify-self: center;
    align-items: center;
    gap: 18px;
  }
  .hero__center { order: 1; }
  .hero__left   { order: 2; }
  .hero__right  { order: 3; }
  .chibi img { width: clamp(110px, 13vw, 160px); }
  .roster { grid-template-columns: repeat(3, 1fr); }
}

/* --- Mobile --- */
@media (max-width: 720px) {
  .page {
    padding: 14px 14px 14px;
    gap: 12px;
  }
  .ticker { padding: 7px 0; border-bottom-width: 3px; }
  .ticker__rail { font-size: 13px; }

  .hero { gap: 10px; }

  /* Hide decorative side columns on phone */
  .hero__left, .hero__right { display: none; }

  /* Title */
  .title { line-height: 0.88; }
  .title__row { gap: 6px; }
  .title__main { font-size: clamp(40px, 12vw, 56px); }
  .title__moan { font-size: clamp(48px, 14vw, 68px); }
  .title__num  { font-size: clamp(13px, 3.6vw, 16px); padding: 4px 10px; transform: rotate(6deg) translateY(-4px); margin-left: 4px; }
  .bow { font-size: clamp(22px, 6vw, 30px); }

  .deck { font-size: clamp(18px, 5vw, 22px); }
  .deck__sub { font-size: 11px; padding: 5px 10px; }

  /* Card */
  .cardwrap { padding: 14px; }
  .card {
    width: clamp(160px, 52vw, 220px);
    box-shadow:
      0 0 0 3px var(--white),
      0 0 0 5px var(--ink),
      9px 9px 0 var(--ink),
      12px 12px 0 var(--yellow),
      15px 15px 0 5px var(--ink);
  }
  .stamp { font-size: 8px; padding: 5px 7px; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); }
  .stamp--tl { top: -4px; left: -6px; }
  .stamp--tr { top: -6px; right: -6px; }
  .stamp--bl { bottom: -4px; left: -4px; font-size: 14px; padding: 3px 9px; }
  .stamp--br { bottom: -6px; right: -6px; }
  .tape { width: 72px; height: 16px; }
  .tape--a { top: 8px; }
  .tape--b { bottom: -4px; right: 22%; }

  /* Roster */
  .roster { grid-template-columns: 1fr 1fr; gap: 8px; }
  .r { padding: 9px 11px; gap: 0 9px; }
  .r__icon { width: 32px; height: 32px; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); }
  .r__icon img, .r__icon svg { width: 18px; height: 18px; }
  .r--fansly .r__icon img, .r--th .r__icon img { width: 22px; height: 22px; }
  .r__name { font-size: clamp(13px, 3.6vw, 15px); }
  .r__sub  { font-size: 13px; }
  .r__tag  { font-size: 9px; padding: 4px 6px; box-shadow: 1.5px 1.5px 0 var(--ink); }

  /* Foot */
  .foot p { font-size: 11px; padding: 5px 11px; }
}

/* --- Phones < 440px (most modern phones in portrait) --- */
@media (max-width: 440px) {
  .stars .s { font-size: 14px; }
  .s4, .s7 { font-size: 18px; }

  .title__moan { font-size: clamp(44px, 15vw, 60px); }
  .title__main { font-size: clamp(36px, 12vw, 50px); }

  .deck { font-size: 17px; }

  .roster { grid-template-columns: 1fr; gap: 7px; }
  .r { padding: 8px 10px; }
}

/* --- Very tiny (older iPhones SE, foldables closed) --- */
@media (max-width: 340px) {
  .page { padding: 10px; }
  .ticker__rail { font-size: 11px; }
  .title__main { font-size: 32px; }
  .title__moan { font-size: 40px; }
  .card { width: 70vw; }
}

/* --- Landscape phone (short height) --- */
@media (max-height: 520px) and (max-width: 900px) {
  .hero__left { display: none; }
  .deck { display: none; }
  .card { width: clamp(140px, 22vw, 200px); }
  .title__main { font-size: clamp(36px, 7vw, 56px); }
  .title__moan { font-size: clamp(40px, 8vw, 64px); }
}
