/* Wallpapers page (/wallpapers/). Scoped under .wpv. */
.wpv { --w-yellow: #FFDF00; --w-card: #171718; --w-inner: #111112; --w-text: #f4f4f6; --w-muted: #a8a8ad; --w-dim: #6e6e74; --w-line: rgba(255, 255, 255, .08); --w-ease: cubic-bezier(.16, 1, .3, 1);
  display: grid; gap: 18px; width: 100%; max-width: 1320px; margin: 0 auto; color: var(--w-text); }
.wpv a { text-decoration: none; }

.wp-head { position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; overflow: hidden; padding: 26px; border: 1px solid var(--w-line); border-radius: 18px; background: radial-gradient(50% 140% at 0% 0%, rgba(255, 223, 0, .13), transparent 60%), var(--w-card); }
.wp-head__ghost { position: absolute; right: -10px; bottom: -18px; z-index: -1; color: transparent; font-size: 120px; font-weight: 900; line-height: .9; white-space: nowrap; -webkit-text-stroke: 1px rgba(255, 255, 255, .05); pointer-events: none; animation: wp-ghost 40s linear infinite; }
@keyframes wp-ghost { to { transform: translateX(-25%); } }
.wp-kicker { display: block; color: var(--w-yellow); font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.wp-head h1 { margin: 4px 0 0; color: var(--w-text); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; letter-spacing: -.03em; }
.wp-head p { margin: 6px 0 0; color: var(--w-muted); font-size: .92rem; }
.wp-count { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(255, 223, 0, .35); border-radius: 12px; background: rgba(255, 223, 0, .08); color: var(--w-muted); font-size: .86rem; font-weight: 700; }
.wp-count .bi, .wp-count b { color: var(--w-yellow); }

.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.wp-card { position: relative; display: block; overflow: hidden; aspect-ratio: 9 / 16; border: 1px solid var(--w-line); border-radius: 20px; background: var(--w-inner); animation: wp-rise .55s var(--w-ease) both; transition: transform .35s var(--w-ease), border-color .3s, box-shadow .4s; }
@keyframes wp-rise { from { opacity: 0; transform: translateY(16px); } }
.wp-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--w-ease), filter .4s; }
.wp-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 45%, rgba(0, 0, 0, .9)); pointer-events: none; }
.wp-card:hover { border-color: rgba(255, 223, 0, .6); box-shadow: 0 0 0 3px rgba(255, 223, 0, .12), 0 24px 40px -22px rgba(255, 223, 0, .6); transform: translateY(-5px); }
.wp-card:hover img { filter: brightness(.6); transform: scale(1.06); }
.wp-card__dl { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 6px; color: #fff; opacity: 0; transition: opacity .25s; }
.wp-card__dl .bi { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--w-yellow); color: #111; font-size: 1.5rem; box-shadow: 0 10px 26px -8px rgba(255, 223, 0, .8); transform: scale(.7); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.wp-card__dl b { font-size: .92rem; font-weight: 900; }
.wp-card__dl small { color: #ffffffb0; font-size: .72rem; font-weight: 700; }
.wp-card:hover .wp-card__dl { opacity: 1; }
.wp-card:hover .wp-card__dl .bi { transform: scale(1); }
.wp-card__name { position: absolute; right: 12px; bottom: 12px; left: 12px; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.wp-card__name strong { overflow: hidden; color: #fff; font-size: .95rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 10px #000; }
.wp-card__name small { flex: none; color: #ffffffa8; font-size: .7rem; font-weight: 800; }

.wp-empty { display: grid; justify-items: center; gap: 8px; padding: 60px 20px; border: 1px dashed rgba(255, 255, 255, .12); border-radius: 18px; text-align: center; }
.wp-empty > .bi { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: rgba(255, 223, 0, .08); color: var(--w-yellow); font-size: 1.9rem; }
.wp-empty p { margin: 0; color: var(--w-dim); }

@media (max-width: 760px) {
  .wp-head { padding: 18px; }
  .wp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .wp-card__dl { opacity: 1; background: none; }
  .wp-card__dl b, .wp-card__dl small { display: none; }
  .wp-card__dl { place-content: start end; padding: 10px; }
  .wp-card__dl .bi { width: 38px; height: 38px; font-size: 1.05rem; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .wpv *, .wpv *::after { animation: none !important; transition: none !important; } }

/* Sections per game */
.wp-jump { display: flex; gap: 8px; padding: 10px; overflow-x: auto; border: 1px solid var(--w-line); border-radius: 16px; background: var(--w-card); scrollbar-width: none; }
.wp-jump::-webkit-scrollbar { display: none; }
.wpv .wp-jump__pill { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 38px; padding: 0 12px 0 5px; border: 1px solid var(--w-line); border-radius: 11px; background: var(--w-inner); color: var(--w-muted); font-size: .82rem; font-weight: 800; transition: all .2s; }
.wp-jump__pill img, .wp-jump__pill .bi { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #0a0a0b; object-fit: cover; color: var(--w-yellow); }
.wp-jump__pill em { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); font-size: .68rem; font-style: normal; }
.wpv .wp-jump__pill:hover { border-color: rgba(255, 223, 0, .45); background: rgba(255, 223, 0, .1); color: var(--w-yellow); }
.wp-sec { display: grid; gap: 14px; scroll-margin-top: 90px; }
.wp-sec__head { display: flex; align-items: center; gap: 12px; }
.wp-sec__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; overflow: hidden; border: 1px solid rgba(255, 223, 0, .4); border-radius: 10px; background: #0a0a0b; color: var(--w-yellow); }
.wp-sec__icon img { width: 100%; height: 100%; object-fit: cover; }
.wp-sec__head h2 { margin: 0; color: var(--w-yellow); font-size: .9rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.wp-sec__head::after { content: ""; order: 3; flex: 1; height: 1px; background: linear-gradient(90deg, var(--w-line), transparent); }
.wp-sec__head small { order: 4; color: var(--w-dim); font-size: .76rem; font-weight: 700; }

/* Show the whole wallpaper (no crop, no dark fade); title + count sit underneath */
.wp-grid { align-items: start; }
.wpv .wp-card { display: flex; flex-direction: column; aspect-ratio: auto; padding: 8px; overflow: visible; border-radius: 20px; background: var(--w-card); }
.wpv .wp-card::after { content: none; }
.wp-card__media { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--w-inner); }
.wpv .wp-card img { display: block; width: 100%; height: auto; object-fit: contain; }
.wpv .wp-card:hover img { filter: brightness(.55); transform: scale(1.03); }
.wpv .wp-card__dl { border-radius: inherit; }
.wpv .wp-card__name { position: static; align-items: center; padding: 10px 4px 2px; }
.wpv .wp-card__name strong { text-shadow: none; }
.wpv .wp-card__name small { color: var(--w-dim); }
@media (max-width: 760px) {
  .wpv .wp-card { padding: 6px; }
}
