/*
  WaifuHunt premium theme layer.
  This file intentionally sits above the existing page CSS and keeps legacy
  classes/ids intact so API calls and JS selectors remain untouched.
*/

:root {
  color-scheme: dark;
  --wh-bg-0: #070812;
  --wh-bg-1: #0b0d18;
  --wh-bg-2: #111426;
  --wh-ink: #fff7fb;
  --wh-text: #f6eefa;
  --wh-muted: #c6bfd4;
  --wh-soft: #948ca5;
  --wh-line: rgba(255, 255, 255, 0.13);
  --wh-line-strong: rgba(255, 255, 255, 0.22);
  --wh-panel: rgba(16, 17, 32, 0.76);
  --wh-panel-strong: rgba(21, 20, 38, 0.9);
  --wh-panel-soft: rgba(255, 255, 255, 0.055);
  --wh-pink: #ff4fa3;
  --wh-pink-2: #ff7bd5;
  --wh-violet: #9c66ff;
  --wh-ruby: #ff405f;
  --wh-gold: #ffd66b;
  --wh-cyan: #68d8ff;
  --wh-green: #66f0b8;
  --wh-danger: #ff5b73;
  --wh-radius-xs: 10px;
  --wh-radius-sm: 14px;
  --wh-radius-md: 20px;
  --wh-radius-lg: 28px;
  --wh-radius-xl: 34px;
  --wh-shadow-sm: 0 14px 34px rgba(0, 0, 0, 0.24);
  --wh-shadow-md: 0 24px 70px rgba(0, 0, 0, 0.36);
  --wh-shadow-lg: 0 36px 110px rgba(0, 0, 0, 0.5);
  --wh-glow-pink: 0 0 34px rgba(255, 79, 163, 0.24);
  --wh-glow-gold: 0 0 30px rgba(255, 214, 107, 0.2);
  --wh-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --wh-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --wh-ease-emphatic: cubic-bezier(0.16, 1, 0.3, 1);
  --wh-speed: 220ms;
  --motion-fast: 140ms;
  --motion-base: 220ms;
  --motion-slow: 520ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  scrollbar-color: rgba(255, 123, 213, 0.42) rgba(255, 255, 255, 0.06);
}

html {
  background: var(--wh-bg-0);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--wh-text) !important;
  font-family: var(--wh-font) !important;
  letter-spacing: 0 !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 79, 163, 0.18), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(156, 102, 255, 0.15), transparent 28%),
    radial-gradient(circle at 82% 82%, rgba(255, 214, 107, 0.1), transparent 30%),
    linear-gradient(145deg, var(--wh-bg-0) 0%, var(--wh-bg-1) 46%, #090715 100%) !important;
  background-attachment: fixed !important;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(255, 79, 163, 0.075) 40%, transparent 55%),
    linear-gradient(235deg, transparent 0 32%, rgba(104, 216, 255, 0.055) 46%, transparent 60%);
  filter: blur(28px);
  opacity: 0.88;
  animation: whAurora 18s var(--wh-ease) infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.4px),
    radial-gradient(circle at 70% 65%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.6px);
  background-size: 88px 88px, 132px 132px;
  mix-blend-mode: screen;
}

.wh-bg ~ header,
.wh-bg ~ main,
.wh-bg ~ footer,
.wh-bg ~ .profile-box,
.wh-bg ~ .panel,
.wh-bg ~ .box,
.wh-bg ~ .maintenance-box,
.wh-bg ~ .info-window,
.wh-bg ~ #maintenanceOwnerBanner {
  position: relative;
  z-index: 1;
}

.wh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

.wh-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

.wh-card-orbit {
  position: absolute;
  inset: 8% 4%;
  transform: translate3d(calc(var(--wh-pointer-x, 0) * 9px), calc(var(--wh-pointer-y, 0) * 7px), 0);
  transition: transform 0.18s linear;
}

.wh-floating-card {
  --wh-card-hue: rgba(255, 79, 163, 0.36);
  position: absolute;
  width: clamp(58px, 8vw, 112px);
  aspect-ratio: 0.68;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 42%),
    radial-gradient(circle at 50% 18%, var(--wh-card-hue), transparent 48%),
    rgba(18, 18, 34, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 34px color-mix(in srgb, var(--wh-card-hue) 58%, transparent);
  opacity: 0.38;
  transform: rotate(var(--wh-rotate, -9deg));
  animation: whCardFloat var(--wh-float-dur, 12s) ease-in-out infinite alternate;
}

.wh-floating-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(150deg, transparent 10%, rgba(255, 255, 255, 0.12) 45%, transparent 52%);
}

.wh-floating-card::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.wh-floating-card:nth-child(1) { left: 4%; top: 16%; --wh-rotate: -14deg; --wh-float-dur: 11s; }
.wh-floating-card:nth-child(2) { right: 7%; top: 14%; --wh-card-hue: rgba(156, 102, 255, 0.36); --wh-rotate: 13deg; --wh-float-dur: 14s; }
.wh-floating-card:nth-child(3) { left: 12%; bottom: 12%; --wh-card-hue: rgba(255, 214, 107, 0.32); --wh-rotate: 8deg; --wh-float-dur: 16s; }
.wh-floating-card:nth-child(4) { right: 16%; bottom: 18%; --wh-card-hue: rgba(104, 216, 255, 0.3); --wh-rotate: -10deg; --wh-float-dur: 13s; }
.wh-floating-card:nth-child(5) { left: 50%; top: 7%; width: clamp(46px, 6vw, 82px); --wh-rotate: 20deg; --wh-float-dur: 15s; opacity: 0.24; }
.wh-floating-card:nth-child(6) { right: 38%; bottom: 8%; width: clamp(44px, 6vw, 78px); --wh-card-hue: rgba(255, 64, 95, 0.32); --wh-rotate: -18deg; opacity: 0.25; }

.wh-spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 241, 190, 0.86);
  box-shadow: 0 0 14px rgba(255, 214, 107, 0.8);
  opacity: 0.48;
  animation: whSpark 5s ease-in-out infinite alternate;
}

.wh-spark:nth-child(7) { left: 22%; top: 27%; animation-delay: -1s; }
.wh-spark:nth-child(8) { left: 64%; top: 34%; animation-delay: -2.4s; }
.wh-spark:nth-child(9) { left: 77%; top: 68%; animation-delay: -3.2s; }
.wh-spark:nth-child(10) { left: 38%; top: 78%; animation-delay: -1.7s; }

@keyframes whAurora {
  from { transform: translate3d(-1.5%, -1%, 0) rotate(-1deg); }
  to { transform: translate3d(1.5%, 1%, 0) rotate(1deg); }
}

@keyframes whCardFloat {
  from { translate: 0 -10px; }
  to { translate: 0 14px; }
}

@keyframes whSpark {
  from { transform: translate3d(0, 0, 0) scale(0.8); opacity: 0.2; }
  to { transform: translate3d(8px, -14px, 0) scale(1.2); opacity: 0.78; }
}

@keyframes whShimmer {
  from { transform: translateX(-120%) skewX(-18deg); }
  to { transform: translateX(220%) skewX(-18deg); }
}

@keyframes whReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

body.wh-enhanced .wh-reveal {
  opacity: 0;
  transform: translateY(18px);
}

body.wh-enhanced .wh-home-hero.wh-reveal,
body.wh-enhanced .wh-home-routes.wh-reveal,
body.wh-enhanced .wh-home-routes .wh-route-card.wh-reveal,
body.wh-enhanced .hero.wh-reveal {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

body.wh-enhanced .wh-reveal.is-visible {
  animation: whReveal 0.58s var(--wh-ease) both;
}

body.wh-enhanced .wh-home-hero.wh-reveal.is-visible,
body.wh-enhanced .wh-home-routes.wh-reveal.is-visible,
body.wh-enhanced .wh-home-routes .wh-route-card.wh-reveal.is-visible,
body.wh-enhanced .hero.wh-reveal.is-visible {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

a {
  color: inherit;
}

::selection {
  background: rgba(255, 79, 163, 0.38);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(255, 214, 107, 0.78) !important;
  outline-offset: 3px;
}

main {
  width: min(100%, 1240px) !important;
  margin: 0 auto !important;
  padding: clamp(34px, 5vw, 72px) 20px 76px !important;
}

body.wh-page-index main {
  width: min(100%, 1280px) !important;
}

body.wh-page-index {
  background:
    radial-gradient(circle at 76% 36%, rgba(255, 79, 163, 0.24), transparent 31%),
    radial-gradient(circle at 88% 18%, rgba(255, 214, 107, 0.14), transparent 25%),
    radial-gradient(circle at 18% 28%, rgba(156, 102, 255, 0.18), transparent 34%),
    radial-gradient(circle at 56% 92%, rgba(104, 216, 255, 0.06), transparent 28%),
    linear-gradient(145deg, #060711 0%, #0b0d18 44%, #100817 100%) !important;
}

body.wh-page-index::before {
  background:
    linear-gradient(112deg, transparent 0 22%, rgba(255, 79, 163, 0.11) 38%, transparent 56%),
    linear-gradient(238deg, transparent 0 30%, rgba(255, 214, 107, 0.07) 44%, transparent 64%),
    linear-gradient(172deg, transparent 0 34%, rgba(156, 102, 255, 0.08) 48%, transparent 68%);
  opacity: 1;
}

body.wh-page-index .wh-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255, 214, 107, 0.9) 0 1px, transparent 1.4px),
    radial-gradient(circle at 62% 18%, rgba(255, 123, 213, 0.75) 0 1px, transparent 1.5px),
    radial-gradient(circle at 86% 62%, rgba(255, 255, 255, 0.58) 0 1px, transparent 1.4px);
  background-size: 136px 136px, 172px 172px, 94px 94px;
  mix-blend-mode: screen;
}

h1,
h2,
h3,
.logo,
.footer-brand-title,
.account-panel-title {
  letter-spacing: 0 !important;
}

h1 {
  color: var(--wh-ink) !important;
  text-shadow: 0 0 40px rgba(255, 79, 163, 0.22);
}

.subtitle,
.hero p,
.sub,
.footer-brand-text,
.footer-copy,
.card-description,
.news-card-text,
.account-panel-card-text {
  color: var(--wh-muted) !important;
}

header,
.site-header {
  position: sticky !important;
  top: 0;
  z-index: 4200 !important;
  width: 100%;
  padding: 14px clamp(16px, 4vw, 42px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11) !important;
  background:
    linear-gradient(90deg, rgba(255, 79, 163, 0.08), transparent 34%, rgba(255, 214, 107, 0.045)),
    rgba(8, 9, 18, 0.72) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px) saturate(140%) !important;
}

.header-left {
  min-width: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wh-ink) !important;
  font-weight: 900 !important;
  text-shadow: 0 0 24px rgba(255, 79, 163, 0.22);
}

