/* Public Warframe world-state — flavored layout */

.wf-hero {
  padding: 12px 0 8px;
  max-width: none;
}

.wf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 999px;
}

.wf-eyebrow .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live, #6bcf7f);
  box-shadow: 0 0 0 0 rgba(107, 207, 127, 0.5);
  animation: wf-pulse 2s ease-out infinite;
}

.wf-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}

.wf-hero-lead {
  max-width: 42ch;
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 16px;
}

.wf-teaser {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  padding: 12px 18px;
  background: var(--panel-bg, rgba(15, 17, 21, 0.7));
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.wf-teaser strong {
  color: var(--accent-bright);
  font-weight: 700;
}

.wf-teaser .wf-eta {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
}

/* Sticky section jump nav */
.wf-jump {
  position: sticky;
  top: 58px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 8px;
  padding: 8px 0;
  background: linear-gradient(180deg, var(--nav-bg, rgba(6, 7, 10, 0.95)) 60%, transparent);
}

.wf-jump a {
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-bg-strong, rgba(15, 17, 21, 0.8));
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.wf-jump a:hover {
  color: var(--accent-bright);
  border-color: var(--accent);
}

/* Toolbar */
.wf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 20px;
}

.wf-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.wf-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wf-toolbar-right .btn-secondary.on {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.wf-platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 14px;
  background: var(--panel-bg-strong, rgba(15, 17, 21, 0.75));
  border: 1px solid var(--border);
  border-radius: 999px;
}

.wf-platform-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.wf-platform select,
.wf-filter-select {
  appearance: none;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 28px 6px 10px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.wf-platform select:focus,
.wf-filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.wf-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--panel-bg-strong, rgba(15, 17, 21, 0.75));
  border: 1px solid var(--border);
  border-radius: 999px;
}

.wf-status.ok { color: var(--text-muted); }
.wf-status.err { color: #f87171; border-color: rgba(248, 113, 113, 0.35); }

.wf-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-subtle);
  flex-shrink: 0;
}

.wf-status.ok .dot {
  background: var(--live, #6bcf7f);
  box-shadow: 0 0 8px rgba(107, 207, 127, 0.45);
}

.wf-grid {
  display: grid;
  gap: 28px;
}

.wf-band {
  scroll-margin-top: 100px;
  display: grid;
  gap: 16px;
}

.wf-band-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.wf-band-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.wf-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Panels */
.wf-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.wf-panel:hover {
  border-color: rgba(var(--accent-rgb), 0.28);
}

.wf-panel > summary {
  list-style: none;
  cursor: pointer;
}

.wf-panel > summary::-webkit-details-marker {
  display: none;
}

.wf-panel-body {
  margin-top: 4px;
}

.wf-panel[open] > .wf-panel-body {
  animation: wf-panel-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes wf-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wf-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(var(--accent-rgb), 0.45), transparent 70%) 1;
}

.wf-panel-head::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: auto;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-subtle, #6b6156);
  opacity: 0.75;
  transition: transform 0.18s ease;
  flex-shrink: 0;
}

.wf-panel[open] > summary.wf-panel-head::after {
  transform: rotate(180deg);
}

.wf-panel-head .ico {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent-bright);
  flex-shrink: 0;
}

.wf-panel-head .ico svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wf-panel h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.wf-panel .meta {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.wf-panel .meta strong {
  color: var(--text);
  font-weight: 650;
}

/* Featured Baro */
.wf-baro {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.12) 0%, transparent 45%),
    var(--surface);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-left: 4px solid var(--accent-bright);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.wf-baro-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.wf-baro-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #06070a;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-dim));
  border-radius: 999px;
}

.wf-baro-badge.away {
  color: var(--text-muted);
  background: var(--surface2);
  border: 1px solid var(--border);
}

.wf-baro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.wf-baro-loc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.wf-baro-loc strong {
  color: var(--text);
}

.wf-baro-countdown {
  text-align: right;
  min-width: 110px;
}

.wf-baro-countdown .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 4px;
}

.wf-baro-countdown .wf-eta {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--accent-bright);
  letter-spacing: -0.03em;
  line-height: 1;
}

.wf-inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.wf-inv-item {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: transform 0.15s, border-color 0.15s;
}

.wf-inv-item:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.4);
}

.wf-inv-item .name {
  display: block;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.wf-inv-item .price {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.wf-inv-item .price em {
  font-style: normal;
  color: var(--accent-bright);
}

/* Cycles */
.wf-cycles-wrap {
  position: relative;
  padding: 4px;
  border-radius: var(--radius-lg);
}

.wf-cycles-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.8) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.wf-cycle-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}

