/* ==========================================================
   The Quiet Archive — tema penyihir
   Font: Syne (judul), Space Grotesk (isi), Space Mono (label)
   ========================================================== */
:root {
  --bg: #0b0912;
  --bg-2: #15111f;
  --ink: #efe6d2;
  --muted: #9a90a8;
  --gold: #d9b26a;
  --gold-soft: rgba(217, 178, 106, .18);
  --violet: #8f7ad8;
  --line: rgba(239, 230, 210, .12);
  --panel: rgba(16, 12, 24, .86);
  --f-display: "Syne", system-ui, sans-serif;
  --f-body: "Space Grotesk", system-ui, sans-serif;
  --f-mono: "Space Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; }
body { font-family: var(--f-body); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }

#scene { position: fixed; inset: 0; touch-action: none; cursor: pointer; }
body.locked #scene { cursor: none; }
body.ui-open #scene, body.touch #scene, body.no-webgl #scene { cursor: auto; }

/* bidikan kecil di tengah (kursor disembunyikan) */
#reticle {
  position: fixed; z-index: 8; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%;
  background: rgba(255, 236, 200, .55); box-shadow: 0 0 6px rgba(255, 210, 140, .5); pointer-events: none;
  transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s, opacity .3s;
}
#reticle::before, #reticle::after { content: ""; position: absolute; left: 50%; top: 50%; opacity: 0; transition: opacity .25s, transform .3s var(--ease); }
/* hover: berubah jadi belah ketupat emas + titik inti */
#reticle.on { width: 16px; height: 16px; margin: -8px 0 0 -8px; background: transparent; box-shadow: none; border: 1.5px solid rgba(255, 216, 144, .95); transform: rotate(45deg); border-radius: 2px; }
#reticle.on::after { opacity: 1; width: 4px; height: 4px; margin: -2px 0 0 -2px; background: #ffd890; border-radius: 1px; box-shadow: 0 0 8px rgba(255, 210, 140, .9); }
#reticle.on::before { opacity: .55; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 1px solid rgba(255, 216, 144, .45); border-radius: 2px; }
body.ui-open #reticle, body.touch #reticle, body.no-webgl #reticle { opacity: 0; }
#scene canvas { display: block; width: 100%; height: 100%; }