.logo::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), transparent 34%),
    linear-gradient(135deg, var(--wh-pink), var(--wh-violet) 52%, var(--wh-gold));
  box-shadow: 0 0 22px rgba(255, 79, 163, 0.38);
  transform: rotate(-7deg);
}

.desktop-nav,
.site-nav {
  align-items: center;
  gap: 8px !important;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-link,
.mobile-nav-link,
.dropdown-item {
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: #f8eef8 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.nav-link:hover,
.mobile-nav-link:hover,
.dropdown-item:hover,
.nav-link.is-active,
.nav-link[aria-current="page"] {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.17), transparent 60%),
    rgba(255, 79, 163, 0.12) !important;
  border-color: rgba(255, 123, 213, 0.28) !important;
  box-shadow: 0 0 24px rgba(255, 79, 163, 0.16) !important;
}

.account-btn,
.account-notify-btn,
.mobile-nav-btn,
.mobile-nav-close,
.account-panel-close,
.news-detail-close {
  border-radius: 15px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)) !important;
  color: var(--wh-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--wh-shadow-sm);
}

.account-dropdown,
.mobile-nav-panel {
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 79, 163, 0.18), transparent 38%),
    rgba(10, 11, 22, 0.94) !important;
  box-shadow: var(--wh-shadow-lg) !important;
  backdrop-filter: blur(22px) saturate(140%) !important;
}

.mobile-nav-title {
  color: var(--wh-ink) !important;
  font-weight: 900 !important;
}

.btn,
button.btn,
.news-plus-btn,
.filter-btn,
.news-mode-btn,
.account-panel-btn,
.account-panel-storefront-cta,
.account-panel-storefront-current-button,
.account-panel-storefront-reset,
.account-panel-storefront-sheet-action,
.account-panel-storefront-mobile-filters,
.start-btn,
.choice-btn,
.mind-btn,
.reward-btn,
.back-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background:
    linear-gradient(135deg, rgba(255, 79, 163, 0.98), rgba(156, 102, 255, 0.94)) !important;
  color: #fff !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  box-shadow: 0 16px 38px rgba(255, 79, 163, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  transition: transform 0.18s var(--wh-ease), box-shadow 0.18s var(--wh-ease), border-color 0.18s var(--wh-ease), opacity 0.18s var(--wh-ease) !important;
}

.btn.secondary,
.account-panel-btn.secondary,
.filter-btn,
.news-mode-btn,
.account-panel-storefront-current-button,
.account-panel-storefront-reset,
.account-panel-storefront-mobile-filters,
.back-btn {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.2) !important;
}

.btn.primary,
.account-panel-btn.primary,
.account-panel-storefront-cta.primary,
.filter-btn.active,
.news-mode-btn.active,
.account-panel-storefront-segment.is-active,
.account-panel-storefront-type-chip.is-active {
  background:
    linear-gradient(135deg, var(--wh-pink), var(--wh-violet) 58%, #ff8e7a) !important;
  border-color: rgba(255, 214, 107, 0.26) !important;
  box-shadow: 0 18px 44px rgba(255, 79, 163, 0.28), 0 0 24px rgba(156, 102, 255, 0.14) !important;
}

.btn.danger,
.account-panel-btn.danger {
  background:
    linear-gradient(135deg, rgba(255, 91, 115, 0.92), rgba(150, 32, 62, 0.9)) !important;
  border-color: rgba(255, 151, 168, 0.28) !important;
  box-shadow: 0 16px 42px rgba(255, 91, 115, 0.22) !important;
}

.btn:hover,
.account-panel-btn:hover,
.account-panel-storefront-cta:hover,
.filter-btn:hover,
.news-mode-btn:hover,
.news-plus-btn:hover,
.account-panel-storefront-current-button:hover,
.back-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 22px 56px rgba(255, 79, 163, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

button:disabled,
.btn:disabled,
.account-panel-btn:disabled,
.account-panel-storefront-cta:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

input,
select,
textarea,
.account-panel-field input,
.account-panel-field select,
.account-panel-field textarea,
.account-panel-settings-input {
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.065) !important;
  color: var(--wh-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

input::placeholder,
textarea::placeholder {
  color: rgba(230, 221, 239, 0.56) !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 123, 213, 0.48) !important;
  box-shadow: 0 0 0 4px rgba(255, 79, 163, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

option {
  color: #111322 !important;
}

.badge,
.rarity-badge,
.mini-chip,
.stat-pill,
.role-badge,
.account-panel-chip,
.account-panel-storefront-badge,
.account-panel-storefront-status,
.account-panel-storefront-pill,
.account-panel-badge {
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)) !important;
  color: #fff5fb !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.legendary,
.badge.legendary,
.rarity-badge.legendary {
  --wh-rarity: var(--wh-gold);
  --wh-rarity-rgb: 255, 214, 107;
}

.epic,
.badge.epic,
.rarity-badge.epic {
  --wh-rarity: var(--wh-pink-2);
  --wh-rarity-rgb: 255, 123, 213;
}

.rare,
.badge.rare,
.rarity-badge.rare {
  --wh-rarity: var(--wh-cyan);
  --wh-rarity-rgb: 104, 216, 255;
}

.common,
.badge.common,
.rarity-badge.common {
  --wh-rarity: #aeb9d2;
  --wh-rarity-rgb: 174, 185, 210;
}

.badge.legendary,
.rarity-badge.legendary,
.account-panel-storefront-product.legendary .account-panel-storefront-badge:first-child {
  color: #fff7cc !important;
  border-color: rgba(255, 214, 107, 0.36) !important;
  background: rgba(255, 214, 107, 0.13) !important;
}

.badge.epic,
.rarity-badge.epic {
  color: #ffd7f5 !important;
  border-color: rgba(255, 123, 213, 0.34) !important;
  background: rgba(255, 123, 213, 0.13) !important;
}

.badge.rare,
.rarity-badge.rare {
  color: #d8f5ff !important;
  border-color: rgba(104, 216, 255, 0.34) !important;
  background: rgba(104, 216, 255, 0.12) !important;
}

.section-card,
.stat-card,
.hero-stat,
.side-box,
.side-card,
.chat-shell,
.toolbar,
.news-creator-block,
.news-stream-note,
.news-detail-dialog,
.profile-box,
.panel,
.box,
.maintenance-box,
.account-panel-card,
.account-panel-stat,
.account-panel-storefront-head,
.account-panel-storefront-toolbar,
.account-panel-storefront-overview-card,
.account-panel-settings-row,
.account-panel-settings-summary-item,
.account-panel-admin-content-item,
.account-panel-user-card,
.block {
  border: 1px solid var(--wh-line) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.038)),
    rgba(12, 13, 26, 0.68) !important;
  box-shadow: var(--wh-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
  backdrop-filter: blur(16px) saturate(130%) !important;
}

.section-card,
.waifu-card,
.discussion-card,
.rank-card,
.news-card,
.account-panel-storefront-product,
.account-panel-item,
.account-panel-avatar-tile,
.account-panel-style-tile,
.account-panel-achievement-badge {
  position: relative;
  overflow: hidden;
}

.section-card::after,
.waifu-card::after,
.discussion-card::after,
.rank-card::after,
.news-card::after,
.account-panel-storefront-product::after,
.account-panel-style-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 10%, rgba(255, 255, 255, 0.16) 46%, transparent 58%);
  transform: translateX(-130%) skewX(-18deg);
  opacity: 0;
}

.section-card:hover::after,
.waifu-card:hover::after,
.discussion-card:hover::after,
.rank-card:hover::after,
.news-card:hover::after,
.account-panel-storefront-product:hover::after,
.account-panel-style-tile:hover::after {
  opacity: 1;
  animation: whShimmer 0.78s ease forwards;
}

.empty,
.account-panel-empty,
.account-panel-storefront-empty,
.locked {
  min-height: 170px !important;
  display: grid !important;
  place-items: center !important;
  gap: 10px;
  padding: 26px !important;
  border-radius: var(--wh-radius-lg) !important;
  border: 1px dashed rgba(255, 123, 213, 0.28) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 79, 163, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.045) !important;
  color: var(--wh-muted) !important;
  text-align: center;
}

/* Home hub */
.wh-home-hero {
  width: 100%;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  gap: clamp(30px, 4.5vw, 76px);
  align-items: center;
  min-height: min(650px, calc(100vh - 180px));
  text-align: left;
}

.wh-home-hero::before {
  content: "";
  position: absolute;
  inset: 5% -5% 0;
  z-index: -1;
  border-radius: 44px;
  background:
    radial-gradient(circle at 72% 46%, rgba(255, 79, 163, 0.2), transparent 32%),
    radial-gradient(circle at 83% 34%, rgba(255, 214, 107, 0.12), transparent 28%),
    radial-gradient(circle at 20% 45%, rgba(156, 102, 255, 0.13), transparent 34%);
  filter: blur(8px);
  opacity: 0.9;
}

.wh-home-copy {
  display: grid;
  gap: 18px;
  align-content: center;
  max-width: 690px;
}

.wh-eyebrow,
.hero-topline,
.account-panel-section-kicker,
.news-card-kicker,
.account-panel-storefront-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 107, 0.24);
  background: rgba(255, 214, 107, 0.09);
  color: #ffe7a6 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em !important;
}

.wh-home-hero h1 {
  margin: 0;
  font-size: clamp(54px, 9vw, 112px) !important;
  line-height: 0.9;
  text-shadow:
    0 0 34px rgba(255, 79, 163, 0.24),
    0 0 70px rgba(156, 102, 255, 0.16);
}

.wh-home-hero .subtitle {
  max-width: 660px;
  margin: 0 !important;
  font-size: clamp(17px, 1.6vw, 22px) !important;
  line-height: 1.55 !important;
}

.wh-home-actions {
  justify-content: flex-start !important;
}

.wh-home-actions .btn.primary {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 18px 44px rgba(255, 79, 163, 0.34),
    0 0 34px rgba(255, 214, 107, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.wh-home-actions .btn.primary::after {
  content: "";
  position: absolute;
  inset: -35% auto -35% -45%;
  width: 45%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  animation: whShimmer 3.6s ease-in-out infinite;
  pointer-events: none;
}

.wh-home-status {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 2px;
}

.wh-home-status span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 214, 107, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  color: rgba(255, 247, 251, 0.88);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wh-home-status span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wh-gold);
  box-shadow: 0 0 14px rgba(255, 214, 107, 0.7);
}

.wh-home-routes {
  width: 100%;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}

.wh-route-card {
  min-height: 136px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 18px;
  border-radius: var(--wh-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 79, 163, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.055);
  text-decoration: none;
  color: var(--wh-ink);
  box-shadow: var(--wh-shadow-sm);
  transition: transform 0.2s var(--wh-ease), border-color 0.2s var(--wh-ease), background 0.2s var(--wh-ease);
}

.wh-route-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 123, 213, 0.3);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 79, 163, 0.22), transparent 42%),
    rgba(255, 255, 255, 0.075);
}

