/* NEZI · tema komik anime Sherwood: Nezi, pemanah bertudung ala Robin Hood.
   Kertas perkamen, tinta, hijau hutan, kulit cokelat, emas, merah bulu. */

@font-face { font-family: 'Dela Gothic One'; src: url(/fonts/DelaGothicOne-400.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Shantell Sans'; src: url(/fonts/ShantellSans-400_800.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Yuji Kanji'; src: url(/fonts/YujiSyuku-kanji.woff2) format('woff2'); font-display: swap; }

:root {
  --ink: #17130f;
  --paper: #f1e8d5;
  --paper-2: #e7dcc4;
  --panel: #fbf6ea;
  --yellow: #dcb153; /* emas Sherwood */
  --yellow-d: #b88f2e;
  --ai: #1e3a2a; /* hijau hutan */
  --ai-2: #2c5a3c;
  --shu: #a8262b; /* merah bulu */
  --green: #2c5a3c;
  --leather: #6b4428;
  --mouse: #a29d93;
  --c-muted: #6b6358;
  --f-title: 'Dela Gothic One', 'Inter Tight', system-ui, sans-serif;
  --f-hand: 'Shantell Sans', 'Comic Sans MS', system-ui, sans-serif;
  --f-kanji: 'Yuji Kanji', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --shadow: 7px 7px 0 var(--ink);
  color-scheme: light;
}

body.comic { background: var(--paper); color: var(--ink); }
body.comic ::selection { background: var(--yellow); color: var(--ink); }
.comic .muted { color: var(--c-muted); }
.comic .mono { font-family: var(--mono); }

/* pola ombak seigaiha (CSS murni) */
.seigaiha {
  --sg: var(--ai);
  background-color: var(--sg);
  background-image:
    radial-gradient(circle at 100% 150%, var(--sg) 24%, rgba(255,255,255,.18) 24%, rgba(255,255,255,.18) 28%, var(--sg) 28%, var(--sg) 36%, rgba(255,255,255,.18) 36%, rgba(255,255,255,.18) 40%, transparent 40%),
    radial-gradient(circle at 0 150%, var(--sg) 24%, rgba(255,255,255,.18) 24%, rgba(255,255,255,.18) 28%, var(--sg) 28%, var(--sg) 36%, rgba(255,255,255,.18) 36%, rgba(255,255,255,.18) 40%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255,255,255,.18) 10%, var(--sg) 10%, var(--sg) 23%, rgba(255,255,255,.18) 23%, rgba(255,255,255,.18) 30%, var(--sg) 30%, var(--sg) 43%, rgba(255,255,255,.18) 43%, rgba(255,255,255,.18) 50%, var(--sg) 50%, var(--sg) 63%, rgba(255,255,255,.18) 63%, rgba(255,255,255,.18) 71%, transparent 71%);
  background-size: 64px 32px;
}

/* ── navigasi ───────────────────────────────────────────── */
.c-nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px; height: 62px; padding: 0 var(--gut); background: var(--paper); border-bottom: 3px solid var(--ink); }
.c-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-title); font-size: 22px; letter-spacing: 0.04em; }
.c-brand .nz { width: 38px; height: 38px; }
.c-links { display: flex; gap: 18px; font-family: var(--f-hand); font-weight: 700; font-size: 15px; }
.c-links a:hover { color: var(--shu); }
.c-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.c-ico { width: 38px; height: 38px; display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 10px; background: var(--panel); }
.c-ico:hover { background: var(--yellow); }
.c-chip { font-family: var(--mono); font-size: 12px; padding: 7px 10px; border: 2.5px dashed var(--ink); border-radius: 8px; background: var(--panel); white-space: nowrap; cursor: default; }
.c-chip.live { border-style: solid; background: var(--yellow); cursor: pointer; }

