/* ============================================================
   RuinDorm — neon-addon.css
   Additive visual module: character accent colors, terminal
   badge variant, and the flip-clock notice ticker.

   DESIGN CONTRACT:
   - This file adds NEW rules only. It never edits or removes
     anything in style.css.
   - Every override rule here is written with HIGHER selector
     specificity than the original rule it visually replaces
     (e.g. .char-card[data-accent]:hover beats .char-card:hover),
     so load order relative to style.css does not matter — this
     file can be linked before or after style.css.
   - If a .char-card has no data-accent attribute, it falls back
     to the original magenta look untouched. Nothing breaks if
     this file is removed.
   ============================================================ */

:root {
  --accent-cyan:      #00ffcc;
  --char-honeybite:   #ff5c3d;  /* combat / food -> hot orange-red   */
  --char-lacetease:   #ff2fb0;  /* beauty / luxury -> magenta-pink   */
  --char-neolick:     #2fd6ff;  /* engineering -> electric blue      */
  --char-memo:        #3dff9e;  /* AI manager -> neon green          */
}

/* ── 1. CHARACTER ACCENT SYSTEM ──────────────────────────────
   Requires: add data-accent="honeybite|lacetease|neolick|memo"
   to each .char-card <article> in index.html. See INTEGRATION_GUIDE.md.
   Falls back to the existing magenta accent-hot look if the
   attribute is missing, or if the browser doesn't support color-mix().
──────────────────────────────────────────────────────────────── */
.char-card[data-accent]              { --card-accent: var(--accent-hot); }
.char-card[data-accent="honeybite"]  { --card-accent: var(--char-honeybite); }
.char-card[data-accent="lacetease"]  { --card-accent: var(--char-lacetease); }
.char-card[data-accent="neolick"]    { --card-accent: var(--char-neolick); }
.char-card[data-accent="memo"]       { --card-accent: var(--char-memo); }

.char-card[data-accent]:hover {
  box-shadow:
    0 0 30px color-mix(in srgb, var(--card-accent) 55%, transparent),
    0 12px 40px rgba(0,0,0,0.7);
  border-color: color-mix(in srgb, var(--card-accent) 55%, transparent);
}
.char-card[data-accent] .char-card-name {
  text-shadow: 0 0 12px color-mix(in srgb, var(--card-accent) 65%, transparent);
}
.char-card[data-accent] .char-card-play {
  background: color-mix(in srgb, var(--card-accent) 55%, #100010);
  border-color: color-mix(in srgb, var(--card-accent) 85%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--card-accent) 55%, transparent);
}

/* ── 2. TERMINAL BADGE VARIANT ────────────────────────────────
   Add class "section-eyebrow--terminal" alongside the existing
   "section-eyebrow" class on ONE badge (recommended: Front Desk
   only, as a deliberate accent — not applied site-wide by default).
   Add <span class="eyebrow-dot"></span> as the first child.
──────────────────────────────────────────────────────────────── */
.section-eyebrow--terminal {
  font-family: 'Courier New', Courier, monospace;
  border-radius: 2px;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0,255,204,0.06);
  text-transform: uppercase;
}
.section-eyebrow--terminal .eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan), 0 0 12px var(--accent-cyan);
  animation: rdEyebrowBlink 1.6s ease-in-out infinite;
  flex: 0 0 auto;
}
@keyframes rdEyebrowBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) {
  .section-eyebrow--terminal .eyebrow-dot { animation: none; }
}

/* ── 3. FLIP-CLOCK NOTICE TICKER ──────────────────────────────
   Mount point: <div id="rdTicker" class="rd-ticker"> ... </div>
   This project mounts it at the top of .watch-page, after the hero
   collapses into the fixed nav and before the Living Room section.
──────────────────────────────────────────────────────────────── */
.rd-ticker-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem) var(--zone-px) 0;
  position: relative;
  z-index: 2;
}