.wh-route-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 79, 163, 0.9), rgba(156, 102, 255, 0.9));
  box-shadow: 0 0 26px rgba(255, 79, 163, 0.24);
  font-weight: 900;
}

.wh-route-card h3 {
  margin: 0;
  font-size: 18px;
}

.wh-route-card p {
  margin: 0;
  color: var(--wh-muted);
  line-height: 1.45;
  font-size: 13px;
}

.wh-archive-routes {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  perspective: 1180px;
  transform-style: preserve-3d;
}

.wh-routes-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 2px;
}

.wh-routes-head h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.95;
}

.wh-routes-head p {
  max-width: 470px;
  margin: 0;
  color: var(--wh-muted);
  line-height: 1.55;
  font-size: 14px;
}

.wh-section-card-3d {
  --route-accent: var(--wh-gold);
  --route-primary: var(--wh-pink);
  min-height: 330px;
  padding: 12px;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  border-radius: 24px;
  overflow: visible;
  isolation: isolate;
  transform-origin: 50% 84%;
  background:
    radial-gradient(circle at 50% -20%, color-mix(in srgb, var(--route-accent) 28%, transparent), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
    rgba(8, 9, 20, 0.72);
  border-color: color-mix(in srgb, var(--route-accent) 42%, rgba(255, 255, 255, 0.14));
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.32),
    0 0 34px color-mix(in srgb, var(--route-primary) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.wh-section-card-3d::before,
.wh-section-card-3d::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.wh-section-card-3d::before {
  inset: 10px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--route-accent) 38%, rgba(255, 255, 255, 0.16));
  box-shadow:
    inset 0 0 38px color-mix(in srgb, var(--route-primary) 12%, transparent),
    0 0 26px color-mix(in srgb, var(--route-accent) 12%, transparent);
  z-index: 3;
}

.wh-section-card-3d::after {
  inset: -36% auto -36% -58%;
  width: 42%;
  z-index: 5;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), color-mix(in srgb, var(--route-accent) 16%, transparent), transparent);
  opacity: 0;
  mix-blend-mode: screen;
}

.wh-route-fan {
  position: absolute;
  inset: 20px 18px auto auto;
  width: 72px;
  height: 104px;
  z-index: 0;
  pointer-events: none;
  transform-style: preserve-3d;
}

.wh-route-fan i {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--route-accent) 34%, transparent);
  background:
    radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--route-primary) 28%, transparent), transparent 44%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  opacity: 0.42;
  filter: blur(0.2px);
}

.wh-route-fan i:nth-child(1) { transform: translate3d(-18px, 10px, -22px) rotateZ(-18deg) rotateY(34deg); }
.wh-route-fan i:nth-child(2) { transform: translate3d(4px, 3px, -12px) rotateZ(9deg) rotateY(-28deg); }
.wh-route-fan i:nth-child(3) { transform: translate3d(22px, 16px, -30px) rotateZ(22deg) rotateY(54deg); opacity: 0.25; }

.wh-route-art {
  position: relative;
  display: block;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 0.68;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 16%, color-mix(in srgb, var(--route-accent) 28%, transparent), transparent 48%),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.32),
    0 0 26px color-mix(in srgb, var(--route-primary) 16%, transparent);
  transform: translateZ(20px);
}

.wh-route-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 36%, rgba(7, 8, 18, 0.38) 64%, rgba(7, 8, 18, 0.94) 100%),
    linear-gradient(125deg, transparent 22%, rgba(255, 255, 255, 0.18) 48%, transparent 58%);
  pointer-events: none;
}

.wh-route-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 360ms var(--wh-ease), filter 360ms var(--wh-ease), opacity 360ms var(--wh-ease);
}

.wh-route-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  display: grid;
  gap: 8px;
  transform: translateZ(42px);
}

.wh-route-chip,
.wh-route-cta {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--route-accent) 44%, rgba(255, 255, 255, 0.14));
  background: rgba(7, 8, 18, 0.68);
  color: color-mix(in srgb, var(--route-accent) 76%, #fff);
  box-shadow: 0 0 20px color-mix(in srgb, var(--route-primary) 16%, transparent);
}

.wh-route-chip {
  min-height: 27px;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wh-section-card-3d h3 {
  margin: 0;
  color: #fff7fb;
  font-size: clamp(20px, 1.7vw, 27px);
  line-height: 1.05;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.88),
    0 0 18px color-mix(in srgb, var(--route-primary) 42%, transparent);
}

.wh-section-card-3d p {
  margin: 0;
  color: rgba(255, 247, 251, 0.78);
  line-height: 1.42;
  font-size: 13px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.78);
}

