/* ==========================================================================
   FusionFall Forever Wiki — Authentic FusionFall HUD Aesthetic & Colors
   Oceanic teal-blue cockpit glass, glossy cyan bevels, Fusion lime-green
   accents, Jefferies + ChaletBook typography, 100% self-contained.
   ========================================================================== */

@font-face {
  font-family: 'FFLauncherDisplay';
  src: url('/styles/nf/fusionfall_exact/reborn/fonts/Jefferies.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FFLauncherBody';
  src: url('/styles/nf/fusionfall_exact/reborn/fonts/ChaletBook-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FFLauncherBody';
  src: url('/styles/nf/fusionfall_exact/reborn/fonts/ChaletBook-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.ffw {
  --color-ff-abyss: #02131a;
  --color-ff-deep: #041c25;
  --color-ff-hull: #062a3d;
  --color-ff-navy: #0d3a56;
  --color-ff-blue: #2c9fd0;
  --color-ff-cyan: #39c4ee;
  --color-ff-glow: #7fe4ff;
  --color-ff-ice: #d6f4ff;
  --color-ff-green: #7ee000;

  --ffw-cyan: #39c4ee;
  --ffw-sky: #7fe4ff;
  --ffw-green: #7ee000;
  --ffw-green-soft: #b8ff5c;
  --ffw-ink: #02131a;
  --ffw-text: #e6f8ff;
  --ffw-dim: #9bcbe0;
  --ffw-line: rgba(57, 196, 238, 0.24);
  --ffw-line2: rgba(57, 196, 238, 0.52);
  --ffw-fill: rgba(10, 44, 66, 0.68);
  --ffw-fill2: rgba(17, 68, 98, 0.88);
  --font-display: 'FFLauncherDisplay', FFRebornDisplay, CNBold, 'Trebuchet MS', sans-serif;
  --font-body: 'FFLauncherBody', 'Segoe UI', Arial, sans-serif;
  --font-sans: var(--font-body);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  font-family: var(--font-body) !important;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ffw-text);
  width: 100%;
  box-sizing: border-box;
}

.ffw *, .ffw *::before, .ffw *::after { box-sizing: border-box; }
.ffw a { color: inherit; text-decoration: none; }
.ffw img { max-width: 100%; height: auto; }
.ffw ul, .ffw ol { list-style: none; margin: 0; padding: 0; }
.ffw button, .ffw input, .ffw select { font-family: var(--font-body) !important; }
.ffw strong, .ffw b { font-family: var(--font-body) !important; font-weight: 700; }
.ffw :focus-visible { outline: 2px solid var(--ffw-sky); outline-offset: 2px; border-radius: 5px; }
.ffw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ffw-skip { position: absolute; left: -9999px; top: 0; z-index: 50; padding: 8px 14px; background: #0d3a56; border: 1.5px solid var(--ffw-sky); border-radius: 6px; color: #fff; }
.ffw-skip:focus { left: 8px; top: 8px; }
.ffw [id] { scroll-margin-top: 86px; }
.ffw .p-4 { padding: 18px 22px; }
.ffw .min-w-0 { min-width: 0; }
.ffw .flex-1 { flex: 1 1 0%; }
.ffw .shrink-0 { flex-shrink: 0; }
.ffw .overflow-hidden { overflow: clip; }

.ffw .ff-title,
.ffw h1, .ffw h2, .ffw h3 {
  font-family: var(--font-display) !important;
  font-weight: 400;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--ffw-text);
}

/* Rarity text accents */
.ffw .ff-rarity-1 { color: #e8f4fa !important; }
.ffw .ff-rarity-2 { color: #9df234 !important; }
.ffw .ff-rarity-3 { color: #6fd3ff !important; }
.ffw .ff-rarity-4 { color: #df9eff !important; }

/* ==========================================================================
   TOP BAR: Iconic FusionFall skewed cockpit nav plates + crumbs + live search
   ========================================================================== */
.ffw-top {
  background: linear-gradient(180deg, rgba(13, 58, 86, 0.94) 0%, rgba(6, 30, 45, 0.96) 55%, rgba(4, 22, 34, 0.98) 100%);
  border: 1px solid rgba(57, 196, 238, 0.72);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  box-shadow: inset 0 1px rgba(190, 240, 255, 0.28), inset 0 0 26px rgba(20, 120, 180, 0.2), 0 0 0 1px rgba(2, 16, 24, 0.9), 0 8px 24px -10px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ffw-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 2px 4px;
}

.ffw-navlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: #e6f8ff !important;
  font-family: var(--font-display) !important;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(2, 19, 26, 0.9);
  transition: filter 0.12s ease;
  z-index: 0;
}

.ffw-navlink::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 4px;
  transform: skew(-12deg);
  border: 1px solid rgba(102, 216, 246, 0.72);
  background: linear-gradient(180deg, #1d80b4 0%, #0d4b6e 55%, #093349 100%);
  box-shadow: inset 0 1px rgba(200, 245, 255, 0.42), 0 2px 8px -3px rgba(0, 0, 0, 0.75);
  transition: border-color 0.12s ease, box-shadow 0.14s ease;
}

.ffw-navlink > span {
  position: relative;
  z-index: 1;
}

.ffw-navlink:hover {
  filter: brightness(1.18);
  color: #ffffff !important;
}

.ffw-navlink:hover::before {
  border-color: #aef0ff;
}

.ffw-navlink.is-active {
  color: #ffffff !important;
}

.ffw-navlink.is-active::before {
  background: linear-gradient(180deg, #57cef2 0%, #1c86bb 55%, #0e5479 100%);
  border-color: #d6f8ff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.62), 0 0 14px -2px rgba(57, 196, 238, 0.75);
}

.ffw-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding-top: 9px;
  border-top: 1px solid rgba(57, 196, 238, 0.24);
}

.ffw-crumbs {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 13px;
  color: var(--ffw-dim);
}

.ffw-crumbs a {
  color: var(--ffw-cyan);
  font-weight: 700;
}

.ffw-crumbs a:hover {
  color: var(--ffw-sky);
  text-decoration: underline;
}

.ffw-crumb-sep { opacity: 0.55; }

.ffw-crumbs [aria-current] {
  color: #ffffff;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ffw-search {
  position: relative;
  flex: 0 1 390px;
  min-width: 220px;
}

.ffw .ff-input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 5px;
  border: 1px solid rgba(57, 196, 238, 0.55);
  background: rgba(2, 19, 26, 0.88);
  color: var(--ffw-text);
  font-size: 13.5px;
  outline: none;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.45);
}

.ffw .ff-input::placeholder { color: rgba(214, 244, 255, 0.48); }
.ffw .ff-input:focus { border-color: var(--ffw-sky); box-shadow: 0 0 0 3px rgba(57, 196, 238, 0.22); }
.ffw select.ff-input { width: auto; min-width: 150px; cursor: pointer; }
.ffw select.ff-input option { background: #041c25; color: #e6f8ff; }

.ffw-results {
  position: absolute;
  z-index: 60;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  max-height: min(70vh, 440px);
  overflow-y: auto;
  background: #062236;
  border: 1px solid rgba(57, 196, 238, 0.72);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0, 8, 14, 0.9);
  padding: 6px;
  overscroll-behavior: contain;
}

.ffw-results a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 5px;
  min-height: 46px;
}

.ffw-results a:hover, .ffw-results a.is-on {
  background: rgba(57, 196, 238, 0.22);
}

.ffw-results b { display: block; font-size: 13.5px; color: var(--ffw-sky); }
.ffw-results i { display: block; font-style: normal; font-size: 11.5px; color: var(--ffw-dim); }
.ffw-results p { margin: 0; padding: 10px; font-size: 13px; color: var(--ffw-dim); }

/* ==========================================================================
   AUTHENTIC FUSIONFALL HUD PLATES & GLOSSY BEVELED HEADERS
   ========================================================================== */
.ffw-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ffw .ff-plate {
  background: linear-gradient(180deg, rgba(13, 58, 86, 0.95) 0%, rgba(6, 30, 45, 0.96) 55%, rgba(4, 22, 34, 0.98) 100%);
  border: 1px solid rgba(57, 196, 238, 0.72);
  border-radius: 10px;
  box-shadow: inset 0 1px rgba(190, 240, 255, 0.28), inset 0 0 26px rgba(20, 120, 180, 0.22), 0 0 0 1px rgba(2, 16, 24, 0.9), 0 8px 26px -10px rgba(0, 0, 0, 0.92);
  overflow: clip;
}

/* Featured Spotlight Plate (FusionFall Nano-Green & Cyan HUD accent) */
.ffw .ff-plate.ff-plate--gold {
  border: 1.5px solid rgba(126, 224, 0, 0.72);
  box-shadow: inset 0 1px rgba(226, 255, 194, 0.28), inset 0 0 28px rgba(126, 224, 0, 0.1), 0 0 0 1px rgba(2, 16, 24, 0.9), 0 8px 26px -10px rgba(0, 0, 0, 0.92);
}

.ffw .ff-plate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 9px 18px;
  background: linear-gradient(180deg, #2798cf 0%, #166e9d 48%, #0d4b70 52%, #0a3c5c 100%);
  border-bottom: 1px solid rgba(90, 212, 247, 0.72);
  box-shadow: inset 0 1px rgba(226, 250, 255, 0.55), inset 0 -2px 6px rgba(2, 19, 26, 0.45);
}

.ffw .ff-plate.ff-plate--gold > .ff-plate-head {
  background: linear-gradient(180deg, #5cc41b 0%, #37910e 48%, #256e08 52%, #1b5406 100%);
  border-bottom-color: rgba(182, 245, 60, 0.72);
  box-shadow: inset 0 1px rgba(235, 255, 200, 0.55), inset 0 -2px 6px rgba(10, 32, 4, 0.45);
}

.ffw .ff-plate-head h2 {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 1px 0 #042538, 0 0 10px rgba(127, 228, 255, 0.45);
}

.ffw .ff-plate.ff-plate--gold > .ff-plate-head h2 {
  color: #f6ffe6;
  text-shadow: 0 1px 0 #0e2e02, 0 0 10px rgba(182, 245, 60, 0.35);
}

.ffw .ff-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #d6f6ff;
  text-shadow: 0 1px rgba(2, 19, 26, 0.65);
  white-space: nowrap;
}

.ffw-more {
  font-family: var(--font-display) !important;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff !important;
  text-shadow: 0 1px rgba(2, 19, 26, 0.75);
  white-space: nowrap;
}

.ffw-more:hover {
  color: #b8ff5c !important;
  text-decoration: underline;
}

.ffw .ff-plate-head .ffw-chip {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(2, 19, 26, 0.36);
}

.ffw-eco-jump {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border: 0;
  background: transparent;
  color: #0b2804 !important;
  font-family: var(--font-display) !important;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px rgba(235, 255, 210, 0.55);
  z-index: 0;
}

.ffw-eco-jump::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 4px;
  transform: skew(-12deg);
  background: linear-gradient(180deg, #b6f53c 0%, #5dc400 50%, #2f8c00 100%);
  border: 1px solid rgba(214, 255, 140, 0.9);
  box-shadow: inset 0 1px rgba(240, 255, 210, 0.75);
}

.ffw-eco-jump:hover {
  filter: brightness(1.12);
}

/* ---- Hero Banner */
.ffw-hero {
  position: relative;
  border: 1.5px solid rgba(57, 196, 238, 0.85) !important;
  min-height: 215px;
  display: flex;
  align-items: flex-end;
}

.ffw-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.ffw-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(2, 19, 26, 0.94) 0%, rgba(6, 36, 54, 0.78) 55%, rgba(4, 24, 36, 0.38) 100%);
}