.wf-cycle-card {
  padding: 14px 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.wf-cycle-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.wf-cycle-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 8px;
  color: #06070a;
  background: var(--accent-bright);
}

.wf-cycle-card .state {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 4px;
}

.wf-cycle-card .name {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.wf-cycle-card .eta {
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-subtle);
}

.wf-cycle-card.warm .state,
.wf-cycle-card.day .state { color: #e8a84a; }
.wf-cycle-card.warm .wf-cycle-mark,
.wf-cycle-card.day .wf-cycle-mark {
  background: linear-gradient(135deg, #e8a84a, #b87828);
  color: #06070a;
}

.wf-cycle-card.cold .state,
.wf-cycle-card.night .state { color: #8ab4d9; }
.wf-cycle-card.cold .wf-cycle-mark,
.wf-cycle-card.night .wf-cycle-mark {
  background: linear-gradient(135deg, #7aa0c4, #4a6a8a);
  color: #f0ebe5;
}

.wf-cycle-card.vome .state { color: #a78bfa; }
.wf-cycle-card.vome .wf-cycle-mark {
  background: linear-gradient(135deg, #a78bfa, #6d5a9a);
  color: #f0ebe5;
}

.wf-cycle-card.fass .state { color: #f0a060; }
.wf-cycle-card.fass .wf-cycle-mark {
  background: linear-gradient(135deg, #f0a060, #c07030);
  color: #06070a;
}

.wf-cycle-card.mood .state { color: #e8c4a0; }
.wf-cycle-card.corpus .state { color: #7eb8e8; }
.wf-cycle-card.corpus .wf-cycle-mark {
  background: #5a9fd4;
  color: #061018;
}
.wf-cycle-card.grineer .state { color: #e8a070; }
.wf-cycle-card.grineer .wf-cycle-mark {
  background: #c47848;
  color: #120a04;
}
.wf-cycle-card.mood .wf-cycle-mark {
  background: linear-gradient(135deg, #c4a070, #8a6a40);
  color: #f0ebe5;
}

/* Missions */
.wf-mission-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.wf-mission-list li {
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.wf-mission-list li strong {
  color: var(--text);
}

.wf-mini-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.wf-mini-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.86rem;
  transition: transform 0.15s, border-color 0.15s;
}

.wf-mini-card:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.wf-mini-card strong {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 700;
}

.wf-mini-card span {
  color: var(--text-muted);
}

/* Events / construction / news */
.wf-event-card {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.wf-event-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wf-event-card:first-child {
  padding-top: 0;
}

.wf-event-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.wf-event-tip {
  margin: 6px 0 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.wf-progress {
  height: 8px;
  margin: 8px 0 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.wf-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: inherit;
}

.wf-build-row {
  display: grid;
  grid-template-columns: 90px 1fr 52px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.wf-build-row em {
  font-style: normal;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.wf-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wf-news-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.45;
}

.wf-news-list li:last-child {
  border-bottom: none;
}

.wf-news-list a {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.wf-news-list a:hover {
  color: var(--accent-bright);
}

/* Fissure filters */
.wf-fissure-filters {
  display: grid;
  gap: 12px;
  margin: 4px 0 12px;
  padding: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.wf-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.wf-filter-label {
  flex: 0 0 96px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.wf-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wf-filter-chip,
.wf-mission-pill {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.wf-filter-chip:hover,
.wf-mission-pill:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--text);
}

.wf-filter-chip.on,
.wf-mission-pill.on {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
}

.wf-filter-chip.tier-lith.on { border-color: #c4b5a0; }
.wf-filter-chip.tier-meso.on { border-color: #9ec5e8; }
.wf-filter-chip.tier-neo.on { border-color: #8fd4a8; }
.wf-filter-chip.tier-axi.on { border-color: #e8a84a; }
.wf-filter-chip.tier-requiem.on { border-color: #f87171; }
.wf-filter-chip.tier-omnia.on { border-color: #c4a0e8; }

.wf-filter-select {
  min-width: min(100%, 220px);
}

.wf-mission-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px dashed var(--border);
}

.wf-mission-pill em {
  font-style: normal;
  color: var(--text-subtle);
  font-weight: 600;
}

.wf-fissure-count {
  margin: 0 0 8px;
}

/* Fissure chips by tier */
.wf-fissure-group {
  margin-top: 14px;
}

.wf-fissure-group:first-of-type {
  margin-top: 8px;
}

.wf-fissure-tier {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wf-fissure-tier .count {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-subtle);
}

.wf-fissure-tier.tier-lith { color: #c4b5a0; }
.wf-fissure-tier.tier-meso { color: #9ec5e8; }
.wf-fissure-tier.tier-neo { color: #8fd4a8; }
.wf-fissure-tier.tier-axi { color: #e8a84a; }
.wf-fissure-tier.tier-requiem { color: #f87171; }
.wf-fissure-tier.tier-omnia { color: #c4a0e8; }

.wf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.wf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.wf-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.wf-chip .tier {
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wf-chip.tier-lith .tier { color: #c4b5a0; }
.wf-chip.tier-meso .tier { color: #9ec5e8; }
.wf-chip.tier-neo .tier { color: #8fd4a8; }
.wf-chip.tier-axi .tier { color: #e8a84a; }
.wf-chip.tier-requiem .tier { color: #f87171; }
.wf-chip.tier-omnia .tier { color: #c4a0e8; }

.wf-chip em {
  font-style: normal;
  color: var(--text-subtle);
  font-weight: 500;
}

.wf-eta {
  display: inline-block;
}

.wf-eta.tick {
  animation: wf-eta-tick 1.2s ease-in-out infinite;
}

@keyframes wf-eta-tick {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

@keyframes wf-pulse {
  0% { box-shadow: 0 0 0 0 rgba(107, 207, 127, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(107, 207, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(107, 207, 127, 0); }
}

.wf-empty {
  color: var(--text-subtle);
  font-size: 0.88rem;
}

.wf-cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), transparent 55%),
              var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.wf-cta-strip p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 42ch;
  line-height: 1.5;
}

.wf-cta-strip p strong {
  color: var(--text);
}

.wf-footnote {
  margin-top: 16px;
  font-size: 0.76rem;
  color: var(--text-subtle);
  text-align: center;
  line-height: 1.5;
}

.wf-footnote a {
  color: var(--accent-bright);
}

/* Skeletons */
.wf-skel-grid {
  display: grid;
  gap: 16px;
}

.wf-skel-card {
  height: 120px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: wf-shimmer 1.2s ease-in-out infinite;
  border: 1px solid var(--border);
}

.wf-skel-card.tall { height: 180px; }
.wf-skel-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.wf-skel-row .wf-skel-card { height: 100px; }

@keyframes wf-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wf-eyebrow .pulse,
  .wf-eta.tick,
  .wf-skel-card,
  .wf-panel[open] > .wf-panel-body {
    animation: none !important;
  }
  .wf-panel-head::after {
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .wf-grid-2 { grid-template-columns: 1fr; }
  .wf-baro-countdown { text-align: left; }
  .wf-jump { top: 52px; }
  .wf-skel-row { grid-template-columns: repeat(2, 1fr); }
  .wf-cta-strip { flex-direction: column; align-items: flex-start; }
  .wf-filter-label { flex-basis: 100%; }
  .wf-build-row { grid-template-columns: 1fr 52px; }
  .wf-build-row span { grid-column: 1 / -1; }
  .wf-invasion-sides { grid-template-columns: 1fr; }
  .wf-riven-tools { flex-direction: column; }
  .wf-panel-body,
  .wf-inv-grid,
  .wf-fissure-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .wf-filters {
    position: sticky;
    top: 52px;
    z-index: 40;
    background: var(--surface, #0e1014);
    padding: 8px 0;
  }
  .wf-mini-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .wf-skel-row { grid-template-columns: 1fr 1fr; }
}

/* Extra world-state modules */
.wf-subhead {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.wf-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.wf-tag.elite {
  border-color: rgba(248, 113, 113, 0.45);
  color: #f87171;
}

.wf-mod-line {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-subtle);
  line-height: 1.4;
}

.wf-bounty-block {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.wf-bounty-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wf-bounty-block h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.wf-invasion-card {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.wf-invasion-card:last-child {
  border-bottom: none;
}

.wf-invasion-card h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 700;
}

.wf-invasion-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0;
  font-size: 0.82rem;
}

.wf-invasion-sides strong {
  display: block;
  color: var(--accent-bright);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.wf-invasion-sides span {
  color: var(--text-muted);
}

.wf-copy {
  appearance: none;
  margin-left: 6px;
  padding: 2px 7px;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-subtle);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.wf-copy:hover {
  color: var(--accent-bright);
  border-color: var(--accent);
}

.wf-riven-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.wf-riven-search {
  flex: 1 1 180px;
  min-width: 160px;
}

.wf-cta-cmds {
  margin: 6px 0 0 !important;
  font-size: 0.8rem !important;
  color: var(--text-subtle) !important;
}

.wf-cta-cmds code {
  font-size: 0.78rem;
}

body.wf-dense .wf-grid {
  gap: 16px;
}

body.wf-dense .wf-band {
  gap: 10px;
}

body.wf-dense .wf-panel {
  padding: 12px 14px;
}

body.wf-dense .wf-inv-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

body.wf-dense .wf-chip {
  padding: 5px 9px;
  font-size: 0.72rem;
}

body.wf-dense .wf-hero-lead,
body.wf-dense .wf-teaser {
  display: none;
}

/* Stale / soon / pins / polish */
.wf-stale {
  margin: 12px 0 0;
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #92400e;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius);
}

.wf-soon {
  margin: 14px 0 0;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.wf-soon-inner strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.wf-soon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.wf-soon-list a {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.wf-soon-list a:hover {
  color: var(--accent-bright);
}

.wf-jump a.is-active {
  color: var(--accent-bright);
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
}

.wf-pin {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface2);
  color: var(--text-subtle);
  cursor: pointer;
  vertical-align: middle;
}

.wf-pin svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.wf-pin:hover,
.wf-pin.pinned {
  color: var(--accent-bright);
  border-color: var(--accent);
}

.wf-pin.pinned {
  background: rgba(var(--accent-rgb), 0.15);
}

.wf-cmd {
  margin-left: auto;
  font-size: 0.72rem !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.wf-eta.soonish {
  color: #e8a84a;
}

.wf-eta.urgent {
  color: #f87171;
  font-weight: 700;
}

.wf-thumb {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 4px;
}
.wf-thumb-pending {
  opacity: 0.35;
  background: var(--surface2, #161a20);
}

.wf-watch {
  appearance: none;
  margin-right: 4px;
  padding: 0 2px;
  border: none;
  background: transparent;
  color: var(--text-subtle);
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1;
}

.wf-watch:hover,
.wf-chip.watched .wf-watch {
  color: var(--accent-bright);
}

.wf-baro-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.wf-inv-item a.name {
  color: inherit;
  text-decoration: none;
}

.wf-inv-item a.name:hover {
  color: var(--accent-bright);
}

.wf-filter-chip:focus-visible,
.wf-mission-pill:focus-visible,
.wf-copy:focus-visible,
.wf-watch:focus-visible,
.wf-pin:focus-visible,
.wf-filter-select:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.wf-invasion-card.faction-grineer {
  border-left: 3px solid #c47848;
  padding-left: 10px;
}

.wf-invasion-card.faction-corpus {
  border-left: 3px solid #5a9fd4;
  padding-left: 10px;
}

.wf-invasion-card.faction-infested {
  border-left: 3px solid #8fd48a;
  padding-left: 10px;
}

.wf-cycle-card.faction-grineer,
.wf-cycle-card.grineer {
  border-color: rgba(196, 120, 72, 0.45);
}

.wf-cycle-card.faction-corpus,
.wf-cycle-card.corpus {
  border-color: rgba(90, 159, 212, 0.45);
}

/* Embed / TV modes */
body.wf-embed .site-nav,
body.wf-embed #site-nav,
body.wf-embed .wf-cta-strip,
body.wf-embed #site-footer,
body.wf-embed .wf-footnote,
body.wf-embed .bg-ambient,
body.wf-embed .bg-grain {
  display: none !important;
}

body.wf-embed .page-wrap {
  max-width: none;
  padding: 12px;
}

body.wf-embed .wf-hero {
  padding-top: 0;
}

body.wf-tv {
  font-size: 1.12rem;
}

body.wf-tv .wf-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
}

body.wf-tv .wf-chip,
body.wf-tv .wf-filter-chip {
  font-size: 0.95rem;
  padding: 10px 14px;
}

body.wf-tv .wf-panel h2 {
  font-size: 1.25rem;
}

body.wf-tv .wf-eta {
  font-size: 1.15rem;
}

body.wf-tv .wf-cta-strip,
body.wf-tv .wf-footnote,
body.wf-tv #site-footer {
  display: none;
}

/* Light theme pass */
html[data-theme="light"] .wf-stale {
  color: #92400e;
  background: rgba(251, 191, 36, 0.25);
}

html[data-theme="light"] .wf-soon,
html[data-theme="light"] .wf-fissure-filters {
  background: rgba(255, 255, 255, 0.65);
}

html[data-theme="light"] .wf-progress {
  background: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .wf-chip,
html[data-theme="light"] .wf-filter-chip,
html[data-theme="light"] .wf-mini-card {
  background: rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .wf-eta.urgent {
  color: #b91c1c;
}

html[data-theme="light"] .wf-eta.soonish {
  color: #b45309;
}

@media print {
  .site-nav,
  #site-nav,
  .wf-toolbar,
  .wf-cta-strip,
  .bg-ambient,
  .bg-grain,
  .wf-jump {
    display: none !important;
  }

  .wf-panel {
    break-inside: avoid;
  }
}
