/* Pulu web: shared tokens, reset and the few components both pages use.
   Dark only, like the app: background #0B0C0E, panels #141518, soft blue/violet glows. */

:root {
  color-scheme: dark;

  --bg: #0b0c0e;
  --panel: #141518;
  --panel-2: #1a1c20;
  --panel-3: #22252a;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --hover: rgba(255, 255, 255, 0.05);

  --text: #f5f6f8;
  --text-2: #8e939c;
  --text-3: #6b7079;

  --blue: #6e9bff;
  --violet: #a184ff;
  --accent: #8f8cff;
  --accent-grad: linear-gradient(135deg, #7aa2ff 0%, #a184ff 100%);
  --green: #34d399;
  --amber: #ffb43d;
  --red: #ff5f64;
  --eye: #09090c;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --gutter: 16px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background-color 0.15s, border-color 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--text); color: #0b0c0e; }
.btn--primary:hover { background: #ffffff; }

.btn--accent { background: var(--accent-grad); color: #0b0c0e; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-2);
  color: var(--text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn--danger { background: rgba(255, 95, 100, 0.12); border-color: rgba(255, 95, 100, 0.28); color: #ff8a8e; }

.btn--small { min-height: 34px; padding: 0 14px; font-size: 14px; }
.btn--block { width: 100%; }

/* "em breve" pill next to a button label */
.soon {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(11, 12, 14, 0.12);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---------- Ghost (the ghost sprite with code-drawn eyes, like the app) ----------
   .ghost is the box (the sprite's aspect ratio). .ghost__body is the sprite multiplied by
   --c (the bot's colour) so its shading survives; untinted ghosts use .ghost--plain.
   The eyes are two dark capsules; --lx/--ly move them (look direction). */

.ghost {
  --c: #ffffff;
  --lx: 0;
  --ly: 0;
  position: relative;
  display: inline-block;
  flex: none;
  width: 40px;
  aspect-ratio: 128 / 154;
  isolation: isolate;
}

.ghost__body {
  position: absolute;
  inset: 0;
  background-color: var(--c);
  -webkit-mask: url("/img/ghost-sm.png") center / contain no-repeat;
  mask: url("/img/ghost-sm.png") center / contain no-repeat;
}
.ghost__body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/img/ghost-sm.png") center / contain no-repeat;
  mix-blend-mode: multiply;
}
.ghost--plain .ghost__body { background: url("/img/ghost-sm.png") center / contain no-repeat; -webkit-mask: none; mask: none; }
.ghost--plain .ghost__body::after { content: none; }

/* Big ghosts use the 480 px art so they stay sharp on Retina screens. */
.ghost--lg .ghost__body { -webkit-mask-image: url("/img/ghost.png"); mask-image: url("/img/ghost.png"); }
.ghost--lg .ghost__body::after,
.ghost--lg.ghost--plain .ghost__body { background-image: url("/img/ghost.png"); }
.ghost--lg.ghost--plain .ghost__body { -webkit-mask: none; mask: none; }

.ghost__eyes {
  position: absolute;
  left: 50%;
  top: 23.5%;
  width: 35%;
  height: 17%;
  transform: translate(calc(-50% + var(--lx) * 28%), calc(var(--ly) * 24%));
  transition: transform 0.25s var(--ease);
}
.ghost__eye {
  position: absolute;
  top: 0;
  width: 34%;
  height: 100%;
  border-radius: 999px;
  background: var(--eye);
  transform-origin: 50% 55%;
  rotate: calc(var(--lx) * -12deg);
  transition: rotate 0.25s var(--ease);
}
.ghost__eye:first-child { left: 0; }
.ghost__eye:last-child { right: 0; }

/* Rosy cheeks (hero and happy ghosts) */
.ghost__cheek {
  position: absolute;
  top: 41%;
  width: 15%;
  height: 7%;
  border-radius: 50%;
  background: rgba(255, 120, 150, 0.45);
  transform: translateX(calc(var(--lx) * 40%));
  transition: transform 0.25s var(--ease);
}
.ghost__cheek--l { left: 19.5%; }
.ghost__cheek--r { right: 19.5%; }

/* Palette ids from the app (NotchBuddy/Sources/App/Team/TeamModel.swift, GhostPalette). */
.ghost--pink   { --c: #ff5ea8; }
.ghost--blue   { --c: #3d8bff; }
.ghost--violet { --c: #9a6bff; }
.ghost--mint   { --c: #2fd08f; }
.ghost--teal   { --c: #1ec4b4; }
.ghost--orange { --c: #ff7b33; }
.ghost--honey  { --c: #ffb43d; }
.ghost--coral  { --c: #ff5a5f; }
.ghost--sky    { --c: #6ec6ff; }
.ghost--lilac  { --c: #c79bff; }
.ghost--cocoa  { --c: #b4835a; }
.ghost--pearl  { --c: #f1f0f6; }

@keyframes ghost-blink {
  0%, 93%, 100% { scale: 1 1; }
  96% { scale: 1 0.12; }
}
@keyframes ghost-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

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