.gw {
  width: min(100% - clamp(3rem, 10vw, 12rem), 1560px);
  margin: 0 auto;
  padding: clamp(0.9rem, 2.4vh, 1.8rem) 0 1rem;
  font-family: var(--font-wiki-prose, var(--font-body));
  --gw-card: #121216;
  --gw-line: rgba(255, 255, 255, 0.08);
}

.gw-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  row-gap: 0.5rem;
  align-items: center;
  padding-bottom: 0.4rem;
}

.gw-hero > .gw-eyebrow { grid-column: 1; grid-row: 1; align-self: end; justify-self: start; }
.gw-hero > .gw-title { grid-column: 1; grid-row: 2; }
.gw-hero > .gw-intro { grid-column: 2; grid-row: 1; align-self: end; justify-self: end; text-align: right; }
.gw-hero > .gw-stats { grid-column: 2; grid-row: 2; justify-content: flex-end; }
.gw-hero > .gw-bar { grid-column: 1 / -1; }

.gw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--gw-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-family: "Lexend", "Futura PT", "Futura", "Source Sans 3", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}

.gw-eyebrow span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.gw-title {
  margin: 0;
  font-family: var(--font-wiki-heading, var(--font-header));
  font-weight: 700;
  font-size: clamp(1.9rem, 3.3vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(100deg, #fff 30%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gw-intro {
  max-width: 62ch;
  margin: 0;
  color: #cfccc8;
  font-size: clamp(0.84rem, 0.2vw + 0.78rem, 0.95rem);
  line-height: 1.5;
  font-family: "Lexend", "Futura PT", "Futura", "Source Sans 3", system-ui, sans-serif;
  font-weight: 300;
}

.gw-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gw-stats li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--gw-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.gw-stats b { color: #fff; font-size: 0.92rem; }
.gw-stats span { font-family: "Lexend", "Futura PT", "Futura", "Source Sans 3", system-ui, sans-serif; font-weight: 300; font-size: 0.66rem; letter-spacing: 0.04em; text-transform: none; color: var(--muted); }

.gw-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.2rem;
  margin-top: 0.35rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--gw-line);
}

.gw-filters {
  display: flex;
  gap: 0.25rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: var(--gw-card);
  border: 1px solid var(--gw-line);
}

.gw-filters button {
  font: inherit;
  font-size: 0.78rem;
  padding: 0.36rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.gw-filters button:hover { color: var(--text); }
.gw-filters button.is-on { background: var(--accent); color: #04161a; font-weight: 600; }

.gw-search input {
  width: min(100%, 18rem);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--gw-line);
  background: var(--gw-card);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
}

.gw-search input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.gw-section { margin: 1.25rem 0 0; }

.gw-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.65rem;
}

.gw-head h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-family: var(--font-wiki-heading, var(--font-header));
  font-weight: 700;
  font-size: clamp(1.1rem, 0.3vw + 1rem, 1.4rem);
}

.gw-head h2::before {
  content: "";
  width: 5px;
  height: 1.2em;
  border-radius: 3px;
  background: linear-gradient(var(--accent), #0e7490);
}

.gw-count {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--accent);
  font-size: 0.72rem;
}

.gw-grid {
  display: grid;
  gap: clamp(0.5rem, 0.7vw, 0.8rem);
}

.gw-grid--covers { grid-template-columns: repeat(auto-fill, minmax(clamp(120px, 9.4vw, 180px), 1fr)); }
.gw-grid--char { grid-template-columns: repeat(auto-fill, minmax(clamp(96px, 7.2vw, 140px), 1fr)); }

.gw-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gw-line);
  border-radius: 10px;
  background: #0b0d12;
  cursor: zoom-in;
  color: #fff;
  transition: transform 0.25s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.gw-tile--sq { aspect-ratio: 1 / 1; }
.gw-tile--tall { aspect-ratio: 4 / 5; }

.gw-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gw-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.82));
  opacity: 0.85;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.gw-tile__cap {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.45rem;
  z-index: 1;
  font-family: var(--font-wiki-heading, var(--font-header));
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: left;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
  transform: translateY(0.2rem);
  opacity: 0.92;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.gw-tile:hover,
.gw-tile:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 18px 40px -22px rgba(34, 211, 238, 0.6);
}

.gw-tile:hover img,
.gw-tile:focus-visible img { transform: scale(1.06); }
.gw-tile:hover .gw-tile__cap,
.gw-tile:focus-visible .gw-tile__cap { transform: none; opacity: 1; }
.gw-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.gw-chars {
  display: grid;
  gap: 0.7rem;
}

.gw-char {
  padding: clamp(0.6rem, 0.9vw, 0.9rem);
  border: 1px solid var(--gw-line);
  border-radius: 14px;
  background: var(--gw-card);
}

.gw-char__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.55rem;
}

.gw-char__head a {
  font-family: var(--font-wiki-heading, var(--font-header));
  font-weight: 700;
  font-size: clamp(0.98rem, 0.25vw + 0.9rem, 1.15rem);
  color: #fff;
  text-decoration: none;
}

.gw-char__head a:hover { color: var(--accent); }
.gw-char__head span { font-family: "Lexend", "Futura PT", "Futura", "Source Sans 3", system-ui, sans-serif; font-weight: 300; font-size: 0.76rem; letter-spacing: 0.04em; text-transform: none; color: var(--muted); }

.gw-empty {
  padding: 2rem 0;
  color: var(--muted);
}

.gw-page .gallery-wrap { margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  .gw-tile, .gw-tile img, .gw-tile__cap { transition: none; }
  .gw-tile:hover, .gw-tile:hover img { transform: none; }
}

.gw .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .gw-hero { display: block; }
  .gw-hero > .gw-eyebrow { margin-bottom: 0.5rem; }
  .gw-hero > .gw-title { margin-bottom: 0.5rem; }
  .gw-hero > .gw-intro { margin-bottom: 0.7rem; text-align: left; }
  .gw-hero > .gw-stats { justify-content: flex-start; margin-bottom: 0.7rem; }
}