.rd-ticker {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: #100010;
  border: 1px solid rgba(0,255,204,0.30);
  border-radius: 4px;
  box-shadow:
    0 0 20px rgba(0,255,204,0.06),
    0 10px 32px rgba(0,0,0,0.45),
    inset 0 0 16px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
  height: clamp(50px, 15vw, 58px);
  perspective: 500px;
  font-family: 'Courier New', Courier, monospace;
}
@media (min-width: 1024px) {
  .rd-ticker-shell {
    padding-top: 1.6rem;
  }
}
@media (max-width: 599px) {
  .rd-ticker-shell {
    padding: 1rem 1rem 0;
  }
  .rd-ticker {
    max-width: none;
  }
}
@media (max-width: 420px) {
  .rd-ticker { height: clamp(54px, 19vw, 62px); }
}
.rd-ticker::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.025) 0px,
    rgba(255,255,255,0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 5;
}
.rd-flip-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 14px);
  padding: 0 clamp(12px, 3vw, 20px);
  transform-origin: 50% 100%;
  transition: transform 0.55s cubic-bezier(.45,0,.4,1), opacity 0.55s ease;
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.rd-flip-slide.rd-state-active  { transform: rotateX(0deg);    opacity: 1; z-index: 2; }
.rd-flip-slide.rd-state-leaving { transform: rotateX(-100deg); opacity: 0; z-index: 1; }
.rd-flip-slide.rd-state-waiting { transform: rotateX(100deg);  opacity: 0; z-index: 0; }

.rd-flip-icon {
  flex: 0 0 auto;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 4px rgba(0,255,204,0.6));
}
.rd-flip-icon.rd-is-hidden { display: none; }

