/* ==========================================================================
   Anvil, shared design tokens
   Dark fantasy / forge aesthetic, shared by the hub and every tool page.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Cinzel+Decorative:wght@700&family=Spectral:ital,wght@0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Palette - inspired by Summoner's Rift: jungle green base, river teal,
     purple void/mist accents, gold structure trim. */
  --ink: #050b09;
  --char: #0a1613;
  --char-2: #0e1f1a;
  --panel: #13251f;
  --panel-line: #2a4a3d;
  --brown: #1c3a30;
  --brown-deep: #0c1e18;
  --gold: #c9a24b;
  --gold-bright: #f0cf7a;
  --gold-dim: #7d6633;
  --purple: #7a5ea8;
  --purple-bright: #b48eea;
  --purple-mist: #4a2f6e;
  --teal: #3f8f7a;
  --teal-bright: #5fc9ac;
  --parchment: #e3ecdf;
  --parchment-dim: #a9bab0;
  --blue-team: #4f8bd6;
  --red-team: #c65b4e;
  --good: #6fae6a;
  --bad: #c1584f;

  /* Type */
  --font-display: 'Cinzel', serif;
  --font-display-deco: 'Cinzel Decorative', serif;
  --font-body: 'Spectral', serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-deep: 0 20px 60px rgba(0,0,0,0.55);
  --shadow-soft: 0 8px 24px rgba(0,0,0,0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 900px 500px at 15% -5%, rgba(122,94,168,0.16), transparent 60%),
    radial-gradient(ellipse 900px 500px at 85% 0%, rgba(63,143,122,0.14), transparent 60%),
    var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grain overlay, applied once at the body level */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
  margin: 0 0 0.5em;
}

a { color: var(--gold-bright); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple-bright);
}

/* Ornate divider, thin rule with a diamond mark, used to separate sections */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-dim);
  margin: 2.5rem 0;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--panel-line), transparent);
}
.divider .mark {
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: var(--gold-dim);
  flex: none;
}

.btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  border: 1px solid var(--gold-dim);
  background: linear-gradient(180deg, var(--brown) 0%, var(--brown-deep) 100%);
  color: var(--gold-bright);
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:hover { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-dim), var(--shadow-soft); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 60%, var(--gold-dim) 100%);
  color: var(--ink);
  border-color: var(--gold-bright);
}
.btn-primary:hover { box-shadow: 0 0 0 1px var(--gold), 0 12px 28px rgba(201,162,75,0.25); }

.panel {
  background: linear-gradient(180deg, var(--panel) 0%, var(--char-2) 100%);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

::selection { background: var(--gold-dim); color: var(--ink); }

/* Focus visibility, kept even though the palette is dark */
:focus-visible {
  outline: 2px solid var(--purple-bright);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.site-footer {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  color: var(--parchment-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ---------- Rift decorations ---------- */

/* A cluster of soft green blobs, standing in for a Summoner's Rift bush.
   Pure CSS so it renders without any image assets. */
.bush {
  position: absolute;
  width: 220px;
  height: 140px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  filter: blur(0.5px);
}
.bush::before, .bush::after, .bush .leaf {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(95,201,172,0.35), rgba(20,60,48,0.5) 70%);
  border: 1px solid rgba(95,201,172,0.18);
}
.bush::before { width: 130px; height: 100px; left: 0; bottom: 0; }
.bush::after { width: 110px; height: 90px; right: 0; bottom: 10px; }
.bush .leaf { width: 90px; height: 80px; left: 60px; bottom: 25px; }

.purple-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,94,168,0.28) 0%, rgba(74,47,110,0.12) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.teal-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95,201,172,0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Floating decorative icons. Point at any icone1.png, icone2.png, ...
   file dropped into /public - missing files just fade out quietly. */
.floating-icons {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.floating-icon {
  position: absolute;
  width: 56px;
  height: 56px;
  opacity: 0.22;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5));
  animation: drift 9s ease-in-out infinite;
}
.floating-icon:nth-child(2) { animation-duration: 11s; animation-delay: -2s; }
.floating-icon:nth-child(3) { animation-duration: 7.5s; animation-delay: -4s; }
.floating-icon:nth-child(4) { animation-duration: 12.5s; animation-delay: -1s; }
.floating-icon:nth-child(5) { animation-duration: 8.5s; animation-delay: -3s; }
.floating-icon:nth-child(6) { animation-duration: 10s; animation-delay: -5s; }

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