.wh-route-cta {
  min-height: 31px;
  margin-top: 4px;
  padding: 0 12px;
  color: #fff7fb;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.wh-section-card-3d:hover {
  border-color: color-mix(in srgb, var(--route-accent) 72%, rgba(255, 255, 255, 0.18));
  box-shadow:
    0 34px 78px rgba(0, 0, 0, 0.42),
    0 0 52px color-mix(in srgb, var(--route-primary) 26%, transparent),
    0 0 34px color-mix(in srgb, var(--route-accent) 16%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.wh-section-card-3d:hover::after {
  opacity: 0.78;
  animation: whCardHolo 920ms var(--wh-ease) both;
}

.wh-section-card-3d:hover .wh-route-art img {
  transform: scale(1.08);
  filter: saturate(1.14) contrast(1.05);
}

.wh-section-card-3d:hover .wh-route-fan i:nth-child(1) { transform: translate3d(-28px, 12px, -8px) rotateZ(-24deg) rotateY(46deg); }
.wh-section-card-3d:hover .wh-route-fan i:nth-child(2) { transform: translate3d(8px, 0, -2px) rotateZ(12deg) rotateY(-38deg); }
.wh-section-card-3d:hover .wh-route-fan i:nth-child(3) { transform: translate3d(34px, 18px, -14px) rotateZ(28deg) rotateY(66deg); }

.wh-systems {
  width: 100%;
  margin-top: clamp(28px, 5vw, 62px);
}

.wh-systems-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.wh-systems-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
}

.wh-systems-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wh-system-card {
  min-height: 170px;
  padding: 22px;
  border-radius: var(--wh-radius-lg);
  border: 1px solid var(--wh-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(12, 13, 26, 0.7);
  box-shadow: var(--wh-shadow-sm);
}

.wh-system-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.wh-system-card p {
  margin: 0;
  color: var(--wh-muted);
  line-height: 1.58;
}

.wh-portal-wrap {
  min-height: 590px;
  display: grid;
  place-items: center;
  perspective: 1280px;
  perspective-origin: 50% 44%;
  position: relative;
  isolation: isolate;
}

.wh-hunt-gate {
  position: relative;
  width: min(100%, 590px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  z-index: 4;
  pointer-events: auto;
  transform-style: preserve-3d;
  transform: translate3d(calc(var(--wh-pointer-x, 0) * -10px), calc(var(--wh-pointer-y, 0) * -10px), 0);
  transition: transform 0.18s linear;
}

.wh-archive-scene {
  position: absolute;
  inset: -14% -18%;
  z-index: 1;
  pointer-events: none;
  perspective: 1280px;
  perspective-origin: 50% 44%;
  transform-style: preserve-3d;
  contain: layout paint;
}

.wh-archive-depth {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform:
    translate3d(
      calc(var(--wh-pointer-x, 0) * -16px),
      calc((var(--wh-pointer-y, 0) * -14px) + (var(--wh-hero-scroll-y, 0px) * 0.58)),
      -90px
    )
    rotateX(calc(var(--wh-pointer-y, 0) * 4deg))
    rotateY(calc(var(--wh-pointer-x, 0) * -5deg))
    scale(var(--wh-hero-scroll-scale, 1));
  will-change: transform;
}

.wh-archive-card {
  --archive-w: 102px;
  --archive-opacity: 0.7;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--archive-w);
  aspect-ratio: 0.68;
  pointer-events: none;
  opacity: var(--archive-opacity);
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

.wh-archive-card.is-near { --archive-w: 128px; }
.wh-archive-card.is-mid { --archive-w: 104px; }
.wh-archive-card.is-far { --archive-w: 78px; }
.wh-archive-card.is-edge { --archive-w: 54px; }

.wh-archive-card .card-3d-inner,
.wh-archive-card .card-face {
  position: absolute;
  inset: 0;
  border-radius: 15px;
  transform-style: preserve-3d;
}

.wh-archive-card .card-3d-inner {
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.38),
    0 0 24px color-mix(in srgb, var(--archive-accent, #ff4fa3) 26%, transparent);
}

.wh-archive-card .card-face {
  overflow: hidden;
  backface-visibility: hidden;
  border: 1px solid color-mix(in srgb, var(--archive-accent, #ffd66b) 42%, rgba(255, 255, 255, 0.18));
  background: rgba(7, 8, 18, 0.88);
}

.wh-archive-card .card-front {
  background:
    radial-gradient(circle at 50% 16%, color-mix(in srgb, var(--archive-accent, #ff4fa3) 24%, transparent), transparent 46%),
    rgba(255, 255, 255, 0.04);
}

.wh-archive-card .card-front::before,
.wh-archive-card .card-front::after,
.wh-archive-card .card-back::before,
.wh-archive-card .card-back::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.wh-archive-card .card-front::before {
  inset: 6px;
  z-index: 2;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.wh-archive-card .card-front::after {
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, transparent 46%, rgba(7, 8, 18, 0.5) 72%, rgba(7, 8, 18, 0.9)),
    linear-gradient(118deg, transparent 18%, rgba(255, 255, 255, 0.18) 48%, transparent 58%);
  mix-blend-mode: screen;
  opacity: 0.48;
}

.wh-archive-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(1.05) contrast(1.03);
}

.wh-archive-card .card-back {
  transform: rotateY(180deg);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--archive-accent, #9c66ff) 24%, transparent), transparent 44%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 16px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    #090a16;
  color: rgba(255, 247, 251, 0.72);
  font-weight: 950;
  letter-spacing: 0.08em;
}

.wh-archive-card .card-back::before {
  inset: 10px;
  border-radius: 11px;
  border: 1px solid color-mix(in srgb, var(--archive-accent, #ffd66b) 32%, transparent);
}

.wh-archive-card .card-back::after {
  width: 44%;
  aspect-ratio: 0.74;
  border-radius: 50% 50% 44% 44%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle, color-mix(in srgb, var(--archive-accent, #ff4fa3) 20%, transparent), transparent 62%);
  box-shadow: 0 0 24px color-mix(in srgb, var(--archive-accent, #ff4fa3) 20%, transparent);
}

.wh-archive-gate {
  position: absolute;
  inset: 15% 10%;
  z-index: 2;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.wh-archive-drawer,
.wh-archive-drawer-light {
  position: absolute;
  pointer-events: none;
}

.wh-archive-drawer {
  width: 62%;
  height: 26%;
  bottom: 15%;
  border-radius: 22px;
  border: 1px solid rgba(255, 214, 107, 0.26);
  background:
    linear-gradient(90deg, rgba(255, 214, 107, 0.08), rgba(255, 79, 163, 0.14), rgba(104, 216, 255, 0.08)),
    rgba(7, 8, 18, 0.66);
  box-shadow:
    inset 0 0 38px rgba(255, 79, 163, 0.16),
    0 0 44px rgba(255, 214, 107, 0.12);
  transform: translate3d(0, 34px, -72px) rotateX(62deg);
}

.wh-archive-drawer::before,
.wh-archive-drawer::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.wh-archive-drawer::after {
  inset: 44% 8% auto;
  height: 7px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 107, 0.6), rgba(255, 79, 163, 0.56), transparent);
  box-shadow: 0 0 22px rgba(255, 214, 107, 0.42);
}

.wh-archive-drawer-light {
  width: 48%;
  height: 18%;
  bottom: 30%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(255, 214, 107, 0.5), rgba(255, 79, 163, 0.22) 42%, transparent 72%);
  filter: blur(18px);
  opacity: 0.62;
  transform: translate3d(0, 20px, -30px) rotateX(64deg);
}

.wh-section-preview {
  --wh-card-primary: rgba(255, 79, 163, 1);
  --wh-card-accent: rgba(255, 214, 107, 1);
  position: absolute;
  right: 8%;
  bottom: 20%;
  z-index: 5;
  width: clamp(118px, 20vw, 180px);
  aspect-ratio: 0.68;
  border-radius: 20px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-36px, 58px, -120px) rotateX(54deg) rotateY(-42deg) rotateZ(9deg) scale(0.64);
  transform-style: preserve-3d;
  border: 1px solid color-mix(in srgb, var(--wh-card-accent) 58%, rgba(255, 255, 255, 0.18));
  background:
    radial-gradient(circle at 50% 8%, color-mix(in srgb, var(--wh-card-primary) 34%, transparent), transparent 46%),
    rgba(8, 9, 20, 0.92);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.42),
    0 0 44px color-mix(in srgb, var(--wh-card-primary) 36%, transparent);
}

.wh-section-preview-art {
  position: absolute;
  inset: 8px;
  overflow: hidden;
  border-radius: 14px;
}

.wh-section-preview-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.wh-section-preview-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(7, 8, 18, 0.76) 100%);
}

.wh-section-preview-chip,
.wh-section-preview-title {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 3;
  color: #fff7fb;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.wh-section-preview-chip {
  top: 18px;
  width: fit-content;
  right: auto;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--wh-card-accent) 46%, transparent);
  background: rgba(7, 8, 18, 0.68);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.wh-section-preview-title {
  bottom: 20px;
  font-size: clamp(15px, 1.7vw, 22px);
  font-weight: 950;
  line-height: 1.04;
}

.wh-portal-aura,
.wh-portal-ring,
.wh-portal-spark {
  position: absolute;
  pointer-events: none;
}

.wh-portal-aura {
  inset: 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18), transparent 13%),
    radial-gradient(circle at 46% 47%, rgba(255, 79, 163, 0.34), transparent 34%),
    radial-gradient(circle at 56% 52%, rgba(156, 102, 255, 0.24), transparent 45%),
    radial-gradient(circle at 48% 52%, rgba(255, 214, 107, 0.14), transparent 62%);
  filter: blur(16px);
  opacity: 0.95;
  animation: whPortalPulse 4.8s ease-in-out infinite alternate;
}

.wh-portal-ring {
  border-radius: 50%;
  filter: drop-shadow(0 0 22px rgba(255, 79, 163, 0.28));
}

.wh-portal-ring.outer {
  inset: 4%;
  background:
    conic-gradient(from 95deg, transparent 0 8%, rgba(255, 214, 107, 0.88) 11%, transparent 17%, rgba(255, 79, 163, 0.72) 29%, transparent 37%, rgba(156, 102, 255, 0.8) 49%, transparent 56%, rgba(255, 214, 107, 0.62) 72%, transparent 82%, rgba(255, 79, 163, 0.6) 94%, transparent);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
  animation: whPortalSpin 22s linear infinite;
}

.wh-portal-ring.middle {
  inset: 14%;
  background:
    conic-gradient(from 280deg, rgba(255, 79, 163, 0.82), transparent 12%, rgba(255, 214, 107, 0.48) 24%, transparent 35%, rgba(104, 216, 255, 0.36) 48%, transparent 58%, rgba(156, 102, 255, 0.7) 72%, transparent 86%, rgba(255, 79, 163, 0.7));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
  animation: whPortalSpinReverse 28s linear infinite;
}

.wh-portal-ring.inner {
  inset: 26%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 54%),
    conic-gradient(from 0deg, rgba(255, 214, 107, 0.35), rgba(255, 79, 163, 0.2), rgba(156, 102, 255, 0.28), rgba(255, 214, 107, 0.35));
  box-shadow:
    inset 0 0 56px rgba(255, 79, 163, 0.18),
    0 0 52px rgba(255, 214, 107, 0.12);
  animation: whPortalPulse 3.8s ease-in-out infinite alternate;
}

.wh-portal-spark {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff6c8;
  box-shadow:
    0 0 18px rgba(255, 214, 107, 0.86),
    0 0 32px rgba(255, 79, 163, 0.42);
  opacity: 0.82;
  animation: whPortalSpark 4.2s ease-in-out infinite alternate;
}

.wh-portal-spark.s1 { left: 18%; top: 30%; animation-delay: -0.7s; }
.wh-portal-spark.s2 { right: 18%; top: 22%; animation-delay: -2.1s; }
.wh-portal-spark.s3 { left: 31%; bottom: 16%; animation-delay: -1.3s; }
.wh-portal-spark.s4 { right: 27%; bottom: 23%; animation-delay: -3s; }

.wh-card-emblem,
.wh-card-corner,
.wh-card-lines,
.wh-card-rarity,
.wh-card-name,
.wh-card-subtitle,
.wh-card-rank {
  position: absolute;
  pointer-events: none;
}

.wh-portal-card {
  --wh-card-primary: rgba(255, 79, 163, 0.98);
  --wh-card-secondary: rgba(156, 102, 255, 0.88);
  --wh-card-accent: rgba(255, 214, 107, 0.92);
  position: absolute;
  width: 29%;
  aspect-ratio: 0.68;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--wh-card-accent) 62%, rgba(255, 255, 255, 0.24));
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 26%, rgba(255, 255, 255, 0.06) 54%, transparent 72%),
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--wh-card-primary) 42%, transparent), transparent 38%),
    radial-gradient(circle at 78% 12%, color-mix(in srgb, var(--wh-card-accent) 26%, transparent), transparent 36%),
    linear-gradient(180deg, rgba(28, 22, 45, 0.98), rgba(12, 10, 24, 0.98));
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.44),
    0 0 42px color-mix(in srgb, var(--wh-card-primary) 32%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 38px rgba(255, 255, 255, 0.05);
  transform-style: preserve-3d;
  animation: whPortalCardFloat 6.2s ease-in-out infinite alternate;
}

.wh-portal-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 44%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(255, 255, 255, 0.035) 14px, transparent 15px);
  box-shadow:
    inset 0 0 30px color-mix(in srgb, var(--wh-card-primary) 20%, transparent),
    0 0 26px color-mix(in srgb, var(--wh-card-accent) 12%, transparent);
  z-index: 2;
}

.wh-portal-card::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 48%;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), rgba(255, 214, 107, 0.12), transparent);
  transform: skewX(-18deg);
  mix-blend-mode: screen;
  animation: whCardHolo 4.8s ease-in-out infinite;
  z-index: 8;
}

.wh-card-image-shell {
  position: absolute;
  inset: 9px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--wh-card-primary) 30%, transparent), transparent 48%),
    rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.wh-card-image-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 38%, rgba(7, 8, 18, 0.46) 68%, rgba(7, 8, 18, 0.92) 100%),
    radial-gradient(circle at 50% 15%, transparent 0 34%, rgba(255, 255, 255, 0.08) 54%, transparent 78%);
  pointer-events: none;
}

.wh-card-image-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, transparent 10%, rgba(255, 255, 255, 0.14) 45%, transparent 55%);
  opacity: 0.42;
  mix-blend-mode: screen;
  pointer-events: none;
}

.wh-card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
  opacity: 0;
  transform: scale(1.04);
  filter: saturate(1.04) contrast(1.02);
  transition: opacity 360ms var(--wh-ease), transform 620ms var(--wh-ease), filter 360ms var(--wh-ease);
}

.wh-portal-card.has-image .wh-card-image {
  opacity: 1;
}

.wh-portal-card.has-image .wh-card-emblem {
  opacity: 0;
  transform: scale(0.92);
}

.wh-portal-card.has-image.is-silhouette .wh-card-emblem {
  opacity: 0.38;
  transform: scale(1);
}

.wh-portal-card.has-image .wh-card-lines {
  opacity: 0.32;
  bottom: 28%;
}

.wh-portal-card.main.has-image .wh-card-image {
  transform: scale(1.02);
  filter: saturate(1.12) contrast(1.05);
}

.wh-portal-card.back-left.has-image .wh-card-image,
.wh-portal-card.back-right.has-image .wh-card-image {
  opacity: 0.78;
  filter: saturate(0.96) contrast(1.02) brightness(0.86);
  transform: scale(1.08);
}

.wh-portal-card.is-distant .wh-card-image {
  opacity: 0.26;
  filter: blur(1.4px) grayscale(0.22) saturate(0.74) brightness(0.55);
  transform: scale(1.12);
}

.wh-portal-card.is-silhouette .wh-card-image {
  opacity: 0.22;
  filter: blur(1.7px) grayscale(0.48) saturate(0.72) brightness(0.52);
}

.wh-portal-card.is-silhouette .wh-card-image-shell::before {
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.09), transparent 42%),
    linear-gradient(180deg, rgba(7, 8, 18, 0.08), rgba(7, 8, 18, 0.94));
}

.wh-card-corner {
  top: 16px;
  left: 16px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--wh-card-accent) 58%, rgba(255, 255, 255, 0.24));
  background: rgba(255, 255, 255, 0.08);
  color: #fff6d2;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 0 18px color-mix(in srgb, var(--wh-card-accent) 25%, transparent);
  z-index: 6;
}

.wh-card-emblem {
  inset: 19% 17% 26%;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 44% 44%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--wh-card-accent) 22%, transparent), transparent 44%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), transparent 64%);
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(26px, 4.5vw, 58px);
  font-weight: 950;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 18px color-mix(in srgb, var(--wh-card-primary) 62%, transparent),
    0 0 34px color-mix(in srgb, var(--wh-card-accent) 36%, transparent);
  transition: opacity 260ms var(--wh-ease), transform 260ms var(--wh-ease);
  z-index: 4;
}

.wh-card-lines {
  left: 20%;
  right: 20%;
  bottom: 27%;
  height: 30px;
  border-top: 1px solid color-mix(in srgb, var(--wh-card-accent) 42%, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 5;
}

.wh-card-lines::before,
.wh-card-lines::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  height: 1px;
  background: rgba(255, 255, 255, 0.13);
}