/* ── tombol komik ───────────────────────────────────────── */
.cbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border: 3px solid var(--ink); border-radius: 12px; background: var(--yellow); color: var(--ink); font-family: var(--f-hand); font-weight: 800; font-size: 16px; box-shadow: 4px 4px 0 var(--ink); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; white-space: nowrap; }
.cbtn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.cbtn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.cbtn.white { background: var(--panel); }
.cbtn.ink { background: var(--ink); color: var(--yellow); }
.cbtn.sm { height: 38px; font-size: 14px; padding: 0 14px; }
.cbtn[disabled], .cbtn.off { background: var(--panel); color: var(--c-muted); cursor: not-allowed; box-shadow: 4px 4px 0 var(--ink); transform: none; border-style: dashed; }

/* ── sampul (hero) ──────────────────────────────────────── */
.cover { position: relative; padding: 26px var(--gut) 34px; }
.cover-frame { position: relative; max-width: 1320px; margin: 0 auto; background: var(--yellow); border: 6px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); overflow: hidden; }
.cover-frame::before { content: ''; position: absolute; inset: 10px; border: 2px solid var(--ink); pointer-events: none; z-index: 2; }
.issue-strip { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 9px 22px; background: var(--ink); color: var(--yellow); font-family: var(--f-hand); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.cover-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 300px; gap: 24px; align-items: center; padding: 34px 38px 40px; min-height: min(78vh, 720px); }
.cover-waves { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; opacity: 0.9; border-top: 4px solid var(--ink); }
.cartouche { position: relative; z-index: 3; background: var(--panel); border: 4px solid var(--ink); box-shadow: var(--shadow); padding: 22px 26px 24px; transform: rotate(-1.2deg); }
.cartouche .kicker { padding-right: 56px; font-family: var(--f-hand); font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--shu); }
.cartouche h1 { margin: 10px 0 14px; font-family: var(--f-title); font-weight: 400; font-size: clamp(60px, 7.4vw, 112px); line-height: 1; letter-spacing: 0.01em; color: var(--ink); text-shadow: 5px 5px 0 var(--yellow); }
.cartouche h2 { margin: 0; font-family: var(--f-title); font-weight: 400; font-size: clamp(22px, 2.3vw, 31px); line-height: 1.3; }
.cartouche h2 em { box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.cartouche h2 em { font-style: normal; background: var(--ink); color: var(--yellow); padding: 0 8px; }
.cartouche p { margin: 14px 0 0; font-size: 15.5px; line-height: 1.55; color: #3b342c; max-width: 46ch; }
.cartouche .seal { position: absolute; right: -14px; top: -18px; }
.cover-ctas { position: relative; z-index: 3; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }

.cover-hero { position: relative; z-index: 3; display: grid; justify-items: center; align-self: end; }
.cover-hero .nz { width: min(100%, 360px); height: auto; filter: drop-shadow(8px 8px 0 rgba(23, 19, 15, 0.9)); }
.cover-bubble { position: relative; z-index: 4; width: min(100%, 380px); margin-bottom: 16px; }
.cover-bubble .bubble { font-size: 16px; }
.trace-in { display: flex; gap: 6px; margin-top: 12px; }
.trace-in input { flex: 1; min-width: 0; height: 42px; border: 3px solid var(--ink); border-radius: 10px; padding: 0 10px; background: #fff; font-family: var(--mono); font-size: 12.5px; outline: 0; }
.trace-in input:focus { background: #fffbe8; }

/* ── poster buronan (kartu CA) ──────────────────────────── */
.wanted { position: relative; z-index: 3; background: #f4e8c8; border: 5px solid var(--ink); box-shadow: var(--shadow); padding: 16px 16px 18px; transform: rotate(1.4deg); text-align: center; }
.wanted::after { content: ''; position: absolute; top: -10px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--shu); border: 3px solid var(--ink); }
.wanted-k { font-family: var(--f-kanji); font-size: 54px; line-height: 1; letter-spacing: 0.1em; }
.wanted-t { font-family: var(--f-title); font-size: 18px; letter-spacing: 0.32em; margin: 4px 0 10px; }
.wanted-face { display: grid; place-items: center; margin: 0 auto 10px; width: 120px; height: 120px; border: 3px solid var(--ink); background: var(--panel); }
.wanted-face .nz { width: 108px; height: 108px; }
.wanted-ticker { font-family: var(--f-title); font-size: 34px; line-height: 1; }
.wanted-status { margin: 8px 0 10px; font-family: var(--f-hand); font-weight: 700; font-size: 14px; }
.wanted-status .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--shu); border: 2px solid var(--ink); margin-right: 6px; vertical-align: 0; }
.wanted-status.live .dot { background: var(--green); }
.wanted-addr { font-family: var(--f-hand); font-weight: 700; font-size: 13px; word-break: normal; padding: 8px; border: 2.5px dashed var(--ink); background: #fffaf0; margin-bottom: 10px; }
.wanted-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; text-align: left; font-size: 12px; margin-bottom: 12px; }
.wanted-rows b { display: block; font-family: var(--f-hand); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
.wanted .cbtn { width: 100%; }
.wanted .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wanted-foot { margin-top: 10px; font-family: var(--f-hand); font-size: 12px; color: #4b4339; }

/* ── stempel, balon, narasi, efek suara ─────────────────── */
.seal { display: inline-grid; place-items: center; width: 64px; height: 64px; background: var(--shu); color: #fff6ea; font-family: var(--f-kanji); font-size: 38px; border-radius: 10px; border: 3px solid #9e2c18; box-shadow: inset 0 0 0 3px rgba(255, 240, 220, 0.6); transform: rotate(8deg); }
.seal.sm { width: 42px; height: 42px; font-size: 24px; border-radius: 7px; }

.bubble { position: relative; background: #fff; border: 3.5px solid var(--ink); border-radius: 26px; padding: 14px 18px; font-family: var(--f-hand); font-weight: 600; font-size: 15.5px; line-height: 1.45; box-shadow: 4px 4px 0 rgba(23, 19, 15, 0.18); }
.bubble b { font-weight: 800; }
.bubble::before, .bubble::after { content: ''; position: absolute; border-style: solid; }
.bubble.tail-b::before { left: 42%; bottom: -26px; border-width: 26px 14px 0 10px; border-color: var(--ink) transparent transparent transparent; }
.bubble.tail-b::after { left: calc(42% + 4px); bottom: -18px; border-width: 19px 9px 0 7px; border-color: #fff transparent transparent transparent; }
.bubble.tail-l::before { left: -26px; top: 40%; border-width: 10px 26px 14px 0; border-color: transparent var(--ink) transparent transparent; }
.bubble.tail-l::after { left: -17px; top: calc(40% + 4px); border-width: 6px 18px 9px 0; border-color: transparent #fff transparent transparent; }
.bubble.tail-r::before { right: -26px; top: 40%; border-width: 10px 0 14px 26px; border-color: transparent transparent transparent var(--ink); }
.bubble.tail-r::after { right: -17px; top: calc(40% + 4px); border-width: 6px 0 9px 18px; border-color: transparent transparent transparent #fff; }
.bubble.shout { border-radius: 8px; background: #fff7d6; }
.bubble.whisper { border-style: dashed; }

.caption { display: inline-block; background: var(--yellow); border: 3px solid var(--ink); padding: 6px 12px; font-family: var(--f-hand); font-weight: 800; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: 3px 3px 0 var(--ink); }
.caption.ai { background: var(--ai); color: #f4ead2; }
.caption.paper { background: var(--panel); }

.sfx { position: absolute; z-index: 5; font-family: var(--f-title); color: var(--shu); font-size: clamp(30px, 4vw, 52px); letter-spacing: 0.02em; -webkit-text-stroke: 2px var(--ink); text-shadow: 4px 4px 0 var(--ink); transform: rotate(-10deg); pointer-events: none; }
.sfx.yellow { color: var(--yellow); }

/* ── halaman & panel ────────────────────────────────────── */
.issue { max-width: 1320px; margin: 0 auto; padding: 0 var(--gut); }
.page { position: relative; margin: 58px 0; }
.ch-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.ch-head .seal { transform: rotate(-6deg); }
.ch-head h2 { margin: 0; font-family: var(--f-title); font-weight: 400; font-size: clamp(30px, 4vw, 52px); line-height: 1; letter-spacing: 0.005em; }
.ch-head h2 small { display: block; font-family: var(--f-hand); font-weight: 800; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--shu); margin-bottom: 6px; }
.panels { display: grid; gap: 18px; }
.panel { position: relative; background: var(--panel); border: 4px solid var(--ink); box-shadow: var(--shadow); padding: 20px; overflow: hidden; min-width: 0; }
.panel.dark { background: var(--ink); color: #f4ead2; }
.panel.yellow { background: var(--yellow); }
.panel.ai { background: var(--ai); color: #f4ead2; }
.panel.tone { background-color: var(--panel); background-image: radial-gradient(rgba(23, 19, 15, 0.14) 1.1px, transparent 1.3px); background-size: 9px 9px; }
.panel .speed { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.panel > * { position: relative; z-index: 1; }
.panel .caption { margin-bottom: 12px; }
.panel h3 { margin: 0 0 8px; font-family: var(--f-title); font-weight: 400; font-size: 24px; line-height: 1.1; }
.panel p { margin: 0; font-size: 15px; line-height: 1.55; }
.who { display: flex; align-items: flex-end; gap: 14px; }
.who .nz, .who .wt { flex: 0 0 auto; }
.big-num { font-family: var(--f-title); font-size: clamp(54px, 7vw, 96px); line-height: 0.95; letter-spacing: -0.01em; }
.src { display: block; margin-top: 10px; font-family: var(--f-hand); font-size: 12px; color: var(--c-muted); }
.panel.dark .src, .panel.ai .src { color: #b9ae98; }

.g-1 { grid-template-columns: 1.6fr 1fr; }
.g-2 { grid-template-columns: 1fr 1fr 1fr; }
.g-3 { grid-template-columns: 1fr 1.4fr; }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }

/* slip struk */
.slips { display: grid; gap: 10px; }
.slip { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 14px 14px; background: #fffdf6; border: 2.5px solid var(--ink); font-family: var(--mono); font-size: 12.5px; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; }
.slip .amt { font-family: var(--f-title); font-size: 18px; }
.slip .bn { color: var(--c-muted); font-size: 11px; }
.slip.hit { background: #fff2c2; }
.slip.hit .who-addr { background: var(--shu); color: #fff; padding: 0 4px; }

/* diagram dinding kolam */
.wall { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; gap: 8px; text-align: center; font-family: var(--f-hand); font-weight: 700; font-size: 13px; }
.wall .node { border: 3px solid var(--ink); background: #fff; padding: 10px 8px; border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); }
.wall .brick { height: 150px; border: 3px solid var(--ink); background: repeating-linear-gradient(0deg, #b9a98a 0 18px, var(--ink) 18px 21px), #b9a98a; position: relative; }
.wall .brick::after { content: '?'; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-title); font-size: 34px; color: var(--yellow); -webkit-text-stroke: 1.5px var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { font-family: var(--mono); font-size: 13px; padding: 6px 10px; border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; }
.chip i { font-style: normal; color: var(--c-muted); font-size: 11px; }

/* papan harga (desk x402) */
.board { position: relative; background: #6b4528; border: 4px solid var(--ink); box-shadow: var(--shadow); padding: 16px; }
.board-title { text-align: center; margin: -4px 0 12px; font-family: var(--f-title); font-size: 22px; color: #f4e8c8; letter-spacing: 0.08em; }
.board-rows { display: grid; gap: 8px; }
.board-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: baseline; background: #f4e8c8; border: 2.5px solid var(--ink); padding: 9px 12px; }
.board-row code { font-family: var(--mono); font-weight: 500; font-size: 13.5px; }
.board-row span { font-family: var(--f-hand); font-size: 12.5px; color: #4b4339; display: block; margin-top: 2px; }
.board-row .p { font-family: var(--f-title); font-size: 15px; white-space: nowrap; }

/* alur 402 */
.flow4 .panel { padding: 16px; }
.flow4 .n { font-family: var(--f-title); font-size: 30px; line-height: 1; color: var(--shu); -webkit-text-stroke: 1.5px var(--ink); }
.flow4 h4 { margin: 6px 0 4px; font-family: var(--f-hand); font-weight: 800; font-size: 16px; }
.flow4 code { display: block; margin-top: 8px; font-family: var(--mono); font-size: 11.5px; background: #fff; border: 2px solid var(--ink); padding: 6px 8px; word-break: break-all; }

/* gulungan makimono (konfigurasi MCP) */
.scroll { position: relative; background: #fbf3df; border-left: 4px solid var(--ink); border-right: 4px solid var(--ink); padding: 26px 26px; box-shadow: var(--shadow); }
.scroll::before, .scroll::after { content: ''; position: absolute; left: -16px; right: -16px; height: 18px; background: linear-gradient(180deg, #5a3a22, #3b2514); border: 3px solid var(--ink); border-radius: 9px; }
.scroll::before { top: -9px; }
.scroll::after { bottom: -9px; }
.scroll pre { margin: 0; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }

/* papan pengumuman kōsatsu (kode vs kepercayaan) */
.notice { position: relative; background: #d9c39a; border: 4px solid var(--ink); box-shadow: var(--shadow); padding: 30px 22px 22px; margin-top: 30px; }
.notice::before { content: ''; position: absolute; left: -26px; right: -26px; top: -34px; height: 30px; background: var(--ink); clip-path: polygon(4% 100%, 50% 0, 96% 100%); }
.notice h3 { margin: 0 0 14px; text-align: center; font-family: var(--f-title); font-weight: 400; font-size: 26px; }
.notice table { width: 100%; border-collapse: collapse; background: #f6ecd2; border: 3px solid var(--ink); }
.notice th, .notice td { text-align: left; padding: 10px 12px; border-bottom: 2px solid rgba(23, 19, 15, 0.25); font-size: 14px; vertical-align: top; }
.notice th { font-family: var(--f-hand); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.notice td:first-child { font-weight: 600; }
.notice .tag { display: inline-block; font-family: var(--f-hand); font-weight: 800; font-size: 11px; padding: 1px 7px; border: 2px solid var(--ink); border-radius: 5px; margin-right: 6px; }
.notice .tag.code { background: var(--green); color: #fff; }
.notice .tag.trust { background: var(--yellow); }

/* sampul belakang */
.backcover { margin-top: 70px; border-top: 6px solid var(--ink); }
.bc-grid { max-width: 1320px; margin: 0 auto; padding: 40px var(--gut) 30px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; }
.c-foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding: 18px var(--gut); background: var(--ink); color: #e9dfc8; font-family: var(--f-hand); font-size: 14px; }
.c-foot a:hover { color: var(--yellow); }

/* ── gerak ──────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(22px) rotate(var(--rot, 0deg)); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.rv.in { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)); }
.pop { opacity: 0; transform: scale(0.6); transition: opacity 0.35s var(--ease), transform 0.45s cubic-bezier(0.2, 1.6, 0.4, 1); transform-origin: 30% 100%; }
.pop.in { opacity: 1; transform: scale(1); }
.nz-blink .nz-eye { transform-box: fill-box; transform-origin: center; animation: nz-blink 5.2s infinite; }
@keyframes nz-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
.wt-eyes { animation: wt-glow 2.4s ease-in-out infinite; }
@keyframes wt-glow { 50% { opacity: 0.45; } }
.sfx.wiggle { animation: sfx 2.8s ease-in-out infinite; }
@keyframes sfx { 50% { transform: rotate(-6deg) scale(1.06); } }
.peek { animation: peek 7s ease-in-out infinite; }
@keyframes peek { 0%, 60%, 100% { transform: translateY(0); } 70%, 88% { transform: translateY(-14px) rotate(-3deg); } }

/* ── HP ─────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .cover-grid { grid-template-columns: 1fr 1fr; }
  .cover-grid .wanted { grid-column: 1 / -1; max-width: 420px; justify-self: center; }
}
@media (max-width: 820px) {
  .c-links { display: none; }
  .c-chip { display: none; }
  .cover { padding: 16px 12px 24px; }
  .cover-grid { grid-template-columns: minmax(0, 1fr); padding: 22px 18px 150px; gap: 26px; }
  .cover-hero { order: 2; }
  .cartouche { transform: none; }
  .g-1, .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .wall { grid-template-columns: 1fr 44px 1fr; }
  .bc-grid { grid-template-columns: minmax(0, 1fr); }
  .notice::before { left: -10px; right: -10px; }
  .scroll::before, .scroll::after { left: -8px; right: -8px; }
  .notice th:nth-child(3), .notice td:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rv, .pop { opacity: 1; transform: none; }
  .nz-blink .nz-eye, .wt-eyes, .sfx.wiggle, .peek { animation: none; }
}

/* penanda struk [r1] di contoh jawaban */
.comic .ref { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 0 5px; margin: 0 1px; border: 2px solid var(--ink); border-radius: 5px; background: var(--yellow); color: var(--ink); vertical-align: 1px; text-decoration: none; }
/* latar nila dengan ombak samar (siluet hitam tetap terbaca) */
.panel.ai.seigaiha-soft { background-color: #2c4c78; background-image: radial-gradient(circle at 50% 100%, rgba(255,255,255,.07) 10%, transparent 10%, transparent 23%, rgba(255,255,255,.07) 23%, rgba(255,255,255,.07) 30%, transparent 30%, transparent 43%, rgba(255,255,255,.07) 43%, rgba(255,255,255,.07) 50%, transparent 50%); background-size: 48px 24px; }
.panel.ai .wt path:first-child, .panel.ai .wt path:nth-child(2) { filter: drop-shadow(0 0 0 #000); }

/* ═════ Sherwood: pola, segel lilin, panel gambar, avatar ═════ */
.canopy { background-color: #1e3a2a; background-image:
  radial-gradient(ellipse 18px 10px at 20% 30%, rgba(255,255,255,.07) 98%, transparent),
  radial-gradient(ellipse 14px 8px at 70% 65%, rgba(255,255,255,.06) 98%, transparent),
  radial-gradient(ellipse 12px 7px at 45% 85%, rgba(220,177,83,.10) 98%, transparent);
  background-size: 58px 46px, 70px 52px, 64px 40px; }
.seal.wax { width: 62px; height: 62px; border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%; background: radial-gradient(circle at 38% 32%, #d24a4f 0 18%, #a8262b 45%, #7a1a1f 100%); border: 0; box-shadow: 0 0 0 4px rgba(168, 38, 43, 0.35), inset 0 0 0 5px rgba(0, 0, 0, 0.18), 3px 4px 0 rgba(23, 19, 15, 0.55); color: #f6dcc8; font-family: var(--f-title); font-size: 22px; letter-spacing: 0.02em; text-shadow: 0 -1px 0 rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.18); }
.seal.wax.sm { width: 44px; height: 44px; font-size: 15px; }
.art { position: relative; margin: 0; border: 4px solid var(--ink); box-shadow: var(--shadow); background: var(--ink); overflow: hidden; }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art .caption { position: absolute; left: 14px; top: 14px; z-index: 2; }
.art .bubble { position: absolute; z-index: 2; max-width: min(78%, 420px); }
.art .over-num { position: absolute; z-index: 2; right: 18px; bottom: 16px; text-align: right; color: #fff8e8; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.art .over-num .big-num { color: #fff8e8; -webkit-text-stroke: 2px var(--ink); text-shadow: 4px 4px 0 var(--ink); }
.art .over-num p { font-family: var(--f-hand); font-weight: 700; font-size: 15px; max-width: 360px; margin-left: auto; background: rgba(23,19,15,.72); padding: 8px 12px; border-radius: 10px; }
.art.tall { min-height: 420px; }
.art.wide { aspect-ratio: 16 / 7; }
.avatar { width: 96px; height: 96px; border-radius: 50%; border: 3.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); object-fit: cover; flex: 0 0 auto; background: var(--ai); }
.avatar.sm { width: 64px; height: 64px; }
.avatar.lg { width: 130px; height: 130px; }
.c-brand .nz-logo { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); object-fit: contain; background: #f3e7cf; padding: 3px; }

/* sampul Sherwood */
.cover-frame.sherwood { background: var(--ai); }
.cover-frame.sherwood .issue-strip { background: var(--ink); color: var(--yellow); }
.cover-grid.sw { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr) 280px; align-items: stretch; min-height: min(80vh, 760px); padding: 30px 32px 34px; }
.cover-art { position: relative; z-index: 2; border: 5px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); overflow: hidden; background: var(--ink); min-height: 540px; }
.cover-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.03); transition: transform 8s ease-out; }
.cover-art.in img { transform: scale(1.0); }
.cover-art .cover-bubble { position: absolute; left: 16px; top: 16px; margin: 0; width: min(88%, 360px); }
.cover-art .sfx { right: 18px; bottom: 18px; }
.cartouche.sw { align-self: center; }
.wanted.sw { align-self: center; background: #efe0bd; }
.wanted.sw::after { background: var(--shu); }
.wanted-face img { width: 112px; height: 112px; object-fit: cover; object-position: 50% 30%; filter: sepia(0.75) contrast(1.08) saturate(0.85); }
.wanted-head { font-family: var(--f-title); font-size: 30px; letter-spacing: 0.18em; line-height: 1; }
.wanted-sub { font-family: var(--f-hand); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin: 6px 0 10px; color: #4b4339; }

@media (max-width: 1080px) { .cover-grid.sw { grid-template-columns: 1fr 1fr; } .cover-grid.sw .wanted { grid-column: 1 / -1; max-width: 420px; justify-self: center; } }
@media (max-width: 820px) {
  .cover-grid.sw { grid-template-columns: minmax(0, 1fr); padding: 18px 14px 26px; }
  .cover-art { min-height: 460px; order: -1; }
  .art.wide { aspect-ratio: 4 / 3; }
  .art .bubble { max-width: 88%; }
  .art .over-num p { max-width: 100%; }
}

.wanted-addr.ca { font-family: var(--mono); font-weight: 400; font-size: 11.5px; word-break: break-all; }

/* item grid boleh menyusut; kode panjang menggulir di dalam gulungan, bukan melebarkan halaman */
.panels > * { min-width: 0; }
.scroll { min-width: 0; }
@media (max-width: 820px) {
  /* panel berkolom inline (avatar + balon + tombol) ditumpuk di HP */
  .panel[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; justify-items: start; }
  .panel[style*="grid-template-columns"] .bubble.tail-l::before, .panel[style*="grid-template-columns"] .bubble.tail-l::after { display: none; }
  .who { flex-wrap: wrap; }
}
@media (max-width: 820px) {
  .cover-art img { object-position: 50% 16%; }
  .cover-art .cover-bubble { top: auto; bottom: 14px; left: 12px; right: 12px; width: auto; }
  .cover-art .cover-bubble .bubble.tail-b::before, .cover-art .cover-bubble .bubble.tail-b::after { display: none; }
  .cover-art .sfx { top: 14px; bottom: auto; right: 12px; font-size: 32px; }
  .slip { grid-template-columns: 1fr auto; }
  .slip .bn { display: none; }
}
@media (max-width: 440px) {
  .c-nav { gap: 10px; }
  .c-brand { font-size: 0; }
  .c-brand .nz-logo { width: 38px; height: 38px; }
  .c-ico { width: 34px; height: 34px; }
}

.cover-art { margin: 0; }
/* HP: jangan sembunyikan elemen menunggu observer, langsung tampil */
@media (max-width: 700px) {
  .rv, .pop { opacity: 1; transform: none; }
}
