/* =========================================================
   EVERFALL · news + wiki pages (loaded after styles.css)
   ========================================================= */
.page { overflow-x: hidden; }
.page .nav { background: rgba(6, 21, 32, 0.82); border-bottom-color: var(--line); }
.page main { min-height: 70vh; }
.wrap-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 var(--pad); }
.h2--sm { font-size: clamp(30px, 3.2vw, 46px); }
.empty-state { color: var(--muted); padding: 30px 0; }
.footer__logo--sm { width: min(360px, 70vw); margin-bottom: 50px; }

.read-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 95; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--crystal-2), var(--crystal)); box-shadow: 0 0 10px var(--crystal); transform-origin: left; transform: scaleX(0); }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

.tag { display: inline-flex; align-items: center; padding: 5px 10px 4px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--crystal); background: rgba(98, 230, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(98, 230, 255, 0.3); }
.tag--lg { font-size: 12px; padding: 7px 12px 6px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.crumbs a { color: var(--muted); transition: color 0.2s; }
.crumbs a:hover { color: var(--crystal); }
.crumbs i { font-style: normal; color: var(--dim); }
.crumbs span { color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); background: var(--panel); border: 1px solid var(--line); transition: color 0.2s, background 0.2s, border-color 0.2s; }
.chip-btn i { width: 8px; height: 8px; border-radius: 3px; transform: rotate(45deg); background: var(--rc, var(--crystal)); box-shadow: 0 0 8px var(--rc, var(--crystal)); }
.chip-btn:hover { color: var(--text); border-color: var(--line-2); }
.chip-btn.is-active { color: var(--night); background: var(--text); border-color: var(--text); }

/* page hero */
.phero { position: relative; padding: clamp(140px, 16vw, 200px) 0 clamp(40px, 5vw, 64px); overflow: hidden; }
.phero__bg { position: absolute; inset: 0; background: var(--img) center 30% / cover; opacity: 0.22; -webkit-mask: linear-gradient(to bottom, #000 20%, transparent 95%); mask: linear-gradient(to bottom, #000 20%, transparent 95%); }
.phero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 20% 0%, rgba(47, 155, 255, 0.18), transparent 70%); pointer-events: none; }
.phero .wrap { position: relative; z-index: 1; }
.phero__title { margin: 0 0 16px; font-family: var(--display); font-weight: 400; font-size: clamp(46px, 7vw, 104px); line-height: 0.98; text-wrap: balance; }
.phero .lede { margin: 0 0 26px; }