.ffw-hero-body {
  position: relative;
  z-index: 2;
  padding: 28px 26px;
  width: 100%;
}

.ffw-hero-body h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  color: #ffffff;
  text-shadow: 0 2px 0 #02131a, 1px 1px 0 #02131a, -1px -1px 0 #02131a, 0 0 18px rgba(57, 196, 238, 0.55);
}

.ffw-hero-text {
  margin: 8px 0 0;
  max-width: 740px;
  font-size: 14.5px;
  color: #d6f4ff;
  line-height: 1.48;
}

.ffw-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 16px;
  padding-left: 4px;
}

/* Iconic FusionFall Skewed Glossy Gel Buttons (skew on ::before so text glyphs stay 100% razor-sharp!) */
.ffw .ff-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  min-height: 36px;
  border: 0;
  background: transparent;
  font-family: var(--font-display) !important;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.12s ease;
  z-index: 0;
}

.ffw .ff-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 4px;
  transform: skew(-12deg);
  transition: border-color 0.14s ease, box-shadow 0.16s ease;
}

.ffw .ff-btn > * {
  position: relative;
  z-index: 1;
}

.ffw .ff-btn:hover { filter: brightness(1.14); }
.ffw .ff-btn:active { filter: brightness(0.95); }

/* Primary FusionFall CTA: Iconic Lime-Green */
.ffw .ff-btn-gold,
.ffw .ff-btn-green {
  color: #0b2804 !important;
  text-shadow: 0 1px rgba(235, 255, 210, 0.55);
}