/* ---------- loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, #1d1530 0%, #0d0a16 55%, #05040a 100%);
  transition: opacity 1.3s var(--ease), visibility 1.3s, filter 1.3s; cursor: default;
}
#loader.done { opacity: 0; visibility: hidden; filter: blur(6px) brightness(1.6); pointer-events: none; }
#formula { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 5px rgba(255, 196, 110, .55)); }
.loader-core { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 40px; text-align: center; }
.loader-core::before { content: ""; position: absolute; inset: -34px -90px; background: radial-gradient(closest-side, rgba(10, 8, 18, .94) 45%, rgba(10, 8, 18, 0) 100%); pointer-events: none; }
.loader-title { font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: .03em; margin: 4px 0 0; position: relative;
  background: linear-gradient(90deg, #b08a46, #ffe3b0, #b08a46); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 4s linear infinite; }
.loader-text { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin: 0; letter-spacing: .08em; text-transform: uppercase; position: relative; }
.loader-bar { width: 200px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; position: relative; }
#loader-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #b08a46, #ffe3b0); box-shadow: 0 0 10px rgba(255,210,140,.7); transition: width .4s var(--ease); }
.enter {
  margin-top: 10px; padding: 11px 22px; border-radius: 999px; border: 1px solid rgba(255,216,144,.6); background: rgba(40,28,12,.35); color: #ffe3b0;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; position: relative;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .6s var(--ease), transform .6s var(--ease), background .2s, box-shadow .2s;
}
body.can-enter .enter { opacity: 1; transform: none; pointer-events: auto; animation: pulseBtn 2.2s ease-in-out infinite; }
body.can-enter .loader-bar { opacity: .3; }
.enter:hover { background: rgba(80,56,20,.5); box-shadow: 0 0 24px rgba(255,200,110,.35); }
.loader-sub { margin: 6px 0 0; font-family: var(--f-mono); font-size: 10px; color: rgba(154,144,168,.7); letter-spacing: .06em; position: relative; }
body.touch .loader-sub { display: none; }
kbd { font-family: var(--f-mono); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
#loader.error .loader-text { color: #f0a0a0; text-transform: none; letter-spacing: 0; max-width: 420px; text-align: center; line-height: 1.6; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulseBtn { 50% { box-shadow: 0 0 22px rgba(255,200,110,.3); } }

/* ---------- catatan kursor & mode layar kecil ---------- */
#locknote {
  position: fixed; z-index: 15; left: 50%; top: 22px; transform: translate(-50%, -8px); padding: 8px 14px; border-radius: 999px;
  background: rgba(16,12,24,.62); border: 1px solid var(--line); color: var(--muted); font-family: var(--f-mono); font-size: 11px; letter-spacing: .05em;
  opacity: 0; pointer-events: none; transition: opacity .5s, transform .5s var(--ease); backdrop-filter: blur(6px);
}
#locknote.show { opacity: 1; transform: translate(-50%, 0); }
#btn-menu {
  display: none; position: fixed; z-index: 11; top: max(14px, env(safe-area-inset-top)); right: 16px; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(16,12,24,.6); color: var(--gold); font-size: 18px; cursor: pointer; backdrop-filter: blur(8px);
}
body.small #btn-menu { display: block; }
body:not(.entered) #btn-menu { display: none; }
#smallwarn { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(6,5,10,.7); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
#smallwarn.open { opacity: 1; visibility: visible; }
.sw-card { width: min(420px, 100%); padding: 26px 22px; border-radius: 18px; border: 1px solid var(--gold-soft); background: var(--bg-2); }
.sw-card h3 { font-family: var(--f-display); font-size: 22px; margin: 0 0 10px; }
.sw-card p { color: #cfc6b4; line-height: 1.6; font-size: 14px; margin: 0 0 16px; }
.index-toggles { flex-wrap: wrap; display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 16px; }
.hint-touch { display: none; }
body.touch .hint-touch { display: inline; } body.touch .hint-pc { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- HUD ---------- */
#hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center;
  justify-content: space-between; padding: max(16px, env(safe-area-inset-top)) 20px 16px;
  pointer-events: none;
}
#hud > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: inline-block; width: 36px; height: 23px; flex: none;
  background: linear-gradient(110deg, var(--gold) 0 42%, #fff4d6 50%, var(--gold) 58% 100%); background-size: 320% 100%;
  -webkit-mask: url(../assets/images/brand/logo-elif-afif.svg) center / contain no-repeat; mask: url(../assets/images/brand/logo-elif-afif.svg) center / contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(217, 178, 106, .45)); animation: logoshine 7s ease-in-out infinite;
}
@keyframes logoshine { 0%, 62% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.brand-title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 15px; }
.brand-sub { margin: 2px 0 0; font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.controls { display: flex; gap: 8px; }
.ctl {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  background: rgba(16, 12, 24, .6); border: 1px solid var(--line); cursor: pointer;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.ctl:hover { border-color: var(--gold); background: rgba(40, 30, 20, .6); }
.ctl:active { transform: scale(.96); }
.ctl:focus-visible, .index-list button:focus-visible, #panel-close:focus-visible, #index-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ctl-ico { color: var(--gold); font-size: 13px; }

/* ---------- hint ---------- */
#hint {
  position: fixed; z-index: 9; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 9px 16px; border-radius: 999px;
  background: rgba(16, 12, 24, .55); border: 1px solid var(--line); backdrop-filter: blur(6px);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .05em; color: var(--muted);
  transition: opacity .8s, transform .8s var(--ease); pointer-events: none;
}
#hint.gone { opacity: 0; transform: translate(-50%, 12px); }
.hint-arrow { color: var(--gold); font-size: 16px; animation: nudge 1.8s ease-in-out infinite; }
.hint-arrow:first-child { animation-direction: reverse; }
@keyframes nudge { 50% { transform: translateX(4px); } }

/* ---------- panel ---------- */
#panel {
  position: fixed; z-index: 20; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--panel); border-left: 1px solid var(--gold-soft);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform: translateX(105%); transition: transform .55s var(--ease); display: flex;
}
#panel.open { transform: none; }
.panel-scroll { overflow-y: auto; padding: 72px 30px 40px; width: 100%; }
#panel-close, #index-close {
  position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 13px;
}
#panel-close:hover, #index-close:hover { border-color: var(--gold); color: var(--gold); }
.kicker { font-family: var(--f-mono); font-size: 11px; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
#panel h2, #index h2, #fallback h2 { font-family: var(--f-display); font-weight: 800; font-size: 32px; line-height: 1.05; margin: 0 0 18px; }
#panel-body { color: #d8cfbd; line-height: 1.7; font-size: 15px; }
:where(#panel-body) p { margin: 0 0 14px; }
:where(#panel-body) a, #panel-items a { color: var(--gold); }
#panel-items { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.item {
  border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: rgba(255, 255, 255, .02);
  transition: border-color .2s;
}
.item:hover { border-color: var(--gold-soft); }
.item img { width: 100%; border-radius: 10px; display: block; margin-bottom: 12px; background: var(--bg-2); aspect-ratio: 16/10; object-fit: cover; }
.item-meta { font-family: var(--f-mono); font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.item-title { font-family: var(--f-display); font-weight: 700; font-size: 17px; margin: 4px 0 6px; }
.item-desc { margin: 0; color: #cfc6b4; font-size: 14px; line-height: 1.6; }
.item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.item-tags span { font-family: var(--f-mono); font-size: 10px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.item-link { display: inline-block; margin-top: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-decoration: none; }
.item-link:hover { text-decoration: underline; }

/* ---------- index & fallback ---------- */
#index, #fallback {
  position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 6, 13, .82); backdrop-filter: blur(10px); padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
#index.open { opacity: 1; visibility: visible; }
.index-inner { position: relative; width: min(560px, 100%); max-height: 100%; overflow-y: auto; padding: 36px 28px; border: 1px solid var(--gold-soft); border-radius: 20px; background: var(--bg-2); }
.index-lead { color: var(--muted); margin: -6px 0 20px; line-height: 1.6; }
.index-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.index-list button {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: transparent; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.index-list button:hover { border-color: var(--gold); background: rgba(217, 178, 106, .06); }
.il-obj { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .05em; }
.il-name { font-family: var(--f-display); font-weight: 700; font-size: 16px; }
body.no-webgl #fallback { opacity: 1; visibility: visible; }
body.no-webgl #loader, body.no-webgl #hint { display: none; }
.noscript { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 30px; text-align: center; background: var(--bg); }

/* ==========================================================
   ISI JENDELA (js/panels.js)
   ========================================================== */
#panel.wide:not(.center) { width: min(760px, 100%); }
#panel-body .todo { color: var(--muted); font-style: italic; opacity: .75; }
#panel-body .todo::before { content: '✧ '; }
.p-lead { color: #d8cfbd; line-height: 1.7; margin: -4px 0 18px; }
.p-quote { font-family: var(--f-display); font-size: 18px; color: var(--ink); border-left: 2px solid var(--gold); padding-left: 14px; }
.p-meta { font-family: var(--f-mono); font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.p-tags span { font-family: var(--f-mono); font-size: 10px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.p-link { display: inline-block; margin-top: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--gold); text-decoration: none; }
.p-link:hover { text-decoration: underline; }
.p-more { margin-top: 24px; text-align: center; }
.p-btn { display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--gold-soft); color: var(--gold); text-decoration: none; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; transition: background .2s, border-color .2s; }
.p-btn:hover { background: rgba(217, 178, 106, .08); border-color: var(--gold); }
.g-h { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 24px 0 10px; font-weight: 400; }
.badge { display: inline-block; vertical-align: middle; margin-left: 6px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; background: rgba(217, 178, 106, .14); color: var(--gold); border: 1px solid var(--gold-soft); }

/* ---------- mode tengah: buku, proyek, fan art, novel ---------- */
#panel.center { left: 0; width: 100%; border: 0; background: rgba(7, 5, 12, .86); transform: none; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
#panel.center.open { opacity: 1; visibility: visible; }
#panel.center .panel-scroll { padding: 18px 28px 24px; display: flex; flex-direction: column; }
#panel.center .panel-head { flex: none; padding-right: 60px; min-height: 50px; }
#panel.center .panel-head .kicker { margin: 0 0 2px; font-size: 10px; }
#panel.center h2 { font-size: 22px; margin: 0; }
#panel.center #panel-body { flex: 1; min-height: 0; display: flex; }
#panel.center #panel-body > div { margin: auto; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
#panel.center.open #panel-body > div { animation: popIn .55s var(--ease) backwards; }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.975); } }
#panel.center #panel-close { z-index: 5; background: rgba(11, 9, 18, .6); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

/* ---------- 1 · grimoire: buku terbuka ---------- */
.book {
  --bh: min(80vh, 700px, 61vw); position: relative; flex: none; height: var(--bh); width: calc(var(--bh) * 1.5);
  font-size: max(10.5px, calc(var(--bh) / 44)); line-height: 1.6; color: #2b2117; perspective: 2400px;
}
.book::before { content: ''; position: absolute; inset: -1em -1.1em; border-radius: .7em; background: linear-gradient(#4a2530, #2e141c);
  box-shadow: 0 0 0 1px var(--gold-soft), inset 0 0 0 .28em #3a1d24, inset 0 0 0 .34em rgba(217, 178, 106, .5), 0 2em 4em rgba(0, 0, 0, .6); }
.bk-page { position: absolute; top: 0; bottom: 0; width: 50%; padding: 2.3em 2.4em 2.9em; overflow: hidden; }
.bk-l, .bk-back { left: 0; border-radius: .35em 0 0 .35em; background: linear-gradient(90deg, #e6d7b6 0%, #f6ecd6 10%, #f4e9d1 84%, #d3c29d 100%); }
.bk-r, .bk-front { left: 50%; border-radius: 0 .35em .35em 0; background: linear-gradient(270deg, #e6d7b6 0%, #f6ecd6 10%, #f4e9d1 84%, #d3c29d 100%); }
.bk-leaf { position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; transform-origin: left center; transform-style: preserve-3d; display: none; z-index: 3; }
.bk-leaf .bk-face { left: 0; width: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.bk-leaf .bk-back { transform: rotateY(180deg); }
.book.flip-f .bk-leaf { display: block; animation: flipF .85s cubic-bezier(.45, .05, .3, 1) both; }
.book.flip-b .bk-leaf { display: block; animation: flipB .85s cubic-bezier(.45, .05, .3, 1) both; }
@keyframes flipF { from { transform: rotateY(0); } to { transform: rotateY(-180deg); } }
@keyframes flipB { from { transform: rotateY(-180deg); } to { transform: rotateY(0); } }
.bk-in { height: 100%; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(139, 100, 50, .4) transparent; }
.bk-no { position: absolute; bottom: 1em; left: 0; right: 0; text-align: center; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: .8em; color: #9a8466; pointer-events: none; }
.bk-nav { position: absolute; bottom: .55em; z-index: 4; display: inline-flex; align-items: center; gap: .45em; padding: .5em 1.05em; border: 1px solid #b08a46; border-radius: 999px; cursor: pointer;
  background: #5a2430; color: #f6e7c4; font-family: var(--f-mono); font-size: .78em; letter-spacing: .08em; box-shadow: 0 .25em .7em rgba(60, 25, 20, .35); transition: background .2s, transform .2s, box-shadow .2s, opacity .4s ease .15s; }
.book.flip-f .bk-nav, .book.flip-b .bk-nav { opacity: 0; pointer-events: none; animation: none; transition: opacity .15s ease; }   /* lenyap saat lembar dibalik */
.bk-nav b { font-size: 1.35em; line-height: 1; font-weight: 400; }
.bk-nav.prev { left: 1.4em; background: rgba(90, 36, 48, .12); color: #5a2430; box-shadow: none; } .bk-nav.next { right: 1.4em; animation: bkNudge 2.8s ease-in-out 1.2s infinite; }
.bk-nav:hover { background: #7a2430; color: #fff3d8; transform: translateY(-1px); box-shadow: 0 .35em .9em rgba(60, 25, 20, .45); animation: none; }
.bk-nav.prev:hover { color: #fff3d8; }
@keyframes bkNudge { 0%, 70%, 100% { transform: translateX(0); } 80% { transform: translateX(.3em); } 90% { transform: translateX(0); } }
.bk-nav[hidden] { display: none; }
.book-stack { width: 100%; max-width: 520px; font-size: 14.5px; line-height: 1.6; color: #2b2117; display: grid; gap: 14px; padding: 8px 6px 20px; }
.book-stack .bk-page { position: relative; width: auto; padding: 26px 22px 44px; border-radius: 6px; background: linear-gradient(#f6ecd6, #efe3c8); box-shadow: 0 0 0 5px #3a1d24, 0 0 0 6px var(--gold-soft); }
.book-stack .bk-in { height: auto; }
.g-center { text-align: center; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.g-photo { width: 48%; margin: 0 auto 1em; aspect-ratio: 4 / 5; border-radius: 50% 50% .5em .5em / 40% 40% .5em .5em; overflow: hidden; border: 2px solid #b08a46; box-shadow: inset 0 0 0 .25em #f6ecd6; }
.g-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-photo-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4em; background: repeating-linear-gradient(45deg, #e6d6b4 0 6px, #eadcbd 6px 12px); color: #9a7a43; }
.g-photo-ph span { font-size: 2.2em; } .g-photo-ph small { font-family: var(--f-mono); font-size: .6em; letter-spacing: .12em; text-transform: uppercase; }
.g-name { font-family: var(--f-display); font-size: 1.75em; line-height: 1.15; margin: 0; color: #2b1a12; }
.g-full { margin: .15em 0 .45em; font-size: .82em; color: #6b5a44; }
.g-alias { font-family: var(--f-mono); font-size: .74em; color: #8a5a2b; margin: 0 0 .9em; } .g-alias i { color: #b08a46; font-style: normal; }
.g-alias small { font-size: .82em; color: #9a8466; letter-spacing: .04em; }
.g-role { font-weight: 700; margin: 0; font-size: .92em; } .g-campus { font-size: .82em; color: #5b4a36; margin: .2em 0 1.2em; line-height: 1.5; }
.g-quote { margin: 0; padding: 1em .4em 0; border-top: 1px solid rgba(139, 100, 50, .3); }
.g-quote p { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: .98em; margin: 0 0 .4em; color: #3d2a1a; line-height: 1.5; }
.g-quote footer { font-size: .76em; color: #7a6650; }
.g-intro { margin: 0 0 1em; }
.dropcap::first-letter { float: left; font-family: var(--f-display); font-weight: 800; font-size: 3.1em; line-height: .85; margin: .08em .16em 0 0; color: #7a2430; }
.book .g-h, .book-stack .g-h { color: #8a5a2b; margin: 1.5em 0 .5em; font-size: .68em; }
.book .g-h-big, .book-stack .g-h-big { font-size: .76em; margin-top: 0; padding-bottom: .8em; border-bottom: 1px solid rgba(139, 100, 50, .3); }
.g-story { margin: 0; } .g-story dt { font-family: var(--f-mono); font-size: .68em; letter-spacing: .12em; text-transform: uppercase; color: #8a5a2b; margin-top: .9em; } .g-story dd { margin: .15em 0 0; }
.book .p-tags span, .book-stack .p-tags span { border-color: rgba(139, 100, 50, .35); color: #5b4a36; font-size: .72em; }
.g-favbox { text-align: center; padding: 1.2em 1em 1.4em; margin: 1.3em 0 1.8em; border: 1px solid rgba(139, 100, 50, .35); border-radius: .4em; background: rgba(255, 255, 255, .28); }
.g-favbox h3 { font-family: var(--f-display); font-size: 1.8em; line-height: 1.15; margin: .1em 0 .3em; color: #5a2430; }
.g-favbox p { margin: 0; font-size: .92em; font-style: italic; color: #5b4a36; }
.g-orn { color: #b08a46; font-size: 1.3em; }
.g-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5em 1.2em; }
.g-list li { position: relative; padding-left: 1.3em; line-height: 1.4; } .g-list li::before { content: '✧'; position: absolute; left: 0; color: #b08a46; }
.cv { display: block; flex: none; aspect-ratio: 2 / 3; border-radius: .25em; overflow: hidden; box-shadow: 0 .15em .45em rgba(60, 40, 20, .35), 0 0 0 1px rgba(139, 100, 50, .35); background: #2b2117; }
.cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35em; padding: .4em; text-align: center; color: #f3e3bd;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(0, 0, 0, .35)), var(--t); box-shadow: inset 0 0 0 .18em rgba(0, 0, 0, .15), inset 0 0 0 .26em rgba(217, 178, 106, .45); }
.cv-ph i { font-style: normal; color: #e8c98a; font-size: .9em; } .cv-ph b { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: .62em; line-height: 1.2; }
.g-shelf { list-style: none; margin: 1.1em 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .9em .7em; }
.book .g-shelf { grid-template-columns: repeat(5, 1fr); gap: 1em .8em; }
.g-shelf li { display: flex; flex-direction: column; gap: .35em; text-align: center; }
.g-shelf li > span { font-size: .66em; line-height: 1.25; color: #5b4a36; }
.g-fav { display: flex; gap: 1.1em; align-items: center; padding: 1em; margin: .9em 0 .4em; border: 1px solid rgba(139, 100, 50, .35); border-radius: .4em; background: rgba(255, 255, 255, .28); }
.g-fav .cv-big { width: 7.2em; }
.g-fav h3 { font-family: var(--f-display); font-size: 1.45em; line-height: 1.1; margin: 0 0 .25em; color: #5a2430; }
.g-fav p { margin: 0; font-size: .82em; font-style: italic; color: #5b4a36; }
.g-favq { margin-top: .6em; font-size: .82em; }
.g-games { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1em; }
.g-game { display: flex; gap: 1.1em; align-items: center; }
.g-game .cv { width: 5.2em; }
.g-game .cv-ph b, .g-shelf .cv-ph b { display: none; } .g-shelf .cv-ph i, .g-game .cv-ph i { font-size: 1.1em; }
.g-game h5 { margin: 0 0 .3em; font-size: 1em; font-weight: 700; color: #2b1a12; }
.g-game q, .g-favq q { display: block; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: .84em; line-height: 1.45; color: #3d2a1a; quotes: '“' '”'; }
.g-game small, .g-favq small { display: block; margin-top: .15em; font-size: .7em; color: #8a7a62; }
.g-game .todo, .g-favq .todo { font-size: .75em; }
.g-outro { margin: auto 0 0; padding-top: 1.8em; font-size: .86em; font-style: italic; color: #7a6650; }
.g-sign { display: flex; align-items: center; justify-content: flex-end; gap: .8em; margin-top: 1.2em; font-family: Georgia, 'Times New Roman', serif; font-style: italic; color: #5b4a36; }
.g-seal { width: 2.6em; height: 1.65em; background: #7a2430; -webkit-mask: url(../assets/images/brand/logo-elif-afif.svg) center / contain no-repeat; mask: url(../assets/images/brand/logo-elif-afif.svg) center / contain no-repeat; }
#panel-body .book .todo, #panel-body .book-stack .todo, #panel-body .nv-detail .todo { color: #8a7a62; }

/* ---------- 2 · rak ramuan ---------- */
.pt-legend { display: flex; gap: 16px; font-family: var(--f-mono); font-size: 10px; color: var(--muted); letter-spacing: .06em; margin-bottom: 8px; }
.pt-legend span { display: flex; align-items: center; gap: 6px; }
.pt-mini { width: 9px; height: 13px; border: 1px solid var(--gold); border-radius: 3px 3px 4px 4px; background: linear-gradient(to top, var(--gold) calc(var(--fill) * 100%), transparent 0); }
.pt-shelf { margin-top: 18px; }
.pt-h { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; font-weight: 400; } .pt-h small { color: var(--muted); letter-spacing: .04em; text-transform: none; }
.pt-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px 4px; padding-bottom: 10px; border-bottom: 3px solid #4a2c1c; box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .7); }
.pt-row-wide { grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.potion { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; outline: none; color: inherit; text-decoration: none; }
.potion-wide { flex-direction: row; align-items: flex-end; text-align: left; gap: 10px; }
.potion-wide figcaption { margin: 0 0 4px; }
.pt-bottle { position: relative; width: 52px; height: 80px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; transform-origin: 50% 92%; animation: bob 4s ease-in-out infinite; animation-delay: var(--d); transition: filter .2s; }
.pt-cork { width: 14px; height: 9px; border-radius: 3px; background: #8a5a2b; }
.pt-neck { width: 16px; height: 11px; border: 1px solid rgba(239, 230, 210, .35); border-bottom: 0; background: rgba(40, 32, 52, .9); }
.pt-body { position: relative; width: 52px; height: 58px; border-radius: 42% 42% 14px 14px; border: 1px solid rgba(239, 230, 210, .4); overflow: hidden; background: rgba(34, 27, 46, .92); box-shadow: inset -6px 0 10px rgba(255, 255, 255, .06); }
.pt-liquid { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--fill) * 100%); background: linear-gradient(to top, #b08a46, #ffd98e); box-shadow: 0 0 16px rgba(217, 178, 106, .55); transition: filter .3s; }
.pt-liquid::before { content: ''; position: absolute; left: -15%; right: -15%; top: -3px; height: 6px; border-radius: 50%; background: #ffe7b5; opacity: .7; }
.pt-liquid i { position: absolute; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 250, 235, .9); opacity: 0; }
.pt-liquid i:nth-child(1) { left: 22%; } .pt-liquid i:nth-child(2) { left: 52%; width: 3px; height: 3px; } .pt-liquid i:nth-child(3) { left: 74%; width: 5px; height: 5px; }
.pt-label { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: #f1e5c8; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px #b08a46; }
.pt-ico { width: 17px; height: 17px; display: block; }
.pt-abbr { font-family: var(--f-mono); font-size: 10px; font-weight: 700; color: #3d2a1a; }
.potion figcaption { margin-top: 6px; line-height: 1.25; } .potion figcaption b { display: block; font-size: 11.5px; font-weight: 600; } .potion figcaption small { font-family: var(--f-mono); font-size: 9px; color: var(--muted); letter-spacing: .04em; }
.potion-wide figcaption b { font-size: 13px; } .potion-wide figcaption small { display: block; font-size: 9.5px; margin-top: 2px; }
/* hover: garis emas mengikuti seluruh siluet botol (tutup + leher + badan), botol bergoyang, isi beriak dan bergelembung */
.potion:hover .pt-bottle, .potion:focus-visible .pt-bottle, .pt-tro:hover .trophy {
  filter: drop-shadow(1px 0 0 var(--gold)) drop-shadow(-1px 0 0 var(--gold)) drop-shadow(0 1px 0 var(--gold)) drop-shadow(0 -1px 0 var(--gold)) drop-shadow(0 0 7px rgba(255, 205, 120, .55));
  animation: potionShake .75s ease-in-out;
}
.potion:hover .pt-liquid, .potion:focus-visible .pt-liquid { filter: brightness(1.25) saturate(1.15); }
.potion:hover .pt-liquid::before, .potion:focus-visible .pt-liquid::before { animation: slosh .8s ease-in-out infinite; }
.potion:hover .pt-liquid i, .potion:focus-visible .pt-liquid i { animation: bubble 1.1s ease-in infinite; }
.potion:hover .pt-liquid i:nth-child(2) { animation-delay: .35s; animation-duration: .9s; } .potion:hover .pt-liquid i:nth-child(3) { animation-delay: .6s; animation-duration: 1.3s; }
@keyframes bob { 50% { transform: translateY(-3px); } }
@keyframes potionShake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-9deg); } 45% { transform: rotate(7deg); } 70% { transform: rotate(-4deg); } 88% { transform: rotate(2deg); } }
@keyframes slosh { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-1px); } }
@keyframes bubble { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-34px) scale(1.1); opacity: 0; } }
.pt-shelf.brewing .potion { opacity: .5; filter: saturate(.4) blur(.3px); }
.pt-shelf.brewing .pt-liquid { background: linear-gradient(to top, #6f5fae, #b7a6ff); box-shadow: 0 0 14px rgba(143, 122, 216, .5); }
.pt-bottle.flask .pt-neck { width: 13px; height: 14px; }
.pt-bottle.flask .pt-body { width: 54px; height: 54px; border-radius: 50% 50% 46% 46%; }
.pt-bottle.flask .pt-liquid { background: linear-gradient(to top, #3b6fd6, #9cc4ff); box-shadow: 0 0 16px rgba(110, 160, 255, .55); }
.pt-bottle.flask .pt-liquid::before { background: #cfe2ff; }
.trophy { position: relative; width: 52px; height: 80px; flex: none; display: flex; align-items: flex-end; justify-content: center; transform-origin: 50% 92%; transition: filter .2s; }
.trophy i { position: relative; width: 34px; height: 30px; margin-bottom: 22px; border-radius: 4px 4px 17px 17px; background: linear-gradient(135deg, #ffe3a6, #b08a46 60%, #8a6a2c); box-shadow: 0 0 14px rgba(217, 178, 106, .45); }
.trophy i::before { content: ''; position: absolute; left: -9px; right: -9px; top: 3px; height: 14px; border: 3px solid #c9a55c; border-top: 0; border-radius: 0 0 12px 12px; z-index: -1; }
.trophy i::after { content: ''; position: absolute; left: 50%; top: 100%; width: 6px; height: 10px; margin-left: -3px; background: #b08a46; }
.trophy::after { content: ''; position: absolute; bottom: 6px; left: 50%; width: 28px; height: 6px; margin-left: -14px; border-radius: 2px; background: linear-gradient(#e8c98a, #8a6a2c); }

/* ---------- 3 · proyek: jendela kode ---------- */
.pj { width: min(1120px, 100%); height: min(78vh, 700px); display: flex; flex-direction: column; border: 1px solid var(--gold-soft); border-radius: 14px; overflow: hidden; background: #0f0c18; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.pj-bar { display: flex; align-items: center; gap: 14px; padding: 9px 14px; background: #171226; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; }
.pj-dots { flex: none; } .pj-dots i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: #7a2430; } .pj-dots i:nth-child(2) { background: #b08a46; } .pj-dots i:nth-child(3) { background: #2f6b40; }
.pj-path { flex: 1; min-width: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pj-path b { color: #6bd38a; font-weight: 400; }
.pj-profile { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 11px; }
:where(#panel-body) .pj-profile { color: var(--ink); } .pj-profile:hover { border-color: var(--gold); }
.pj-dot { width: 7px; height: 7px; border-radius: 50%; background: #6bd38a; box-shadow: 0 0 8px #6bd38a; }
.pc-caret { display: inline-block; width: 7px; height: 12px; margin-left: 4px; vertical-align: -2px; background: #6bd38a; animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.pj-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 250px 1fr; }
.pj-tree { border-right: 1px solid var(--line); padding: 10px; overflow-y: auto; background: rgba(255, 255, 255, .015); }
.pj-group h4 { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 12px 8px 6px; font-weight: 400; } .pj-group h4 small { color: var(--muted); }
.pj-item { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .15s, color .15s; }
.pj-item span { color: var(--gold); opacity: .45; margin-right: 4px; }
.pj-item:hover { background: rgba(255, 255, 255, .04); color: var(--ink); }
.pj-item.on { background: rgba(217, 178, 106, .12); color: var(--gold); } .pj-item.on span { opacity: 1; }
.pj-detail { overflow-y: auto; padding: 22px 26px 26px; }
.pj-detail.in > * { animation: fadeUp .4s var(--ease) backwards; } .pj-detail.in > .pd-body { animation-delay: .06s; }
.pc-media { display: block; position: relative; width: 100%; max-width: calc(46vh * 16 / 9); margin: 0 auto; aspect-ratio: 16 / 9; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 0; overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-video { cursor: pointer; }
.pc-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(11, 9, 18, .7); border: 1px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 19px; transition: transform .2s; }
.pc-video:hover .pc-play { transform: translate(-50%, -50%) scale(1.08); }
.pc-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.pc-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: radial-gradient(circle at 30% 20%, rgba(143, 122, 216, .18), transparent 60%), repeating-linear-gradient(0deg, transparent 0 22px, rgba(239, 230, 210, .04) 22px 23px), repeating-linear-gradient(90deg, transparent 0 22px, rgba(239, 230, 210, .04) 22px 23px), var(--bg-2); }
.pc-ph span { font-family: var(--f-display); font-size: 54px; font-weight: 800; color: var(--gold); opacity: .55; } .pc-ph small { font-family: var(--f-mono); font-size: 9px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.pd-body { max-width: 760px; margin: 0 auto; }
.pd-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 18px; }
.pd-head h3 { font-family: var(--f-display); font-size: 24px; line-height: 1.15; margin: 0 0 4px; }
.pd-head .p-btn { flex: none; padding: 9px 15px; }
.pc-desc { margin: 12px 0 0; color: #cfc6b4; font-size: 15px; line-height: 1.65; }

.pd-media .pc-media { max-width: calc(44vh * 16 / 9); }
.pc-zoom { cursor: zoom-in; } .pc-zoom img { object-fit: contain; background: #0b0912; }
.pc-embed video { width: 100%; height: 100%; display: block; background: #000; }
.pd-strip { display: flex; gap: 8px; justify-content: center; margin: 12px auto 0; flex-wrap: wrap; }
.pd-th { position: relative; width: 104px; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #0b0912; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s, transform .2s; }
.pd-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-th i { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); font-style: normal; font-size: 12px; color: var(--gold); text-shadow: 0 0 6px #000; }
.pd-th small { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 4px; font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .04em; color: var(--ink); background: linear-gradient(transparent, rgba(0, 0, 0, .85)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-th:hover { opacity: .9; } .pd-th.on { opacity: 1; border-color: var(--gold); transform: translateY(-2px); }
.pd-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-role { margin: 12px 0 0; font-size: 14px; color: var(--gold); } .pd-role b { font-weight: 600; color: var(--muted); font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-right: 4px; }
.pd-team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.pd-team li { padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.pd-team li small { display: block; font-family: var(--f-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pd-team li.me { border-color: var(--gold-soft); background: rgba(217, 178, 106, .07); color: var(--gold); }
.nv-prof { margin-top: 22px; }
.sc-ico { width: 18px; height: 18px; flex: none; border-radius: 4px; background: #8a5a2b; color: #f3e3bd; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---------- 4 · fan art ---------- */
.fa { width: 100%; }
.fa-lead { font-family: var(--f-display); font-size: 19px; line-height: 1.4; color: var(--ink); border-left: 2px solid var(--gold); padding-left: 14px; margin: 0 0 26px; }
.fa-stage { display: grid; grid-template-columns: auto minmax(250px, 340px); gap: clamp(24px, 4vw, 60px); align-items: center; justify-content: center; }
.gl-frame { display: block; border: 0; padding: clamp(6px, .9vh, 10px); cursor: zoom-in; background: linear-gradient(135deg, #8a6a2c, #e8c98a 30%, #a07c38 55%, #f0d7a0 80%, #8a6a2c); border-radius: 4px; box-shadow: 0 22px 50px rgba(0, 0, 0, .6); }
.fa-art .gl-img { display: block; height: min(74vh, 900px, 58vw); width: auto; aspect-ratio: 4 / 5; object-fit: contain; background: #000; }
.gl-img.in { animation: glIn .45s var(--ease); }
@keyframes glIn { from { opacity: 0; transform: scale(.975); } }
.gl-count { font-family: var(--f-mono); font-size: 11px; color: var(--gold); letter-spacing: .14em; }
.gl-title { font-family: var(--f-display); font-size: 28px; line-height: 1.15; margin: 6px 0 8px; }
.gl-credit { margin: 10px 0 0; font-size: 12px; color: var(--muted); font-style: italic; line-height: 1.5; }
.fa-nav { display: flex; gap: 8px; margin: 22px 0 18px; }
.gl-nav { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(11, 9, 18, .65); cursor: pointer; font-size: 20px; color: var(--ink); transition: border-color .2s, color .2s; }
.gl-nav:hover { border-color: var(--gold); color: var(--gold); }
.gl-thumbs { display: flex; gap: 8px; margin-bottom: 22px; }
.gl-thumb { width: 60px; aspect-ratio: 4 / 5; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; cursor: pointer; opacity: .5; background: none; transition: opacity .2s, border-color .2s, transform .2s; }
.gl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gl-thumb:hover { opacity: .9; } .gl-thumb.on { opacity: 1; border-color: var(--gold); transform: translateY(-3px); }
.lightbox { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(5, 4, 9, .94); cursor: zoom-out; opacity: 0; transition: opacity .3s; padding: 3vh; }
.lightbox.show { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.lightbox .gl-nav { position: absolute; top: 50%; transform: translateY(-50%); } .lightbox .gl-nav.prev { left: 24px; } .lightbox .gl-nav.next { right: 24px; }
.lb-close { position: absolute; top: 18px; right: 22px; font-size: 14px; color: var(--muted); }

/* ---------- novel & cerita ---------- */
.nv { width: min(1120px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(22px, 4vw, 48px); align-items: center; }
.nv-shelf { display: flex; gap: 18px; align-items: flex-end; padding: 22px 16px 0; border-bottom: 10px solid #4a2c1c; box-shadow: 0 14px 16px -10px rgba(0, 0, 0, .8); }
.nv-book { flex: 1; max-width: 200px; aspect-ratio: 2 / 3; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 14px; border: 0; border-radius: 3px 8px 8px 3px; cursor: pointer; text-align: center; color: #f3e3bd;
  background: linear-gradient(90deg, rgba(0, 0, 0, .42) 0 5%, rgba(255, 255, 255, .1) 7%, transparent 11%), linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(0, 0, 0, .3)); background-color: var(--c);
  box-shadow: 4px 0 0 #e9dcc0, 5px 0 0 #b9a57e, 0 12px 22px rgba(0, 0, 0, .5); transform-origin: 50% 100%; transition: transform .3s var(--ease), box-shadow .3s; }
.nv-book::after { content: ''; position: absolute; inset: 9px 9px 9px 14px; border: 1px solid rgba(217, 178, 106, .55); border-radius: 2px 5px 5px 2px; pointer-events: none; }
.nv-book b { font-family: Georgia, 'Times New Roman', serif; font-size: 15px; line-height: 1.3; font-weight: 400; } .nv-book small { font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.nv-orn { color: var(--gold); font-size: 18px; }
.nv-book:hover { transform: translateY(-8px) rotate(-1.5deg); }
.nv-book.on { transform: translateY(-16px); box-shadow: 4px 0 0 #e9dcc0, 5px 0 0 #b9a57e, 0 0 0 2px var(--gold), 0 18px 30px rgba(0, 0, 0, .55); }
.nv-detail { padding: 28px 26px; min-height: 280px; border-radius: 6px; color: #2b2117; background: radial-gradient(ellipse at 30% 20%, #f8efda, #ecdcb8 70%, #d9c49a); box-shadow: 0 20px 40px rgba(0, 0, 0, .5), inset 0 0 40px rgba(120, 80, 30, .22); }
.nv-detail.in > * { animation: fadeUp .4s var(--ease) backwards; }
.nv-detail .kicker { color: #8a5a2b; } .nv-detail .p-meta { color: #7a6650; }
.nv-detail h3 { font-family: Georgia, 'Times New Roman', serif; font-size: 26px; font-weight: 400; margin: 0 0 6px; }
.nv-syn { margin: 16px 0 0; font-size: 15px; line-height: 1.7; }
.nv-ex { margin: 16px 0 0; padding-left: 14px; border-left: 2px solid #b08a46; font-family: Georgia, 'Times New Roman', serif; font-style: italic; }
.nv-detail .p-btn { margin-top: 18px; border-color: rgba(122, 90, 50, .5); color: #5b3a1a; }

/* ---------- 5 · identitas ---------- */
.id-hero { position: relative; aspect-ratio: 16 / 8; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 45%, #1d2742, #0b0f1c 70%); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.id-logo { width: 46%; aspect-ratio: 742 / 472; background: linear-gradient(110deg, var(--gold) 0 42%, #fff4d6 50%, var(--gold) 58% 100%); background-size: 320% 100%; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; animation: logoshine 7s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(217, 178, 106, .35)); }
.id-grid { position: absolute; left: 27%; top: 50%; transform: translateY(-50%); width: 46%; aspect-ratio: 742 / 472; opacity: 0; transition: opacity .4s; pointer-events: none;
  background-image: linear-gradient(to right, rgba(143, 200, 255, .45) 1px, transparent 1px), linear-gradient(to bottom, rgba(143, 200, 255, .45) 1px, transparent 1px);
  background-size: calc(100% / 11) calc(100% / 7); outline: 1px dashed rgba(143, 200, 255, .5); outline-offset: 0; }
.id-hero.grid .id-grid { opacity: 1; }
.id-toggle { position: absolute; right: 10px; bottom: 10px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(11, 9, 18, .6); cursor: pointer; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; }
.id-toggle:hover { border-color: var(--gold); color: var(--gold); }
.id-row { display: grid; grid-template-columns: 1fr 150px; gap: 18px; align-items: start; margin-top: 18px; }
.id-name { font-family: var(--f-display); font-size: 22px; margin: 2px 0 6px; letter-spacing: .04em; }
.id-desc { margin: 0; color: #d8cfbd; font-size: 14px; line-height: 1.65; }
.id-sample { width: 100%; border-radius: 10px; display: block; border: 1px solid var(--line); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.sw { text-align: left; padding: 0 0 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .02); cursor: copy; transition: border-color .2s; }
.sw:hover { border-color: var(--gold); }
.sw i { display: block; height: 42px; background: var(--c); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.sw b { display: block; font-size: 11.5px; padding: 0 10px; font-weight: 600; } .sw small { font-family: var(--f-mono); font-size: 10px; color: var(--muted); padding: 0 10px; }
.case { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); margin-bottom: 12px; }
.case-img img { width: 100%; display: block; border-radius: 8px; }
.case h3 { font-family: var(--f-display); font-size: 19px; margin: 2px 0 3px; }
.case .g-story dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: 12px; }
.case .g-story dd { margin: 3px 0 0; color: #cfc6b4; font-size: 13.5px; line-height: 1.6; }

/* ---------- 6 · gulungan ---------- */
.parchment { position: relative; padding: 26px 22px 30px; color: #2b2117; border-radius: 4px; margin: 14px 6px;
  background: radial-gradient(ellipse at 30% 20%, #f8efda, #ecdcb8 70%, #d9c49a); box-shadow: 0 20px 40px rgba(0, 0, 0, .5), inset 0 0 40px rgba(120, 80, 30, .25); }
.parchment::before, .parchment::after { content: ''; position: absolute; left: -8px; right: -8px; height: 16px; border-radius: 8px; background: linear-gradient(to bottom, #a07c48, #e6cf9e 45%, #8a6438); box-shadow: 0 3px 6px rgba(0, 0, 0, .35); }
.parchment::before { top: -10px; } .parchment::after { bottom: -10px; }
.sc-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(62, 120, 70, .14); color: #2f5f37; font-size: 12.5px; font-weight: 600; margin-bottom: 14px; }
.sc-dot { width: 8px; height: 8px; border-radius: 50%; background: #3e9a52; box-shadow: 0 0 0 0 rgba(62, 154, 82, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(62, 154, 82, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 154, 82, 0); } }
.sc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed rgba(122, 90, 50, .35); }
.sc-row small { display: block; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #8a5a2b; }
.sc-row b { font-size: 14px; word-break: break-all; }
.sc-act { display: flex; gap: 6px; flex: none; }
.sc-act button, .sc-act a { font-family: var(--f-mono); font-size: 10px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(122, 90, 50, .45); background: transparent; color: #5b3a1a; cursor: pointer; text-decoration: none; }
.sc-act button:hover, .sc-act a:hover { background: rgba(122, 90, 50, .12); }
.sc-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.sc-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(122, 90, 50, .3); text-decoration: none; color: inherit; transition: background .2s; }
.sc-link:hover { background: rgba(122, 90, 50, .1); }
.sc-link img { width: 18px; height: 18px; opacity: .8; } .sc-link span { flex: 1; } .sc-link b { display: block; font-size: 13px; } .sc-link small { font-size: 11px; color: #6b5a44; } .sc-link i { font-style: normal; color: #8a5a2b; }
#panel-body .sc-closing { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 15.5px; line-height: 1.6; margin: 30px 0 10px; color: #3d2a1a; }
.sc-sign { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: #6b5a44; }
.seal { width: 54px; height: 54px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c0414f, #7a1825 70%); box-shadow: 0 3px 8px rgba(80, 10, 20, .5), inset 0 -3px 6px rgba(0, 0, 0, .3); display: flex; align-items: center; justify-content: center; transform: rotate(-8deg); }
.seal i { width: 30px; height: 19px; background: #e9a4a8; opacity: .85; -webkit-mask: url(../assets/images/brand/logo-elif-afif.svg) center / contain no-repeat; mask: url(../assets/images/brand/logo-elif-afif.svg) center / contain no-repeat; }
#panel-body .parchment a { color: #5b3a1a; }
#panel-body .sc-link b { color: #2b2117; }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); z-index: 70; padding: 10px 16px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--gold-soft); color: var(--gold); font-family: var(--f-mono); font-size: 11px; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 820px) {
  .pj { height: auto; }
  .pj-main { grid-template-columns: 1fr; }
  .pj-tree { display: flex; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .pj-group { display: flex; align-items: center; flex: none; } .pj-group h4 { margin: 0 6px 0 8px; white-space: nowrap; }
  .pj-item { width: auto; }
  .fa-stage { grid-template-columns: 1fr; justify-items: center; }
  .fa-art .gl-img { height: auto; width: min(84vw, 52vh); }
  .fa-side { width: 100%; max-width: 420px; }
  .nv { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  #panel.wide:not(.center) { width: 100%; }
  #panel.center { top: 0; height: 100%; border-radius: 0; border-top: 0; transform: none; }
  #panel.center .panel-scroll { padding: 14px 14px 20px; }
  .pj-path { display: none; } .pj-bar { justify-content: space-between; }
  .id-row, .case { grid-template-columns: 1fr; }
  .id-sample, .case-img { max-width: 220px; }
  .swatches, .sc-links { grid-template-columns: 1fr 1fr; }
  .sc-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .ctl-label, .brand-sub { display: none; }
  .ctl { padding: 9px 11px; }
  #panel { top: auto; width: 100%; height: 78vh; border-left: 0; border-top: 1px solid var(--gold-soft); border-radius: 20px 20px 0 0; transform: translateY(105%); }
  .panel-scroll { padding: 60px 22px 32px; }
  #panel h2 { font-size: 26px; }
  #hint { font-size: 10px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ---------- easter egg ---------- */
.index-seen { margin: -6px 0 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.index-seen b { color: var(--gold); font-weight: 700; }
.brand-badge { display: none; color: var(--gold); }
body.forbidden .brand-badge { display: inline; }
canvas.rewind { filter: sepia(.55) saturate(.75) contrast(1.08) hue-rotate(-8deg); transition: filter .6s; }
canvas { transition: filter 1.2s; }
#endpoem { position: fixed; inset: 0; z-index: 44; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; background: rgba(2,2,4,.86); opacity: 0; visibility: hidden; transition: opacity 2.4s, visibility 2.4s; pointer-events: none; }
#endpoem.open { opacity: 1; visibility: visible; }
#endpoem p { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(17px, 2.2vw, 26px); line-height: 1.5; opacity: 0; transform: translateY(6px); }
#endpoem.open p { animation: epIn 1.6s var(--ease) forwards; }
#endpoem .ep-a { color: #7fe3e0; animation-delay: 1.6s !important; }
#endpoem .ep-b { color: #8ee08a; animation-delay: 4s !important; }
#endpoem .ep-c { color: #f4f1e8; font-size: clamp(22px, 3vw, 36px); letter-spacing: .02em; animation-delay: 6.6s !important; }
#endpoem .ep-src { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: rgba(200,190,170,.55); margin-top: 18px; animation-delay: 8.6s !important; }
@keyframes epIn { to { opacity: 1; transform: none; } }
.seen-replay { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; text-decoration: underline; cursor: pointer; }