/* bylines */
.avatar { display: inline-block; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, #0f3b52, #0a2433); box-shadow: 0 0 0 2px rgba(98, 230, 255, 0.35); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--xl { width: 64px; height: 64px; box-shadow: 0 0 0 3px rgba(98, 230, 255, 0.4), 0 10px 30px rgba(0, 0, 0, 0.4); }
.byline { display: flex; align-items: center; gap: 10px; }
.byline span { display: grid; line-height: 1.2; }
.byline b { font-size: 14.5px; font-weight: 700; }
.byline small { font-size: 12.5px; color: var(--dim); }
.byline--lg .avatar { width: 44px; height: 44px; }
.byline--lg b { font-size: 16px; }

/* news cards */
.news-list { padding-bottom: clamp(80px, 9vw, 130px); }
.ncard { position: relative; display: grid; border-radius: 26px; overflow: hidden; background: linear-gradient(170deg, rgba(160, 225, 255, 0.07), rgba(160, 225, 255, 0.02)); border: 1px solid var(--line); transition: transform 0.45s var(--ease), border-color 0.4s, box-shadow 0.45s var(--ease); }
.ncard:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4); }
.ncard__media { position: relative; margin: 10px 10px 0; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; }
.ncard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.ncard:hover .ncard__media img { transform: scale(1.06); }
.ncard__body { display: flex; flex-direction: column; padding: 20px 22px 22px; }
.ncard__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13.5px; color: var(--dim); font-weight: 600; }
.ncard h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.08; transition: color 0.3s; }
.ncard:hover h3 { color: var(--crystal); }
.ncard p { margin: 0 0 20px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.ncard .byline { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.ncard__go { margin-left: auto; display: grid !important; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); transition: background 0.3s, color 0.3s, transform 0.4s var(--ease), border-color 0.3s; }
.ncard__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ncard:hover .ncard__go { background: var(--crystal); color: var(--night); border-color: var(--crystal); transform: rotate(-45deg); }
.ncard--big { grid-template-columns: 1.25fr 1fr; margin-bottom: 26px; }
.ncard--big .ncard__media { margin: 12px 0 12px 12px; aspect-ratio: auto; min-height: 380px; }
.ncard--big .ncard__body { justify-content: center; padding: clamp(24px, 3.4vw, 50px); }
.ncard--big h3 { font-size: clamp(32px, 3.4vw, 50px); }
.ncard--big p { font-size: 17px; }
.ngrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.ncard.is-hidden { display: none; }

/* article */
.article { padding: clamp(110px, 12vw, 140px) 0 40px; }
.article__cover { position: relative; aspect-ratio: 21 / 9; border-radius: 30px; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.1); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 21, 32, 0.55), transparent 45%); }
.article__intro { max-width: 900px; margin: clamp(-90px, -6vw, -50px) auto 0; position: relative; z-index: 1; padding: clamp(24px, 3vw, 40px); border-radius: 26px; text-align: center; background: rgba(8, 26, 38, 0.92); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.article__intro h1 { margin: 16px 0 20px; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 68px); line-height: 1.02; text-wrap: balance; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.article__meta .byline { text-align: left; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--dim); }
.article__foot { margin-top: 50px; }
.article > .prose { margin-top: clamp(48px, 6vw, 80px); }
[id] { scroll-margin-top: 140px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share .mini-label { margin: 0 8px 0 0; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--text); background: var(--panel); border: 1px solid var(--line-2); transition: background 0.2s, border-color 0.2s, color 0.2s; }
.share-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-btn svg path[d^="M18.901"], .share-btn svg path[d^="M20.317"] { fill: currentColor; stroke: none; }
.share-btn:hover { border-color: var(--crystal); color: var(--crystal); }
.share-btn--sm { padding: 7px 11px; font-size: 13px; }
.author-card { display: flex; align-items: center; gap: 18px; margin: 30px 0; padding: 22px; border-radius: 22px; background: linear-gradient(160deg, rgba(98, 230, 255, 0.08), rgba(98, 230, 255, 0.02)); border: 1px solid var(--line); }
.author-card div { display: grid; line-height: 1.3; }
.author-card small { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--crystal); }
.author-card b { font-family: var(--display); font-weight: 400; font-size: 26px; }
.author-card span { color: var(--muted); }
.link-arrow--back svg { order: -1; }
.link-arrow--back:hover svg { transform: translateX(-4px); }
.more-news { padding: 60px var(--pad) clamp(90px, 10vw, 140px); }

