/* ==========================================================
   NAP KING GALLERY — tema v3 "editorial"
   Netral hangat, satu warna aksen, huruf serif untuk judul.
   Dimuat paling akhir: menimpa token & komponen versi sebelumnya.
   ========================================================== */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }


:root {
  --paper: #f1f0fb; --card: #ffffff; --ink: #14122b; --muted: #65628a; --line: #deddf0; --hard: #14122b;
  --violet: #5b3df5; --accent: #c6f432; --accent-ink: #14122b; --yellow: #ffc93c; --blue: #2f5fd0; --red: #d4422f; --on-color: #14122b;
  --page: var(--accent);
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --maxw: 1240px; --spring: cubic-bezier(.34, 1.56, .64, 1);
}
:root[data-theme="dark"] { --paper: #0d0c20; --card: #1a1838; --ink: #f1f0ff; --muted: #a3a0cc; --line: #2d2a57; --hard: #f1f0ff; --accent: #c6f432; --violet: #9d87ff; --blue: #8aa6ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #0d0c20; --card: #1a1838; --ink: #f1f0ff; --muted: #a3a0cc; --line: #2d2a57; --hard: #f1f0ff; --accent: #c6f432; --violet: #9d87ff; --blue: #8aa6ff; } }
body[data-page] { --page: #c6f432; }
body[data-page="game"] { --page: #86a8ff; } body[data-page="collab"] { --page: #ff8fc4; } body[data-page="rank"] { --page: #ffd23c; }
body[data-page="statistik"] { --page: #5ee6b0; } body[data-page="song"] { --page: #c4a5ff; } body[data-page="channel"] { --page: #ff9f7a; }
/* gelembung melayang */
body::before, body::after { content: ""; position: fixed; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(8px); }
body::before { width: 46vmax; height: 46vmax; left: -18vmax; top: 30vh; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--violet) 30%, transparent), transparent 68%); animation: drift 22s ease-in-out infinite; }
body::after { width: 38vmax; height: 38vmax; right: -14vmax; top: -10vmax; background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--page) 55%, transparent), transparent 68%); animation: drift2 26s ease-in-out infinite; }
.bub { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.75), rgba(255,255,255,.08) 38%, transparent 62%), var(--c, var(--page)); opacity: .9; animation: bob var(--t, 9s) ease-in-out var(--dl, 0s) infinite; }
@keyframes bob { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(var(--x, 14px), -26px, 0) scale(1.06); } }
.hero-block > *:not(.bub) { position: relative; z-index: 1; }
body { font-size: 15px; animation: pagein .5s var(--ease) both; }
::selection { background: var(--violet); color: #fff; }
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(40px, -30px, 0) scale(1.15); } }
@keyframes drift2 { 0%, 100% { transform: translate3d(0, 0, 0) scale(1.1); } 50% { transform: translate3d(-50px, 26px, 0) scale(.95); } }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dockin { from { opacity: 0; transform: translate(-50%, 30px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* ---- animasi muncul saat digulir ---- */
.rv { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .7s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); will-change: opacity, transform; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1 !important; transform: none !important; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

h1, h2, .hero-block h1, .feed-head h2, .section-head h2, .wr-sec > h2, .rh { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.015em; }
.feed-head h2, .section-head h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1; }
.rh { font-size: 28px; }

/* ---- teks berjalan (atas), header, dock (bawah) ---- */
.ticker { display: flex; background: var(--ink); color: var(--paper); height: 36px; }
.ticker a { font: 600 12.5px var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.ticker a:hover { color: var(--accent); }
.ticker .i { color: var(--accent); fill: var(--accent); }
.topbar { position: sticky; top: 0; z-index: 80; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--line); animation: rise .6s var(--ease) both; }
.topbar .wrap { height: 66px; gap: 16px; }
.logo { font-family: var(--font-serif); font-weight: 400; font-size: 30px; letter-spacing: -.01em; gap: 0; }
.logo em { background: none; border: 0; padding: 0 0 0 .2em; transform: none; font-style: italic; color: var(--violet); }
.logo::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--violet); margin: 12px 0 0 4px; animation: pop .6s var(--spring) .3s both; }
.icon-btn, .search-btn { height: 40px; border-radius: 12px; background: transparent; border: 1px solid var(--line); transition: border-color .2s, background .2s, transform .25s var(--spring); }
.icon-btn { width: 40px; } .search-btn { padding: 0 14px; min-width: 220px; }
.icon-btn:hover, .search-btn:hover { transform: translateY(-2px); box-shadow: none; border-color: var(--ink); background: var(--card); }
.icon-btn:active, .search-btn:active { transform: scale(.94); }
.top-actions .btn img { display: block; width: 20px; height: 20px; border-radius: 6px; }
.dock { background: var(--ink); border-radius: 22px; padding: 6px; gap: 2px; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .55); animation: dockin .7s var(--ease) .25s both; }
.dock a { height: 44px; border-radius: 16px; opacity: .7; transition: background .2s, opacity .2s, transform .3s var(--spring), color .2s; }
.dock a:hover { opacity: 1; background: color-mix(in srgb, var(--paper) 14%, transparent); transform: translateY(-3px); }
.dock a[aria-current="page"] { background: var(--accent); color: #14122b; opacity: 1; }
.dock a[aria-current="page"] .i { animation: pop .5s var(--spring) both; }

/* ---- tombol, chip, input ---- */
.btn { border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; box-shadow: none; transition: transform .25s var(--spring), background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .4); }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--accent); color: #14122b; border-color: #14122b; }
.btn.primary:hover { box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--violet) 70%, transparent); }
.top-actions .btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip { border-radius: var(--pill); border: 1px solid var(--line); background: transparent; font-weight: 500; transition: transform .25s var(--spring), background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: none; }
.chip[aria-pressed="true"] { background: var(--violet); color: #fff; border-color: var(--violet); animation: pop .35s var(--spring); }
.input, .select { border-radius: 12px; border: 1px solid var(--line); background: var(--card); transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 25%, transparent); outline: none; }