.wh-card-lines::before { top: 9px; }
.wh-card-lines::after { bottom: 9px; }

.wh-card-rarity {
  top: 16px;
  right: 14px;
  max-width: calc(100% - 58px);
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--wh-card-accent) 58%, rgba(255, 255, 255, 0.18));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--wh-card-accent) 16%, transparent), rgba(255, 255, 255, 0.07), color-mix(in srgb, var(--wh-card-primary) 15%, transparent)),
    rgba(7, 8, 18, 0.58);
  color: #fff1bb;
  font-size: 10px;
  font-weight: 950;
  text-align: center;
  letter-spacing: 0.14em;
  text-shadow: 0 0 12px color-mix(in srgb, var(--wh-card-accent) 50%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 0 22px color-mix(in srgb, var(--wh-card-accent) 24%, transparent);
  z-index: 6;
}

.wh-card-name {
  left: 17px;
  right: 17px;
  bottom: 68px;
  z-index: 6;
  color: #fff7fb;
  font-size: clamp(13px, 1.35vw, 18px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0.01em;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.82),
    0 0 16px color-mix(in srgb, var(--wh-card-primary) 34%, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wh-card-subtitle {
  left: 17px;
  right: 17px;
  bottom: 50px;
  z-index: 6;
  color: rgba(255, 247, 251, 0.72);
  font-size: clamp(9px, 0.82vw, 11px);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wh-card-rank {
  left: 14px;
  right: 14px;
  bottom: 14px;
  min-height: 31px;
  z-index: 6;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--wh-card-accent) 58%, rgba(255, 255, 255, 0.2));
  background:
    linear-gradient(90deg, rgba(7, 8, 18, 0.66), color-mix(in srgb, var(--wh-card-accent) 18%, rgba(7, 8, 18, 0.72)), rgba(7, 8, 18, 0.66));
  color: #fff1bb;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 0 22px color-mix(in srgb, var(--wh-card-accent) 26%, transparent);
}

.wh-portal-card.is-silhouette .wh-card-name,
.wh-portal-card.is-silhouette .wh-card-subtitle,
.wh-portal-card.is-silhouette .wh-card-rank,
.wh-portal-card.is-silhouette .wh-card-rarity {
  opacity: 0.84;
}

.wh-portal-card.is-distant .wh-card-name,
.wh-portal-card.is-distant .wh-card-subtitle {
  opacity: 0.2;
}

.wh-portal-card.is-distant .wh-card-rank,
.wh-portal-card.is-distant .wh-card-rarity {
  opacity: 0.46;
}

.wh-portal-card.legendary {
  --wh-card-primary: rgba(255, 79, 163, 1);
  --wh-card-secondary: rgba(156, 102, 255, 0.94);
  --wh-card-accent: rgba(255, 214, 107, 1);
}

.wh-portal-card.epic {
  --wh-card-primary: rgba(156, 102, 255, 0.98);
  --wh-card-secondary: rgba(255, 79, 163, 0.78);
  --wh-card-accent: rgba(214, 186, 255, 0.92);
}

.wh-portal-card.rare {
  --wh-card-primary: rgba(104, 216, 255, 0.9);
  --wh-card-secondary: rgba(255, 79, 163, 0.66);
  --wh-card-accent: rgba(126, 231, 255, 0.9);
}

.wh-portal-card.main {
  width: 37%;
  z-index: 5;
  transform: translate3d(0, 4%, 72px) rotateY(-10deg) rotateZ(-2deg);
  box-shadow:
    0 34px 86px rgba(0, 0, 0, 0.52),
    0 0 46px rgba(255, 79, 163, 0.42),
    0 0 74px rgba(255, 214, 107, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.11),
    inset 0 0 54px rgba(255, 255, 255, 0.06);
}

.wh-portal-card.back-left {
  left: 20%;
  bottom: 18%;
  z-index: 4;
  transform: translate3d(-4%, 4%, 18px) rotateY(-18deg) rotateZ(-17deg) scale(0.9);
  opacity: 0.9;
  animation-delay: -1.4s;
}

.wh-portal-card.back-right {
  right: 18%;
  top: 17%;
  z-index: 4;
  transform: translate3d(4%, -1%, 8px) rotateY(15deg) rotateZ(14deg) scale(0.88);
  opacity: 0.86;
  animation-delay: -2s;
}

.wh-portal-card.rear-left {
  left: 6%;
  top: 23%;
  width: 23%;
  z-index: 2;
  transform: translate3d(-2%, 0, -86px) rotateY(-25deg) rotateZ(-24deg) scale(0.88);
  opacity: 0.54;
  filter: blur(1px);
  animation-delay: -2.8s;
}

.wh-portal-card.rear-right {
  right: 5%;
  bottom: 15%;
  width: 24%;
  z-index: 2;
  transform: translate3d(2%, 2%, -74px) rotateY(24deg) rotateZ(21deg) scale(0.86);
  opacity: 0.6;
  filter: blur(0.7px);
  animation-delay: -3.5s;
}

/* Guild Archive Cabinet hero scene */
.wh-archive-stage.wh-hunt-gate {
  width: min(100%, 720px);
  aspect-ratio: 1.16;
  transform-origin: 50% 58%;
}

.wh-archive-stage::before {
  content: "";
  position: absolute;
  inset: 7% -3% 3%;
  border-radius: 44px;
  background:
    radial-gradient(ellipse at 50% 57%, rgba(255, 214, 107, 0.18), transparent 46%),
    radial-gradient(ellipse at 42% 42%, rgba(255, 79, 163, 0.22), transparent 42%),
    radial-gradient(ellipse at 68% 36%, rgba(156, 102, 255, 0.24), transparent 48%),
    rgba(5, 6, 14, 0.12);
  filter: blur(12px);
  opacity: 0.95;
  pointer-events: none;
  transform: translate3d(0, 22px, -220px) rotateX(48deg) scale(0.94);
}

.wh-cabinet-object {
  position: absolute;
  inset: 2% 0 0;
  z-index: 3;
  pointer-events: none;
  transform-style: preserve-3d;
  transform:
    translate3d(
      calc(var(--wh-pointer-x, 0) * -10px),
      calc(var(--wh-pointer-y, 0) * -7px),
      0
    )
    rotateX(calc(-2deg + var(--wh-pointer-y, 0) * 2.4deg))
    rotateY(calc(-9deg + var(--wh-pointer-x, 0) * 5deg))
    rotateZ(-1deg);
  filter: drop-shadow(0 42px 62px rgba(0, 0, 0, 0.62));
}

.wh-cabinet-art,
.wh-cabinet-drawer-art {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
}

.wh-cabinet-art {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    saturate(1.1)
    contrast(1.06)
    drop-shadow(0 0 32px rgba(255, 79, 163, 0.18))
    drop-shadow(0 0 54px rgba(255, 214, 107, 0.13));
}

.wh-cabinet-drawer-art {
  left: 25.8%;
  top: 31.2%;
  width: 46%;
  height: auto;
  transform:
    translate3d(
      calc(10px + var(--wh-pointer-x, 0) * 6px),
      calc(18px + var(--wh-pointer-y, 0) * 3px),
      96px
    )
    rotateX(2deg)
    rotateY(-10deg)
    rotateZ(-1deg);
  transform-origin: 50% 8%;
  opacity: 0.98;
  filter:
    drop-shadow(0 24px 38px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 38px rgba(255, 79, 163, 0.24));
}

.wh-cabinet-slit {
  position: absolute;
  left: 27%;
  top: 39%;
  width: 43%;
  height: 11%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 245, 185, 0.72), rgba(255, 79, 163, 0.34) 42%, transparent 76%);
  filter: blur(18px);
  opacity: 0.74;
  transform: translate3d(0, 0, 78px) rotateZ(-1deg);
}

.wh-cabinet-dust {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff2b7;
  box-shadow:
    0 0 16px rgba(255, 214, 107, 0.84),
    0 0 30px rgba(255, 79, 163, 0.36);
  opacity: 0.82;
  transform: translate3d(0, 0, 130px);
}

.wh-cabinet-dust.d1 { left: 42%; top: 25%; }
.wh-cabinet-dust.d2 { left: 61%; top: 48%; width: 4px; height: 4px; opacity: 0.62; }
.wh-cabinet-dust.d3 { left: 30%; top: 59%; width: 5px; height: 5px; opacity: 0.7; }

.wh-drawer-shuffle {
  position: absolute;
  left: 31%;
  top: 42%;
  z-index: 5;
  width: 34%;
  height: 16%;
  pointer-events: none;
  opacity: 0;
  transform-style: preserve-3d;
  transform: translate3d(0, 20px, 150px) rotateX(8deg) rotateY(-8deg);
}

.wh-drawer-shuffle i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18%;
  height: 78%;
  border-radius: 8px;
  border: 1px solid rgba(255, 230, 164, 0.48);
  background:
    linear-gradient(135deg, rgba(255, 214, 107, 0.52), rgba(255, 79, 163, 0.24) 42%, rgba(104, 216, 255, 0.2)),
    rgba(16, 13, 25, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 22px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(255, 79, 163, 0.22);
  transform:
    translate3d(calc(-50% + (var(--shuffle-x, 0) * 1px)), -50%, calc(var(--shuffle-z, 0) * 1px))
    rotateY(var(--shuffle-ry, 0deg))
    rotateZ(var(--shuffle-rz, 0deg));
  animation: none;
}

.wh-drawer-shuffle i:nth-child(1) { --shuffle-index: 0; --shuffle-x: -78; --shuffle-z: 12; --shuffle-ry: -42deg; --shuffle-rz: -12deg; }
.wh-drawer-shuffle i:nth-child(2) { --shuffle-index: 1; --shuffle-x: -48; --shuffle-z: 30; --shuffle-ry: -22deg; --shuffle-rz: -7deg; }
.wh-drawer-shuffle i:nth-child(3) { --shuffle-index: 2; --shuffle-x: -18; --shuffle-z: 48; --shuffle-ry: -9deg; --shuffle-rz: -3deg; }
.wh-drawer-shuffle i:nth-child(4) { --shuffle-index: 3; --shuffle-x: 10; --shuffle-z: 64; --shuffle-ry: 8deg; --shuffle-rz: 4deg; }
.wh-drawer-shuffle i:nth-child(5) { --shuffle-index: 4; --shuffle-x: 38; --shuffle-z: 44; --shuffle-ry: 22deg; --shuffle-rz: 8deg; }
.wh-drawer-shuffle i:nth-child(6) { --shuffle-index: 5; --shuffle-x: 66; --shuffle-z: 24; --shuffle-ry: 38deg; --shuffle-rz: 12deg; }
.wh-drawer-shuffle i:nth-child(7) { --shuffle-index: 6; --shuffle-x: 90; --shuffle-z: 8; --shuffle-ry: 62deg; --shuffle-rz: 16deg; }