/* prose */
.prose { font-size: 18px; line-height: 1.75; color: rgba(238, 249, 255, 0.86); }
.prose--sm { font-size: 16.5px; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.2em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); font-weight: 400; color: var(--text); line-height: 1.1; scroll-margin-top: 100px; }
.prose h2 { margin: 1.8em 0 0.6em; font-size: clamp(28px, 2.6vw, 36px); }
.prose h2::before { content: ""; display: inline-block; width: 12px; height: 18px; margin-right: 12px; vertical-align: 2px; background: linear-gradient(160deg, #d8fbff, var(--crystal) 45%, var(--crystal-2)); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.prose h3 { margin: 1.5em 0 0.5em; font-size: 25px; }
.prose h4 { margin: 1.4em 0 0.4em; font-size: 20px; }
.prose a { color: var(--crystal); text-decoration: underline; text-decoration-color: rgba(98, 230, 255, 0.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--crystal); }
.prose strong { color: #fff; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.prose li { margin: 0.35em 0; padding-left: 0.3em; }
.prose ul li::marker { color: var(--crystal); }
.prose ol li::marker { color: var(--crystal); font-weight: 800; }
.prose code { padding: 2px 7px; border-radius: 6px; font-size: 0.88em; color: #bff6ff; background: rgba(98, 230, 255, 0.12); }
.prose pre { margin: 0 0 1.4em; padding: 18px 20px; border-radius: 16px; overflow-x: auto; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); }
.prose pre code { padding: 0; background: none; font-size: 14.5px; }
.prose figure { margin: 1.6em 0; }
.prose img { border-radius: 18px; border: 1px solid var(--line); }
.prose hr { margin: 2.2em 0; border: 0; height: 1px; background: var(--line-2); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--crystal); font-size: 1.08em; color: var(--text); }
.callout { margin: 1.6em 0; padding: 18px 20px 4px; border-radius: 18px; background: rgba(98, 230, 255, 0.08); border: 1px solid rgba(98, 230, 255, 0.3); }
.callout > strong { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--crystal); }
.callout > strong::before { content: ""; width: 10px; height: 14px; background: currentColor; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.callout--warning, .callout--event { background: rgba(255, 207, 77, 0.08); border-color: rgba(255, 207, 77, 0.35); }
.callout--warning > strong, .callout--event > strong { color: var(--gold); }
.callout--note { background: rgba(169, 150, 255, 0.08); border-color: rgba(169, 150, 255, 0.35); }
.callout--note > strong { color: var(--uefn); }

/* ---------- WIKI ---------- */
.wgames { display: grid; gap: 22px; padding-bottom: clamp(80px, 9vw, 130px); }
.wgame { display: grid; grid-template-columns: 1.2fr 1fr; border-radius: 30px; overflow: hidden; background: linear-gradient(160deg, rgba(98, 230, 255, 0.08), rgba(98, 230, 255, 0.02)); border: 1px solid var(--line); transition: transform 0.45s var(--ease), border-color 0.4s; }
.wgame:hover { transform: translateY(-6px); border-color: var(--line-2); }
.wgame__media { margin: 12px 0 12px 12px; border-radius: 22px; overflow: hidden; min-height: 320px; }
.wgame__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.wgame:hover .wgame__media img { transform: scale(1.05); }
.wgame__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(24px, 3.4vw, 48px); }
.wgame__body h2 { margin: 14px 0 10px; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1; }
.wgame__body p { margin: 0 0 22px; color: var(--muted); }
.wgame__stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 26px; }
.wgame__stats span { display: grid; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.wgame__stats b { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: 0; color: var(--text); }

.ghero { position: relative; padding: clamp(120px, 13vw, 160px) 0 40px; overflow: visible; z-index: 3; }
.ghero__bg, .whero__bg { position: absolute; inset: 0; background: var(--img) center / cover; opacity: 0.3; -webkit-mask: linear-gradient(to bottom, #000 10%, transparent 100%); mask: linear-gradient(to bottom, #000 10%, transparent 100%); }
.ghero__bg::after, .whero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 21, 32, 0.9), rgba(6, 21, 32, 0.4)); }
.ghero__in, .whero__in { position: relative; z-index: 1; }
.ghero__row { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); margin-bottom: 32px; }
.ghero__icon { flex: none; width: clamp(88px, 9vw, 128px); aspect-ratio: 1; border-radius: 28px; overflow: hidden; border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink), 0 20px 50px rgba(0, 0, 0, 0.5); }
.ghero__icon img { width: 100%; height: 100%; object-fit: cover; }
.ghero h1 { margin: 8px 0 6px; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5.4vw, 80px); line-height: 1; }
.ghero .lede { margin: 0; }
.ghero__play { margin-left: auto; align-self: center; }
.chip-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 5px; border-radius: 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #8b2cff, #d6246e); box-shadow: 0 4px 0 #4a0f7a; }
.chip-live .live-dot { background: #fff; }
.wsearch { position: relative; display: flex; align-items: center; gap: 12px; max-width: 720px; padding: 6px 8px 6px 18px; border-radius: 18px; background: rgba(4, 14, 22, 0.8); border: 1.5px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); transition: border-color 0.2s, box-shadow 0.2s; }
.wsearch:focus-within { border-color: var(--crystal); box-shadow: 0 0 0 4px rgba(98, 230, 255, 0.15), 0 20px 50px rgba(0, 0, 0, 0.35); }
.wsearch > svg, .dbsearch svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; }
.wsearch input, .dbsearch input { flex: 1; min-width: 0; padding: 12px 0; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 16.5px; }
.wsearch kbd { padding: 4px 9px; border-radius: 8px; font: 700 13px var(--sans); color: var(--muted); border: 1px solid var(--line-2); }
.wsearch__results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; display: none; max-height: 420px; overflow-y: auto; padding: 8px; border-radius: 18px; background: #0a2231; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.wsearch.is-open .wsearch__results { display: block; }
.sr { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.sr:hover, .sr.is-sel { background: rgba(98, 230, 255, 0.1); }
.sr__ic { width: 38px; height: 38px; flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--rc) 22%, #0a2231); box-shadow: inset 0 0 0 1.5px var(--rc); }
.sr__ic img { width: 100%; height: 100%; object-fit: cover; }
.sr__ic i { width: 10px; height: 14px; background: var(--rc); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.sr b { display: block; font-weight: 700; }
.sr small { color: var(--dim); font-size: 13px; }
.sr-empty { padding: 14px; color: var(--muted); }

.wtabs { position: sticky; top: 74px; z-index: 2; background: rgba(6, 21, 32, 0.92); border-bottom: 1px solid var(--line); }
.wtabs__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.wtabs a { flex: none; padding: 16px 16px 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.wtabs a:hover { color: var(--text); }
.wtabs a.is-active { color: var(--text); border-bottom-color: var(--crystal); }

.whero { position: relative; padding: clamp(120px, 12vw, 150px) 0 32px; }
.whero h1 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.whero .lede { margin: 0; }
.whero--sm { padding-bottom: 26px; }

.wsec { padding-top: clamp(44px, 5vw, 70px); }
.wsec:last-child { padding-bottom: clamp(80px, 9vw, 130px); }
.wsec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.wsec__head .eyebrow { margin-bottom: 10px; }
.wsec__count { font-size: 13px; font-weight: 700; color: var(--dim); }
.wstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.wstat { padding: 18px 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.4s var(--ease); }
a.wstat:hover { border-color: var(--crystal); transform: translateY(-4px); }
.wstat b { display: block; font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1; }
.wstat span { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* item art + cards */
.iart { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: radial-gradient(80% 80% at 50% 35%, var(--rc-a), var(--rc-b) 60%, rgba(4, 14, 22, 0.6)), #0a2231; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rc) 45%, transparent); }
.iart > img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); }
.iart__ph { width: 44%; opacity: 0.9; filter: drop-shadow(0 0 18px var(--rc)); }
.iart__ph img { width: 100%; }
.iart--mini { width: 64px; border-radius: 14px; }
.iart--hero { border-radius: 30px; }
.iart--hero .iart__ph { width: 38%; animation: bob 4s ease-in-out infinite; }
.icard { position: relative; display: block; padding: 10px; border-radius: 22px; background: linear-gradient(170deg, rgba(160, 225, 255, 0.07), rgba(160, 225, 255, 0.02)); border: 1px solid var(--line); transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s; }
.icard:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--rc) 60%, transparent); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px var(--rc-a); }
.icard .iart > img { transition: transform 0.6s var(--ease); }
.icard:hover .iart > img { transform: scale(1.08) rotate(-2deg); }
.icard__body { display: grid; gap: 4px; padding: 12px 6px 6px; }
.icard__body b { font-size: 16px; font-weight: 700; line-height: 1.25; }
.icard__body small { font-size: 13px; color: var(--dim); }
.icard__body small em { font-style: normal; color: var(--text); font-weight: 600; }
.rar { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rc); }
.rar::before { content: ""; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: currentColor; box-shadow: 0 0 8px currentColor; }
.rar--lg { padding: 7px 12px 6px; border-radius: 10px; font-size: 12.5px; background: color-mix(in srgb, var(--rc) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 45%, transparent); }
.badge-new { position: absolute; top: 18px; right: 18px; z-index: 1; padding: 4px 9px 3px; border-radius: 8px; font-family: var(--display); font-size: 14px; color: var(--ink); background: linear-gradient(180deg, #fff6cf, #ffc93a); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); transform: rotate(4deg); }
.badge-new--inline { position: static; transform: none; }
.irow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 220px); gap: 16px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.irow .icard { scroll-snap-align: start; }
.igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.icard.is-hidden { display: none; }

.wcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.wcat { display: flex; align-items: center; gap: 20px; padding: 18px 20px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.4s var(--ease), background 0.3s; }
.wcat:hover { border-color: var(--crystal); transform: translateY(-4px); background: var(--panel-2); }
.wcat__stack { display: flex; flex: none; }
.wcat__stack .iart--mini { width: 58px; box-shadow: 0 0 0 3px #0a2231, inset 0 0 0 1.5px color-mix(in srgb, var(--rc) 45%, transparent); }
.wcat__stack .iart--mini + .iart--mini { margin-left: -22px; }
.wcat__body h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1; }
.wcat__body p { margin: 0 0 8px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.wcat__body span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--crystal); }
.wcat__body svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.rarbar { display: flex; flex-wrap: wrap; gap: 10px; }
.rarbar span { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; font-weight: 700; color: var(--rc); background: var(--rc-a); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 40%, transparent); }
.rarbar i { width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); background: var(--rc); box-shadow: 0 0 10px var(--rc); }
.rarbar b { padding: 1px 8px; border-radius: 999px; font-size: 12px; color: var(--text); background: rgba(0, 0, 0, 0.3); }

