/* ============================================================
   UNISCOPE skin — unihood.fun aesthetic, PINK instead of purple.
   Light "paper" theme, cyber-HUD framing, Space Grotesk + JetBrains Mono.
   Overrides the compiled shadcn/Tailwind vars (hsl(var(--x))).
   ============================================================ */

:root,
:root.dark,
body.dark,
[data-theme="dark"] {
  /* paper + ink */
  --background: 318 52% 97% !important;      /* #fbf1f8 pink paper */
  --foreground: 322 60% 11% !important;      /* #2c0c20 magenta ink */
  --card: 320 60% 99.2% !important;          /* near-white pink */
  --card-foreground: 322 60% 11% !important;
  --popover: 320 60% 99.2% !important;
  --popover-foreground: 322 60% 11% !important;

  /* PINK primary/accent (was unihood violet #7b3bec) */
  --primary: 328 85% 55% !important;         /* #ec2b98 hot pink */
  --primary-foreground: 0 0% 100% !important;
  --accent: 328 85% 55% !important;          /* drives the 3D wordmark */
  --accent-foreground: 0 0% 100% !important;
  --ring: 328 85% 55% !important;

  --secondary: 316 46% 93% !important;
  --secondary-foreground: 322 55% 16% !important;
  --muted: 316 40% 93% !important;
  --muted-foreground: 320 16% 44% !important;

  --border: 324 48% 85% !important;
  --input: 324 48% 85% !important;
  --button-outline: 328 70% 72% !important;

  /* chart palette → pink (depth chart reads --chart-1) */
  --chart-1: 328 85% 55% !important;
  --chart-2: 330 80% 68% !important;
  --chart-3: 78 74% 55% !important;
  --chart-4: 300 60% 60% !important;
  --chart-5: 340 80% 62% !important;

  /* decorative brand tokens */
  --us-pink: #ec2b98;
  --us-pink-deep: #b3186e;
  --us-pink-soft: #fbdcef;
  --us-lime: #b7ef3f;
  --us-lime-deep: #55901a;
  --us-ink: #2c0c20;
  --us-line: rgba(178, 24, 110, 0.16);
  --us-line-strong: rgba(178, 24, 110, 0.32);

  /* fonts */
  --app-font-sans: "Space Grotesk", "Helvetica Neue", sans-serif !important;
  --app-font-mono: "JetBrains Mono", ui-monospace, monospace !important;
  --default-font-family: "Space Grotesk", "Helvetica Neue", sans-serif !important;
  --default-mono-font-family: "JetBrains Mono", ui-monospace, monospace !important;
}

/* kill any remaining dark-surface guesses */
html, body { background: hsl(var(--background)); color: hsl(var(--foreground)); }
body { font-family: var(--app-font-sans); }

/* ---- paper + GRADIENT-SQUARE grid (unihood-style) + pastel rainbow wash ---- */
#root main,
main[class*="bg-background"] {
  background-color: #fbf1f8;
  background-image:
    /* per-cell soft glow → each square reads as a gradient tile */
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.70), rgba(255,255,255,0) 60%),
    /* grid lines */
    linear-gradient(rgba(178,24,110,0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(178,24,110,0.13) 1px, transparent 1px),
    /* large pastel rainbow wash — echoes the logo */
    linear-gradient(125deg,
      rgba(183,148,244,0.22),
      rgba(236,43,152,0.12) 30%,
      rgba(255,183,120,0.12) 50%,
      rgba(150,224,180,0.15) 70%,
      rgba(140,196,255,0.20));
  background-size: 34px 34px, 34px 34px, 34px 34px, 100% 100%;
  background-attachment: fixed;
}

/* ---- typography: display headings + mono labels ---- */
h1, h2, h3, [class*="font-serif"], [data-testid="text-token-name"] , [class*="text-2xl"], [class*="text-3xl"] {
  font-family: var(--app-font-sans) !important;
  letter-spacing: -0.01em;
}
[class*="font-mono"], [class*="uppercase"], [class*="tracking-"] {
  font-family: var(--app-font-mono) !important;
}

/* ---- cards: white paper panels, pink hairline, HUD corner ---- */
[class*="bg-card"] {
  background-color: hsl(var(--card)) !important;
  border-color: var(--us-line-strong) !important;
  box-shadow: 0 10px 30px rgba(58,20,60,0.06), 0 0 0 1px rgba(255,255,255,0.6) inset;
}
/* HUD corner brackets removed — cards keep their native rounded corners */
.us-hud { position: relative; }

/* ---- buttons: pink pills / lime ghost ---- */
[data-testid="button-wallet-connect"],
button[class*="bg-primary"], a[class*="bg-primary"] {
  background: var(--us-pink) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  font-family: var(--app-font-mono) !important;
  letter-spacing: 0.12em;
  box-shadow: 0 6px 18px rgba(236,43,152,0.35);
}
[data-testid="button-wallet-connect"]:hover { filter: brightness(1.05); }

/* the New/Top tabs + filter input → HUD mono */
[class*="rounded-md"] input,
input[type="text"], input[placeholder] {
  font-family: var(--app-font-mono) !important;
  border-color: var(--us-line-strong) !important;
  background: hsl(var(--card)) !important;
}

/* selected tab pop = lime */
[data-state="active"], [aria-selected="true"], .us-lime {
  background: var(--us-lime) !important;
  color: var(--us-ink) !important;
}

