/* Shinobi / Ninja — negro, carmesí, plata, niebla */
:root {
  --void: #030304;
  --ink: #0a0a0c;
  --panel: #0f0f12;
  --panel-2: #141418;
  --silver: #b8bcc8;
  --chrome: #eceff4;
  --muted: #5c6370;
  --crimson: #c41e3a;
  --crimson-glow: rgba(196, 30, 58, 0.35);
  --crimson-dim: rgba(196, 30, 58, 0.12);
  --gold: #c9a227;
  --line: rgba(184, 188, 200, 0.1);
  --font-display: "Oxanium", "Noto Sans JP", system-ui, sans-serif;
  --font-body: "Noto Sans JP", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--silver);
  background: var(--void);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Niebla de fondo */
.mist {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(196, 30, 58, 0.14), transparent 55%),
    radial-gradient(circle at 0% 80%, rgba(201, 162, 39, 0.04), transparent 40%),
    radial-gradient(circle at 100% 20%, rgba(255, 255, 255, 0.02), transparent 35%),
    linear-gradient(180deg, #030304 0%, #08080a 50%, #030304 100%);
}

.mist::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 80px,
    rgba(255, 255, 255, 0.008) 80px,
    rgba(255, 255, 255, 0.008) 81px
  );
}

/* Shuriken decorativos */
.shuriken {
  position: fixed;
  width: 120px;
  height: 120px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  background:
    conic-gradient(from 0deg, var(--crimson) 0deg 45deg, transparent 45deg 90deg,
      var(--crimson) 90deg 135deg, transparent 135deg 180deg,
      var(--crimson) 180deg 225deg, transparent 225deg 270deg,
      var(--crimson) 270deg 315deg, transparent 315deg 360deg);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.shuriken-a {
  top: 12%;
  right: -20px;
  animation: drift 18s ease-in-out infinite;
}

.shuriken-b {
  bottom: 8%;
  left: -30px;
  width: 80px;
  height: 80px;
  animation: drift 22s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(-12px); }
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
  position: relative;
  z-index: 1;
}

/* Hero */
.hero {
  text-align: center;
  padding: 2.5rem 0 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
}

.seal {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.35);
  padding: 0.35rem 1rem;
  margin-bottom: 1rem;
  background: rgba(201, 162, 39, 0.06);
}

.kicker {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chrome);
  text-shadow: 0 0 80px var(--crimson-glow);
  margin-bottom: 0.85rem;
}

.lead {
  max-width: 540px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
}

.lead strong {
  color: var(--crimson);
  font-weight: 600;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--silver);
  background: rgba(0, 0, 0, 0.35);
}

.pill.locked {
  border-color: rgba(196, 30, 58, 0.4);
  color: #f0a0ad;
  background: var(--crimson-dim);
}

.owner {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* Panels */
.panel {
  background: linear-gradient(160deg, var(--panel) 0%, var(--ink) 100%);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--crimson), transparent);
  border-radius: 3px 0 0 3px;
}

.panel-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.panel-head h2 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: 0.25rem;
}

.panel-head p {
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.auth-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  padding: 1rem;
  border-radius: 2px;
}

.auth-card h3 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.auth-card code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--chrome);
  margin-bottom: 0.5rem;
  word-break: break-all;
}

.auth-card p {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Code blocks */
.code-block {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line);
  border-left: 2px solid var(--crimson);
  padding: 1rem;
  border-radius: 2px;
  overflow-x: auto;
  color: var(--silver);
  margin-bottom: 0.75rem;
  white-space: pre;
}

.code-block .cmt {
  color: var(--muted);
}

/* Endpoints */
.section-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: 1rem;
}

.endpoints {
  margin-bottom: 1.5rem;
}

.endpoint-card {
  background: linear-gradient(145deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.endpoint-card:hover {
  border-color: rgba(196, 30, 58, 0.25);
}

.endpoint-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.3);
  padding: 0.15rem 0.45rem;
}

.method {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
}

.method.post {
  background: var(--crimson-dim);
  color: #f87171;
  border: 1px solid rgba(196, 30, 58, 0.35);
}

.path {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--chrome);
  flex: 1;
  min-width: 180px;
}

.lock-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--line);
  padding: 0.15rem 0.4rem;
}

.endpoint-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--chrome);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.endpoint-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: #f0a0ad;
}

/* Copy button */
.copy-btn {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.55rem 1rem;
  background: transparent;
  border: 1px solid rgba(196, 30, 58, 0.45);
  color: var(--silver);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: var(--crimson-dim);
  border-color: var(--crimson);
  color: var(--chrome);
}

.copy-btn.copied {
  border-color: var(--gold);
  color: var(--gold);
}

/* Warn panel */
.warn-panel {
  border-color: rgba(196, 30, 58, 0.2);
  background: linear-gradient(160deg, rgba(196, 30, 58, 0.06) 0%, var(--ink) 100%);
}

/* Footer */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

footer .sep {
  opacity: 0.35;
}

@media (max-width: 640px) {
  .wrap { padding: 1.25rem 1rem 2.5rem; }
  .hero h1 { letter-spacing: 0.06em; }
  .panel-head { flex-direction: column; gap: 0.5rem; }
}
