/* ============================================================
   ARSIP HETHEREAU — database NTE, tampilan mengikuti UI in-game
   (latar arang halftone, pil krem bergaris tebal, aksen magenta)
   ============================================================ */
:root {
  --bg: #121214;
  --bg-2: #18181b;
  --panel: #202024;
  --panel-2: #29292e;
  --panel-3: #33333a;
  --edge: #050506;
  --text: #f1ede6;
  --text-2: #c9c4bb;
  --muted: #8f8b84;
  --cream: #ece6dd;
  --cream-2: #d8d0c4;
  --ink: #17171a;
  --ink-2: #4a4740;
  --pink: #ff3d86;
  --cyan: #33d6e8;
  --gold: #f1c044;
  --r: 16px;
  --r-lg: 24px;
  --display: "Unbounded", "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ring: 0 0 0 2px var(--edge), 0 0 0 3px rgba(255, 255, 255, 0.07);

  --el-cosmos: #f1c044; --el-anima: #34d39a; --el-incantation: #a978ff;
  --el-chaos: #ff4d64; --el-psyche: #4aa3ff; --el-lakshana: #ff8a3d;
  --q1: #8f949c; --q2: #3fc285; --q3: #4a9bff; --q4: #b06bff; --q5: #f5bd2e; --q6: #ff5252;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); overflow-x: clip; }
body {
  margin: 0; color: var(--text); font: 15px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.055) 1px, transparent 1.4px) 0 0 / 7px 7px,
    radial-gradient(120% 70% at 50% -10%, #2a2a31 0%, transparent 60%),
    linear-gradient(180deg, #19191c 0%, var(--bg) 40%, #0e0e10 100%);
  background-attachment: fixed;
  min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -0.01em; font-weight: 800; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cream); color: var(--ink); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
[hidden] { display: none !important; }
::selection { background: var(--pink); color: #fff; }

/* ---------------- header ---------------- */
.top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px;
  padding: 10px clamp(14px, 3vw, 30px); background: rgba(14, 14, 16, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--edge); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-stamp {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--cream); color: var(--ink); font: 800 0.72rem var(--display); letter-spacing: 0.02em;
  box-shadow: 0 0 0 3px var(--edge), 0 0 0 5px var(--pink);
}
.logo-text b { display: block; font: 800 0.98rem var(--display); letter-spacing: 0; text-transform: uppercase; }
.logo-text small { display: block; font: 500 0.62rem var(--mono); letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.top-nav { display: flex; gap: 4px; margin-left: auto; max-width: calc(100vw - 420px); overflow-x: auto; scrollbar-width: none; padding: 3px; }
.top-nav::-webkit-scrollbar { display: none; }
.top-nav a {
  flex: none; white-space: nowrap; text-decoration: none; padding: 6px 13px; border-radius: 999px; font-weight: 700; font-size: 0.82rem;
  color: var(--text-2); transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.top-nav a:hover { background: var(--panel-2); color: var(--text); }
.top-nav a.active { background: var(--cream); color: var(--ink); box-shadow: 0 0 0 2px var(--edge), 0 0 0 4px var(--pink); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.top-nav + .top-actions { margin-left: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 12px; justify-content: center;
  border-radius: 999px; border: 0; background: var(--panel-2); box-shadow: var(--ring); cursor: pointer; transition: background 0.2s, box-shadow 0.2s;
}
.icon-btn:hover { background: var(--panel-3); box-shadow: 0 0 0 2px var(--edge), 0 0 0 3px var(--pink); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.kbd { font: 700 0.6rem var(--mono); letter-spacing: 0.04em; padding: 3px 7px; border-radius: 999px; background: var(--bg); color: var(--muted); }
button.kbd { cursor: pointer; border: 0; }
@media (max-width: 1080px) { .top-nav { display: none; } .top-actions { margin-left: auto; } }
@media (max-width: 560px) { .search-open .kbd, .logo-text small { display: none; } .logo-text b { font-size: 0.86rem; } }

/* ---------------- drawer (menu) ---------------- */
.drawer, .search, .sheet { position: fixed; inset: 0; z-index: 60; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(5, 5, 6, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade 0.2s ease; }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 92vw); background: var(--bg-2); border-left: 3px solid var(--edge);
  display: flex; flex-direction: column; padding: 18px 20px 24px; overflow-y: auto; animation: slide-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer-nav { display: flex; flex-direction: column; gap: 6px; }
.drawer-nav a {
  display: flex; align-items: center; gap: 14px; padding: 9px 16px; text-decoration: none; border-radius: 999px;
  background: var(--panel); box-shadow: var(--ring); font: 800 1rem var(--display); text-transform: uppercase; transition: background 0.2s, box-shadow 0.2s;
}
.drawer-nav a i { font: 600 0.68rem var(--mono); color: var(--muted); font-style: normal; }
.drawer-nav a:hover { background: var(--panel-2); }
.drawer-nav a.active { background: var(--cream); color: var(--ink); box-shadow: 0 0 0 2px var(--edge), 0 0 0 4px var(--pink); }
.drawer-nav a.active i { color: var(--ink-2); }
.drawer-extra { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.drawer-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 20px; text-decoration: none;
  background: var(--cream); color: var(--ink); box-shadow: 0 0 0 3px var(--edge); transition: transform 0.2s;
}
.drawer-card:hover { transform: translateY(-2px); }
.drawer-card img { width: 60px; height: auto; flex: none; }
.drawer-card b { display: block; font-family: var(--display); font-size: 0.9rem; }
.drawer-card small { display: block; color: var(--ink-2); font-size: 0.76rem; line-height: 1.35; }
.drawer-card svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; margin-left: auto; }
.drawer-link { text-decoration: none; padding: 10px 16px; border-radius: 999px; border: 2px dashed var(--panel-3); font-weight: 700; font-size: 0.88rem; }
.drawer-link:hover { border-color: var(--pink); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ---------------- pencarian ---------------- */
.search-box {
  position: relative; margin: 10vh auto 0; width: min(680px, calc(100% - 32px)); background: var(--bg-2); border-radius: var(--r-lg);
  box-shadow: 0 0 0 3px var(--edge), 0 0 0 5px var(--pink), 0 30px 80px -20px #000; overflow: hidden; animation: pop 0.25s ease;
}
.search-field { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 2px solid var(--edge); background: var(--panel); }
.search-field svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; }
.search-field input { flex: 1; border: 0; background: transparent; font: 600 1.02rem var(--body); color: var(--text); outline: none; min-width: 0; }
.search-results { max-height: 60vh; overflow-y: auto; padding: 8px; }
.search-results .hint { padding: 22px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.sr-group { padding: 10px 10px 4px; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-radius: 999px; text-decoration: none; cursor: pointer; }
.sr-item:hover, .sr-item.sel { background: var(--cream); color: var(--ink); }
.sr-item:hover small, .sr-item.sel small { color: var(--ink-2); }
.sr-item img { width: 38px; height: 38px; object-fit: contain; border-radius: 50%; background: var(--panel-3); flex: none; }
.sr-item b { display: block; font-weight: 700; font-size: 0.93rem; }
.sr-item small { color: var(--muted); font-size: 0.76rem; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

/* ---------------- layout umum ---------------- */
main:focus, main:focus-visible { outline: none; }
main { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: clamp(18px, 3vw, 34px) clamp(14px, 3vw, 30px) 60px; outline: none; }
.page-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 18px; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: repeating-linear-gradient(90deg, var(--panel-3) 0 10px, transparent 10px 16px); }
.page-head h1 { overflow-wrap: anywhere; font-size: clamp(1.7rem, 5.6vw, 3.6rem); text-transform: uppercase; letter-spacing: -0.02em; }
.page-head p { color: var(--text-2); max-width: 600px; margin-top: 8px; }
.crumb { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--pink); }
.count-tag { font: 800 0.74rem var(--display); padding: 8px 14px; border-radius: 999px; background: var(--cream); color: var(--ink); box-shadow: 0 0 0 2px var(--edge); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; padding: 8px; border-radius: 999px; background: var(--panel); box-shadow: var(--ring); }
.filter-input {
  flex: 1 1 220px; min-width: 0; height: 40px; border-radius: 999px; border: 0; background: var(--bg); padding: 0 18px;
  font: 600 0.9rem var(--body); color: var(--text); box-shadow: inset 0 0 0 2px var(--edge);
}
.filter-input::placeholder { color: var(--muted); }
.filter-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--pink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 0;
  background: var(--panel-2); box-shadow: inset 0 0 0 2px var(--edge); font-weight: 700; font-size: 0.82rem; cursor: pointer; white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.chip:hover { background: var(--panel-3); }
.chip[aria-pressed="true"] { background: var(--cream); color: var(--ink); box-shadow: inset 0 0 0 2px var(--edge), 0 0 0 2px var(--pink); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); box-shadow: 0 0 0 2px var(--edge); }
.chip img { width: 20px; height: 20px; object-fit: contain; }
.chip-sep { width: 2px; height: 22px; background: var(--edge); margin: 0 2px; }
@media (max-width: 760px) { .toolbar { border-radius: 22px; } }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 2px dashed var(--panel-3); border-radius: var(--r-lg); }

.el-cosmos { --c: var(--el-cosmos); } .el-anima { --c: var(--el-anima); } .el-incantation { --c: var(--el-incantation); }
.el-chaos { --c: var(--el-chaos); } .el-psyche { --c: var(--el-psyche); } .el-lakshana { --c: var(--el-lakshana); }
.q1 { --q: var(--q1); } .q2 { --q: var(--q2); } .q3 { --q: var(--q3); } .q4 { --q: var(--q4); } .q5 { --q: var(--q5); } .q6 { --q: var(--q6); }

/* ---------------- tombol ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font: 800 0.86rem var(--display);
  text-transform: uppercase; text-decoration: none; border: 0; background: var(--cream); color: var(--ink); cursor: pointer;
  box-shadow: 0 0 0 3px var(--edge); transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--edge), 0 0 0 5px var(--pink); }
.btn.ghost { background: var(--panel-2); color: var(--text); }

/* ---------------- beranda ---------------- */
.home-hero {
  position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(20px, 4vw, 48px); align-items: center; margin-bottom: 36px;
  padding: clamp(24px, 4vw, 46px); border-radius: 32px; overflow: hidden;
  background: radial-gradient(90% 120% at 85% 30%, rgba(255, 61, 134, 0.18), transparent 60%), var(--panel);
  box-shadow: 0 0 0 3px var(--edge), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.home-hero::before {
  content: "BUREAU OF ANOMALY CONTROL · ARSIP HETHEREAU · BUREAU OF ANOMALY CONTROL · ARSIP HETHEREAU · ";
  position: absolute; left: 0; right: 0; top: 0; padding: 6px 0; white-space: nowrap; overflow: hidden;
  font: 700 0.6rem var(--mono); letter-spacing: 0.24em; color: var(--ink); background: var(--cyan); border-bottom: 3px solid var(--edge);
}
.home-hero > div:first-child > .mono { display: inline-block; margin-top: 16px; }
.home-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.3rem); margin-top: 14px; text-transform: uppercase; letter-spacing: -0.03em; }
.home-hero h1 em { font-style: normal; color: var(--pink); }
.home-hero p { color: var(--text-2); font-size: 1.02rem; margin-top: 16px; max-width: 520px; }
.home-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.home-stats { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.home-stats div { padding: 8px 16px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--edge); }
.home-stats div b { font: 800 1.1rem var(--display); margin-right: 6px; }
.home-stats div span { font: 600 0.66rem var(--mono); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.collage { position: relative; height: clamp(300px, 36vw, 440px); }
.polaroid {
  position: absolute; width: 54%; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: #f4f1ec; padding: 9px 9px 34px;
  box-shadow: 0 0 0 3px var(--edge), 0 24px 40px -18px #000; text-decoration: none; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; background: linear-gradient(160deg, var(--c, var(--pink)), #2a2a2f); }
.polaroid span { position: absolute; left: 10px; right: 10px; bottom: 8px; font: 800 0.66rem var(--display); color: var(--ink); text-transform: uppercase; }
.polaroid::after { content: ""; position: absolute; right: 10px; bottom: 11px; width: 54px; height: 10px; background: repeating-linear-gradient(90deg, #8d8a84 0 1px, transparent 1px 3px); }
.polaroid:nth-child(1) { left: 0; top: 8%; transform: rotate(-8deg); }
.polaroid:nth-child(2) { left: 23%; top: 0; transform: rotate(3deg); z-index: 2; }
.polaroid:nth-child(3) { right: 0; top: 14%; transform: rotate(9deg); }
.polaroid:hover { transform: rotate(0) translateY(-10px) scale(1.04); z-index: 5; }

.section-title { display: flex; align-items: center; gap: 12px; margin: 34px 0 16px; }
.section-title h2 { font-size: clamp(1.1rem, 2.4vw, 1.5rem); text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.section-title h2::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px var(--edge); }
.section-title a { margin-left: auto; font-weight: 800; font-size: 0.84rem; text-decoration: none; padding: 6px 14px; border-radius: 999px; background: var(--panel-2); box-shadow: var(--ring); }
.section-title a:hover { background: var(--cream); color: var(--ink); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; min-height: 150px; padding: 18px 20px; border-radius: 26px; text-decoration: none;
  background: var(--panel); box-shadow: var(--ring); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.cat-card:hover { transform: translateY(-4px); background: var(--cream); color: var(--ink); box-shadow: 0 0 0 3px var(--edge), 0 0 0 5px var(--pink); }
.cat-card:hover p, .cat-card:hover i { color: var(--ink-2); }
.cat-card i { font: 600 0.68rem var(--mono); color: var(--muted); font-style: normal; }
.cat-card h3 { font-size: 1.15rem; margin-top: auto; text-transform: uppercase; }
.cat-card p { font-size: 0.8rem; color: var(--muted); margin-top: 4px; padding-right: 40px; }
.cat-card .cat-thumbs { position: absolute; right: 14px; top: 14px; display: flex; }
.cat-card .cat-thumbs img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; background: var(--panel-3); box-shadow: 0 0 0 2px var(--edge); margin-left: -14px; }
.cat-card .num { position: absolute; right: 18px; bottom: 12px; font: 800 1.9rem var(--display); color: rgba(255, 255, 255, 0.09); }
.cat-card:hover .num { color: rgba(0, 0, 0, 0.12); }

/* ---------------- kartu esper ---------------- */
.esper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.esper-card {
  position: relative; display: block; border-radius: 20px; overflow: hidden; text-decoration: none; background: var(--panel);
  box-shadow: var(--ring); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
}
.esper-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 3px var(--edge), 0 0 0 5px var(--c, var(--pink)); }
.esper-art { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: radial-gradient(90% 70% at 50% 20%, color-mix(in srgb, var(--c) 55%, var(--panel-2)) 0%, var(--panel-2) 75%); }
.esper-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.25) 1px, transparent 1.3px) 0 0 / 6px 6px; pointer-events: none; }
.esper-art img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; transition: transform 0.5s ease; }
.esper-card:hover .esper-art img { transform: scale(1.06); }
.esper-meta { padding: 10px 14px 12px; border-top: 3px solid var(--edge); }
.esper-meta b { display: block; font: 800 0.98rem var(--display); text-transform: uppercase; }
.esper-meta small { display: flex; gap: 6px; align-items: center; font: 600 0.64rem var(--mono); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.esper-meta small .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.stamp {
  position: absolute; z-index: 2; right: 10px; top: 10px; width: 38px; height: 38px; display: grid; place-items: center;
  font: 800 1rem var(--display); color: var(--ink); background: var(--rank); border-radius: 50%; box-shadow: 0 0 0 3px var(--edge);
}
.rank-S { --rank: var(--gold); } .rank-A { --rank: #c39bff; }
.idcode { position: absolute; z-index: 2; left: 10px; top: 12px; font: 700 0.58rem var(--mono); letter-spacing: 0.1em; padding: 3px 8px; border-radius: 999px; background: var(--edge); color: var(--text); }

/* ---------------- detail esper ---------------- */
.dossier { display: grid; grid-template-columns: minmax(280px, 0.85fr) 1.15fr; gap: clamp(18px, 3vw, 40px); align-items: start; }
.dossier-art {
  position: sticky; top: 84px; border-radius: 30px; overflow: hidden; aspect-ratio: 3 / 4; box-shadow: 0 0 0 3px var(--edge), 0 0 0 5px var(--c, var(--pink));
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c) 60%, var(--panel)) 0%, var(--panel) 70%);
}
.dossier-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.dossier-art .stamp { width: 60px; height: 60px; font-size: 1.6rem; right: 18px; top: 18px; }
.dossier-art .idcode { top: 20px; left: 18px; font-size: 0.68rem; }
.dossier-head h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); text-transform: uppercase; letter-spacing: -0.03em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 0.8rem;
  background: var(--panel-2); box-shadow: inset 0 0 0 2px var(--edge);
}
.tag .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.tag img { width: 18px; height: 18px; object-fit: contain; }
.lede { font-size: 1.02rem; color: var(--text-2); border-left: 4px solid var(--c, var(--pink)); padding: 4px 0 4px 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 22px 0 6px; }
.fact { padding: 10px 16px; border-radius: 18px; background: var(--cream); color: var(--ink); box-shadow: 0 0 0 2px var(--edge); }
.fact span { display: block; font: 600 0.62rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.fact b { display: block; font-weight: 800; font-size: 0.93rem; margin-top: 2px; }

.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 26px 0 16px; padding: 6px; border-radius: 999px; background: var(--panel); box-shadow: var(--ring); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; height: 38px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; font: 800 0.78rem var(--display); text-transform: uppercase; cursor: pointer; color: var(--text-2); }
.tab:hover { background: var(--panel-2); }
.tab[aria-selected="true"] { background: var(--cream); color: var(--ink); box-shadow: 0 0 0 2px var(--edge), 0 0 0 4px var(--pink); }
.tab-panel { animation: fade 0.25s ease; }