.ffw .ff-btn-gold::before,
.ffw .ff-btn-green::before {
  background: linear-gradient(180deg, #b6f53c 0%, #5dc400 50%, #2f8c00 100%);
  border: 1px solid rgba(214, 255, 140, 0.92);
  box-shadow: inset 0 1px rgba(240, 255, 210, 0.78), 0 0 18px -4px rgba(126, 224, 0, 0.72);
}

.ffw .ff-btn-blue {
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(4, 40, 60, 0.9);
}

.ffw .ff-btn-blue::before {
  background: linear-gradient(180deg, #4cc4ee 0%, #1a83b9 52%, #0c4f73 100%);
  border: 1px solid rgba(168, 238, 255, 0.9);
  box-shadow: inset 0 1px rgba(220, 250, 255, 0.52), 0 0 16px -5px rgba(57, 196, 238, 0.65);
}

.ffw .ff-btn-ghost {
  color: #e6f8ff !important;
  text-shadow: 0 1px 1px rgba(2, 19, 26, 0.85);
}

.ffw .ff-btn-ghost::before {
  background: linear-gradient(180deg, rgba(16, 72, 104, 0.88) 0%, rgba(6, 30, 45, 0.94) 100%);
  border: 1px solid rgba(70, 180, 218, 0.72);
  box-shadow: inset 0 1px rgba(190, 240, 255, 0.25);
}

.ffw .ff-btn-ghost:hover {
  color: #ffffff !important;
}

.ffw .ff-btn-ghost:hover::before {
  border-color: var(--ffw-sky);
}

/* ==========================================================================
   CALDERA KEY SPOTLIGHT & HOW-TO-GET-ITEMS CARDS
   ========================================================================== */
.ffw-caldera-spot {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.ffw-spot-media {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid rgba(126, 224, 0, 0.65);
  box-shadow: 0 0 16px -6px rgba(126, 224, 0, 0.45);
  aspect-ratio: 16 / 9;
  background: #041c25;
}

.ffw-spot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ffw-spot-body h3 {
  margin: 8px 0 6px;
  font-size: 22px;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(57, 196, 238, 0.35);
}

.ffw-spot-body p {
  margin: 0;
  font-size: 14px;
  color: #d6f4ff;
  line-height: 1.5;
}

.ffw-spot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-left: 4px;
}

.ffw-ways-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ffw-way-card {
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 58, 86, 0.72) 0%, rgba(4, 24, 36, 0.85) 100%);
  border: 1px solid rgba(57, 196, 238, 0.32);
  box-shadow: inset 0 1px rgba(190, 240, 255, 0.16);
}