.rd-flip-text {
  flex: 1 1 auto;
  font-size: clamp(0.72rem, 2.4vw, 0.92rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--text-primary, #f1e8f5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rd-flip-text.rd-is-time {
  color: var(--accent-hot);
  font-weight: bold;
  letter-spacing: 0.06em;
  white-space: nowrap;
  -webkit-line-clamp: 1;
}
.rd-flip-text .rd-tag {
  margin-right: 6px;
  font-weight: bold;
  white-space: nowrap;
}
.rd-flip-text .rd-tag--breaking { color: #ff2b53; }
.rd-flip-text .rd-tag--warning { color: #ffb020; }
.rd-flip-text .rd-tag--notice { color: #00ffcc; }
.rd-flip-text .rd-tag--alert { color: #ff5c5c; }
.rd-flip-text .rd-tag--reminder { color: #c792ea; }
.rd-flip-text .rd-tag--update { color: #39ff88; }
.rd-flip-text .rd-tag--caution { color: #ffcc00; }
.rd-flip-text .rd-tag--news { color: #ff007f; }
.rd-flip-text .rd-tag--tip { color: #7cf9ff; }
.rd-flip-text .rd-tag--report { color: #8892b0; }
.rd-flip-text .rd-tag--advisory { color: #ffd166; }
.rd-flip-text .rd-tag.rd-is-breaking {
  animation: rdPulseTag 1.1s ease-in-out infinite;
}
@keyframes rdPulseTag {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-flip-slide { transition: opacity 0.3s ease; }
  .rd-flip-slide.rd-state-leaving,
  .rd-flip-slide.rd-state-waiting { transform: none; }
  .rd-flip-text .rd-tag.rd-is-breaking { animation: none; }
}

/* ── 4. CTA MOTION ACCENTS ───────────────────────────────────
   Main zone CTAs get a restrained breathing field and a narrow
   cyber scan. Signal cards stay quieter: only the outbound arrow
   breathes so the visual hierarchy still points to the main CTAs.
──────────────────────────────────────────────────────────────── */
.zone-cta-group--single .btn-zone-cta {
  --rd-cta-glow-a: rgba(255,80,200,0.55);
  --rd-cta-glow-b: rgba(0,255,204,0.14);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: rdCtaBreath 3.8s ease-in-out infinite;
}
.zone-cta-group--single .btn-zone-cta::after {
  content: "";
  position: absolute;
  inset: -35% -60%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      transparent 42%,
      rgba(255,255,255,0.22) 49%,
      rgba(255,255,255,0.08) 53%,
      transparent 61%,
      transparent 100%
    );
  transform: translateX(-62%) skewX(-16deg);
  opacity: 0;
  mix-blend-mode: screen;
  animation: rdCtaScan 4.6s cubic-bezier(0.16,1,0.3,1) infinite;
}
.zone-cta-group--single .btn-zone-cta:hover {
  animation-duration: 2.6s;
}
.zone-cta-group--single .btn-zone-cta:hover::after {
  animation-duration: 2.8s;
}

.zone-cta-group--single .btn-zone-cta--primary {
  --rd-cta-glow-a: rgba(255,80,200,0.72);
  --rd-cta-glow-b: rgba(255,190,235,0.22);
}
.zone-cta-group--single .btn-zone-cta--secondary {
  --rd-cta-glow-a: rgba(135,90,255,0.72);
  --rd-cta-glow-b: rgba(0,255,204,0.18);
}
.zone-cta-group--single .btn-zone-cta--yt {
  --rd-cta-glow-a: rgba(255,28,54,0.70);
  --rd-cta-glow-b: rgba(255,180,80,0.18);
}
.zone-cta-group--single .btn-zone-cta--tt {
  --rd-cta-glow-a: rgba(105,201,208,0.68);
  --rd-cta-glow-b: rgba(254,44,85,0.28);
}
.zone-cta-group--single .btn-zone-cta--nft {
  --rd-cta-glow-a: rgba(150,90,255,0.74);
  --rd-cta-glow-b: rgba(0,255,204,0.18);
}

@keyframes rdCtaBreath {
  0%, 100% {
    box-shadow:
      0 0 16px color-mix(in srgb, var(--rd-cta-glow-a) 70%, transparent),
      0 0 34px color-mix(in srgb, var(--rd-cta-glow-b) 55%, transparent),
      0 4px 16px rgba(0,0,0,0.46);
  }
  50% {
    box-shadow:
      0 0 28px var(--rd-cta-glow-a),
      0 0 66px var(--rd-cta-glow-b),
      0 8px 26px rgba(0,0,0,0.58);
  }
}
@keyframes rdCtaScan {
  0%, 56% {
    opacity: 0;
    transform: translateX(-62%) skewX(-16deg);
  }
  64% {
    opacity: 0.72;
  }
  82%, 100% {
    opacity: 0;
    transform: translateX(62%) skewX(-16deg);
  }
}

.signal-card-cta .btn-zone-cta svg:last-child {
  transform-origin: center;
  animation: rdSignalArrowBreath 2.8s ease-in-out infinite;
}
.signal-card-cta .btn-zone-cta--x-signal svg:last-child {
  --rd-signal-arrow: rgba(235,235,255,0.90);
}
.signal-card-cta .btn-zone-cta--ig-signal svg:last-child {
  --rd-signal-arrow: rgba(255,205,150,0.92);
}
@keyframes rdSignalArrowBreath {
  0%, 100% {
    opacity: 0.72;
    filter: drop-shadow(0 0 0 rgba(255,255,255,0));
    transform: translate(0,0);
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 7px var(--rd-signal-arrow, rgba(255,255,255,0.85)));
    transform: translate(1px,-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .zone-cta-group--single .btn-zone-cta,
  .zone-cta-group--single .btn-zone-cta::after,
  .signal-card-cta .btn-zone-cta svg:last-child {
    animation: none;
  }
}

/* ── 5. OUTRO TAGLINE ────────────────────────────────────────
   Closing line between the social signal cards and the legal footer.
   Kept quiet: it fills the final breathing room without competing
   with the CTAs above or the adult notice below.
──────────────────────────────────────────────────────────────── */
.site-outro {
  max-width: 900px;
  margin: clamp(-1.25rem, -1.5vw, -0.35rem) auto 0;
  padding: 0 var(--zone-px) clamp(1.45rem, 3vw, 2.15rem);
  text-align: center;
  position: relative;
}
.site-outro::after {
  content: "";
  display: block;
  width: min(360px, 70vw);
  height: 1px;
  margin: clamp(1.1rem, 2.4vw, 1.6rem) auto 0;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0,255,204,0.18),
    rgba(255,80,200,0.24),
    transparent
  );
}
.site-signature {
  display: block;
  width: min(760px, 84vw);
  height: auto;
  max-height: 118px;
  object-fit: contain;
  margin: clamp(0.7rem, 1.8vw, 1rem) auto 0;
  opacity: 0.84;
  filter:
    drop-shadow(0 0 8px rgba(255,255,255,0.20))
    drop-shadow(0 0 22px rgba(255,80,200,0.18));
}
.site-outro p {
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(0.88rem, 1.45vw, 1.05rem);
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: rgba(240,230,240,0.66);
  text-shadow: 0 0 18px rgba(255,80,200,0.10);
}
.site-outro span {
  display: block;
}
.site-outro strong {
  color: rgba(0,255,204,0.86);
  font-weight: 700;
  text-shadow:
    0 0 8px rgba(0,255,204,0.36),
    0 0 18px rgba(0,255,204,0.12);
}

@media (max-width: 599px) {
  .site-outro {
    margin-top: -0.35rem;
    padding: 0 1.25rem 1.45rem;
  }
  .site-outro::after {
    margin-top: 1rem;
  }
  .site-signature {
    width: min(94vw, 520px);
    max-height: 76px;
    margin-top: 0.65rem;
    opacity: 0.88;
  }
  .site-outro p {
    font-size: 0.84rem;
    line-height: 1.6;
    letter-spacing: 0.03em;
  }
}