.group-label { display: flex; align-items: center; gap: 10px; margin: 24px 0 10px; font: 800 0.74rem var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
.group-label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--edge); }
.group-label::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--panel-3) 0 6px, transparent 6px 10px); }
.entry { padding: 16px 20px; border-radius: 22px; background: var(--panel); box-shadow: var(--ring); margin-bottom: 10px; }
.entry h4 { font-size: 0.98rem; display: flex; align-items: center; gap: 10px; text-transform: uppercase; }
.entry h4 img { width: 38px; height: 38px; object-fit: contain; border-radius: 50%; background: var(--panel-3); box-shadow: 0 0 0 2px var(--edge); }
.entry h4 .lv { font: 800 0.66rem var(--display); padding: 3px 9px; border-radius: 999px; background: var(--cream); color: var(--ink); }
.entry .txt { margin-top: 8px; color: var(--text-2); white-space: pre-line; }
.entry .quote { margin-top: 10px; font-size: 0.86rem; color: var(--muted); font-style: italic; border-top: 2px dashed var(--panel-3); padding-top: 8px; }
.txt b { color: var(--text); font-weight: 800; background: color-mix(in srgb, var(--c, var(--pink)) 26%, transparent); padding: 0 4px; border-radius: 5px; }
.story { padding: 20px 22px; border-radius: 22px; background: var(--panel); box-shadow: var(--ring); margin-bottom: 12px; position: relative; }
.story::before { content: attr(data-n); position: absolute; right: 18px; top: 16px; font: 700 0.64rem var(--mono); color: var(--muted); }
.story h4 { font-size: 1.02rem; margin-bottom: 8px; padding-right: 60px; text-transform: uppercase; }
.story .txt { white-space: pre-line; color: var(--text-2); }