.ffw-way-card h3 {
  margin: 8px 0 5px;
  font-size: 14.5px;
  color: var(--ffw-sky);
}

.ffw-way-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ffw-dim);
  line-height: 1.45;
}

.ffw-way-card a {
  color: var(--ffw-cyan);
  text-decoration: underline;
}

.ffw-way-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--font-display) !important;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--ffw-line2);
  background: rgba(13, 58, 86, 0.75);
  color: var(--ffw-sky);
}

.ffw-way-pill.is-drop { color: #ff9c78; border-color: rgba(255, 156, 120, 0.6); background: rgba(255, 156, 120, 0.14); }
.ffw-way-pill.is-crate { color: #7fe4ff; border-color: rgba(127, 228, 255, 0.6); background: rgba(57, 196, 238, 0.16); }
.ffw-way-pill.is-vendor { color: #9df234; border-color: rgba(126, 224, 0, 0.6); background: rgba(126, 224, 0, 0.15); }
.ffw-way-pill.is-mission { color: #a8c7ff; border-color: rgba(140, 184, 255, 0.6); background: rgba(110, 168, 255, 0.16); }

/* ==========================================================================
   CHIPS, LEVEL BADGES & TEXT HELPERS (Authentic Translucent FusionFall HUD)
   ========================================================================== */
.ffw-h1 {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.15;
  margin: 0;
  overflow-wrap: break-word;
}

.ffw-h3 {
  font-size: 15px;
  color: var(--ffw-cyan);
  margin: 18px 0 9px;
}

.ffw-h3:first-child { margin-top: 0; }
.ffw-note { margin: 10px 0 0; font-size: 13px; color: var(--ffw-dim); }
.ffw-note:first-child { margin-top: 0; margin-bottom: 12px; }
.ffw-note a, .ffw-lead a, .ffw-bullets a, .ffw-steps a, .ffw-callout a, .ffw-table a {
  color: var(--ffw-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ffw-note a:hover, .ffw-lead a:hover, .ffw-bullets a:hover, .ffw-table a:hover { color: var(--ffw-sky); }
.ffw-note.is-warn { border: 1px solid rgba(57, 196, 238, 0.55); background: rgba(57, 196, 238, 0.12); color: #d6f4ff; border-radius: 6px; padding: 9px 12px; }
.ffw-lead { margin: 8px 0 0; font-size: 14.5px; color: #d6f4ff; line-height: 1.5; }
.ffw-bullets { font-size: 14px; color: #d6f4ff; }
.ffw-bullets li { position: relative; padding-left: 18px; margin: 7px 0; }
.ffw-bullets li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; background: var(--ffw-cyan); transform: rotate(45deg); }
.ffw-quote { margin: 12px 0 0; padding: 4px 0 4px 14px; border-left: 3px solid var(--ffw-cyan); color: #c7eaf8; font-style: italic; font-size: 14px; }

.ffw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.ffw-chip, .ffw-lv {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--font-display) !important;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(57, 196, 238, 0.5);
  background: rgba(13, 58, 86, 0.65);
  color: var(--ffw-sky);
  white-space: nowrap;
}

.ffw-chip.is-green { color: #9df234; border-color: rgba(126, 224, 0, 0.6); background: rgba(126, 224, 0, 0.14); }
.ffw-chip.is-adaptium { color: #ffd23d; border-color: rgba(255, 210, 61, 0.55); background: rgba(255, 210, 61, 0.13); }
.ffw-chip.is-blastons { color: #ff8a7a; border-color: rgba(255, 138, 122, 0.55); background: rgba(255, 138, 122, 0.13); }
.ffw-chip.is-cosmix { color: #7fe4ff; border-color: rgba(111, 211, 255, 0.55); background: rgba(57, 196, 238, 0.15); }
.ffw-chip.is-era { color: #d6f4ff; border-color: rgba(214, 244, 255, 0.35); background: rgba(6, 30, 45, 0.72); }

.ffw-lv { --c: #7fe4ff; color: var(--c); border-color: color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 12%, #041c25); }
.ffw-lv.b1 { --c: #7ee000; }
.ffw-lv.b2 { --c: #39c4ee; }
.ffw-lv.b3 { --c: #7fe4ff; }
.ffw-lv.b4 { --c: #6ea8ff; }
.ffw-lv.b5 { --c: #a99cff; }
.ffw-lv.b6 { --c: #c98cff; }
.ffw-lv.b7 { --c: #ffd23d; }
.ffw-lv.b8 { --c: #ffa24a; }
.ffw-lv.b9 { --c: #ff7a6b; }
a.ffw-lv:hover { background: color-mix(in srgb, var(--c) 28%, #041c25); color: #ffffff !important; border-color: var(--c); }

/* Level Picker & TOC */
.ffw-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 6px;
}
.ffw-picker .ffw-lv {
  min-height: 36px;
  justify-content: center;
  border-radius: 6px;
  font-size: 13px;
}
.ffw-picker [aria-current] { background: color-mix(in srgb, var(--c) 35%, #041c25); color: #ffffff !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 70%, transparent); }

.ffw-toc, .ffw-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}
.ffw-toc .ffw-chip {
  font-family: var(--font-body) !important;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12.5px;
  padding: 4px 11px;
}
.ffw-toc .ffw-chip:hover {
  border-color: var(--ffw-sky);
  background: rgba(57, 196, 238, 0.2);
  color: #ffffff;
}

/* Patch Notes Category Filter Pills (FusionFall Cyan HUD Pills) */
.ffw-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 2px 0 14px;
}
.ffw-cat-pill {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(57, 196, 238, 0.45);
  background: rgba(6, 30, 45, 0.85);
  color: #d6f4ff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.ffw-cat-pill:hover { border-color: var(--ffw-sky); background: rgba(18, 76, 110, 0.9); color: #ffffff; }
.ffw-cat-pill.is-active {
  background: linear-gradient(180deg, #57cef2 0%, #1c86bb 55%, #0e5479 100%);
  border-color: #c8f5ff;
  color: #ffffff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.45), 0 0 12px -3px rgba(57, 196, 238, 0.75);
}

/* ==========================================================================
   BALANCED CARD GRIDS (Uniform heights, zero orphan gaps, clean mobile stack)
   ========================================================================== */
.ffw-tiles {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ffw-tiles.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ffw-tiles.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ffw-tiles.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ffw-tiles.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ffw-tiles.c4.is-art:not(.is-hubgrid) { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.ffw-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(57, 196, 238, 0.34);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 58, 86, 0.85) 0%, rgba(5, 26, 39, 0.92) 100%);
  box-shadow: inset 0 1px rgba(190, 240, 255, 0.16);
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.12s ease, box-shadow 0.14s ease;
}

.ffw-tile:hover {
  border-color: var(--ffw-sky);
  background: linear-gradient(180deg, rgba(20, 78, 114, 0.94) 0%, rgba(8, 38, 56, 0.96) 100%);
  box-shadow: inset 0 1px rgba(200, 245, 255, 0.32), 0 0 16px -6px rgba(57, 196, 238, 0.55);
  transform: translateY(-1px);
}

.ffw-tile-art {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #041c25;
  border-bottom: 1px solid rgba(57, 196, 238, 0.25);
}

.ffw-tiles.is-art:not(.is-wide) .ffw-tile-art { aspect-ratio: 4 / 3; }

.ffw-tile-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 13px 13px;
  min-width: 0;
  flex: 1 1 auto;
}

.ffw-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.ffw-tile-body b {
  display: block;
  font-family: var(--font-display) !important;
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.22;
  color: var(--ffw-sky);
}

.ffw-tile-body i {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ffw-dim);
}

.ffw-tile-body em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: var(--ffw-cyan);
  margin-top: auto;
  padding-top: 4px;
}

.ffw-tile > .ffw-lv, .ffw-tile > .ffw-chip {
  position: absolute;
  top: 8px;
  right: 8px;
}

.ffw-tile.is-plain {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.ffw-tile.is-plain .ffw-tile-body { padding: 0; }

.ffw-tile.is-plain.is-card {
  align-items: flex-start;
  height: 100%;
}

/* ==========================================================================
   ICONS, LIST ROWS & AUTOMATIC PAGINATION
   ========================================================================== */
.ffw-ic {
  flex: none;
  display: block;
  border: 1px solid rgba(57, 196, 238, 0.3);
  border-radius: 5px;
  background: rgba(4, 28, 37, 0.85);
  object-fit: contain;
}
img.ffw-ic { height: auto; aspect-ratio: 1; }
.ffw-ic-none { position: relative; background: linear-gradient(135deg, rgba(13, 58, 86, 0.72), rgba(4, 28, 37, 0.92)); }
.ffw-ic-none::after { content: ""; position: absolute; inset: 32%; border: 2px solid rgba(57, 196, 238, 0.35); transform: rotate(45deg); border-radius: 2px; }
.ffw-ic-zone::after { inset: 28%; border-radius: 50%; transform: none; border-color: rgba(126, 224, 0, 0.5); }

.ffw-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ffw-list.c1 { grid-template-columns: minmax(0, 1fr); }
.ffw-list.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ffw-list.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ffw-list > li {
  content-visibility: auto;
  contain-intrinsic-size: auto 62px;
}

.ffw-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 60px;
  padding: 8px 11px;
  border: 1px solid rgba(57, 196, 238, 0.24);
  border-radius: 6px;
  background: var(--ffw-fill);
  transition: border-color 0.12s ease, background 0.12s ease;
}

a.ffw-row:hover { border-color: rgba(127, 228, 255, 0.75); background: var(--ffw-fill2); }
.ffw-rt { min-width: 0; flex: 1 1 auto; }
.ffw-rt b { display: block; font-size: 13.5px; line-height: 1.25; color: var(--ffw-sky); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ffw-rt i { display: block; font-style: normal; font-size: 12px; line-height: 1.3; color: var(--ffw-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.ffw-side { flex: none; text-align: right; font-size: 12px; font-weight: 700; color: var(--ffw-cyan); white-space: nowrap; }
.ffw-side small { color: var(--ffw-dim); font-weight: 400; }
.ffw-group + .ffw-group { margin-top: 18px; }

/* In-page filter bar */
.ffw-filters {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(10, 49, 73, 0.9) 0%, rgba(5, 29, 43, 0.92) 100%);
  border: 1px solid rgba(57, 196, 238, 0.34);
}
.ffw-filters .ff-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ffw-filters .ff-filters > .ff-input:first-of-type {
  flex: 1 1 240px;
  min-width: 180px;
}
.ffw-filters .ff-filters-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #e6f8ff;
  cursor: pointer;
  white-space: nowrap;
}
.ffw-count { margin: 7px 0 0; font-size: 12.5px; color: var(--ffw-dim); min-height: 1em; }

/* Pagination Bar */
.ffw-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 8px;
  background: rgba(4, 24, 36, 0.85);
  border: 1px solid rgba(57, 196, 238, 0.32);
}
.ffw-pager-info { font-size: 12.5px; color: var(--ffw-dim); }
.ffw-pager-btns { display: flex; align-items: center; gap: 6px; }
.ffw-page-btn {
  padding: 6px 12px;
  border-radius: 5px;
  border: 1px solid rgba(57, 196, 238, 0.5);
  background: linear-gradient(180deg, #124d6f 0%, #09324a 100%);
  color: #e6f8ff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.ffw-page-btn:hover:not(:disabled) { border-color: var(--ffw-sky); filter: brightness(1.18); }
.ffw-page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.ffw-page-cur { font-size: 12.5px; font-weight: 700; color: var(--ffw-sky); padding: 0 6px; }

/* ==========================================================================
   ENTRY DETAIL CARDS, AUTO-BALANCED STAT BOXES, TABLES & PROSE
   ========================================================================== */
.ffw-headcard { display: flex; align-items: flex-start; gap: 18px; }
.ffw-headcard > .ffw-ic { width: 88px; height: 88px; border-radius: 8px; border-color: rgba(57, 196, 238, 0.6); }
.ffw-zone-art { flex: none; width: 148px; height: auto; max-height: 180px; object-fit: cover; border: 1px solid rgba(57, 196, 238, 0.55); border-radius: 8px; }
.ffw-callout { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 14px; border: 1px solid rgba(126, 224, 0, 0.55); border-radius: 8px; background: rgba(126, 224, 0, 0.12); }
.ffw-callout p { margin: 0; font-size: 14px; }

/* Auto-fit stat boxes */
.ffw-kv {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  margin: 16px 0 0;
}
.ffw-kv > div {
  border: 1px solid rgba(57, 196, 238, 0.28);
  border-radius: 6px;
  background: rgba(6, 30, 45, 0.78);
  padding: 9px 12px;
  min-width: 0;
}
.ffw-kv dt {
  font-family: var(--font-display) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  color: var(--ffw-dim);
}
.ffw-kv dd {
  margin: 3px 0 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ffw-sky);
  overflow-wrap: break-word;
}
.ffw-kv dd small { display: block; font-size: 11.5px; font-weight: 400; color: var(--ffw-dim); }
.ffw-kv dd a { color: var(--ffw-cyan); text-decoration: underline; }

/* Maps */
.ffw-map {
  display: block;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid rgba(57, 196, 238, 0.55);
}
.ffw-map--wide { max-width: 1060px; }

/* Folding crate rows */
.ffw-fold { border: 1px solid rgba(57, 196, 238, 0.28); border-radius: 6px; background: var(--ffw-fill); margin-top: 8px; }
.ffw-fold > summary { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 32px 8px 10px; cursor: pointer; list-style: none; position: relative; }
.ffw-fold > summary::-webkit-details-marker { display: none; }
.ffw-fold > summary::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ffw-cyan); border-bottom: 2px solid var(--ffw-cyan); transform: translateY(-70%) rotate(45deg); }
.ffw-fold[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
.ffw-fold > summary:hover { background: var(--ffw-fill2); }
.ffw-fold-body { padding: 12px; border-top: 1px solid rgba(57, 196, 238, 0.22); }

/* Mission steps & Nano powers */
.ffw-step { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(57, 196, 238, 0.18); }
.ffw-step:first-child { border-top: 0; padding-top: 0; }
.ffw-step-n { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ffw-cyan); background: rgba(13, 58, 86, 0.85); font-family: var(--font-display) !important; font-size: 14px; color: var(--ffw-sky); }
.ffw-step-t { margin: 2px 0 0; font-size: 14.5px; font-weight: 700; color: #ffffff; }
.ffw-step ul { margin-top: 4px; font-size: 13.5px; color: #d6f4ff; }
.ffw-step small { color: var(--ffw-dim); }

.ffw-power { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(57, 196, 238, 0.18); }
.ffw-power:first-child { border-top: 0; padding-top: 0; }
.ffw-power h3 { margin: 0; font-size: 16px; color: var(--ffw-sky); }
.ffw-power p { margin: 4px 0 0; font-size: 14px; color: #d6f4ff; }

/* Tables */
.ffw-table { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ffw-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ffw-table thead tr { background: linear-gradient(180deg, rgba(16, 72, 104, 0.92), rgba(9, 44, 66, 0.95)); border-bottom: 1.5px solid rgba(57, 196, 238, 0.45); }
.ffw-table th { padding: 10px 12px; text-align: left; font-family: var(--font-display) !important; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ffw-sky); white-space: nowrap; }
.ffw-table td { padding: 10px 12px; border-bottom: 1px solid rgba(57, 196, 238, 0.16); color: #e6f8ff; vertical-align: top; }
.ffw-table tbody tr:nth-child(2n) td { background: rgba(57, 196, 238, 0.035); }
.ffw-table td small { color: var(--ffw-dim); }
.ffw-bullets + .ffw-table { margin-top: 14px; }

/* Articles & Prose */
.ffw-article-art { display: block; width: 100%; max-height: 360px; object-fit: cover; border-bottom: 1px solid rgba(57, 196, 238, 0.4); }
.ffw-article-head { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(57, 196, 238, 0.24); }
.ffw-prose { font-size: 15px; line-height: 1.65; max-width: 820px; color: #d6f4ff; }
.ffw-prose p { margin: 0 0 14px; }
.ffw-prose h2 { font-size: 20px; color: #ffffff; margin: 24px 0 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(57, 196, 238, 0.26); }
.ffw-prose h3 { font-size: 16px; color: var(--ffw-sky); margin: 18px 0 8px; }
.ffw-prose h4 { font-size: 14px; color: var(--ffw-green-soft); margin: 14px 0 6px; }
.ffw-prose ul { list-style: disc outside; margin: 10px 0 14px 22px; }
.ffw-prose ol { list-style: decimal outside; margin: 10px 0 14px 22px; }
.ffw-prose li { margin: 5px 0; }
.ffw-prose strong { color: #ffffff; }
.ffw-prose code { padding: 1px 6px; border-radius: 4px; background: rgba(2, 19, 26, 0.85); border: 1px solid rgba(57, 196, 238, 0.34); color: var(--ffw-sky); font-size: 13px; }
.ffw-prose a { color: var(--ffw-cyan); text-decoration: underline; text-underline-offset: 2px; }
.ffw-prose a:hover { color: #ffffff; }
.ffw-prose img { border-radius: 8px; border: 1px solid rgba(57, 196, 238, 0.4); margin: 12px 0; }
.ffw-prose .ffw-table { margin: 16px 0; }
.ffw-prose pre { overflow-x: auto; background: rgba(2, 19, 26, 0.9); border: 1px solid rgba(57, 196, 238, 0.3); border-radius: 6px; padding: 12px; font-size: 13px; }
.ffw-prose blockquote { margin: 14px 0; padding: 8px 14px; border-left: 3px solid var(--ffw-green); background: rgba(126, 224, 0, 0.08); border-radius: 0 6px 6px 0; color: #e2ffd0; }

/* Footer */
.ffw-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(10, 44, 66, 0.82), rgba(4, 22, 34, 0.9));
  border: 1px solid rgba(57, 196, 238, 0.28);
  font-size: 12.5px;
  color: var(--ffw-dim);
}
.ffw-foot a { color: var(--ffw-cyan); font-weight: 700; }
.ffw-foot a:hover { color: var(--ffw-sky); text-decoration: underline; }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Tablet -> First-Class Mobile)
   ========================================================================== */
@media (max-width: 1200px) {
  .ffw-tiles.c5, .ffw-tiles.c4.is-art:not(.is-hubgrid) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ffw-tiles.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ffw-ways-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ffw-caldera-spot { grid-template-columns: 280px minmax(0, 1fr); }
  .ffw-list.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .ffw-caldera-spot { grid-template-columns: minmax(0, 1fr); }
  .ffw-tiles.c3, .ffw-tiles.c5, .ffw-tiles.c4.is-art:not(.is-hubgrid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ffw-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .ffw-search { flex: none; min-width: 0; width: 100%; }
}

@media (max-width: 680px) {
  .ffw .p-4 { padding: 14px 12px; }
  .ffw-top { padding: 10px 10px; border-radius: 10px; }

  /* Clean horizontally scrollable FusionFall tabs with NO overlap */
  .ffw-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 6px 4px;
  }
  .ffw-nav::-webkit-scrollbar { display: none; }
  .ffw-navlink { flex: none; padding: 6px 13px; font-size: 12px; }

  .ffw-hero { min-height: 170px; }
  .ffw-hero-body { padding: 18px 14px; }
  .ffw-hero-text { font-size: 13.5px; }
  .ffw-hero-cta { gap: 9px; }
  .ffw .ff-btn { padding: 7px 14px; font-size: 12px; }

  .ffw .ff-plate-head { padding: 10px 13px; flex-wrap: wrap; }
  .ffw .ff-plate-head h2 { font-size: 15px; }

  /* Single-column cards on mobile: ZERO crushed 60px text columns! */
  .ffw-tiles,
  .ffw-tiles.c2,
  .ffw-tiles.c3,
  .ffw-tiles.c4,
  .ffw-tiles.c5,
  .ffw-tiles.c4.is-art:not(.is-hubgrid),
  .ffw-ways-grid,
  .ffw-list,
  .ffw-list.c2,
  .ffw-list.c3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .ffw-headcard { gap: 12px; }
  .ffw-headcard > .ffw-ic { width: 68px; height: 68px; }
  .ffw-zone-art { width: 96px; }
  .ffw-kv { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }

  .ffw-rt b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .ffw-filters .ff-filters > .ff-input:first-of-type { flex: 1 1 100%; }
  .ffw-filters select.ff-input { width: 100%; }

  /* Tables become clean stacked cards on phones */
  .ffw-table table, .ffw-table tbody, .ffw-table tr, .ffw-table td { display: block; width: 100%; }
  .ffw-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ffw-table tr { border: 1px solid rgba(57, 196, 238, 0.28); border-radius: 6px; background: rgba(10, 44, 66, 0.72); margin-bottom: 8px; padding: 6px 4px; }
  .ffw-table tbody tr:nth-child(2n) td { background: transparent; }
  .ffw-table td { border: 0; padding: 4px 10px; display: grid; grid-template-columns: 36% minmax(0, 1fr); gap: 8px; font-size: 13px; }
  .ffw-table td::before { content: attr(data-th); font-family: var(--font-display) !important; text-transform: uppercase; font-size: 11px; color: var(--ffw-sky); padding-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .ffw *, .ffw *::before, .ffw *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
