.hero { padding: 0 40px 40px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, #120e0b 0%, var(--bg) 70%); }
.cover { position: relative; width: min(1232px, calc(100% + 80px)); margin: 0 -40px -36px; line-height: 0; }
.cover img { width: 100%; height: auto; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(39,33,27,0) 62%, var(--bg) 100%),
  linear-gradient(90deg, var(--bg) 0%, rgba(39,33,27,0) 7%, rgba(39,33,27,0) 93%, var(--bg) 100%); pointer-events: none; }
.hero > :not(.cover) { position: relative; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 32px; letter-spacing: 1px; color: var(--text-hi); }
.hero .lead { margin: 0; max-width: 640px; font-size: 17px; line-height: 1.55; color: var(--text); }
.search { position: relative; width: min(660px, 100%); text-align: left; }
.search input { width: 100%; min-height: 58px; padding: 0 22px; background: var(--deep); color: var(--text); border: 1px solid var(--line-gold); border-radius: 10px; font: 400 17px var(--sans); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.search input::placeholder { color: var(--muted); }
.results { margin-top: 8px; background: var(--panel); border: 1px solid var(--line-gold); border-radius: 10px; overflow: hidden; }
.results a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); color: var(--text-hi); font-size: 16px; }
.results a:last-child { border-bottom: 0; }
.results a:hover, .results a:focus { background: var(--panel-hi); }
.results small { color: var(--muted); font-size: 14px; }
.noresults { margin: 8px 0 0; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; color: var(--text-body); }
.noresults strong { color: var(--text); }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px; margin: 26px 0 0; padding: 22px 40px; background: rgba(45,38,32,.86); border: 1px solid var(--line); border-radius: 12px; }
.stats div { display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; min-width: 110px; }
.stats dd { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 34px; color: var(--gold); line-height: 1.2; }
.stats dt { font-size: 13px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }

.home { max-width: 1180px; margin: 0 auto; padding: 40px 40px 80px; display: flex; flex-direction: column; gap: 72px; }
.block { display: flex; flex-direction: column; gap: 26px; scroll-margin-top: 80px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tile { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: inset 0 0 0 3px var(--inset); color: var(--text); }
.tile img { width: 72px; height: 72px; border-radius: 8px; flex: none; object-fit: cover; }
.tile > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile b { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--text-hi); }
.tile i { font-style: normal; font-size: 14px; line-height: 1.45; color: var(--muted); }
.tile em { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--gold); text-transform: uppercase; }
.tile.soon { opacity: .62; padding-bottom: 36px; }
.tile.soon::after { content: attr(data-soon); position: absolute; bottom: 10px; inset-inline-end: 10px; font: 600 10px var(--sans); letter-spacing: 1px; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; background: #2a2026; color: var(--muted); }

.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.roster a { color: inherit; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 190px; padding: 12px 8px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: inset 0 0 0 3px var(--inset); }
.roster a:hover { border-color: var(--line-gold); }
.roster img { max-height: 120px; max-width: 100%; image-rendering: pixelated; }
.roster span { font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--text-hi); text-align: center; }
.roster .tag { position: absolute; top: 8px; right: 8px; font-style: normal; }

.maps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.maps button { padding: 4px; background: transparent; border: 2px solid transparent; border-radius: 12px; cursor: pointer; line-height: 0; }
.maps button[aria-pressed="true"] { border-color: var(--gold); }
.maps button:hover { border-color: var(--line-gold); }
.maps img { width: 76px; height: 76px; border-radius: 8px; image-rendering: pixelated; }
.region { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; padding: 28px 32px; }
.region-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.region h3, .rarity h3 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 28px; color: var(--text-hi); }
.region p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-body); }
.facts { margin: 0; display: grid; grid-template-columns: auto auto; gap: 8px 24px; font-size: 15px; }
.facts dt, .rarity dt { color: var(--muted); }
.facts dd { margin: 0; }

.rarities { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rarities button { min-height: 50px; padding: 0 26px; background: var(--panel); border: 2px solid var(--line); border-radius: 999px; font: 600 17px var(--serif); cursor: pointer; }
.rarities button[aria-pressed="true"] { background: var(--selection-fill); border-color: currentColor; }
.rarity { display: flex; flex-direction: column; gap: 14px; padding: 28px 32px; }
.rarity dl { margin: 0; display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 12px 24px; font-size: 16px; line-height: 1.5; }
.rarity dd { margin: 0; }

.duo { display: flex; flex-wrap: wrap; gap: 20px; }
.duo > * { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; padding: 28px 32px; color: var(--text); }
.duo-title { font-family: var(--serif); font-weight: 800; font-size: 22px; letter-spacing: 1.5px; color: var(--gold); text-transform: uppercase; }
.recipe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--muted); }
.pill { padding: 10px 14px; border: 1px solid currentColor; border-radius: 8px; }
.muted { font-size: 15px; line-height: 1.55; color: var(--muted); }
.elana p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-body); }
.elana strong { color: var(--text); }
.elana a { font-weight: 600; padding: 10px 0; }

@media (max-width: 720px) {
  .hero { padding: 0 16px 32px; gap: 18px; }
  .cover { width: calc(100% + 32px); margin: 0 -16px -8px; }
  .hero h1 { font-size: 24px; }
  .stats { padding: 18px 16px; gap: 14px 24px; }
  .stats div { min-width: 84px; }
  .stats dd { font-size: 28px; }
  .home { padding: 32px 16px 64px; gap: 56px; }
  .duo > * { flex-basis: 100%; padding: 22px 20px; }
  .region, .rarity { padding: 22px 20px; }
  .rarity dl { grid-template-columns: 1fr; gap: 4px; }
  .rarity dd { margin-bottom: 10px; }
}
.strip { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; display: block; }