/* ---------------- grid item / arc ---------------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.tile {
  position: relative; display: flex; flex-direction: column; text-decoration: none; border-radius: 18px; overflow: hidden; cursor: pointer; text-align: left;
  background: var(--panel); border: 0; box-shadow: var(--ring); padding: 0; transition: transform 0.25s, box-shadow 0.25s;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--edge), 0 0 0 5px var(--q, var(--pink)); }
.tile-img { position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 14px; background: radial-gradient(85% 85% at 50% 25%, color-mix(in srgb, var(--q, var(--muted)) 45%, var(--panel-2)) 0%, var(--panel-2) 75%); }
.tile-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--q, var(--panel-3)); }
.tile-img img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35)); transition: transform 0.35s; }
.tile:hover .tile-img img { transform: scale(1.08) rotate(-2deg); }
.tile-body { padding: 9px 12px 11px; flex: 1; }
.tile-body b { display: block; font-size: 0.84rem; font-weight: 800; line-height: 1.3; }
.tile-body small { display: block; color: var(--muted); font-size: 0.7rem; margin-top: 2px; }
.stars { color: var(--q, var(--gold)); font-size: 0.72rem; letter-spacing: 1px; }
.wide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.wcard {
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; text-decoration: none; background: var(--panel); border: 0;
  box-shadow: var(--ring); cursor: pointer; text-align: left; padding: 0; transition: transform 0.25s, box-shadow 0.25s;
}
.wcard:hover { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--edge), 0 0 0 5px var(--pink); }
.wcard-img { aspect-ratio: 16 / 9; background: var(--panel-2); display: grid; place-items: center; overflow: hidden; border-bottom: 3px solid var(--edge); }
.wcard-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.wcard-img.cover img { object-fit: cover; padding: 0; }
.wcard-body { padding: 14px 18px 16px; }
.wcard-body b { display: block; font: 800 0.98rem var(--display); text-transform: uppercase; }
.wcard-body small { font: 600 0.66rem var(--mono); color: var(--pink); letter-spacing: 0.08em; text-transform: uppercase; }
.wcard-body p { color: var(--text-2); font-size: 0.85rem; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------- detail arc ---------------- */
.arc-detail { display: grid; grid-template-columns: minmax(260px, 0.8fr) 1.2fr; gap: clamp(18px, 3vw, 40px); align-items: start; }
.arc-card-img {
  position: sticky; top: 84px; border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 3px var(--edge), 0 0 0 5px var(--q, var(--pink));
  background: radial-gradient(100% 70% at 50% 0%, color-mix(in srgb, var(--q) 50%, var(--panel)) 0%, var(--panel) 75%);
}
.arc-card-img img { width: 100%; height: auto; }
.star-pick { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--edge); margin: 12px 0 10px; }
.star-pick button { height: 32px; min-width: 46px; border-radius: 999px; border: 0; background: transparent; font: 800 0.8rem var(--display); cursor: pointer; color: var(--text-2); }
.star-pick button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.val { color: var(--ink); font-weight: 800; background: var(--gold); padding: 0 5px; border-radius: 5px; }

/* ---------------- item ---------------- */
.item-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.cat-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 28px; background: var(--panel); box-shadow: var(--ring); }
.cat-side button {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--panel-2);
  box-shadow: inset 0 0 0 2px var(--edge); font-weight: 700; font-size: 0.85rem; cursor: pointer; text-align: left; color: var(--text-2);
}
.cat-side button span { font: 600 0.68rem var(--mono); color: var(--muted); }
.cat-side button:hover { background: var(--panel-3); }
.cat-side button[aria-pressed="true"] { background: var(--cream); color: var(--ink); box-shadow: inset 0 0 0 2px var(--edge), 0 0 0 2px var(--pink); }
.cat-side button[aria-pressed="true"] span { color: var(--ink-2); }
@media (max-width: 860px) {
  .item-layout { grid-template-columns: minmax(0, 1fr); }
  .cat-side { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; border-radius: 999px; }
  .cat-side button { flex: none; }
}
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.set-card { padding: 18px 20px; border-radius: 26px; background: var(--panel); box-shadow: var(--ring); }
.set-card header { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.set-card header img { width: 54px; height: 54px; object-fit: contain; border-radius: 50%; background: var(--panel-3); box-shadow: 0 0 0 2px var(--edge); }
.set-card h3 { font-size: 0.98rem; text-transform: uppercase; }
.bonus { display: flex; gap: 10px; padding: 10px 0; border-top: 2px dashed var(--panel-3); }
.bonus i { flex: none; font: 800 0.64rem var(--display); font-style: normal; padding: 4px 10px; border-radius: 999px; height: fit-content; background: var(--cream); color: var(--ink); }
.bonus .txt { font-size: 0.9rem; color: var(--text-2); }

/* ---------------- panel detail ---------------- */
.sheet-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(500px, 100vw); background: var(--bg-2); border-left: 3px solid var(--edge);
  overflow-y: auto; animation: slide-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet-close { position: absolute; right: 14px; top: 14px; z-index: 3; }
.sheet-hero { position: relative; display: grid; place-items: center; padding: 54px 30px 28px; background: radial-gradient(80% 80% at 50% 25%, color-mix(in srgb, var(--q, var(--pink)) 40%, var(--panel)) 0%, var(--panel) 80%); border-bottom: 3px solid var(--edge); }
.sheet-hero:empty { display: none; }
.sheet-hero img { max-width: 200px; max-height: 200px; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.4)); }
.sheet-hero.cover { padding: 0; }
.sheet-hero.cover img { max-width: none; max-height: none; width: 100%; filter: none; }
.sheet-hero.photo { padding: 54px 40px 30px; }
.sheet-hero.photo img { max-width: 300px; max-height: none; width: 100%; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.55)); }
.sheet-body { padding: 20px 24px 30px; }
.sheet-body h2 { font-size: 1.5rem; text-transform: uppercase; margin-top: 6px; }
.sheet-body .txt { color: var(--text-2); margin-top: 12px; white-space: pre-line; }
.sheet-body .use { margin-top: 14px; padding: 12px 18px; border-radius: 20px; background: var(--cream); color: var(--ink); box-shadow: 0 0 0 2px var(--edge); font-size: 0.9rem; }
.sheet-body .use b { color: var(--ink); background: none; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }
.sheet-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* ---------------- PENCAPAIAN (baris pil krem seperti di game) ---------------- */
.ach-layout { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; align-items: start; }
.ach-rail { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 12px 0; border-radius: 999px; background: var(--panel); box-shadow: var(--ring); }
.ach-rail button {
  position: relative; width: 64px; height: 64px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: none;
  transition: transform 0.2s;
}
.ach-rail button img { width: 100%; height: 100%; }
.ach-rail button .on { display: none; }
.ach-rail button[aria-pressed="true"] .on { display: block; }
.ach-rail button[aria-pressed="true"] .off { display: none; }
.ach-rail button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--edge), 0 0 0 5px var(--pink); }
.ach-rail button:hover { transform: scale(1.06); }
.ach-rail button span { position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.2s;
  font: 800 0.72rem var(--display); text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--cream); color: var(--ink); box-shadow: 0 0 0 2px var(--edge); z-index: 5; }
.ach-rail button:hover span { opacity: 1; }
.ach-rail .all { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink); font: 800 0.62rem var(--display); box-shadow: 0 0 0 3px var(--edge); }
.ach-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 14px; }
.ach-head h2 { font-size: 1.3rem; text-transform: uppercase; }
.ach-head .tally { margin-left: auto; display: flex; gap: 6px; }
.ach-head .tally span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--panel-2); box-shadow: inset 0 0 0 2px var(--edge); font: 800 0.72rem var(--display); }
.ach-head .tally i { width: 12px; height: 12px; border-radius: 50%; background: var(--m); box-shadow: 0 0 0 2px var(--edge); }
.medal-1 { --m: #c07a4a; } .medal-2 { --m: #d6d6d6; } .medal-3 { --m: #f1c044; }
.ach-list { display: flex; flex-direction: column; gap: 12px; }
.ach-row {
  position: relative; display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 16px; min-height: 84px;
  padding: 8px 10px 8px 8px; border-radius: 999px; text-align: left; border: 0; cursor: default;
  background: linear-gradient(180deg, #f3eee7, var(--cream-2)); color: var(--ink);
  box-shadow: 0 0 0 3px var(--edge), inset 0 -3px 0 rgba(0, 0, 0, 0.06);
}
.ach-row:hover { box-shadow: 0 0 0 3px var(--edge), 0 0 0 5px var(--pink); }
.ach-row .medal { width: 70px; height: 70px; border-radius: 50%; }
.ach-row .medal img { width: 100%; height: 100%; }
.ach-row b { display: block; font: 800 0.95rem var(--display); text-transform: uppercase; letter-spacing: -0.01em; }
.ach-row p { font-size: 0.86rem; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.ach-row .reward {
  display: flex; align-items: center; gap: 8px; padding: 0 22px 0 20px; min-height: 56px; border-left: 3px dashed rgba(23, 23, 26, 0.55);
  font: 800 0.86rem var(--display); white-space: nowrap;
}
.ach-row .reward img { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; background: var(--ink); padding: 3px; box-shadow: 0 0 0 2px var(--edge); }
.ach-row .reward small { display: block; font: 600 0.62rem var(--mono); color: var(--ink-2); letter-spacing: 0.04em; }
@media (max-width: 760px) {
  .ach-layout { grid-template-columns: minmax(0, 1fr); }
  .ach-rail { position: static; flex-direction: row; overflow-x: auto; padding: 8px 12px; justify-content: flex-start; scrollbar-width: none; }
  .ach-rail button, .ach-rail .all { flex: none; width: 52px; height: 52px; }
  .ach-rail button span { display: none; }
  .ach-row { grid-template-columns: 56px 1fr; border-radius: 34px; padding: 10px 14px 10px 10px; }
  .ach-row .medal { width: 56px; height: 56px; }
  .ach-row .reward { grid-column: 2; border-left: 0; border-top: 2px dashed rgba(23, 23, 26, 0.4); padding: 6px 0 0; min-height: 0; }
}

/* ---------------- CERITA (banner bab seperti menu Plot Review) ---------------- */
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.chapter {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; border: 0; padding: 0; cursor: pointer; text-align: left;
  background: var(--panel-2); box-shadow: var(--ring); transition: transform 0.3s, box-shadow 0.3s;
}
.chapter img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.chapter::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 12, 0) 30%, rgba(10, 10, 12, 0.92) 100%); }
.chapter:hover { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--edge), 0 0 0 5px var(--pink); }
.chapter:hover img { transform: scale(1.05); }
.chapter .cap { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; color: #fff; }
.chapter .cap small { display: inline-block; font: 800 0.6rem var(--display); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--pink); color: #fff; box-shadow: 0 0 0 2px var(--edge); }
.chapter .cap b { display: block; margin-top: 8px; font: 800 1.15rem var(--display); text-transform: uppercase; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.chapter .role { position: absolute; z-index: 2; right: 14px; top: 14px; width: 54px; height: 54px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 3px var(--edge); overflow: hidden; }
.chapter .role img { position: static; width: 100%; height: 100%; object-fit: cover; }
.chapter .no { position: absolute; z-index: 2; left: 16px; top: 14px; font: 800 0.62rem var(--display); padding: 4px 10px; border-radius: 999px; background: var(--edge); color: var(--text); }

/* ---------------- ANOMALI (foto arsip dari game, sudah berbingkai polaroid) ---------------- */
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 18px; }
.archive {
  position: relative; display: flex; flex-direction: column; align-items: center; border: 0; cursor: pointer; text-align: center; padding: 0; background: none; color: var(--text);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.archive .ph { position: relative; width: 100%; aspect-ratio: 1; display: block; }
.archive .ph img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55)); transition: transform 0.35s; }
.archive:hover .ph img { transform: rotate(-2deg) scale(1.04); }
.archive .lvl { position: absolute; z-index: 2; right: 4%; top: 2%; min-width: 34px; height: 34px; padding: 0 6px; display: grid; place-items: center; border-radius: 50%; background: var(--edge); color: var(--gold); font: 800 0.7rem var(--display); box-shadow: 0 0 0 2px var(--gold); }
.archive .cap { display: block; margin-top: 8px; padding: 6px 14px; border-radius: 999px; background: var(--panel); box-shadow: var(--ring); max-width: 100%; transition: background 0.2s, box-shadow 0.2s; }
.archive:hover .cap { background: var(--cream); color: var(--ink); box-shadow: 0 0 0 2px var(--edge), 0 0 0 4px var(--pink); }
.archive .code { display: block; font: 700 0.6rem var(--mono); letter-spacing: 0.08em; color: var(--muted); }
.archive:hover .code { color: var(--ink-2); }
.archive b { display: block; font: 800 0.82rem var(--display); text-transform: uppercase; line-height: 1.25; }
.archive.mon .ph { border-radius: 50%; background: radial-gradient(70% 70% at 50% 40%, #3a3a42, #19191c); box-shadow: 0 0 0 3px var(--edge), inset 0 0 0 2px rgba(255, 255, 255, 0.06); width: 78%; margin: 4% auto 0; }
.archive.mon .ph img { object-fit: contain; padding: 12%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5)); }

