/* Sela Piksel — dunia pixel dungeon. Satu unit piksel = --px; semua bingkai, takik sudut, dan ubin kelipatan --px. */

@font-face { font-family: "Silkscreen"; src: url("assets/fonts/silkscreen-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url("assets/fonts/silkscreen-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("assets/fonts/pixelify-sans-var-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  /* palet maskot (maskot/palette.json) */
  --ink: #0b0d22;
  --body: #8b5cf6;
  --shade: #6d28d9;
  --light: #c4b5fd;
  --gold: #ffc400;
  --gold-shade: #d97706;
  --cyan: #22d3ee;
  --cyan-shade: #0891b2;
  --blush: #ff7ab6;
  --feet: #4338ca;
  /* dunia */
  --night: #121530;       /* latar video */
  --night-2: #191c42;
  --brick: #262a5a;
  --brick-hi: #30356f;
  --mortar: #0e1030;
  --dialog: #1b2a6b;
  --cream: #f6edd3;
  --text: #ece9ff;
  --muted: #b7b4e0;
  --blueprint: #12307f;

  --px: 3px;
  --sela: 10;             /* skala sprite hero */
  --gutter: 16px;
  --font-display: "Silkscreen", "Pixelify Sans", ui-monospace, monospace;
  --font-body: "Pixelify Sans", system-ui, sans-serif;
  --notch: polygon(var(--px) 0, calc(100% - var(--px)) 0, calc(100% - var(--px)) var(--px), 100% var(--px), 100% calc(100% - var(--px)), calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px)) 100%, var(--px) 100%, var(--px) calc(100% - var(--px)), 0 calc(100% - var(--px)), 0 var(--px), var(--px) var(--px));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
  scrollbar-color: var(--body) var(--ink);
}