.wh-drawer-burst {
  position: absolute;
  left: 32%;
  top: 37%;
  z-index: 4;
  width: 36%;
  aspect-ratio: 1;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle, rgba(255, 247, 196, 0.68), rgba(255, 79, 163, 0.3) 34%, rgba(156, 102, 255, 0.16) 54%, transparent 72%);
  filter: blur(10px);
  transform: translate3d(0, 8px, 128px) scale(0.64);
  mix-blend-mode: screen;
}

.wh-archive-stage.is-drawer-preview .wh-cabinet-drawer-art {
  transform:
    translate3d(
      calc(14px + var(--wh-pointer-x, 0) * 7px),
      calc(24px + var(--wh-pointer-y, 0) * 4px),
      118px
    )
    rotateX(2deg)
    rotateY(-12deg)
    rotateZ(-1deg);
}

.wh-archive-stage.is-drawer-preview .wh-cabinet-slit,
.wh-archive-stage.is-drawer-revealing .wh-cabinet-slit {
  opacity: 0.96;
  filter: blur(15px);
  transform: translate3d(0, -2px, 102px) rotateZ(-1deg) scale(1.1);
}

.wh-archive-stage.is-drawer-pulled .wh-cabinet-drawer-art {
  transform:
    translate3d(
      calc(28px + var(--wh-pointer-x, 0) * 8px),
      calc(38px + var(--wh-pointer-y, 0) * 4px),
      164px
    )
    rotateX(-1deg)
    rotateY(-15deg)
    rotateZ(-1deg)
    scale(1.03);
  filter:
    drop-shadow(0 32px 48px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 52px rgba(255, 79, 163, 0.36))
    drop-shadow(0 0 34px rgba(255, 214, 107, 0.22));
}

.wh-archive-stage.is-drawer-shuffling .wh-drawer-shuffle {
  opacity: 1;
}

.wh-archive-stage.is-drawer-shuffling .wh-drawer-shuffle i {
  animation: whDrawerShuffle 360ms var(--wh-ease-emphatic) both;
  animation-delay: calc(var(--shuffle-index, 0) * 28ms);
}

.wh-archive-stage.is-drawer-pulse .wh-drawer-burst {
  animation: whDrawerBurst 460ms var(--wh-ease-emphatic) both;
}

.wh-archive-stage.is-drawer-pulse .wh-archive-card {
  transition: filter 180ms var(--wh-ease), opacity 180ms var(--wh-ease);
  filter: brightness(1.22) saturate(1.22) !important;
}

.wh-cabinet-label {
  position: absolute;
  z-index: 4;
  min-width: 68px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 107, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 214, 107, 0.24), rgba(92, 54, 28, 0.52)),
    rgba(9, 8, 15, 0.86);
  color: rgba(255, 238, 190, 0.94);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 214, 107, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 18px rgba(255, 214, 107, 0.12);
  transform: translate3d(0, 0, 120px) rotateY(-7deg);
  transition:
    opacity var(--wh-speed) var(--wh-ease),
    box-shadow var(--wh-speed) var(--wh-ease),
    border-color var(--wh-speed) var(--wh-ease),
    color var(--wh-speed) var(--wh-ease);
}

.wh-cabinet-label[data-section-key="hunt"] { left: 16.5%; top: 24.6%; }
.wh-cabinet-label[data-section-key="collection"] { left: 42.4%; top: 25.8%; }
.wh-cabinet-label[data-section-key="hubs"] { right: 15.4%; top: 26.2%; }
.wh-cabinet-label[data-section-key="tops"] { left: 18.2%; bottom: 28.4%; }
.wh-cabinet-label[data-section-key="market"] { right: 16.4%; bottom: 27.2%; }

.wh-archive-stage[data-active-section="hunt"] .wh-cabinet-label[data-section-key="hunt"],
.wh-archive-stage[data-active-section="collection"] .wh-cabinet-label[data-section-key="collection"],
.wh-archive-stage[data-active-section="hubs"] .wh-cabinet-label[data-section-key="hubs"],
.wh-archive-stage[data-active-section="tops"] .wh-cabinet-label[data-section-key="tops"],
.wh-archive-stage[data-active-section="market"] .wh-cabinet-label[data-section-key="market"] {
  border-color: rgba(255, 246, 198, 0.9);
  color: #fff7d7;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 0 22px rgba(255, 214, 107, 0.5),
    0 0 42px rgba(255, 79, 163, 0.28);
}

.wh-archive-stage .wh-archive-scene {
  inset: -18% -20%;
  z-index: 4;
}

.wh-archive-stage .wh-archive-depth {
  transform-origin: 48% 48%;
}

.wh-archive-stage .wh-archive-card {
  transform-origin: 50% 50%;
}

.wh-archive-stage .wh-section-preview {
  right: 3%;
  bottom: 17%;
  width: clamp(136px, 22vw, 218px);
  border-radius: 24px;
  transform:
    translate3d(-112px, 54px, -130px)
    rotateX(48deg)
    rotateY(-54deg)
    rotateZ(8deg)
    scale(0.58);
  transition:
    opacity 240ms var(--wh-ease),
    transform 360ms var(--wh-ease-emphatic),
    filter 240ms var(--wh-ease),
    box-shadow 240ms var(--wh-ease);
}

.wh-portal-wrap.is-section-previewing .wh-section-preview {
  opacity: 0.74;
  filter: saturate(1.03) brightness(0.92);
  transform:
    translate3d(-64px, 26px, -34px)
    rotateX(24deg)
    rotateY(-34deg)
    rotateZ(4deg)
    scale(0.76);
}

.wh-archive-stage.is-card-revealed .wh-section-preview {
  opacity: 1;
  filter: saturate(1.18) brightness(1.06);
  transform:
    translate3d(-18px, -6px, 152px)
    rotateX(4deg)
    rotateY(0deg)
    rotateZ(-2deg)
    scale(1);
  box-shadow:
    0 32px 78px rgba(0, 0, 0, 0.58),
    0 0 56px color-mix(in srgb, var(--wh-card-primary) 46%, transparent),
    0 0 40px color-mix(in srgb, var(--wh-card-accent) 34%, transparent);
}

.wh-archive-stage.is-card-revealed .wh-section-preview::after {
  animation: whCardRevealSweep 640ms var(--wh-ease-emphatic) both;
}

.wh-section-trigger.is-route-launching {
  transform: translateY(-2px) scale(0.985);
  filter: brightness(1.1) saturate(1.08);
}

.wh-section-preview::before,
.wh-section-preview::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 4;
}

.wh-section-preview::before {
  inset: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  box-shadow:
    inset 0 0 28px color-mix(in srgb, var(--wh-card-primary) 26%, transparent),
    0 0 20px color-mix(in srgb, var(--wh-card-accent) 18%, transparent);
}

.wh-section-preview::after {
  inset: -32% auto -32% -58%;
  width: 44%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), rgba(255, 214, 107, 0.16), transparent);
  mix-blend-mode: screen;
  transform: skewX(-16deg);
}

.wh-section-preview-subtitle,
.wh-section-preview-rank {
  position: absolute;
  z-index: 5;
  left: 18px;
  right: 18px;
  color: rgba(255, 247, 251, 0.78);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.wh-section-preview-title {
  bottom: 57px;
  z-index: 5;
}

.wh-section-preview-subtitle {
  bottom: 39px;
  font-size: clamp(9px, 0.92vw, 11px);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wh-section-preview-rank {
  bottom: 13px;
  min-height: 27px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--wh-card-accent) 54%, rgba(255, 255, 255, 0.18));
  background:
    linear-gradient(90deg, rgba(7, 8, 18, 0.74), color-mix(in srgb, var(--wh-card-accent) 18%, rgba(7, 8, 18, 0.78)), rgba(7, 8, 18, 0.74));
  color: #fff1bb;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.wh-section-preview.legendary {
  --wh-card-primary: rgba(255, 79, 163, 1);
  --wh-card-accent: rgba(255, 214, 107, 1);
}

.wh-section-preview.epic {
  --wh-card-primary: rgba(156, 102, 255, 1);
  --wh-card-accent: rgba(214, 186, 255, 0.96);
}

.wh-section-preview.rare {
  --wh-card-primary: rgba(104, 216, 255, 0.95);
  --wh-card-accent: rgba(126, 231, 255, 0.94);
}

.wh-section-preview.common {
  --wh-card-primary: rgba(216, 226, 241, 0.84);
  --wh-card-accent: rgba(232, 237, 248, 0.88);
}

.wh-route-card.wh-section-card-3d {
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 10%, color-mix(in srgb, var(--route-primary, #ff4fa3) 18%, transparent), transparent 42%),
    linear-gradient(145deg, rgba(34, 21, 34, 0.94), rgba(8, 8, 17, 0.96) 62%),
    rgba(8, 9, 19, 0.94);
}

.wh-route-card.wh-section-card-3d::before {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--route-accent, #ffd66b) 48%, transparent), transparent 18%, transparent 82%, color-mix(in srgb, var(--route-primary, #ff4fa3) 38%, transparent)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 44%);
  opacity: 0.62;
}

.wh-route-card.wh-section-card-3d .wh-route-art {
  box-shadow:
    0 28px 58px rgba(0, 0, 0, 0.42),
    0 0 34px color-mix(in srgb, var(--route-primary, #ff4fa3) 28%, transparent);
}

.wh-temporary-asset-fallback {
  filter: saturate(0.74) brightness(0.88);
}

.wh-route-art:has(.wh-temporary-asset-fallback)::after,
.wh-section-preview-art:has(.wh-temporary-asset-fallback)::after {
  content: "TEMP ART";
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 107, 0.36);
  background: rgba(8, 10, 18, 0.72);
  color: rgba(255, 234, 178, 0.92);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  pointer-events: none;
}

@keyframes whPortalSpin {
  to { rotate: 360deg; }
}

@keyframes whPortalSpinReverse {
  to { rotate: -360deg; }
}

@keyframes whPortalPulse {
  from { opacity: 0.55; scale: 0.98; }
  to { opacity: 0.9; scale: 1.02; }
}

@keyframes whPortalSpark {
  from { transform: translate3d(0, 0, 0) scale(0.76); opacity: 0.36; }
  to { transform: translate3d(12px, -16px, 0) scale(1.18); opacity: 0.92; }
}

@keyframes whPortalCardFloat {
  from { translate: 0 -8px; }
  to { translate: 0 10px; }
}

@keyframes whDrawerShuffle {
  0% {
    opacity: 0;
    transform:
      translate3d(-50%, -42%, -20px)
      rotateX(28deg)
      rotateY(calc(var(--shuffle-ry, 0deg) - 34deg))
      rotateZ(calc(var(--shuffle-rz, 0deg) - 8deg))
      scale(0.62);
  }
  38% {
    opacity: 1;
    transform:
      translate3d(calc(-50% + (var(--shuffle-x, 0) * 1px)), -56%, calc(var(--shuffle-z, 0) * 1px))
      rotateX(8deg)
      rotateY(var(--shuffle-ry, 0deg))
      rotateZ(var(--shuffle-rz, 0deg))
      scale(1);
  }
  100% {
    opacity: 0;
    transform:
      translate3d(calc(-50% + (var(--shuffle-x, 0) * 1.35px)), -72%, calc((var(--shuffle-z, 0) + 72) * 1px))
      rotateX(-8deg)
      rotateY(calc(var(--shuffle-ry, 0deg) + 24deg))
      rotateZ(calc(var(--shuffle-rz, 0deg) + 10deg))
      scale(0.84);
  }
}

@keyframes whDrawerBurst {
  0% {
    opacity: 0;
    transform: translate3d(0, 8px, 128px) scale(0.5);
  }
  34% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -18px, 190px) scale(1.58);
  }
}

@keyframes whCardRevealSweep {
  from {
    transform: translate3d(-18px, 0, 0) skewX(-16deg);
    opacity: 0;
  }
  38% {
    opacity: 1;
  }
  to {
    transform: translate3d(280px, 0, 0) skewX(-16deg);
    opacity: 0;
  }
}

@keyframes whCardHolo {
  0%, 18% { transform: translateX(0) skewX(-18deg); opacity: 0; }
  38% { opacity: 0.82; }
  64%, 100% { transform: translateX(360%) skewX(-18deg); opacity: 0; }
}

/* Hunt board and collectible cards */
.characters-grid,
.grid,
.cards-grid,
.news-grid,
.account-panel-storefront-grid {
  gap: 18px !important;
}

.characters-grid {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 290px)) !important;
  justify-content: center !important;
}