/* ---------------- MAKANAN / FASHION (kartu ikon) ---------------- */
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.icard {
  display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: center; padding: 10px 18px 10px 10px; border-radius: 999px; border: 0; cursor: pointer; text-align: left;
  background: var(--panel); box-shadow: var(--ring); transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.icard:hover { transform: translateY(-3px); background: var(--cream); color: var(--ink); box-shadow: 0 0 0 3px var(--edge), 0 0 0 5px var(--q, var(--pink)); }
.icard:hover p, .icard:hover small { color: var(--ink-2); }
.icard .ic { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--q, var(--muted)) 60%, var(--panel-3)), var(--panel-2)); box-shadow: 0 0 0 3px var(--edge); overflow: hidden; }
.icard .ic img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35)); }
.icard small { font: 600 0.62rem var(--mono); color: var(--pink); letter-spacing: 0.08em; text-transform: uppercase; }
.icard b { display: block; font: 800 0.86rem var(--display); text-transform: uppercase; line-height: 1.25; }
.icard p { font-size: 0.8rem; color: var(--text-2); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------- footer ---------------- */
.foot { border-top: 3px solid var(--edge); background: var(--bg-2); }
.foot-inner { max-width: 1320px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 30px); display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-2); }
.foot-inner b { font: 800 0.95rem var(--display); color: var(--text); text-transform: uppercase; }
.foot-inner p { margin-top: 4px; max-width: 540px; }
.foot-inner a:hover { color: var(--pink); }
.foot-meta { text-align: right; }
@media (max-width: 700px) { .foot-meta { text-align: left; } }

/* ---------------- responsif ---------------- */
@media (max-width: 920px) {
  .home-hero, .dossier, .arc-detail { grid-template-columns: 1fr; }
  .dossier-art, .arc-card-img { position: relative; top: 0; max-width: 460px; width: 100%; margin: 0 auto; }
  .collage { height: 360px; max-width: 460px; width: 100%; margin: 0 auto; }
}
@media (max-width: 520px) {
  .esper-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .icon-grid, .wide-grid, .cat-grid, .set-grid { grid-template-columns: minmax(0, 1fr); }
  .tile-img { padding: 8px; }
  .tile-body { padding: 7px 8px 9px; }
  .tile-body b { font-size: 0.74rem; }
  .collage { height: 300px; }
  .story-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .icard { grid-template-columns: 62px 1fr; }
  .icard .ic { width: 62px; height: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.loading { padding: 80px 0; text-align: center; color: var(--muted); font: 800 0.74rem var(--display); letter-spacing: 0.1em; }
.loading::before { content: ""; display: block; width: 36px; height: 36px; margin: 0 auto 14px; border-radius: 50%; border: 4px solid var(--panel-3); border-top-color: var(--pink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.more { display: flex; justify-content: center; margin-top: 22px; }

/* ikon tipe Arc berwarna putih: beri latar gelap */
.tag img, .chip img { background: var(--edge); border-radius: 50%; padding: 2px; }
.lang-toggle { width: auto; padding: 0 14px; font: 800 0.7rem var(--display); letter-spacing: 0.04em; }

/* ============================================================
   PERBAIKAN & KOMPONEN TAMBAHAN
   ============================================================ */
/* gambar kartu lebar (kendaraan/properti) tampil utuh */
.wcard-img { position: relative; aspect-ratio: 4 / 3; }
.wcard-img img { filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
.wcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.wcard-img.cover img { object-fit: cover; padding: 0; }

/* label warna modul (Emas/Ungu/Biru) */
.qtag { display: inline-block; margin-top: 4px; font: 800 0.58rem var(--display); letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--q, var(--panel-3)); color: var(--ink); box-shadow: 0 0 0 2px var(--edge); }

/* header: tombol donate */
.donate-btn { background: var(--pink) !important; color: #fff; font: 800 0.72rem var(--display); text-transform: uppercase; text-decoration: none; }
.donate-btn svg { fill: currentColor; stroke: none; }
@media (max-width: 560px) { .donate-btn span { display: none; } }

/* ---------------- FASHION (galeri ilustrasi) ---------------- */
.fashion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.fcard { display: flex; flex-direction: column; border: 0; padding: 0; cursor: pointer; text-align: left; border-radius: 22px; overflow: hidden; background: var(--panel); box-shadow: var(--ring); transition: transform 0.3s, box-shadow 0.3s; }
.fcard:hover { transform: translateY(-5px); box-shadow: 0 0 0 3px var(--edge), 0 0 0 5px var(--q, var(--pink)); }
.fcard .fart { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: radial-gradient(90% 70% at 50% 20%, color-mix(in srgb, var(--q, var(--pink)) 45%, var(--panel-2)), var(--panel-2) 75%); border-bottom: 3px solid var(--edge); }
.fcard .fart > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transition: transform 0.5s; }
.fcard:hover .fart > img { transform: scale(1.05); }
.fcard .fhead { position: absolute; left: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--cream); box-shadow: 0 0 0 3px var(--edge); }
.fcard .fhead img { width: 100%; height: 100%; object-fit: cover; }
.fcard .fmeta { padding: 10px 14px 12px; }
.fcard small { display: block; font: 600 0.62rem var(--mono); color: var(--pink); letter-spacing: 0.08em; text-transform: uppercase; }
.fcard b { display: block; font: 800 0.86rem var(--display); text-transform: uppercase; line-height: 1.25; }
.sheet-hero.art { padding: 0; background: radial-gradient(80% 60% at 50% 30%, color-mix(in srgb, var(--q, var(--pink)) 40%, var(--panel)), var(--panel)); }
.sheet-hero.art img { max-width: none; max-height: 72vh; width: 100%; object-fit: contain; filter: none; }

/* ---------------- PENCAPAIAN: progres & tanda selesai ---------------- */
.ach-progress { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; padding: 14px 20px; margin-bottom: 14px; border-radius: 26px; background: var(--panel); box-shadow: var(--ring); }
.ach-bar { height: 16px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--edge); overflow: hidden; }
.ach-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--pink), var(--gold)); box-shadow: inset 0 0 0 2px var(--edge); transition: width 0.4s ease; }
.ach-progress > b { font: 800 0.86rem var(--display); white-space: nowrap; }
.ach-tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.ach-tools label.chip { cursor: pointer; }
.ach-progress .mono { grid-column: 1 / -1; font-size: 0.64rem; text-transform: none; letter-spacing: 0.02em; }
.ach-row { grid-template-columns: 74px 1fr auto 52px; }
.ach-check {
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: #fff; box-shadow: inset 0 0 0 3px var(--edge); color: transparent; transition: background 0.2s, color 0.2s, transform 0.2s;
}
.ach-check svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ach-check:hover { color: var(--cream-2); transform: scale(1.06); }
.ach-check[aria-pressed="true"] { background: var(--pink); color: #fff; box-shadow: 0 0 0 3px var(--edge); }
.ach-row.done { background: linear-gradient(180deg, #e3dbd0, #c9bfb2); }
.ach-row.done b { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--pink); }
.ach-row.done .medal { filter: saturate(0.6); }
@media (max-width: 760px) {
  .ach-row { grid-template-columns: 56px 1fr 46px; }
  .ach-row .reward { grid-column: 2 / 3; grid-row: 2; }
  .ach-check { grid-column: 3; grid-row: 1 / 3; width: 42px; height: 42px; }
  .ach-progress { grid-template-columns: 1fr; }
}

/* ---------------- BERANDA: key visual seperti situs resmi ---------------- */
.kv {
  position: relative; overflow: hidden; isolation: isolate; min-height: min(92vh, 860px);
  margin: calc(-1 * clamp(18px, 3vw, 34px)) calc(50% - 50vw) 0; padding: clamp(40px, 8vw, 100px) max(16px, calc(50vw - 640px)) 120px;
  display: flex; align-items: center; border-bottom: 3px solid var(--edge);
}
.kv-bg { position: absolute; inset: 0; z-index: -3; background: #0b0d1c; }
.kv-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 7s linear; }
.kv-bg img.on { opacity: 1; transform: scale(1); }
.kv-fx { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 10, 26, 0.92) 0%, rgba(9, 10, 26, 0.55) 45%, rgba(40, 20, 90, 0.25) 100%),
    linear-gradient(0deg, rgba(18, 18, 20, 1) 0%, rgba(18, 18, 20, 0) 30%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 1px 1px, rgba(120, 160, 255, 0.18) 1px, transparent 1.4px) 0 0 / 6px 6px; }