@media (min-width: 768px) { :root { --px: 4px; --sela: 12; --gutter: 32px; } }
@media (min-width: 1100px) { :root { --sela: 16; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 1.25rem; } }

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
a:hover { color: var(--gold); }
:focus-visible { outline: var(--px) solid var(--cyan); outline-offset: var(--px); }
::selection { background: var(--gold); color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 5vw + 0.5rem, 3.25rem); color: var(--gold); }
h3 { font-size: 1.375rem; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--gold); color: var(--ink); padding: 12px 16px; font-family: var(--font-display); }
.skip:focus { top: 12px; }
.skip:hover { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- tombol piksel ---------- */
.btn {
  --btn-bg: var(--gold); --btn-lip: var(--gold-shade); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1;
  color: var(--btn-fg); background: var(--btn-bg); text-decoration: none;
  border: var(--px) solid var(--ink);
  box-shadow: inset 0 calc(-1 * var(--px)) 0 var(--btn-lip), inset 0 var(--px) 0 rgb(255 255 255 / 0.35);
  clip-path: var(--notch);
  cursor: pointer; touch-action: manipulation;
  transition: transform 120ms steps(2), background-color 120ms;
}
.btn:hover { color: var(--btn-fg); --btn-bg: #ffd84d; transform: translateY(calc(-1 * var(--px))); }
.btn:active { transform: translateY(var(--px)); box-shadow: inset 0 var(--px) 0 var(--btn-lip); }
.btn:focus-visible { outline-offset: 0; clip-path: none; }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 0.875rem; }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.btn .ico-play { width: 0.9em; }

/* ---------- topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter);
  background: var(--ink);
  border-bottom: var(--px) solid var(--mortar);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; min-height: 44px; }
.brand img { width: 40px; height: 40px; image-rendering: pixelated; }
.topbar nav { display: none; }
.topbar nav ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.topbar nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); text-decoration: none; font-family: var(--font-display); font-size: 0.9375rem; }
.topbar nav a:hover { color: var(--gold); }
@media (min-width: 768px) { .topbar nav { display: block; margin-left: auto; } }

/* ---------- hero: adegan dungeon ---------- */
.scene { position: relative; overflow: hidden; isolation: isolate; background: var(--night); }
.scene-wall {
  /* dinding selebar layar, berhenti tepat di garis lantai bawah kaki Sela (3 sel sprite dari bawah) */
  position: absolute; left: -100vw; right: -100vw; top: -200vh; bottom: calc(var(--sela) * 3px); z-index: -1;
  overflow: hidden;
  border-bottom: var(--px) solid var(--ink);
}
/* bata dinding: lapisan parallax terjauh, terpotong di garis lantai oleh .scene-wall */
.wall-tiles {
  position: absolute; inset: -40% 0 -10%; z-index: -1; will-change: transform;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8' shape-rendering='crispEdges'%3E%3Crect width='16' height='8' fill='%230e1030'/%3E%3Cg fill='%23262a5a'%3E%3Crect width='7' height='3'/%3E%3Crect x='8' width='8' height='3'/%3E%3Crect y='4' width='3' height='3'/%3E%3Crect x='4' y='4' width='7' height='3'/%3E%3Crect x='12' y='4' width='4' height='3'/%3E%3C/g%3E%3Cg fill='%2330356f'%3E%3Crect width='7' height='1'/%3E%3Crect x='8' width='8' height='1'/%3E%3Crect y='4' width='3' height='1'/%3E%3Crect x='4' y='4' width='7' height='1'/%3E%3Crect x='12' y='4' width='4' height='1'/%3E%3C/g%3E%3C/svg%3E") 0 0 / calc(16 * var(--px)) calc(8 * var(--px));
}
/* gelap berpola dither di luar cahaya obor, seperti tema pixel-dungeon */
.scene-wall::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2 2' shape-rendering='crispEdges'%3E%3Crect width='1' height='1' fill='%230b0d22'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%230b0d22'/%3E%3C/svg%3E") 0 0 / calc(2 * var(--px)) calc(2 * var(--px));
  -webkit-mask-image: radial-gradient(ellipse min(44vw, 520px) min(52vh, 460px) at 50% calc(100% - 90px), transparent 38%, #000 78%);
  mask-image: radial-gradient(ellipse min(44vw, 520px) min(52vh, 460px) at 50% calc(100% - 90px), transparent 38%, #000 78%);
}
.scene-wall::before {
  content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0.8;
  -webkit-mask-image: radial-gradient(ellipse min(62vw, 820px) min(80vh, 700px) at 50% calc(100% - 90px), transparent 42%, #000 100%);
  mask-image: radial-gradient(ellipse min(62vw, 820px) min(80vh, 700px) at 50% calc(100% - 90px), transparent 42%, #000 100%);
}

.scene-inner {
  width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto;
  display: grid; grid-template-areas: "title" "stage" "dialog";
  padding-top: clamp(28px, 6vw, 56px);
  padding-bottom: calc(6 * var(--px));
}
.title-block { grid-area: title; text-align: center; }
.wordmark {
  display: block;
  font-size: clamp(2.125rem, 9.6vw, 6rem);
  letter-spacing: 0.02em; color: var(--cream);
  /* bayangan bata: blok ink tepat satu unit piksel, bagian dari huruf papan nama */
  text-shadow: 0 var(--px) 0 var(--ink), 0 calc(2 * var(--px)) 0 var(--shade);
}
.tagline {
  display: block; margin-top: 14px;
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(1.125rem, 2.4vw + 0.4rem, 1.75rem); line-height: 1.3;
  color: var(--gold);
}

.stage { grid-area: stage; position: relative; display: flex; justify-content: center; align-items: flex-end; padding-top: 20px; }
.torch { position: absolute; bottom: calc(var(--sela) * 12px); width: calc(6 * var(--px) * 2); height: auto; image-rendering: pixelated; }
.torch-l { left: 4%; }
.torch-r { right: 4%; }
@media (min-width: 768px) { .torch-l { left: -10%; } .torch-r { right: -10%; } }
.sela { position: relative; width: calc(24px * var(--sela)); aspect-ratio: 24 / 26; }
.sela > svg, .sela > img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }

/* idle: badan naik-turun satu unit sprite, piksel emas melayang berlawanan */
@media (prefers-reduced-motion: no-preference) {
  .sela .sela-bodygroup { animation: bob 1.2s steps(1) infinite; }
  .sela .sela-pixel { animation: float 1.2s steps(1) infinite; }
  .sela.is-hop .sela-bodygroup { animation: hop 360ms steps(3) 1; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
@keyframes float { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(0); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

/* kotak dialog RPG; .window memakai bingkai yang sama di bagian lain halaman */
.dialog, .window {
  position: relative;
  background: var(--dialog);
  border: var(--px) solid var(--ink);
  box-shadow: inset 0 0 0 var(--px) var(--cream), inset 0 0 0 calc(2 * var(--px)) var(--ink);
  clip-path: var(--notch);
  padding: calc(3 * var(--px) + 44px) calc(3 * var(--px) + 12px) calc(3 * var(--px) + 12px);
}
.dialog { grid-area: dialog; z-index: 1; margin-top: calc(6 * var(--px)); }
.dialog-name, .window-tab {
  position: absolute; top: calc(-1 * var(--px)); left: calc(4 * var(--px));
  padding: 6px 14px 4px;
  background: var(--gold); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.04em;
  border: var(--px) solid var(--ink); border-top: 0;
}
.dialog-text { display: grid; font-size: 1.25rem; line-height: 1.45; color: var(--cream); max-width: 34ch; }
.dialog-text > span { grid-area: 1 / 1; }
.type-ghost { visibility: hidden; }
.type-live.is-typing::after { content: ""; display: inline-block; width: 0.5em; height: 0.18em; margin-left: 2px; background: var(--gold); animation: caret 0.5s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.choices { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
.choice {
  display: grid; grid-template-columns: 10px 24px 1fr; align-items: center; column-gap: 10px;
  min-height: 52px; padding: 8px 10px 8px 4px;
  color: var(--cream); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; line-height: 1.15;
  border: var(--px) solid transparent;
}
.choice small { grid-column: 3; font-family: var(--font-body); font-weight: 400; font-size: 0.9375rem; color: var(--light); }
.choice .ico { width: 24px; height: 24px; fill: currentColor; grid-row: 1 / span 2; }
.choice .cursor { width: 10px; height: 14px; fill: var(--gold); grid-row: 1 / span 2; opacity: 0; transform: translateX(-4px); transition: opacity 120ms, transform 160ms var(--ease-out); }
.choice:hover, .choice:focus-visible, .choice.is-active { color: var(--gold); background: rgb(11 13 34 / 0.45); border-color: var(--ink); }
.choice:hover .cursor, .choice:focus-visible .cursor, .choice.is-active .cursor { opacity: 1; transform: none; }
.choice:focus-visible { outline: var(--px) solid var(--cyan); outline-offset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .choice.is-active .cursor { animation: nudge 0.8s steps(1) infinite; }
}
@keyframes nudge { 50% { transform: translateX(3px); } }

@media (min-width: 768px) {
  .scene-inner {
    grid-template-columns: auto 1fr; column-gap: clamp(64px, 9vw, 136px);
    grid-template-areas: "stage title" "stage title" "dialog dialog";
    align-items: end;
  }
  .title-block { text-align: left; align-self: center; padding-bottom: 40px; }
  .wordmark { font-size: clamp(3.5rem, 7.2vw, 6rem); }
  .stage { padding-top: 0; }
  .dialog { display: grid; grid-template-columns: 1fr minmax(300px, 380px); column-gap: 40px; align-items: center; margin-top: calc(4 * var(--px)); padding: calc(3 * var(--px) + 40px) calc(3 * var(--px) + 24px) calc(3 * var(--px) + 20px); }
  .choice { font-size: 1rem; grid-template-columns: 14px 26px 1fr; column-gap: 12px; }
  .dialog-text { font-size: 1.5rem; }
  .choices { margin-top: 0; }
}

/* ---------- section umum ---------- */
.status-sec, .quests-sec, .videos-sec { padding-block: clamp(64px, 10vw, 120px); }
.sec-sub { margin-top: 12px; max-width: 60ch; color: var(--muted); }

/* ---------- kenalan: lembar status ---------- */
.status-sec, .videos-sec { background: var(--night-2); border-top: var(--px) solid var(--ink); }
/* lantai ubin sebagai lapisan parallax; overflow: clip memotongnya tanpa membuat scroll container (sticky tetap jalan) */
.scene, .status-sec, .quests-sec, .videos-sec, .save { position: relative; isolation: isolate; overflow: clip; }
.ground {
  position: absolute; inset: -25% 0; z-index: -2; pointer-events: none; will-change: transform;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect width='8' height='8' fill='%230e1030'/%3E%3Crect width='7' height='7' fill='%23181b40'/%3E%3Crect width='7' height='1' fill='%23202452'/%3E%3C/svg%3E") 0 0 / calc(8 * var(--px)) calc(8 * var(--px));
}
.status-grid { display: grid; gap: 40px; grid-template-areas: "head" "portrait" "body"; }
.status-head { grid-area: head; }
.portrait { grid-area: portrait; }
.status-body { grid-area: body; padding-top: calc(3 * var(--px) + 40px); }
.portrait { display: grid; gap: 16px; justify-items: center; align-content: start; }
.portrait-frame {
  width: 100%; max-width: 360px; display: grid; place-items: center;
  padding: 28px 16px 20px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4' shape-rendering='crispEdges'%3E%3Crect width='4' height='4' fill='%23241f5c'/%3E%3Crect width='2' height='2' fill='%232a2468'/%3E%3Crect x='2' y='2' width='2' height='2' fill='%232a2468'/%3E%3C/svg%3E") 0 0 / calc(8 * var(--px)) calc(8 * var(--px));
  border: var(--px) solid var(--ink);
  box-shadow: inset 0 0 0 var(--px) var(--body), inset 0 calc(-3 * var(--px)) 0 calc(var(--px)) var(--shade);
  clip-path: var(--notch);
}
.sela-portrait { --sela: 9; }
@media (min-width: 768px) { .sela-portrait { --sela: 11; } }
.expr-picker { border: 0; margin: 0; padding: 0; width: 100%; max-width: 360px; }
.expr-picker legend { font-family: var(--font-display); font-size: 0.9375rem; color: var(--muted); margin-bottom: 10px; padding: 0; }
.expr-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-chip { --btn-bg: var(--night); --btn-lip: var(--ink); --btn-fg: var(--light); min-height: 44px; padding: 8px 12px; font-size: 0.875rem; }
.btn-chip:hover { --btn-bg: var(--dialog); --btn-fg: var(--cream); }
.btn-chip[aria-pressed="true"] { --btn-bg: var(--cyan); --btn-lip: var(--cyan-shade); --btn-fg: var(--ink); }
.expr-line { min-height: 1.6em; max-width: 360px; width: 100%; color: var(--cream); font-style: normal; }

.status-head h2 { margin-bottom: 18px; }
.lead { font-size: 1.25rem; max-width: 46ch; }
@media (min-width: 768px) { .lead { font-size: 1.5rem; } }
.stats { margin: 0; display: grid; }
.stats > div { display: grid; gap: 4px; padding: 12px 0; border-bottom: var(--px) dashed rgb(246 237 211 / 0.22); }
.stats > div:first-child { padding-top: 0; }
.stats dt { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; color: var(--cyan); letter-spacing: 0.04em; }
.stats dd { margin: 0; max-width: 60ch; color: var(--cream); }
.stats b, .skills b { color: var(--gold); font-weight: 700; }
.skills-title { margin-top: 32px; color: var(--cream); font-size: 1.25rem; }
.skills { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.skills li { display: grid; grid-template-columns: calc(3 * var(--px)) 1fr; column-gap: 14px; }
.skills li::before { content: ""; grid-row: 1 / span 2; width: calc(3 * var(--px)); height: calc(3 * var(--px)); margin-top: 0.45em; background: var(--gold); box-shadow: inset calc(-1 * var(--px)) calc(-1 * var(--px)) 0 var(--gold-shade); }
.skills b { font-family: var(--font-display); font-size: 1rem; }
.skills span { color: var(--light); }
.skills .example { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; }
@media (min-width: 900px) {
  .status-grid { grid-template-columns: minmax(300px, 400px) 1fr; grid-template-areas: "portrait head" "portrait body"; gap: 40px 72px; align-items: start; }
  .portrait { position: sticky; top: 24px; }
}

/* ---------- seri: quest log ---------- */
.quests { margin-top: 40px; display: grid; gap: 28px; }
.quest {
  display: grid; overflow: hidden;
  border: var(--px) solid var(--ink);
  box-shadow: inset 0 0 0 var(--px) var(--cream), inset 0 0 0 calc(2 * var(--px)) var(--ink);
  clip-path: var(--notch);
  background: var(--dialog);
}
.quest-art {
  display: grid; place-items: center; height: 280px; padding: 24px 16px;
  margin: calc(2 * var(--px)) calc(2 * var(--px)) 0;
  border-bottom: var(--px) solid var(--ink);
}
.quest-art img { width: calc(24 * 8px); height: auto; image-rendering: pixelated; }
/* Trik: kertas blueprint "mode desainer" */
.quest-trik .quest-art {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect width='8' height='8' fill='%2312307f'/%3E%3Cpath fill='%231b4aa8' d='M0 2h8v.25H0zM0 4h8v.25H0zM0 6h8v.25H0zM2 0h.25v8H2zM4 0h.25v8H4zM6 0h.25v8H6z'/%3E%3Cpath fill='%23245e9e' d='M0 0h8v.5H0zM0 0h.5v8H0z'/%3E%3C/svg%3E") 0 0 / calc(8 * var(--px) * 3) calc(8 * var(--px) * 3);
}
/* NPC: desa malam bertumpuk ala papercut */
.quest-npc .quest-art {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20' preserveAspectRatio='none' shape-rendering='crispEdges'%3E%3Cpath fill='%23302a6e' d='M0 10h4V8h4V6h6v2h4v2h6V7h5V5h5v3h6v12H0z'/%3E%3Cpath fill='%23221d55' d='M0 14h6v-2h7v1h6v-3h3V8h4v2h2v3h6v-2h6v9H0z'/%3E%3Cpath fill='%23171340' d='M0 17h9v-1h9v-2h7v2h15v4H0z'/%3E%3C/svg%3E") 0 100% / 100% 70% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' shape-rendering='crispEdges'%3E%3Crect x='3' y='4' width='1' height='1' fill='%23c4b5fd'/%3E%3Crect x='15' y='2' width='1' height='1' fill='%23ffc400'/%3E%3Crect x='20' y='11' width='1' height='1' fill='%23c4b5fd'/%3E%3Crect x='9' y='14' width='1' height='1' fill='%23c4b5fd'/%3E%3C/svg%3E") 0 0 / calc(24 * var(--px)) calc(24 * var(--px)),
    #3b2f86;
}
.quest-body { display: grid; gap: 14px; align-content: start; padding: 24px 28px 32px; }
.quest-body h3 { position: relative; font-size: clamp(1.375rem, 2vw + 0.8rem, 1.875rem); color: var(--cream); }
.quest-body h3 .cursor { position: absolute; left: -22px; top: 0.15em; width: 12px; height: 0.8em; fill: var(--gold); opacity: 0; transition: opacity 120ms, transform 160ms var(--ease-out); transform: translateX(-4px); }
.quest:hover h3, .quest:focus-within h3 { color: var(--gold); }
.quest:hover h3 .cursor, .quest:focus-within h3 .cursor { opacity: 1; transform: none; }
.quest-body p { max-width: 52ch; }
.quest-item { color: var(--light); font-size: 1rem; }
.quest-item span { font-family: var(--font-display); font-weight: 700; color: var(--cyan); font-size: 0.875rem; margin-right: 4px; }
.quest-ep { font-size: 1rem; }
.quest-ep span { font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: 0.875rem; margin-right: 4px; }
.quest-ep a { display: inline; }
.quest-body .btn { justify-self: start; margin-top: 6px; }
@media (min-width: 900px) {
  .quests { grid-template-columns: 1fr 1fr; gap: 32px; }
  .quest { grid-template-rows: auto 1fr; }
  .quest-art { height: 340px; }
  .quest-art img { width: calc(24 * 10px); }
  .quest-body { padding: 28px 36px 36px; }
}

/* ---------- video terbaru ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.link-more { font-family: var(--font-display); font-size: 0.9375rem; display: inline-flex; align-items: center; min-height: 44px; }
.video-window { padding-top: calc(3 * var(--px) + 48px); }
.peek { --sela: 4; display: flex; justify-content: flex-end; align-items: flex-end; gap: 12px; margin: 16px calc(6 * var(--px)) calc(-1 * var(--px)); position: relative; z-index: 1; }
.peek-hole { overflow: hidden; height: calc(14px * var(--sela)); }  /* kepala + piksel emas saja; badan tersembunyi di balik bingkai */
@media (min-width: 768px) { .peek { --sela: 5; } }
.peek-bubble {
  margin-bottom: calc(3px * var(--sela)); padding: 8px 12px;
  background: var(--cream); color: var(--ink); font-size: 1rem; line-height: 1.3;
  border: var(--px) solid var(--ink); clip-path: var(--notch);
}
.videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
@media (min-width: 768px) { .videos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; } }
.video a { display: grid; gap: 10px; color: var(--text); text-decoration: none; }
.video-thumb {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--ink);
  border: var(--px) solid var(--ink);
  box-shadow: inset 0 0 0 var(--px) var(--brick-hi);
  clip-path: var(--notch);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms var(--ease-out); }
.video-thumb::after {
  content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 var(--px) var(--brick-hi); pointer-events: none;
}
.video a:hover .video-thumb img { transform: scale(1.04); }
.video a:hover .video-title { color: var(--gold); }
.video a:focus-visible { outline: none; }
.video a:focus-visible .video-thumb { outline: var(--px) solid var(--cyan); outline-offset: 0; clip-path: none; }
.video-title { font-size: 1rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.video time { font-family: var(--font-display); font-size: 0.875rem; color: var(--muted); }
.skeleton { aspect-ratio: 9 / 16; background: var(--night); border: var(--px) solid var(--ink); clip-path: var(--notch); }
@media (prefers-reduced-motion: no-preference) { .skeleton { animation: pulse 1.2s steps(2) infinite; } }
@keyframes pulse { 50% { background: var(--brick); } }
.videos-empty { margin-top: 32px; display: grid; gap: 16px; justify-items: start; padding: 22px; background: var(--dialog); border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 var(--px) var(--cream), inset 0 0 0 calc(2 * var(--px)) var(--ink); clip-path: var(--notch); color: var(--cream); }
.videos-empty[hidden] { display: none; }

/* ---------- save point ---------- */
.save {
  border-top: var(--px) solid var(--ink);
  padding-top: clamp(64px, 10vw, 112px);
}
.save-inner { display: grid; gap: 28px; justify-items: center; text-align: center; }
.save-sela { display: grid; justify-items: center; }
/* Sela berdiri di atas pedestal save point; satu sel pedestal = satu sel sprite */
.sela-save { position: relative; z-index: 1; margin-bottom: calc(var(--sela) * -4px); }
.pedestal { width: calc(32px * var(--sela)); height: auto; image-rendering: pixelated; }
.sela-save { --sela: 7; }
.save-body { display: grid; gap: 16px; justify-items: center; }
.save-body p { max-width: 44ch; color: var(--muted); }
.platforms { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; width: 100%; max-width: 360px; }
.btn-platform { width: 100%; min-height: 56px; font-size: 1rem; }
.footer-links { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; }
.colophon { display: grid; gap: 12px; justify-items: center; padding-block: 40px 32px; margin-top: clamp(48px, 8vw, 80px); border-top: var(--px) dashed var(--brick-hi); color: var(--muted); font-size: 1rem; text-align: center; }
.colophon p { max-width: 62ch; }
.colophon .copy { font-family: var(--font-display); font-size: 0.875rem; }
@media (min-width: 900px) {
  .save-inner { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 64px; align-items: center; }
  .save-body { justify-items: start; }
  .sela-save { --sela: 10; }
  .platforms { grid-template-columns: repeat(3, 1fr); max-width: 640px; }
  .colophon { text-align: left; justify-items: start; }
}

/* ---------- Sela menemani scroll (hanya saat JS + gerak diizinkan; html.motion dipasang main.js) ---------- */
.motion [data-enter] { transition: transform 700ms var(--ease-out), opacity 400ms; }
/* jalan kaki: kecepatan tetap (linear) supaya serasi dengan langkah 0.28s, mulai tepat di luar bingkai */
.motion [data-enter="left"] { transition: transform 1680ms linear; }
.motion [data-enter="left"]:not(.is-in) { transform: translateX(-40vw); }
.motion [data-enter="up"]:not(.is-in) { transform: translateY(100%); }
.motion [data-enter="drop"]:not(.is-in) { transform: translateY(-48px); opacity: 0; }
.motion .quest-npc [data-enter="drop"] { transition-delay: 160ms; }
.motion .peek-bubble { transition: opacity 300ms 900ms; }
.motion .peek:not(:has(.is-in)) .peek-bubble { opacity: 0; }  /* gelembung muncul setelah Sela mengintip */
.sela.is-walking .sela-bodygroup { animation-duration: 0.28s; }