.gsection + .gsection { margin-top: 26px; }
.gsection__title { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.glist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 12px; }
.gitem { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.4s var(--ease); }
.gitem:hover { border-color: var(--crystal); transform: translateX(4px); }
.gitem__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; overflow: hidden; background: rgba(98, 230, 255, 0.1); }
.gitem__icon img { width: 100%; height: 100%; object-fit: cover; }
.gitem__icon .gitem__crystal { width: 60%; height: 60%; object-fit: contain; filter: drop-shadow(0 0 8px rgba(98, 230, 255, 0.6)); }
.gitem > span:nth-child(2) { display: grid; min-width: 0; }
.gitem b { font-weight: 700; }
.gitem small { color: var(--dim); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gitem > svg { width: 18px; height: 18px; margin-left: auto; flex: none; fill: none; stroke: var(--crystal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.wduo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.wpanel { padding: 24px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.wpanel__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.wpanel__head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; }
.codes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.codes li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--line); }
.codes code { font: 800 15px/1 var(--sans); letter-spacing: 0.08em; padding: 7px 10px; border-radius: 9px; color: var(--ink); background: linear-gradient(180deg, #fff, #c9ecff); border: 2px solid var(--ink); }
.codes span { flex: 1; min-width: 0; color: var(--muted); font-size: 14.5px; }
.codes--old code { background: rgba(255, 255, 255, 0.1); color: var(--dim); border-color: transparent; text-decoration: line-through; }
.expired { margin-top: 14px; }
.expired summary { cursor: pointer; font-weight: 700; color: var(--muted); padding: 8px 0; }
.expired .codes { margin-top: 8px; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: none; }
.board li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.18); }
.board__rank { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border-radius: 9px; font-family: var(--display); font-size: 16px; color: var(--muted); background: rgba(255, 255, 255, 0.06); }
.board__name { flex: 1; font-weight: 600; }
.board b { font-family: var(--display); font-weight: 400; font-size: 18px; }
.board .top--1 .board__rank { color: var(--ink); background: linear-gradient(180deg, #fff6cf, #ffc93a); }
.board .top--2 .board__rank { color: var(--ink); background: linear-gradient(180deg, #ffffff, #b9c9d6); }
.board .top--3 .board__rank { color: var(--ink); background: linear-gradient(180deg, #ffd9b0, #d88a4a); }

/* database toolbar */
.dbbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.dbsearch { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; padding: 2px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1.5px solid var(--line-2); }
.dbsearch:focus-within { border-color: var(--crystal); }
.dbsort { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.dbsort select { padding: 11px 36px 11px 14px; border-radius: 12px; font: inherit; font-size: 14px; color: var(--text); appearance: none; background: rgba(0, 0, 0, 0.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2392b3c4' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1.5px solid var(--line-2); }
.dbsort select option { background: #0a2231; }
.dbcount { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.dbcount b { color: var(--text); }

/* item page */
.witem { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(26px, 4vw, 60px); padding-top: 40px; align-items: start; }
.witem__art { position: relative; position: sticky; top: 150px; }
.witem__art .iart { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--rc) 50%, transparent), 0 40px 100px rgba(0, 0, 0, 0.45), 0 0 80px var(--rc-b); }
.witem__rays { position: absolute; inset: 0; border-radius: 30px; pointer-events: none; overflow: hidden; }
.witem__rays::before { content: ""; position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg, transparent 0 10deg, var(--rc-b) 12deg, transparent 15deg 26deg); animation: spin 60s linear infinite; }
.witem__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.witem__name { margin: 14px 0 16px; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 24px 0; }
.stats div { padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.stats dt { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.stats dd { margin: 4px 0 0; font-family: var(--display); font-size: 24px; color: var(--text); }
.obtain { padding: 18px 20px; border-radius: 18px; background: linear-gradient(160deg, var(--rc-b), transparent); border: 1px solid color-mix(in srgb, var(--rc) 35%, transparent); }
.obtain .mini-label { margin-bottom: 6px; }
.obtain p { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--panel); border: 1px solid var(--line); }

/* guide */
.guide { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(26px, 4vw, 60px); padding-top: 40px; padding-bottom: clamp(80px, 9vw, 130px); }
.guide article { max-width: 780px; }
.guide__side { position: sticky; top: 150px; align-self: start; }
.toc { list-style: none; margin: 0 0 28px; padding: 0 0 0 14px; border-left: 1px solid var(--line-2); display: grid; gap: 8px; }
.toc a { font-size: 14.5px; color: var(--muted); transition: color 0.2s; }
.toc a:hover { color: var(--crystal); }
.article__meta--guide { justify-content: flex-start; margin-bottom: 26px; }
.article__cover--guide { aspect-ratio: 16 / 7; margin-bottom: 34px; border-radius: 22px; }

/* 404 */
.nf { position: relative; min-height: 88vh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.nf__in { position: relative; z-index: 1; padding-top: 100px; }
.nf__crystal { width: 110px; margin: 0 auto 24px; filter: drop-shadow(0 0 30px rgba(98, 230, 255, 0.6)); animation: bob 3.6s ease-in-out infinite; }
.nf .lede { margin: 0 auto 30px; }
.nf__ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; padding: 12px 18px; border-radius: 14px; font-weight: 700; color: var(--ink); background: #fff; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); transform: translate(-50%, 160px); opacity: 0; visibility: hidden; transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.3s, visibility 0s 0.45s; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.2s, visibility 0s; }

@media (max-width: 1000px) {
  .ncard--big, .wgame { grid-template-columns: 1fr; }
  .ncard--big .ncard__media, .wgame__media { margin: 10px 10px 0; min-height: 0; aspect-ratio: 16 / 9; }
  .wduo, .witem, .guide { grid-template-columns: 1fr; }
  .witem__art, .guide__side { position: static; }
  .witem__art { max-width: 460px; }
  .ghero__row { flex-wrap: wrap; }
  .ghero__play { margin-left: 0; }
  .wtabs { top: 66px; }
}
@media (max-width: 600px) {
  .prose { font-size: 16.5px; }
  .article__cover { aspect-ratio: 16 / 10; border-radius: 20px; }
  .article__intro { margin-top: -30px; border-radius: 20px; }
  .igrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .wsearch kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
