/* Waveforged mockups (set E, round 3): structure only. Every color, face and shape is the flavor's style.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
html.wf-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.wf-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: 10px 14px; background: #000; color: #fff; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: min(100% - 32px, var(--wrap, 1160px)); margin-inline: auto; }
.wf-ico { width: 16px; height: 16px; display: inline-block; flex: none; }

/* card */
.wf-card { display: block; position: relative; width: 100%; min-width: 0; padding: 0; margin: 0; border: 0; background: none; text-align: left; text-decoration: none; cursor: pointer; }
.wf-card span { display: block; }
.wf-card .wf-vh { position: absolute; }
.wf-card-art { aspect-ratio: 512 / 334; overflow: hidden; }
.wf-card-art img, .wf-detail-art img { width: 100%; height: 100%; object-fit: cover; }
.wf-noart { width: 100%; height: 100%; min-height: 80px; display: flex !important; align-items: center; justify-content: center; }
.wf-card-name { overflow-wrap: anywhere; }
.wf-card-stats { display: flex !important; flex-wrap: wrap; gap: 4px 12px; }
.wf-card-stats .wf-st { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.wf-card-abil { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* filters */
.wf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.wf-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tier); display: inline-block; flex: none; }
.wf-search input { width: 100%; }
.wf-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.wf-sort { display: inline-flex; align-items: center; gap: 8px; }
.wf-empty { grid-column: 1 / -1; }

/* detail */
.wf-detail { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; }
.wf-detail-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); }
.wf-detail-panel { position: relative; width: min(100% - 24px, 920px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; outline: none; }
.wf-detail-bar { position: sticky; top: 0; z-index: 2; display: flex; gap: 8px; align-items: center; }
.wf-detail-bar .wf-close { margin-left: auto; }
.wf-nav-btn:disabled { opacity: .4; cursor: default; }
.wf-detail-art { position: relative; aspect-ratio: 512 / 334; overflow: hidden; }
.wf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-levels { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.wf-stat dt { display: flex; align-items: center; gap: 6px; }
.wf-stat dd { font-variant-numeric: tabular-nums; }
.wf-cost { display: flex; align-items: center; gap: 8px; }
.wf-abils p { overflow-wrap: anywhere; }

/* ad placeholders */
.wf-ad { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; margin-inline: auto; max-width: 100%; }
.wf-ad-728 { width: 728px; height: 90px; }
.wf-ad-300 { width: 300px; height: 250px; }
.wf-ad-feed { min-height: 180px; }
@media (max-width: 780px) { .wf-ad-728 { width: 320px; height: 50px; flex-direction: row; gap: 8px; } }