.waifu-card,
.discussion-card,
.rank-card,
.news-card,
.account-panel-storefront-product,
.account-panel-item {
  border-radius: 22px !important;
  border: 1px solid color-mix(in srgb, var(--wh-rarity, #fff) 26%, rgba(255, 255, 255, 0.1)) !important;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--wh-rarity, #ff4fa3) 18%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032)),
    rgba(13, 14, 28, 0.78) !important;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.3),
    0 0 28px color-mix(in srgb, var(--wh-rarity, #ff4fa3) 13%, transparent) !important;
}

.waifu-card:hover,
.discussion-card:hover,
.rank-card:hover,
.news-card:hover,
.account-panel-storefront-product:hover {
  transform: translateY(-5px) !important;
  border-color: color-mix(in srgb, var(--wh-rarity, #ff4fa3) 42%, rgba(255, 255, 255, 0.16)) !important;
}

.waifu-media,
.card-media,
.rank-media,
.news-media,
.account-panel-storefront-media img,
.account-panel-item-media img {
  object-fit: cover !important;
  object-position: center 28% !important;
}

.waifu-media {
  aspect-ratio: 0.74 !important;
}

.waifu-card .waifu-media,
.waifu-card video.waifu-media {
  height: 100% !important;
}

.waifu-card.locked,
.discussion-card.locked {
  opacity: 0.82 !important;
}

.waifu-card.locked .waifu-media,
.discussion-card.locked .card-media {
  filter: grayscale(0.75) saturate(0.75) brightness(0.7) !important;
}

.waifu-action,
.rank-actions,
.spotlight-actions {
  position: relative;
  z-index: 2;
}

.waifu-action {
  border-radius: 14px !important;
  background: rgba(255, 79, 163, 0.14) !important;
  border: 1px solid rgba(255, 123, 213, 0.24) !important;
}

/* Discussions and character hub */
.hero {
  border-radius: var(--wh-radius-xl) !important;
  border: 1px solid var(--wh-line) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 79, 163, 0.22), transparent 34%),
    radial-gradient(circle at 88% 20%, rgba(255, 214, 107, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    rgba(12, 13, 26, 0.66) !important;
  box-shadow: var(--wh-shadow-md) !important;
}

.toolbar {
  border-radius: var(--wh-radius-lg) !important;
}

.filters {
  gap: 8px !important;
}

.filter-btn.active {
  color: #fff !important;
}

.search-box input {
  min-width: min(340px, 100%);
}

.discussion-card .card-media-wrap {
  position: relative;
  aspect-ratio: 16 / 11 !important;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--wh-rarity, #ff4fa3) 34%, transparent), transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
}

.discussion-card .card-media-wrap::before,
.rank-media-wrap::before,
.news-card.no-media::before,
.account-panel-storefront-placeholder::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 36%),
    radial-gradient(circle at 50% 12%, color-mix(in srgb, var(--wh-rarity, #ff4fa3) 30%, transparent), transparent 52%),
    rgba(255, 255, 255, 0.04);
  transform: rotate(-7deg);
  box-shadow: 0 0 28px color-mix(in srgb, var(--wh-rarity, #ff4fa3) 18%, transparent);
}

.discussion-card .card-media-wrap:has(img)::before,
.rank-media-wrap:has(img)::before {
  opacity: 0.08;
}

.card-content,
.rank-content,
.news-card-body {
  position: relative;
  z-index: 2;
}

.layout {
  gap: 18px !important;
}

.side-card {
  border-radius: var(--wh-radius-lg) !important;
  overflow: hidden;
}

.chat-shell {
  border-radius: var(--wh-radius-lg) !important;
}

.chat-header,
.composer-box {
  border-color: rgba(255, 255, 255, 0.11) !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

.message {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(12, 13, 26, 0.62) !important;
  border-radius: 20px !important;
}

.message.mine {
  border-color: rgba(255, 123, 213, 0.24) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 79, 163, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.06) !important;
}

/* Leaderboards */
.spotlight {
  align-items: stretch !important;
  gap: 18px !important;
}

.spotlight-card {
  min-height: 0 !important;
  border-radius: var(--wh-radius-xl) !important;
}

.rank-media-wrap {
  aspect-ratio: 16 / 10 !important;
  min-height: 0 !important;
  max-height: 280px;
  background:
    radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--wh-rarity, #ff4fa3) 32%, transparent), transparent 50%),
    rgba(255, 255, 255, 0.045);
}

.rank-media {
  width: 100%;
  height: 100%;
}

#cardsTopGrid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
}

#discussionsTopGrid {
  grid-template-columns: 1fr !important;
}

#discussionsTopGrid .rank-card {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
}

#discussionsTopGrid .rank-media-wrap {
  aspect-ratio: 4 / 3 !important;
  max-height: none;
}

.rank-stats {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
}

/* News */
.news-grid {
  width: 100%;
  max-width: 1180px !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  align-items: start !important;
}

.news-stream-note {
  grid-column: 1 / -1;
  border-radius: var(--wh-radius-lg);
  padding: 22px;
}

.news-stream-note h2,
.news-stream-note p {
  max-width: 760px;
}

.news-card {
  min-height: 100%;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  padding: 0 !important;
}

.news-card-media {
  aspect-ratio: 16 / 9 !important;
  max-height: 260px !important;
  overflow: hidden;
  border-radius: 20px 20px 0 0 !important;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 79, 163, 0.18), transparent 54%),
    rgba(255, 255, 255, 0.045);
}

.news-card-media .news-media,
.news-card-media .news-media-frame {
  width: 100% !important;
  height: 100% !important;
}

.news-media-frame.document {
  background:
    linear-gradient(135deg, rgba(255, 214, 107, 0.16), rgba(156, 102, 255, 0.14)),
    rgba(255, 255, 255, 0.04) !important;
}

.news-card-body {
  padding: 18px !important;
}

.news-card h3 {
  line-height: 1.15 !important;
}

.news-card-text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .actions .btn,
[data-delete-news] {
  min-height: 36px !important;
  padding: 9px 12px !important;
  font-size: 12px !important;
  background: rgba(255, 91, 115, 0.13) !important;
  border-color: rgba(255, 91, 115, 0.24) !important;
}

.news-creator-block {
  border-radius: var(--wh-radius-lg) !important;
}

.upload-zone {
  border: 1px dashed rgba(255, 123, 213, 0.32) !important;
  border-radius: var(--wh-radius-md) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 79, 163, 0.11), transparent 42%),
    rgba(255, 255, 255, 0.045) !important;
}

/* Account overlay */
.account-panel-root.hidden {
  display: flex !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.account-panel-root.hidden .account-panel-backdrop,
.account-panel-root.hidden .account-panel,
.account-panel-root.hidden .account-panel-glow,
.account-panel-root[data-open="false"] .account-panel-backdrop,
.account-panel-root[data-open="false"] .account-panel,
.account-panel-root[data-open="false"] .account-panel-glow,
.account-panel-root.is-closing .account-panel-backdrop,
.account-panel-root.is-closing .account-panel,
.account-panel-root.is-closing .account-panel-glow {
  pointer-events: none !important;
}

.account-panel-root[data-open="false"],
.account-panel-root.is-closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
}

.account-panel-root[data-open="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.account-panel-root {
  padding: clamp(12px, 3vw, 28px) !important;
}

.account-panel-backdrop {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 79, 163, 0.18), transparent 34%),
    linear-gradient(rgba(4, 5, 12, 0.5), rgba(4, 5, 12, 0.68)) !important;
  backdrop-filter: blur(12px) saturate(132%) !important;
}

.account-panel-glow {
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 79, 163, 0.28), transparent 38%),
    radial-gradient(circle at 74% 74%, rgba(255, 214, 107, 0.16), transparent 34%),
    radial-gradient(circle at 18% 72%, rgba(156, 102, 255, 0.18), transparent 35%) !important;
}

.account-panel {
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background:
    linear-gradient(180deg, rgba(23, 22, 42, 0.95), rgba(8, 9, 18, 0.98)),
    var(--wh-bg-1) !important;
  box-shadow: var(--wh-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.account-panel-root[data-kind="wide"] .account-panel {
  width: min(1180px, calc(100vw - 38px)) !important;
}

.account-panel-top {
  padding: 18px 22px 14px !important;
  background:
    linear-gradient(90deg, rgba(255, 79, 163, 0.09), transparent 44%, rgba(255, 214, 107, 0.055)) !important;
}

.account-panel-title {
  font-size: clamp(24px, 2.7vw, 36px) !important;
}

.account-panel-body {
  padding: 18px 22px 22px !important;
}

.account-panel-chibi-dock {
  top: -18px !important;
  right: 76px !important;
  width: min(128px, 24vw) !important;
  height: 124px !important;
  opacity: 0.92;
}

.account-panel-profile-hero {
  min-height: 360px !important;
  border-color: rgba(255, 123, 213, 0.22) !important;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 79, 163, 0.26), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(255, 214, 107, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(12, 13, 26, 0.78) !important;
}

.account-panel-profile-avatar-frame {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 34px rgba(255, 79, 163, 0.28),
    var(--wh-shadow-md) !important;
}

.account-panel-profile-level-badge {
  border-color: rgba(255, 214, 107, 0.34) !important;
  background: linear-gradient(135deg, rgba(255, 214, 107, 0.9), rgba(255, 79, 163, 0.86)) !important;
  color: #1b101a !important;
}

.account-panel-profile-quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.account-panel-achievement-showcase {
  gap: 12px !important;
}

.account-panel-achievement-badge {
  border-radius: 18px !important;
}

.account-panel-style-grid {
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)) !important;
}