.kv-fx::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 55%, rgba(51, 214, 232, 0.16) 70%, rgba(169, 120, 255, 0.22) 85%, transparent 100%); mix-blend-mode: screen; }
.kv-chars { position: absolute; z-index: -1; right: max(-40px, calc(50vw - 760px)); bottom: 0; width: min(62vw, 860px); height: 92%; pointer-events: none; }
.kv-chars img { position: absolute; bottom: 0; height: 100%; width: auto; max-width: none; object-fit: contain; filter: drop-shadow(-6px 0 0 rgba(51, 214, 232, 0.55)) drop-shadow(6px 0 0 rgba(255, 61, 134, 0.5)) drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6)); }
.kv-chars .c0 { right: 22%; height: 100%; z-index: 3; animation: float 7s ease-in-out infinite; }
.kv-chars .c1 { right: -4%; height: 86%; opacity: 0.92; z-index: 2; animation: float 8s ease-in-out -2s infinite; }
.kv-chars .c2 { right: 48%; height: 78%; opacity: 0.8; z-index: 1; animation: float 9s ease-in-out -4s infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.kv-inner { position: relative; max-width: 640px; }
.kv-tag { display: inline-block; font: 800 0.66rem var(--display); letter-spacing: 0.08em; padding: 6px 14px; border-radius: 999px; background: var(--cyan); color: var(--ink); box-shadow: 0 0 0 2px var(--edge); }
.glitch { position: relative; margin-top: 18px; font: 800 clamp(2.8rem, 8.6vw, 6.6rem)/0.92 var(--display); letter-spacing: -0.04em; color: #fff; text-transform: uppercase;
  text-shadow: -3px 0 0 rgba(51, 214, 232, 0.85), 3px 0 0 rgba(255, 61, 134, 0.85), 0 10px 40px rgba(60, 40, 160, 0.6); }
.glitch span { display: block; }
.glitch span + span { background: linear-gradient(90deg, #fff 0%, #c8b6ff 45%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; overflow: hidden; pointer-events: none; color: transparent; font: inherit; text-shadow: none; }
.glitch::before { -webkit-text-stroke: 1px var(--cyan); clip-path: inset(20% 0 62% 0); transform: translate(-6px, 0); animation: glitch 4s steps(2) infinite; }
.glitch::after { -webkit-text-stroke: 1px var(--pink); clip-path: inset(64% 0 12% 0); transform: translate(6px, 0); animation: glitch 3.2s steps(2) -1s infinite; }
@keyframes glitch { 0%, 88%, 100% { opacity: 0; } 90% { opacity: 1; transform: translate(-8px, 2px); } 94% { opacity: 1; transform: translate(6px, -2px); } }
.kv-inner > p { margin-top: 18px; font-size: 1.05rem; color: #dfe3ff; max-width: 520px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.kv-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.kbtn {
  position: relative; display: inline-flex; flex-direction: column; justify-content: center; min-width: 210px; height: 72px; padding: 0 26px;
  text-decoration: none; color: var(--ink); border-radius: 18px 18px 18px 4px; box-shadow: 0 0 0 3px var(--edge), 6px 6px 0 var(--edge);
  transition: transform 0.2s, box-shadow 0.2s; overflow: hidden;
}
.kbtn::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.18) 1px, transparent 1.4px) 0 0 / 5px 5px; pointer-events: none; }
.kbtn b { position: relative; font: 800 1.25rem var(--display); text-transform: uppercase; letter-spacing: -0.02em; }
.kbtn small { position: relative; font: 700 0.6rem var(--mono); letter-spacing: 0.16em; opacity: 0.7; }
.kbtn:hover { transform: translate(-2px, -2px); box-shadow: 0 0 0 3px var(--edge), 9px 9px 0 var(--edge); }
.kbtn.cyan { background: linear-gradient(180deg, #7ff0ff, var(--cyan)); }
.kbtn.violet { background: linear-gradient(180deg, #e2c6ff, #b57dff); }
.kbtn.pink { background: linear-gradient(180deg, #ff9cc3, var(--pink)); color: #fff; }
.kv .home-stats div { background: rgba(10, 10, 20, 0.6); backdrop-filter: blur(6px); }
.kv-marquee { position: absolute; left: 0; right: 0; bottom: 14px; z-index: -1; display: flex; white-space: nowrap; pointer-events: none; }
.kv-marquee span { flex: none; padding-right: 40px; font: 800 clamp(3rem, 9vw, 7rem)/1 var(--display); letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 2px rgba(200, 210, 255, 0.22); animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (max-width: 900px) {
  .kv { min-height: 0; padding-bottom: 80px; }
  .kv-chars { width: 100vw; height: 330px; right: -10vw; }
  .kv-chars .c2 { display: none; }
  .kbtn { min-width: 0; flex: 1 1 160px; height: 64px; }
  .kbtn b { font-size: 1rem; }
}

/* ---------------- BERANDA: etalase Esper (gaya halaman karakter situs resmi) ---------------- */
.roster {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(0, 0.95fr); align-items: center; gap: 28px;
  min-height: 680px; margin: 0 calc(50% - 50vw); padding: 60px max(16px, calc(50vw - 640px)); background: #0d0d10; border-bottom: 3px solid var(--edge);
}
.ro-deco { position: absolute; inset: 0; z-index: -3; pointer-events: none; overflow: hidden;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 1.4px) 0 0 / 7px 7px; }
.ro-deco span { position: absolute; white-space: nowrap; font: 800 clamp(4rem, 11vw, 9rem)/1 var(--display); color: rgba(255, 255, 255, 0.035); letter-spacing: -0.02em; transform: rotate(-14deg); }
.ro-deco span:nth-child(1) { left: -6%; top: 2%; }
.ro-deco span:nth-child(2) { right: -8%; top: 30%; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.06); color: transparent; }
.ro-deco span:nth-child(3) { left: 10%; bottom: -4%; }
.ro-band { position: absolute; z-index: -2; left: 0; right: 0; top: 54%; height: 46%; overflow: hidden; border-top: 3px solid rgba(110, 130, 255, 0.7); }
.ro-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; opacity: 0.55; filter: saturate(0.9) hue-rotate(-8deg); }
.ro-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0d0d10 0%, rgba(13, 13, 16, 0.55) 30%, rgba(13, 13, 16, 0.1) 70%, rgba(13, 13, 16, 0.45) 100%), linear-gradient(0deg, #0d0d10 0%, transparent 40%); }
.ro-glyph { position: absolute; z-index: -1; right: 4%; top: 30%; max-width: 64%; overflow: hidden; white-space: nowrap; font: 800 clamp(5rem, 12vw, 10.5rem)/0.85 var(--display); letter-spacing: 0.04em;
  color: rgba(236, 230, 221, 0.92); transform: scaleY(1.15); -webkit-mask: repeating-linear-gradient(90deg, #000 0 26px, transparent 26px 34px); mask: repeating-linear-gradient(90deg, #000 0 26px, transparent 26px 34px); opacity: 0.95; }
.ro-rail { position: relative; z-index: 2; justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 118px; padding: 14px 0; border-radius: 999px;
  background: linear-gradient(180deg, #2a2a30, #19191d); box-shadow: 0 0 0 3px var(--edge), inset 0 0 0 2px rgba(255, 255, 255, 0.08), 0 20px 40px -10px #000; }
.ro-arrow { width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: linear-gradient(180deg, #4a4a52, #2a2a30); color: #fff; box-shadow: 0 0 0 3px var(--edge), inset 0 2px 0 rgba(255, 255, 255, 0.15); transition: transform 0.15s; }
.ro-arrow:hover { transform: scale(1.06); }
.ro-arrow:active { transform: scale(0.94); }
.ro-arrow svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ro-list { display: flex; flex-direction: column; align-items: center; gap: 14px; height: 440px; overflow-y: auto; padding: 8px 0; scrollbar-width: none;
  -webkit-mask: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); }
.ro-list::-webkit-scrollbar { display: none; }
.ro-list button { flex: none; width: 88px; height: 88px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; overflow: hidden; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 45%, #3a3a42), #222226);
  box-shadow: 0 0 0 4px #2b2b31, 0 0 0 6px var(--edge); transition: transform 0.2s, box-shadow 0.2s, filter 0.2s; filter: grayscale(0.25) brightness(0.85); }
.ro-list button img { width: 100%; height: 100%; object-fit: cover; }
.ro-list button:hover { filter: none; transform: scale(1.04); }
.ro-list button[aria-pressed="true"] { filter: none; box-shadow: 0 0 0 4px #2fe0d0, 0 0 0 7px var(--edge), 0 0 22px rgba(47, 224, 208, 0.55); }
.ro-info { position: relative; z-index: 2; align-self: end; padding-bottom: 30px; }
.ro-name { display: flex; align-items: center; gap: 16px; }
.ro-rank { display: flex; flex-direction: column; align-items: center; line-height: 0.82; }
.ro-rank b { font: 800 3.4rem var(--display); background: linear-gradient(180deg, #ffd0f0, #ff6fc8 45%, #b57dff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(2px 2px 0 var(--edge)); }
.ro-rank small { font: 800 0.8rem var(--display); color: #fff; letter-spacing: 0.04em; }
.ro-rank.rank-A b { background: linear-gradient(180deg, #e7dbff, #a98bff 50%, #6d7cff); -webkit-background-clip: text; background-clip: text; }
.ro-name h2 { font: 800 clamp(2.4rem, 5vw, 4rem)/1 var(--display); text-transform: uppercase; letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fff 0%, #e6dcff 50%, #8fa2ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.6)); }
.ro-name img { width: 36px; height: 36px; padding: 5px; border-radius: 50%; background: #4a4a52; box-shadow: 0 0 0 2px var(--edge); }
.ro-line { position: relative; height: 3px; margin: 14px 0 22px; background: #5b6ff0; }
.ro-line i { position: absolute; left: 0; top: -1px; height: 5px; width: 22%; background: #ffc8e6; }
.ro-quote { font: 800 clamp(1.05rem, 1.8vw, 1.45rem)/1.45 var(--body); color: #f4f2ff; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); }
.ro-desc { margin-top: 18px; max-width: 480px; max-height: 150px; overflow-y: auto; padding-right: 18px; border-right: 3px solid rgba(255, 255, 255, 0.75); font-size: 0.92rem; color: #dcdce6; scrollbar-width: none; }
.ro-desc::-webkit-scrollbar { display: none; }
.ro-desc p + p { margin-top: 6px; }
.ro-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.ro-meta .tags { margin: 0; }
.ro-art { position: relative; z-index: 1; align-self: stretch; margin: -60px 0 -60px -14%; }
.ro-art img { position: absolute; right: -6%; bottom: 0; height: 112%; width: auto; max-width: none; object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.7)); -webkit-mask: linear-gradient(90deg, transparent 0%, #000 22%); mask: linear-gradient(90deg, transparent 0%, #000 22%); }
.ro-art img.in { animation: ro-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes ro-in { from { opacity: 0; transform: translateX(40px); } }
@media (max-width: 1080px) {
  .roster { grid-template-columns: 110px minmax(0, 1fr); min-height: 0; }
  .ro-art { grid-column: 2; grid-row: 1; height: 420px; margin: 0; }
  .ro-art img { right: 50%; transform: translateX(50%); height: 100%; }
  .ro-art img.in { animation: none; }
  .ro-info { grid-column: 1 / -1; padding-bottom: 0; }
  .ro-glyph { top: 8%; }
}
@media (max-width: 640px) {
  .roster { grid-template-columns: minmax(0, 1fr); padding-top: 34px; }
  .ro-rail { grid-row: 2; width: 100%; flex-direction: row; padding: 10px; border-radius: 999px; }
  .ro-list { flex-direction: row; height: auto; overflow-x: auto; overflow-y: hidden; padding: 6px 4px; gap: 10px; flex: 1; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .ro-list button { width: 58px; height: 58px; }
  .ro-arrow { width: 42px; height: 42px; flex: none; transform: rotate(-90deg); }
  .ro-arrow:hover { transform: rotate(-90deg) scale(1.06); }
  .ro-art { grid-column: 1; grid-row: 1; height: 360px; }
  .ro-info { grid-row: 3; }
  .ro-glyph { font-size: 4.4rem; max-width: 100%; right: 0; }
}

/* ---------------- BERANDA: ajakan donate & komunitas ---------------- */
.cta-band { display: grid; grid-template-columns: 1.2fr auto; gap: 24px; align-items: center; margin: 46px 0 10px; padding: clamp(22px, 4vw, 40px); border-radius: 32px; overflow: hidden;
  background: linear-gradient(120deg, rgba(255, 61, 134, 0.22), rgba(169, 120, 255, 0.2) 60%, rgba(51, 214, 232, 0.16)), var(--panel); box-shadow: 0 0 0 3px var(--edge); }
.cta-band h2 { font-size: clamp(1.4rem, 3.4vw, 2.2rem); text-transform: uppercase; }
.cta-band p { margin-top: 10px; color: var(--text-2); max-width: 560px; }
.cta-band .kv-btns { margin-top: 0; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .kv-marquee span, .kv-chars img, .glitch::before, .glitch::after { animation: none !important; } }

/* penghitung kunjungan di footer */
.visits { margin-top: 6px; font: 600 0.66rem var(--mono); letter-spacing: 0.06em; color: var(--muted); }
.visits::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #3fc285; box-shadow: 0 0 6px #3fc285; vertical-align: 1px; }

/* ============================================================
   RESPONSIF HP (perbaikan)
   ============================================================ */
@media (max-width: 920px) {
  .dossier, .arc-detail, .home-hero { grid-template-columns: minmax(0, 1fr); }
  .dossier-art, .arc-card-img { max-width: min(460px, 100%); }
}
@media (max-width: 600px) {
  .top { gap: 8px; padding: 8px 12px; }
  .top-actions { gap: 6px; }
  .icon-btn { height: 38px; min-width: 38px; padding: 0 9px; }
  .icon-btn svg { width: 17px; height: 17px; }
  .lang-toggle { padding: 0 10px; }
  .logo { gap: 8px; min-width: 0; }
  .logo-stamp { width: 36px; height: 36px; font-size: 0.62rem; }
  .logo-text { min-width: 0; }
  .logo-text b { font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  main { padding: 16px 14px 48px; }
  .page-head { margin-bottom: 16px; padding-bottom: 14px; }
  .page-head h1 { font-size: clamp(1.6rem, 8.4vw, 2.4rem); }
  .page-head p { font-size: 0.9rem; }
  .count-tag { font-size: 0.66rem; padding: 6px 12px; }
  .toolbar { padding: 8px; gap: 8px; border-radius: 22px; }
  .filter-input { flex-basis: 100%; height: 40px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; padding: 3px 2px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { height: 34px; padding: 0 12px; font-size: 0.78rem; }
  .chip-sep { display: none; }
  .sheet-body { padding: 18px 18px 28px; }
  .sheet-body h2 { font-size: 1.25rem; }
  .entry, .story { padding: 14px 16px; border-radius: 18px; }
  .dossier-head h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .tabs { border-radius: 22px; }
  .tab { padding: 0 14px; font-size: 0.72rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* beranda */
  .kv { padding: 34px 14px 60px; }
  .kv-tag { font-size: 0.56rem; padding: 5px 10px; }
  .glitch { font-size: clamp(1.9rem, 10.6vw, 3.4rem); }
  .kv-inner > p { font-size: 0.92rem; }
  .kv-btns { gap: 10px; }
  .kbtn { flex: 1 1 100%; height: 58px; padding: 0 18px; border-radius: 16px 16px 16px 4px; }
  .kbtn b { font-size: 0.95rem; }
  .kv .home-stats { gap: 6px; }
  .home-stats div { padding: 6px 12px; }
  .home-stats div b { font-size: 0.95rem; }
  .roster { padding: 28px 14px 34px; gap: 18px; }
  .ro-art { height: 300px; }
  .ro-glyph { font-size: 3.4rem; top: 4%; }
  .ro-rank b { font-size: 2.4rem; }
  .ro-name { gap: 10px; }
  .ro-name h2 { font-size: clamp(1.8rem, 10vw, 2.6rem); }
  .ro-quote { font-size: 1rem; }
  .ro-desc { max-height: 130px; font-size: 0.86rem; }
  .ro-band { top: 0; height: 340px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-card { min-height: 128px; padding: 14px; border-radius: 20px; }
  .cat-card h3 { font-size: 0.86rem; }
  .cat-card p { display: none; }
  .cat-card .cat-thumbs img { width: 34px; height: 34px; margin-left: -10px; }
  .cat-card .num { font-size: 1.3rem; right: 12px; bottom: 10px; }
  .cta-band { padding: 20px; border-radius: 24px; }
  .section-title { margin: 26px 0 12px; }
  /* daftar */
  .wide-grid, .icon-grid { grid-template-columns: minmax(0, 1fr); }
  .fashion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fcard .fmeta { padding: 8px 10px 10px; }
  .fcard b { font-size: 0.74rem; }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .chapter .cap b { font-size: 0.98rem; }
  .esper-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .esper-meta b { font-size: 0.82rem; }
  .icard { padding: 8px 14px 8px 8px; gap: 12px; }
  .ach-head h2 { font-size: 1.05rem; }
  .ach-row { gap: 10px; padding: 8px 8px 8px 8px; min-height: 0; }
  .ach-row b { font-size: 0.8rem; }
  .ach-row p { font-size: 0.78rem; }
  .ach-row .reward { font-size: 0.74rem; gap: 6px; }
  .ach-row .reward img { width: 30px; height: 30px; }
  .ach-progress { padding: 12px 14px; border-radius: 20px; }
  .item-layout { gap: 12px; }
  .cat-side { padding: 6px; gap: 6px; }
  .cat-side button { height: 38px; font-size: 0.8rem; padding: 0 14px; }
  .foot-inner { padding: 20px 14px; }
}
@media (max-width: 380px) {
  .logo-text { display: none; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.kv-inner { min-width: 0; width: 100%; }

/* logo NTE Indonesia (buatan sendiri) */
.logo-img { height: 46px; width: auto; flex: none; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.4)); transition: transform 0.2s; }
.logo:hover .logo-img { transform: rotate(-2deg) scale(1.04); }
.glitch span + span { background: none; color: inherit; -webkit-background-clip: border-box; background-clip: border-box; }
.glitch > span:only-child { background: linear-gradient(90deg, #fff 0%, #c8b6ff 50%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 600px) { .logo-img { height: 38px; } .logo-text small { display: none; } }
@media (max-width: 380px) { .logo-text { display: none; } .logo-img { height: 36px; } }

/* ---------------- TIER LIST ---------------- */
.tl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 14px; border-radius: 28px; background: var(--panel); box-shadow: var(--ring); }
.tl-bar .filter-input { flex: 1 1 220px; }
.tl-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-tools label.chip { cursor: pointer; }
.tl-hint { margin-bottom: 12px; padding: 10px 18px; border-radius: 999px; background: var(--cream); color: var(--ink); box-shadow: 0 0 0 2px var(--edge), 0 0 0 4px var(--pink); font-size: 0.86rem; }
.tl-board { display: flex; flex-direction: column; gap: 8px; }
.tl-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 40px; border-radius: 22px; overflow: hidden; background: #050506; box-shadow: 0 0 0 3px var(--edge); }
.tl-label { display: grid; place-items: center; padding: 6px; }
.tl-name { width: 100%; border: 0; background: transparent; text-align: center; color: #17171a; font: 800 1.3rem var(--display); text-transform: uppercase; min-width: 0; }
.tl-name:focus { outline: 2px dashed rgba(0, 0, 0, 0.5); border-radius: 8px; }
.tl-zone { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; min-height: 92px; padding: 8px; background: var(--bg-2); transition: background 0.15s; }
.tl-zone.over { background: #2a2630; box-shadow: inset 0 0 0 3px var(--pink); }
.tl-ctl { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 0; background: var(--panel); }
.tl-ctl button, .tl-ctl input[type="color"] { width: 28px; height: 22px; padding: 0; border: 0; border-radius: 8px; background: var(--panel-3); color: var(--text-2); font-size: 0.62rem; cursor: pointer; }
.tl-ctl input[type="color"] { background: none; height: 24px; }
.tl-ctl button:hover:not(:disabled) { background: var(--cream); color: var(--ink); }
.tl-ctl button:disabled { opacity: 0.3; cursor: default; }
.tl-pool { min-height: 120px; padding: 12px; border-radius: 22px; background: var(--panel); box-shadow: var(--ring); gap: 8px; }
.tl-item { position: relative; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.tl-item img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c, var(--q, var(--pink))) 55%, var(--panel-3)), var(--panel-2)); box-shadow: 0 0 0 3px var(--edge); transition: transform 0.15s, box-shadow 0.15s; }
.tl-item.q1, .tl-item.q2, .tl-item.q3, .tl-item.q4, .tl-item.q5, .tl-item.q6 { --c: var(--q); }
.tl-item span { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 0.58rem var(--body); color: var(--text-2); }
.tl-item:hover img { transform: scale(1.06); }
.tl-item.sel img { box-shadow: 0 0 0 3px var(--edge), 0 0 0 6px var(--pink); transform: scale(1.08); }
.tl-item.lift { opacity: 0.35; }
.tl-item.ghost { position: fixed; z-index: 200; pointer-events: none; transform: translate(-50%, -50%) scale(1.15); opacity: 0.95; cursor: grabbing; }
.tl-item.ghost span { display: none; }
.tl-search { margin-bottom: 12px; }
@media (max-width: 600px) {
  .tl-row { grid-template-columns: 62px minmax(0, 1fr) 34px; }
  .tl-name { font-size: 1rem; }
  .tl-item { width: 58px; } .tl-item img { width: 52px; height: 52px; } .tl-item span { max-width: 58px; }
  .tl-zone { gap: 6px; padding: 6px; min-height: 76px; }
}

/* dialog konfirmasi & notifikasi */
.dlg { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
.dlg-scrim { position: absolute; inset: 0; background: rgba(5, 5, 6, 0.65); backdrop-filter: blur(3px); animation: fade 0.15s ease; }
.dlg-box { position: relative; width: min(420px, 100%); padding: 22px 24px; border-radius: 26px; background: var(--bg-2); box-shadow: 0 0 0 3px var(--edge), 0 0 0 5px var(--pink), 0 30px 80px -20px #000; animation: pop 0.2s ease; }
.dlg-box p { font-weight: 700; font-size: 1rem; color: var(--text); }
.dlg-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.dlg-btns .btn { height: 42px; padding: 0 20px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 310; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 10px 20px; border-radius: 999px; background: var(--cream); color: var(--ink); font: 800 0.8rem var(--display); box-shadow: 0 0 0 3px var(--edge), 0 0 0 5px var(--pink); animation: pop 0.2s ease; transition: opacity 0.4s; }
.toast.out { opacity: 0; }

/* ---------------- DETAIL ESPER & ARC ---------------- */
.roles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 4px; }
.roles .mono { color: var(--text-2); font-size: 0.66rem; letter-spacing: 0.1em; margin-right: 4px; }
.roles b { padding: 5px 12px; border-radius: 999px; background: var(--cream); color: var(--ink); font: 800 0.72rem var(--display); box-shadow: 0 0 0 2px var(--edge); }
.statbox { margin: 16px 0 12px; padding: 16px 18px; border-radius: 22px; background: var(--panel); box-shadow: var(--ring); }
.stat-lv { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; margin-bottom: 12px; }
.stat-lv .mono { color: var(--pink); font-size: 0.7rem; letter-spacing: 0.1em; }
.stat-lv b { font: 800 1.5rem var(--display); min-width: 2ch; }
.stat-lv input[type=range] { width: 100%; accent-color: var(--pink); }
.srows { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 14px; }
.srow { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 999px; background: var(--panel-2); border: 2px solid var(--edge); }
.srow i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cream); }
.srow svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.srow span { white-space: nowrap; font: 700 0.74rem var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.srow b { min-width: 64px; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--pink) 28%, var(--panel)); text-align: center; font: 800 0.95rem var(--display); }
.matbox { margin: 0 0 14px; padding: 14px 16px; border-radius: 22px; background: var(--panel); box-shadow: var(--ring); }
.matbox > .mono { display: block; color: var(--text-2); font-size: 0.64rem; letter-spacing: 0.1em; margin-bottom: 10px; }
.mat.q2 { border-color: #2f7d55; } .mat.q3 { border-color: #2f6fa8; } .mat.q4 { border-color: #7b4fb5; } .mat.q5 { border-color: #c8902e; }
.skillcard { margin-bottom: 12px; border-radius: 24px; background: var(--panel); box-shadow: var(--ring); overflow: hidden; }
.skill-top { display: grid; grid-template-columns: 62px 1fr 38px; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; text-align: left; background: none; border: 0; color: inherit; cursor: pointer; }
.skill-ico { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #3b3b44, #17171b); border: 3px solid var(--pink); box-shadow: 0 0 0 3px var(--edge); }
.skill-ico img { width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.skill-title b { display: block; font: 800 1.02rem var(--display); text-transform: uppercase; }
.skill-title small { font: 600 0.68rem var(--mono); color: var(--pink); letter-spacing: 0.08em; text-transform: uppercase; }
.skill-chev { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--edge); transition: transform .2s; }
.skill-chev svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.skillcard.open .skill-chev { transform: rotate(180deg); }
.skill-body { display: none; padding: 2px 20px 18px; border-top: 2px solid var(--edge); }
.skillcard.open .skill-body { display: block; }
.sk { padding-top: 14px; }
.sk h5 { font: 800 0.9rem var(--display); text-transform: uppercase; color: var(--cream); }
.sk p { margin-top: 4px; }
.outfit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.outfit { margin: 0; border-radius: 20px; overflow: hidden; background: var(--panel-2); box-shadow: var(--ring); }
.outfit img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 15%; }
.outfit figcaption { padding: 10px 14px 14px; }
.outfit b { display: block; font: 800 0.85rem var(--display); text-transform: uppercase; }
.outfit small { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-2); font-size: 0.76rem; margin-top: 4px; }
.arc-card-img.art { display: grid; place-items: center; aspect-ratio: 4 / 5; background: radial-gradient(70% 55% at 50% 40%, color-mix(in srgb, var(--q, var(--pink)) 45%, var(--panel)), var(--panel) 75%); }
.arc-card-img.art img { width: 78%; height: auto; image-rendering: auto; filter: drop-shadow(0 18px 22px rgba(0,0,0,.55)); }
@media (max-width: 640px) { .srows { grid-template-columns: 1fr; } .mat { width: 82px; } .skill-top { grid-template-columns: 52px 1fr 34px; gap: 10px; } .skill-ico { width: 52px; height: 52px; } }

/* ---- material: jumlah di bawah ikon, rapi walau angkanya besar ---- */
.matrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.mat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px 10px; text-align: center; border-radius: 18px; background: var(--panel-2); border: 2px solid var(--edge); min-width: 0; }
.mat img { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
.mat small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; font: 600 0.62rem var(--mono); color: var(--text-2); line-height: 1.25; word-break: break-word; }
.mat b { display: block; max-width: 100%; margin-top: auto; padding: 3px 10px; border-radius: 999px; background: var(--edge); color: var(--text); font: 800 0.82rem var(--display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mat.q2 { border-color: #2f7d55; } .mat.q3 { border-color: #2f6fa8; } .mat.q4 { border-color: #7b4fb5; } .mat.q5 { border-color: #c8902e; }

/* ---- level skill: slider, material, rasio DMG ---- */
.sklv { margin: 14px 0 4px; padding: 14px 16px; border-radius: 20px; background: var(--panel-2); border: 2px solid var(--edge); }
.sklv-top { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; }
.sklv-top .mono { color: var(--pink); font-size: 0.66rem; letter-spacing: 0.1em; }
.sklv-num { font: 800 1.3rem var(--display); min-width: 2ch; }
.sklv-top input[type=range] { width: 100%; accent-color: var(--pink); }
.sklv-max { font: 800 0.62rem var(--mono); font-style: normal; padding: 2px 8px; border-radius: 999px; background: var(--pink); color: #fff; }
.sklv-mats { margin-top: 12px; }
.sklv-mats .matrow { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.sklv-mats .mat img { width: 48px; height: 48px; }
.sklv-none { color: var(--text-2); }
.sklv-rows { display: grid; gap: 6px; margin-top: 12px; }
.ratio { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 14px; border-radius: 14px; background: var(--panel); }
.ratio span { font: 600 0.74rem var(--mono); color: var(--text-2); letter-spacing: 0.03em; }
.ratio b { font: 800 0.95rem var(--display); color: var(--cream); text-align: right; font-variant-numeric: tabular-nums; }

/* ---- tab dan arsip cerita yang ikut layar kecil ---- */
.tabs { flex-wrap: wrap; overflow: visible; border-radius: 26px; }
.tab { height: 36px; }
.story { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .tabs { gap: 4px; padding: 5px; margin: 18px 0 12px; }
  .tab { height: 34px; padding: 0 12px; font-size: 0.68rem; }
  .story { padding: 44px 16px 16px; }
  .story::before { left: 16px; right: auto; top: 16px; }
  .story h4 { padding-right: 0; }
  .matrow { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .sklv-top { grid-template-columns: auto auto 1fr; }
  .sklv-max { grid-column: 1 / -1; justify-self: start; }
  .ratio { flex-direction: column; align-items: flex-start; gap: 2px; }
  .ratio b { text-align: left; }
}

/* ---- info ringkas ---- */
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 22px; margin: 12px 0 4px; padding: 10px 16px; border-radius: 18px; background: var(--panel); box-shadow: var(--ring); }
.info div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 4px 0; border-bottom: 1px dashed color-mix(in srgb, var(--text-2) 30%, transparent); }
.info dt { font: 600 0.62rem var(--mono); color: var(--pink); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.info dd { margin: 0; font: 700 0.82rem var(--display); text-align: right; }

/* ---- ganti kostum di hero ---- */
.dossier-art { position: relative; }
.outfit-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 14px; border-radius: 999px; background: rgba(5,5,6,.78); backdrop-filter: blur(4px); box-shadow: 0 0 0 2px var(--edge); }
.outfit-bar span { flex: 1; min-width: 0; font: 700 0.74rem var(--display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.outfit-bar button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--cream); color: var(--ink); font: 800 1.1rem/1 var(--display); cursor: pointer; }
.outfit-bar button:hover { background: var(--pink); color: #fff; }
.outfit { cursor: pointer; transition: transform .15s; }
.outfit:hover { transform: translateY(-3px); }

/* ---- skala DMG: tombol buka/tutup di bawah deskripsi ---- */
.sklv-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 16px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--edge); background: var(--panel-2); color: var(--text); font: 700 0.76rem var(--mono); letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; }
.sklv-toggle:hover { border-color: var(--pink); }
.sklv-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.sklv-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sklv[hidden] { display: none; }

/* ---- profil: akordeon ---- */
.skillcard.pf .skill-ico svg { width: 56%; height: 56%; fill: none; stroke: var(--cream); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.prose { white-space: pre-line; line-height: 1.7; }

/* ---- affinity ---- */
.af-bonus { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.af-bonus .mono { color: var(--text-2); font-size: 0.66rem; letter-spacing: 0.1em; }
.af-bonus b { padding: 5px 14px; border-radius: 999px; background: var(--pink); color: #fff; font: 800 0.78rem var(--display); }
.af-sec { margin-bottom: 18px; }
.af-sec h4 { font: 800 1rem var(--display); text-transform: uppercase; margin-bottom: 4px; }
.af-sec > .mono { color: var(--text-2); font-size: 0.64rem; margin-bottom: 10px; display: block; }
.af-lv { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; padding: 12px 14px; margin-top: 10px; border-radius: 20px; background: var(--panel); box-shadow: var(--ring); }
.af-no { text-align: center; }
.af-no i { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 4px; border-radius: 50%; background: var(--cream); color: var(--ink); font: 800 1.4rem var(--display); font-style: normal; box-shadow: 0 0 0 3px var(--edge), 0 0 0 5px var(--pink); }
.af-no small { font: 600 0.6rem var(--mono); color: var(--text-2); }
.mat b svg { width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; fill: var(--pink); stroke: none; }
@media (max-width: 640px) { .af-lv { grid-template-columns: 1fr; } .af-no { display: flex; align-items: center; gap: 10px; text-align: left; } .af-no i { margin: 0; width: 44px; height: 44px; font-size: 1.1rem; } .info div { flex-direction: column; gap: 0; } .info dd { text-align: left; } }

/* ---- build publik ---- */
.bd-set { display: flex; gap: 14px; align-items: flex-start; margin-top: 8px; padding: 12px 14px; border-radius: 18px; background: var(--panel); box-shadow: var(--ring); }
.bd-set img { width: 54px; height: 54px; object-fit: contain; flex: none; }
.bd-set b { font: 800 0.92rem var(--display); text-transform: uppercase; }
.bd-set em { font: 700 0.62rem var(--mono); font-style: normal; color: var(--pink); margin-left: 6px; }
.bd-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-stats span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border-radius: 999px; background: var(--panel-2); border: 2px solid var(--edge); font: 700 0.78rem var(--display); }
.bd-stats i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--pink); color: #fff; font: 800 0.72rem var(--display); font-style: normal; }

/* ---- admin build ---- */
.adm-h { font: 800 clamp(1.6rem, 4vw, 2.4rem) var(--display); text-transform: uppercase; margin: 6px 0; }
.adm-note { color: var(--text-2); font-size: 0.66rem; letter-spacing: 0.06em; margin: 6px 0 14px; }
.adm-box { margin-bottom: 14px; padding: 16px 18px; border-radius: 22px; background: var(--panel); box-shadow: var(--ring); }
.adm-box label { display: block; margin: 12px 0 6px; font: 700 0.7rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--pink); }
.adm-box label:first-child { margin-top: 0; }
.adm-box input, .adm-box select { width: 100%; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--edge); background: var(--panel-2); color: var(--text); font: 600 0.85rem var(--display); }
.adm-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-row input, .adm-row select { flex: 1 1 160px; width: auto; }
.adm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.adm-chips em { color: var(--text-2); font-size: 0.8rem; }
.adm-chips button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--edge); background: var(--panel-2); color: var(--text); font: 700 0.74rem var(--display); cursor: pointer; }
.adm-chips button.on { background: var(--cream); color: var(--ink); }
.adm-chips button i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--pink); color: #fff; font: 800 0.66rem var(--display); font-style: normal; }
.adm-box button:disabled { opacity: .45; cursor: not-allowed; }

/* ---- admin & build: gambar Arc, awakening, urutan skill ---- */
.adm-chips button.adm-arc { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 18px; text-align: left; }
.adm-arc img { width: 52px; height: 52px; object-fit: contain; flex: none; border-radius: 12px; background: radial-gradient(circle, color-mix(in srgb, var(--pink) 25%, var(--panel)), var(--panel)); }
.adm-arc span { display: block; line-height: 1.25; }
.adm-arc small, .adm-sk small { display: block; font: 600 0.58rem var(--mono); opacity: .7; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.adm-arc.q5 img { box-shadow: 0 0 0 2px #c8902e; } .adm-arc.q4 img { box-shadow: 0 0 0 2px #7b4fb5; } .adm-arc.q3 img { box-shadow: 0 0 0 2px #2f6fa8; }
#admArcList { max-height: 360px; overflow: auto; padding-right: 4px; }
.adm-awk { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; margin-top: 8px; }
.adm-awk div { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 14px; background: var(--panel-2); border: 2px solid var(--edge); opacity: .55; font: 600 0.72rem var(--display); }
.adm-awk div.on { opacity: 1; border-color: var(--pink); }
.adm-awk img { width: 28px; height: 28px; object-fit: contain; }
.adm-awk i, .bd-awk-row i { font: 800 0.68rem var(--mono); font-style: normal; color: var(--pink); margin-right: 6px; }
.adm-chips button.adm-sk { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 18px; }
.adm-sk .skill-ico { width: 44px; height: 44px; flex: none; }
.adm-sk i { margin-right: 6px; vertical-align: middle; }
.bd-awk { display: flex; gap: 14px; align-items: flex-start; margin-top: 8px; padding: 12px 14px; border-radius: 18px; background: var(--panel); box-shadow: var(--ring); }
.bd-awk-n { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 50%; background: var(--pink); color: #fff; font: 800 1.1rem var(--display); box-shadow: 0 0 0 3px var(--edge); }
.bd-awk-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; font: 600 0.8rem var(--display); }
.bd-awk-row img { width: 28px; height: 28px; object-fit: contain; }
.bd-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 8px; }
.bd-skill { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 18px; background: var(--panel); box-shadow: var(--ring); position: relative; }
.bd-skill > i { position: absolute; left: -6px; top: -6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--pink); color: #fff; font: 800 0.74rem var(--display); font-style: normal; z-index: 1; }
.bd-skill .skill-ico { width: 46px; height: 46px; flex: none; }
.bd-skill b { display: block; font: 800 0.82rem var(--display); text-transform: uppercase; }
.bd-skill small { font: 600 0.6rem var(--mono); color: var(--pink); text-transform: uppercase; letter-spacing: .06em; }

.adm-fit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 4px 0 8px; padding: 8px 14px; border-radius: 16px; background: var(--panel-2); border: 2px dashed color-mix(in srgb, var(--pink) 50%, transparent); font: 600 0.78rem var(--display); }
.adm-fit span { display: inline-flex; align-items: center; gap: 8px; }
.adm-fit img { width: 22px; height: 22px; object-fit: contain; }
.adm-fit b { color: var(--pink); }
.adm-box label.adm-chk { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--text-2); text-transform: none; font: 600 0.72rem var(--display); cursor: pointer; }
.adm-chk input { width: auto; min-height: 0; accent-color: var(--pink); }

/* ---- awakening: 6 pilihan bebas + resonansi ---- */
.awk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 14px; }
.awk-head .txt { flex: 1 1 280px; color: var(--text-2); font-size: 0.86rem; }
.awk-count { display: flex; align-items: baseline; gap: 6px; padding: 8px 18px; border-radius: 999px; background: var(--panel); box-shadow: var(--ring); }
.awk-count b { font: 800 1.6rem var(--display); color: var(--pink); }
.awk-count span { font: 700 0.7rem var(--mono); color: var(--text-2); }
.awk .skill-top { grid-template-columns: 62px 1fr 34px 38px; }
.awk-pick { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--text-2); background: transparent; cursor: pointer; position: relative; transition: .15s; }
.awk-pick:hover { border-color: var(--pink); }
.awk-pick[aria-checked="true"] { background: var(--pink); border-color: var(--pink); box-shadow: 0 0 0 3px var(--edge); }
.awk-pick[aria-checked="true"]::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 800 0.9rem var(--display); }
.awk.active { box-shadow: 0 0 0 3px var(--pink); }
.awk.active .skill-ico { border-color: var(--cream); }
.awk.bonus .skill-top { grid-template-columns: 62px 1fr 74px 38px; }
.awk.bonus.locked { opacity: .62; }
.awk.bonus.locked .skill-ico img { filter: grayscale(1) brightness(.7); }
.awk-lock { font: 800 0.6rem var(--mono); text-align: center; letter-spacing: .06em; }
.awk.bonus .awk-lock::after { content: "AKTIF"; color: var(--pink); }
.awk.bonus.locked .awk-lock::after { content: "TERKUNCI"; color: var(--text-2); }
/* build publik & admin */
.bd-awks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 8px; }
.bd-awks .bd-awk-row { position: relative; padding: 8px 12px 8px 10px; border-radius: 18px; background: var(--panel); box-shadow: var(--ring); gap: 10px; }
.bd-awks .bd-awk-row img { width: 40px; height: 40px; }
.bd-awks .bd-awk-row i { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--pink); color: #fff; font: 800 0.74rem var(--display); margin: 0; }
.bd-awks .bd-awk-row b { display: block; font: 800 0.82rem var(--display); text-transform: uppercase; }
.bd-awks .bd-awk-row small { font: 600 0.58rem var(--mono); color: var(--pink); letter-spacing: .06em; text-transform: uppercase; }
.bd-awks .bd-awk-row.bonus { background: color-mix(in srgb, var(--pink) 14%, var(--panel)); border: 2px dashed var(--pink); box-shadow: none; }