/* ---- kepala halaman: judul raksasa + garis aksen ---- */
.hero-block { position: relative; background: var(--page); color: #14122b; border-radius: 32px; padding: clamp(30px, 5vw, 60px); margin: 8px 0 30px; min-height: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; overflow: hidden; isolation: isolate; }
.hero-block::before, .hero-block::after, .hb-glyph, .hb-covers { display: none !important; }
.hero-block h1 { font-size: clamp(48px, 8vw, 104px); line-height: .92; color: #14122b; position: relative; padding-bottom: 14px; }
.hero-block h1::after { content: ""; position: absolute; left: 0; bottom: 0; height: 6px; width: 90px; border-radius: 6px; background: #14122b; transform-origin: left; animation: sweep .9s var(--ease) .3s both; }
.hero-block .lead { margin-top: 14px; color: rgba(20,18,43,.75); font-size: 16px; font-weight: 500; max-width: 560px; }
.hero-block .lead::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #14122b; margin-right: 10px; }
.hb-text { max-width: none; } .hb-side .btn { background: var(--card) !important; color: var(--ink) !important; border-color: var(--line) !important; }

/* ---- kartu: sorotan mengikuti kursor + angkat ---- */
.panel, .pcard, .vcard, .gcard, .wr-tile, .champ, .rcard, .sitem, .apanel, .gi-wrap, .stat { border-radius: var(--r); background-color: var(--card); border: 1px solid var(--line); box-shadow: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s; }
.panel, .pcard, .vcard, .wr-tile, .rcard, .sitem, .stat { background-image: radial-gradient(280px circle at var(--mx, -400px) var(--my, -400px), color-mix(in srgb, var(--violet) 18%, transparent), transparent 62%); }
.vcard:hover, .gcard:hover, .pcard:hover, .rcard:hover, .wr-tile:hover { transform: translateY(-5px); border-color: var(--violet); box-shadow: 0 22px 44px -24px rgba(0, 0, 0, .5); }
.vcard .thumb img, .vcard img { transition: transform .6s var(--ease); } .vcard:hover .thumb img, .vcard:hover img { transform: scale(1.06); }
.gcard { background: none; border: 0; } .gcard:hover { box-shadow: none; border: 0; }
.gcard .gcover { transition: transform .45s var(--spring), box-shadow .35s var(--ease); }
.gcard:hover .gcover { transform: translateY(-8px) rotate(-1.4deg) scale(1.03); box-shadow: 0 26px 40px -20px rgba(0, 0, 0, .6); }
.thumb, .gcover, .pic, .mg-pic { border-radius: 12px; }
.pill, .n, .tag { font-weight: 600; }

/* ---- beranda: sorotan gelap bergerak, sidebar pindah ke kiri ---- */
.feat { position: relative; overflow: hidden; background: #100f2e; color: #f4f1ea; border: 0; border-radius: 28px; padding: clamp(24px, 4vw, 52px); gap: clamp(22px, 4vw, 56px); grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); isolation: isolate; }
.feat::before, .feat::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.feat::before { width: 420px; height: 420px; left: -90px; bottom: -160px; background: #ff4fa3; opacity: .45; animation: drift 14s ease-in-out infinite; }
.feat::after { width: 380px; height: 380px; right: -80px; top: -140px; background: #7a5cff; opacity: .6; animation: drift2 17s ease-in-out infinite; }
.feat .feat-thumb { order: -1; }
.feat h1, .feat h2 { color: #fff; font-family: var(--font-serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 62px); line-height: .98; }
.feat .meta { color: rgba(255, 255, 255, .7); } .feat .badge { background: var(--accent); color: #14122b; border: 0; }
.feat .badge i { background: #14122b; animation: pop 1.6s ease-in-out infinite; }
.feat .btn { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.feat .btn.primary { background: var(--accent); color: #14122b; border-color: #14122b; }
.feat-thumb { border: 0; border-radius: 22px; box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .8); transform: rotate(-2.2deg) !important; transition: transform .5s var(--spring) !important; }
.feat-thumb:hover { transform: rotate(0) scale(1.03) !important; }
.layout { grid-template-columns: 300px minmax(0, 1fr); gap: 36px; }
.layout > aside { order: -1; }
.layout .grid.vids.c2 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid.games.home { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 4px 26px; margin: 0 -4px; scrollbar-width: thin; }
.grid.games.home > * { flex: 0 0 188px; scroll-snap-align: start; }
.wr-banner { border: 0; border-radius: 22px; background: linear-gradient(100deg, #7a5cff 0%, #ff6fb5 100%); color: #fff; padding: 18px 28px; }
.wr-banner b { font-family: var(--font-serif); font-weight: 400; font-size: 32px; } .wr-banner span { color: rgba(255, 255, 255, .85); }
.wr-banner::after { display: none; } .wr-banner:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -16px #7a5cff; }
.wr-banner .btn.primary { background: var(--accent); color: #14122b; border-color: #14122b; }

/* ---- hero detail (game/partner) ---- */
.hero { position: relative; overflow: hidden; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; right: -100px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: var(--page); opacity: .5; filter: blur(60px); animation: drift 15s ease-in-out infinite; }
.hero::after { display: none; }
.hero h1 { color: var(--ink); font-size: clamp(36px, 5vw, 68px); line-height: .98; }
.hero p.desc, .hero .info > div:first-child { color: var(--muted); opacity: 1; font-weight: 400; }
.hero .tag { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); border: 0; font-weight: 500; }
.hero .tag.accent { background: var(--accent); color: #14122b; }
.hero .btn:not(.primary) { background: var(--card); color: var(--ink); border-color: var(--line); } .hero .btn.primary { background: var(--accent); color: #14122b; border-color: #14122b; }
.hero .btn:hover { box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .4); }
.hero .cover { transform: rotate(-3deg); box-shadow: 0 22px 36px -18px rgba(0, 0, 0, .55); border-radius: 16px; transition: transform .5s var(--spring); } .hero .cover:hover { transform: rotate(0) scale(1.05); }
.avatar.xl { border-color: var(--line); box-shadow: none; background: var(--card); color: var(--ink); }
.stat.hl { background: var(--accent); background-image: none; color: #14122b; } .stat.hl .lbl, .stat.hl .rk { color: rgba(20, 18, 43, .7); }
.stat .rk { width: auto; height: auto; min-width: 0; border: 0; border-radius: 0; display: block; background: none; font-size: 12.5px; font-weight: 500; }
.stat .val { font-weight: 700; }
.row.top .bar i { box-shadow: none; background: var(--accent); } .bar i { transition: width 1s var(--ease); }
.hb-covers img { box-shadow: none; }

/* ---- wrapped & rating ---- */
.wr-hero { border: 0; border-radius: 28px; background: #100f2e; isolation: isolate; }
.wr-hero::before { z-index: -1; width: 460px; height: 460px; right: -100px; top: -140px; background: #7a5cff; opacity: .7; filter: blur(60px); animation: drift 14s ease-in-out infinite; }
.wr-hero::after { display: block; z-index: -1; width: 360px; height: 360px; right: 200px; bottom: -200px; background: var(--accent); opacity: .35; filter: blur(70px); animation: drift2 18s ease-in-out infinite; }
.wr-hero h1 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.03em; line-height: .9; font-size: clamp(72px, 15vw, 190px); }
.wr-hero small { color: var(--accent); }
.wr-tile.hl { background: var(--accent); background-image: none; color: #14122b; } .wr-tile.hl small { color: rgba(20, 18, 43, .7); }
.wr-tile b { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.01em; font-size: clamp(32px, 4vw, 52px); }
.wr-m i { transform-origin: bottom; animation: rise .9s var(--ease) both; } .wr-m.top i { background: var(--accent); outline: 0; }
.rspot { border: 0; border-radius: 28px; } .rspot::before { opacity: .5; filter: blur(50px); animation: drift 14s ease-in-out infinite; }
.rspot:hover { transform: none; box-shadow: none; }
.rs-m h2 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.01em; font-size: clamp(32px, 4vw, 52px); }
.rs-l .mg-pic, .rd-top .mg-pic { box-shadow: 0 20px 30px -16px rgba(0, 0, 0, .7); border-color: transparent; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 38px 0 120px; color: var(--muted); font-size: 13.5px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; align-items: flex-start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; } .foot a:hover { color: var(--violet); }
.foot b { font-family: var(--font-serif); font-weight: 400; font-size: 24px; color: var(--ink); display: block; margin-bottom: 6px; }
main { padding-top: 12px; }

/* ---- mobile ---- */
@media (max-width: 880px) {
  .topbar { backdrop-filter: none; background: var(--paper); } .topbar .wrap { height: 58px; }
  .search-btn { min-width: 0; width: 40px; padding: 0; justify-content: center; } .search-btn span, .search-btn kbd { display: none; }
  .top-actions .btn { display: none; }
  .dock { max-width: calc(100vw - 20px); overflow-x: auto; scrollbar-width: none; } .dock a span { display: none; } .dock a { padding: 0 14px; }
  .layout { grid-template-columns: 1fr; } .layout > aside { order: 0; }
  .layout .grid.vids.c2 { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr; } .feat .feat-thumb { order: 0; }
  .hero-block { padding: 30px 0 18px; flex-direction: column; align-items: flex-start; }
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body:not([data-page="admin"]):not([data-page="streamer"]) .panel p.sub { display: none; }
.hero-block .lead:empty { display: none; }

/* daftar game kecil (halaman partner): hanya sampul mini + nama */
.gplay.mini { display: flex; flex-wrap: wrap; gap: 18px 14px; }
.gplay.mini .gm { display: block; transition: transform .3s var(--spring); }
.gplay.mini .gm:hover { transform: translateY(-5px) rotate(-1.5deg); }
.gplay.mini .glogo { width: 76px; }
.gplay.mini .glogo .mg-pic { width: 76px; border-radius: 12px; }
.gplay.mini .glogo .mg-n { width: 76px; font-size: 11.5px; color: var(--ink); }
.gplay.mini { margin-bottom: 28px; }

/* logo Napverse */
.logo { gap: 10px; }
.logo::after { display: none; }
.logo-mark { width: 44px; height: 44px; padding: 0; border-radius: 0; background: none; box-shadow: none; object-fit: contain; transition: transform .5s var(--spring); filter: drop-shadow(0 4px 10px rgba(122, 92, 255, .4)); }
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.1); }
.logo span { display: inline-flex; align-items: baseline; }
.logo em { padding: 0; }

/* rating: warna lebih kalem dan serasi (tidak menyilaukan) */
.t-s { --tc: #e4c46a; } .t-a { --tc: #74c7a8; } .t-b { --tc: #8e9ff0; } .t-c { --tc: #e2a766; } .t-d { --tc: #dd8a80; }
.rspot { background: linear-gradient(135deg, #1d1a45 0%, #14122b 70%); border: 0; box-shadow: 0 24px 50px -30px rgba(20, 18, 43, .8); }
.rspot::before { width: 380px; height: 380px; left: -120px; top: -150px; opacity: .2; filter: blur(70px); }
.rspot .rs-crown { color: rgba(255, 255, 255, .7); }
.rspot .rs-tier { box-shadow: none; }
.rs-l .mg-pic, .rd-top .mg-pic { border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 18px 28px -14px rgba(0, 0, 0, .7); }
.rs-tags i, .rc-t i { background: rgba(255, 255, 255, .1); }
.rs-radar svg polygon { fill-opacity: .22 !important; stroke-width: 1.6 !important; }
.rspot .ring { color: rgba(255, 255, 255, .92); }
body[data-page="rating"], body[data-page="streamer"] { --page: #cfc8ff; }