.account-panel-style-tile {
  min-height: 154px !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 79, 163, 0.12), transparent 45%),
    rgba(255, 255, 255, 0.045) !important;
}

.account-panel-storefront {
  display: grid !important;
  gap: 16px !important;
}

.account-panel-storefront-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 380px) !important;
  gap: 16px !important;
  padding: 18px !important;
  border-radius: var(--wh-radius-lg) !important;
}

.account-panel-storefront-intro,
.account-panel-storefront-summary {
  min-width: 0;
}

.account-panel-storefront-title {
  margin: 8px 0 8px !important;
  font-size: clamp(25px, 3vw, 42px) !important;
  line-height: 1.02 !important;
}

.account-panel-storefront-copy {
  max-width: 680px;
  color: var(--wh-muted) !important;
}

.account-panel-storefront-summary {
  display: grid !important;
  gap: 12px !important;
}

.account-panel-storefront-balance {
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 214, 107, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.055) !important;
}

.account-panel-storefront-balance-value {
  color: var(--wh-gold) !important;
  text-shadow: 0 0 28px rgba(255, 214, 107, 0.24);
}

.account-panel-storefront-current {
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.account-panel-storefront-current-thumb {
  border-radius: 18px !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.account-panel-storefront-toolbar {
  padding: 14px !important;
  border-radius: 24px !important;
}

.account-panel-storefront-type-row,
.account-panel-storefront-applied {
  gap: 8px !important;
}

.account-panel-storefront-type-chip,
.account-panel-storefront-segment {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: var(--wh-text) !important;
}

.account-panel-storefront-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

.account-panel-inventory-storefront .account-panel-storefront-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 280px)) !important;
  justify-content: center !important;
}

.account-panel-storefront-media {
  aspect-ratio: 0.78 !important;
  min-height: 220px !important;
  background:
    radial-gradient(circle at 50% 14%, color-mix(in srgb, var(--wh-rarity, #ff4fa3) 30%, transparent), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)) !important;
}

.account-panel-storefront-product:not(.common):not(.rare):not(.epic):not(.legendary) {
  --wh-rarity: var(--wh-pink);
}

.account-panel-storefront-product-body {
  gap: 12px !important;
}

.account-panel-storefront-product-title {
  font-size: 18px !important;
  line-height: 1.2 !important;
}

.account-panel-storefront-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.account-panel-storefront-fact {
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

.account-panel-storefront-overview {
  gap: 14px !important;
}

.account-panel-settings-layout {
  grid-template-columns: minmax(160px, 210px) minmax(0, 1fr) !important;
  gap: 16px !important;
}

.account-panel-settings-nav {
  border-radius: 22px !important;
  border: 1px solid var(--wh-line) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  padding: 10px !important;
}

.account-panel-settings-nav a {
  border-radius: 14px !important;
}

.account-panel-settings-nav a.is-active {
  background: rgba(255, 79, 163, 0.14) !important;
  color: #fff !important;
}

.account-panel-settings-provider-row {
  border-radius: 18px !important;
}

.account-panel-provider-mark {
  box-shadow: 0 0 24px rgba(255, 79, 163, 0.16);
}

.account-panel-admin-studio {
  border-color: rgba(255, 214, 107, 0.18) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 214, 107, 0.1), transparent 32%),
    rgba(255, 255, 255, 0.045) !important;
}

.account-panel-admin-forms-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
}

.account-panel-user-card,
.account-panel-admin-content-item {
  border-left: 3px solid rgba(255, 79, 163, 0.42) !important;
}

.account-panel-filter-row {
  gap: 10px !important;
}

/* Standalone simple pages */
.profile-box,
.panel,
.box,
.maintenance-box {
  border-radius: var(--wh-radius-xl) !important;
  max-width: min(940px, calc(100vw - 28px)) !important;
}

.box {
  max-width: min(520px, calc(100vw - 28px)) !important;
}

.maintenance-box {
  position: relative;
  overflow: hidden;
}

.maintenance-box::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 214, 107, 0.14);
  pointer-events: none;
}

.site-footer {
  margin-top: 42px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 79, 163, 0.12), transparent 28%),
    rgba(7, 8, 18, 0.86) !important;
}

.footer-inner {
  max-width: 1280px !important;
}

.footer-top {
  grid-template-columns: 1.25fr repeat(3, minmax(150px, 0.45fr)) !important;
}

.footer-title {
  color: var(--wh-ink) !important;
}

.footer-link {
  color: var(--wh-muted) !important;
}

.footer-link:hover {
  color: #fff !important;
}

@media (max-width: 1100px) {
  .wh-home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .wh-portal-wrap {
    min-height: 420px;
    order: -1;
  }

  .wh-home-routes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wh-archive-routes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wh-routes-head {
    display: grid;
  }

  .wh-routes-head p {
    max-width: 680px;
  }

  .wh-section-card-3d {
    min-height: 300px;
  }

  .wh-systems-grid,
  .footer-top {
    grid-template-columns: 1fr 1fr !important;
  }

  .account-panel-storefront-head,
  .account-panel-settings-layout {
    grid-template-columns: 1fr !important;
  }

  .account-panel-settings-nav {
    position: static !important;
    display: flex !important;
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll !important;
  }

  body::before {
    animation-duration: 26s;
  }

  main {
    padding: 26px 12px 52px !important;
  }

  header,
  .site-header {
    padding: 10px 12px !important;
  }

  .desktop-nav,
  .site-nav {
    display: none !important;
  }

  .logo::before {
    width: 21px;
    height: 21px;
    border-radius: 7px;
  }

  .wh-home-hero {
    text-align: left;
    gap: 10px;
    min-height: 0 !important;
  }

  .wh-home-copy {
    width: 100%;
    max-width: 358px;
    min-width: 0;
  }

  .wh-home-hero h1 {
    font-size: clamp(44px, 15vw, 58px) !important;
  }

  .wh-home-hero .subtitle {
    max-width: 100%;
    font-size: 16px !important;
    overflow-wrap: anywhere;
  }

  .wh-portal-wrap {
    min-height: 214px;
    overflow: hidden;
  }

  .wh-hunt-gate,
  .wh-archive-stage.wh-hunt-gate {
    width: min(90vw, 360px);
  }

  .wh-archive-scene {
    inset: -20% -28%;
  }

  .wh-archive-card.is-near { --archive-w: 72px; }
  .wh-archive-card.is-mid { --archive-w: 58px; }
  .wh-archive-card.is-far { --archive-w: 44px; }
  .wh-archive-card.is-edge { --archive-w: 34px; }

  .wh-cabinet-object {
    inset: -4% -4% 0;
    transform: translate3d(0, 0, 0) rotateX(-1deg) rotateY(-7deg);
  }

  .wh-cabinet-label {
    min-width: 42px;
    height: 14px;
    font-size: 6px;
    letter-spacing: 0.04em;
  }

  .wh-cabinet-label[data-section-key="hunt"] { left: 16%; top: 24%; }
  .wh-cabinet-label[data-section-key="collection"] { left: 42%; top: 25%; }
  .wh-cabinet-label[data-section-key="hubs"] { right: 15%; top: 25%; }
  .wh-cabinet-label[data-section-key="tops"] { left: 18%; bottom: 28%; }
  .wh-cabinet-label[data-section-key="market"] { right: 16%; bottom: 27%; }

  .wh-cabinet-drawer-art {
    left: 25%;
    top: 31%;
    width: 48%;
  }

  .wh-section-preview {
    width: 96px !important;
    right: 1%;
    bottom: 13%;
  }

  .wh-section-preview-title {
    bottom: 39px;
    font-size: 13px;
  }

  .wh-section-preview-subtitle {
    display: none;
  }

  .wh-section-preview-rank {
    left: 12px;
    right: 12px;
    min-height: 20px;
    font-size: 6px;
  }

  .wh-home-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100%;
  }

  .wh-home-actions .btn {
    width: 100%;
    min-width: 0;
    padding-left: 10px !important;
    padding-right: 10px !important;
    white-space: normal;
  }

  .wh-home-actions .btn:first-child {
    grid-column: auto;
  }

  .wh-home-routes,
  .wh-systems-grid,
  .footer-top,
  #discussionsTopGrid .rank-card {
    grid-template-columns: 1fr !important;
  }

  .wh-route-card {
    min-height: 118px;
  }

  .wh-archive-routes {
    gap: 14px;
  }

  .wh-routes-head {
    gap: 10px;
  }

  .wh-routes-head h2 {
    font-size: clamp(28px, 10vw, 42px);
  }

  .wh-routes-head p {
    font-size: 13px;
  }

  .wh-section-card-3d {
    min-height: 430px;
    padding: 12px;
  }

  .wh-route-content {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }

  .wh-systems-head {
    display: grid;
  }

  .hero {
    padding: 20px !important;
  }

  .hero-stats,
  .stats-grid,
  .account-panel-profile-quick-grid,
  .account-panel-storefront-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .toolbar,
  .chat-header,
  .composer-box {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .filters,
  .account-panel-storefront-type-row,
  .account-panel-storefront-applied {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filter-btn,
  .account-panel-storefront-type-chip,
  .account-panel-storefront-segment {
    flex: 0 0 auto;
  }

  .news-grid,
  .characters-grid,
  .account-panel-storefront-grid,
  .account-panel-inventory-storefront .account-panel-storefront-grid {
    grid-template-columns: 1fr !important;
  }

  .account-panel-root {
    align-items: stretch !important;
    padding: 10px !important;
  }

  .account-panel,
  .account-panel-root[data-kind="wide"] .account-panel,
  .account-panel-root[data-kind="info"] .account-panel {
    width: 100% !important;
    max-height: calc(100dvh - 20px) !important;
    border-radius: 26px !important;
  }

  .account-panel-top {
    padding: 14px 14px 10px !important;
  }

  .account-panel-chibi-dock {
    right: 66px !important;
    width: 96px !important;
    height: 96px !important;
  }

  .account-panel-body {
    padding: 14px !important;
  }

  .account-panel-profile-hero {
    min-height: 0 !important;
  }

  .account-panel-storefront-head {
    padding: 14px !important;
  }

  .account-panel-storefront-current {
    align-items: start !important;
  }
}

@media (max-width: 430px) {
  .hero-stats,
  .stats-grid,
  .account-panel-profile-quick-grid,
  .account-panel-storefront-facts {
    grid-template-columns: 1fr !important;
  }

  .hero-actions,
  .account-panel-actions,
  .composer-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .btn,
  .account-panel-btn,
  .account-panel-storefront-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .wh-card-orbit,
  .wh-hunt-gate {
    transform: none !important;
  }
}