/* nav: logo LEFT · Analytics/Twitter top-right · CONNECT WALLET under them */
header {
  background: transparent !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  grid-template-rows: auto auto !important;
  align-items: center;
  gap: 8px 12px !important;
}
header > [data-testid="link-brand"] { grid-column: 1; grid-row: 1 / span 2; justify-self: start; align-self: center; }
header > [data-testid="nav-site"] { grid-column: 2; grid-row: 1; justify-self: end; flex: none !important; }
header > div:has([data-testid="button-wallet-connect"]) { grid-column: 2; grid-row: 2; justify-self: end; margin: 0 !important; }

/* nav links as HUD pills (distinct from unihood's plain links) */
[data-testid="nav-site"] a {
  border: 1px solid var(--us-line-strong) !important;
  border-radius: 999px !important;
  padding: 6px 15px !important;
  background: rgba(255,255,255,0.6) !important;
  font-family: var(--app-font-mono) !important;
  text-transform: uppercase;
  font-size: 11px; letter-spacing: 0.1em;
}
[data-testid="nav-site"] a:hover { background: var(--us-lime) !important; color: var(--us-ink) !important; }

/* brand mark → circular badge (black Logo.png) */
[data-testid="image-brand-mark"] {
  border-radius: 9999px !important;
  object-fit: cover !important;
  background: #0e0a12;
  border: 2px solid rgba(178,24,110,0.35);
  box-shadow: 0 5px 16px rgba(44,12,32,0.28);
  height: 3.4rem !important; width: 3.4rem !important;
}

/* mobile: collapse the 3-col grid back to normal flow */
@media (max-width: 640px) {
  header { display: flex !important; flex-wrap: wrap; justify-content: center; }
  header > [data-testid="link-brand"],
  header > [data-testid="nav-site"],
  header > div:has([data-testid="button-wallet-connect"]) { grid-column: auto; grid-row: auto; }
}

/* ---- LIVE TRADES ticker (injected fixed bar) ---- */
#us-ticker {
  position: fixed; top: 0; left: 0; right: 0; height: 34px; z-index: 60;
  display: flex; align-items: center; gap: 0;
  background: linear-gradient(90deg, #fbeaf5, #f6e7fb);
  border-bottom: 1px solid var(--us-line-strong);
  font-family: var(--app-font-mono); font-size: 11px;
  color: var(--us-ink); overflow: hidden; white-space: nowrap;
}
#us-ticker .us-tk-label {
  display: flex; align-items: center; gap: 7px;
  padding: 0 14px; height: 100%;
  background: var(--us-ink); color: #fff;
  font-weight: 600; letter-spacing: 0.14em; flex: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  padding-right: 22px;
}
#us-ticker .us-tk-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--us-lime); box-shadow: 0 0 8px var(--us-lime); }
#us-ticker .us-tk-track { display: inline-flex; align-items: center; gap: 30px; padding-left: 24px; animation: us-marquee 42s linear infinite; }
#us-ticker .us-tk-item { display: inline-flex; align-items: center; gap: 8px; }
#us-ticker .us-tk-item b { color: var(--us-pink-deep); font-weight: 700; }
#us-ticker .us-tk-item .buy { color: var(--us-lime-deep); }
#us-ticker .us-tk-item .muted { color: var(--us-muted, #8a6f83); opacity: 0.7; }
@keyframes us-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* push app content below the fixed ticker */
#root { padding-top: 34px; }

/* ---- hero tagline pill (injected) ---- */
#us-tagline {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 6px auto 0; padding: 9px 18px;
  background: var(--us-ink); color: var(--us-lime);
  font-family: var(--app-font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; border-radius: 4px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 8px 22px rgba(44,12,32,0.28);
}
#us-tagline .plus { color: var(--us-pink); }

/* ---- flat poster wordmark (replaces invisible 3D chrome on light paper) ---- */
.us-hero-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; pointer-events: none; text-align: center;
}
#us-wordmark {
  font-family: var(--app-font-sans);
  font-weight: 700;
  font-size: clamp(60px, 12.5vw, 190px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  color: var(--us-pink);
  transform: skewX(-5deg);
  text-shadow: 5px 6px 0 var(--us-pink-deep), 8px 9px 0 rgba(44,12,32,0.12);
  -webkit-text-stroke: 1.5px var(--us-pink-deep);
}
/* attached rainbow logo as the hero wordmark */
#us-logo {
  max-width: min(720px, 82vw);
  width: 100%; height: auto;
  filter: drop-shadow(0 16px 34px rgba(120,40,90,0.30));
}

/* decorative lime sparkles */
.us-spark { position: absolute; pointer-events: none; color: var(--us-lime); opacity: 0.9; filter: drop-shadow(0 0 6px rgba(183,239,63,0.6)); z-index: 2; }

/* running unicorn GIF — gallops across the hero (white bg dropped via blend) */
.us-unicorn {
  position: absolute;
  bottom: 1%;
  left: 0;
  width: clamp(110px, 15vw, 185px);
  height: auto;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
  animation: us-gallop 14s linear infinite;
  will-change: transform;
  filter: drop-shadow(0 6px 10px rgba(120,40,90,0.18));
}
@keyframes us-gallop {
  from { transform: translateX(103vw); }
  to   { transform: translateX(-24vw); }
}
@media (prefers-reduced-motion: reduce) { .us-unicorn { animation: none; left: 6%; } }
