/* Ledakjitu Homestead — indie-web anime pixel layout */
@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700;800&family=Press+Start+2P&family=VT323&display=swap");

*, *::before, *::after { box-sizing: border-box; }

:root {
  --hot-pink: #ff8ec8;
  --pink-deep: #e86aaa;
  --mint: #7fd4a8;
  --mint-dark: #3d8a62;
  --brown: #6b4a3a;
  --brown-soft: #c9a88a;
  --cream: #fff8f2;
  --cream-warm: #ffeef6;
  --sky: #8ecfff;
  --sun: #ffcc55;
  --lavender: #c9a0ff;
  --ink: #3d2048;
  --border: #b85c9a;
  --shadow: #5c3d6e;
  --win-blue: #000080;
  --win-gray: #c0c0c0;
  --font: "M PLUS Rounded 1c", "Trebuchet MS", "Lucida Grande", sans-serif;
  --pixel: "Press Start 2P", monospace;
  --mono: "VT323", "Courier New", Courier, monospace;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: #ffd6ec;
  background-image:
    url("/images/tile-hearts.svg"),
    url("/images/tile-checker.svg");
  background-size: 24px 24px, 32px 32px;
  background-position: 0 0, 16px 16px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 15px, rgba(92,61,110,.15) 15px, rgba(92,61,110,.15) 16px),
    repeating-linear-gradient(90deg, transparent, transparent 15px, rgba(92,61,110,.1) 15px, rgba(92,61,110,.1) 16px);
  z-index: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: .5rem 1rem;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
}
.skip:focus { left: .5rem; top: .5rem; }

/* Marquee */
.marquee-bar {
  position: relative;
  z-index: 10;
  background: repeating-linear-gradient(
    90deg,
    var(--hot-pink) 0 24px,
    var(--sun) 24px 48px,
    var(--mint) 48px 72px,
    var(--sky) 72px 96px,
    var(--lavender) 96px 120px
  );
  border-bottom: 3px ridge var(--brown);
  padding: .35rem 0;
  overflow: hidden;
}
.marquee-bar marquee {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: .04em;
}

/* Auth bar */
.auth-bar {
  position: relative;
  z-index: 10;
  background: var(--cream);
  border-bottom: 3px dotted var(--border);
}
.auth-bar__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: .45rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.auth-bar__text {
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
}
.auth-bar__actions { display: flex; gap: .4rem; }
.auth-bar__btn {
  display: inline-block;
  padding: .3rem .85rem;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px outset var(--border);
  border-radius: 0;
}
.auth-bar__btn--line { background: #fff; color: var(--ink); }
.auth-bar__btn--fill { background: var(--hot-pink); color: #fff; }

/* Outer frame — gaya homepage Neocities */
.homestead {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 1rem auto 2rem;
  padding: 12px;
  background-color: var(--cream-warm);
  border: 5px double var(--brown);
  outline: 4px dotted var(--pink-deep);
  outline-offset: 4px;
  box-shadow: 8px 8px 0 var(--shadow);
}

.site-frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  border: 2px dashed rgba(184, 92, 154, .45);
}

/* Banner header */
.site-head {
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--cream-warm) 100%);
  border: 3px ridge var(--border);
  padding: .75rem 1rem;
  margin-bottom: .75rem;
}
.site-head--compact { margin-bottom: .5rem; }
.site-head__logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
}
.site-head__icon {
  width: 48px;
  height: 48px;
  border: 3px solid var(--brown);
  background: linear-gradient(135deg, var(--mint), var(--sky));
  display: grid;
  place-items: center;
  font-family: var(--pixel);
  font-size: .55rem;
  color: var(--ink);
  image-rendering: pixelated;
  overflow: hidden;
  border-radius: 10px;
}
.site-head__icon--img { padding: 2px; background: #fff; }
.site-head__icon--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  image-rendering: pixelated;
}
.site-head__title {
  display: block;
  font-family: var(--pixel);
  font-size: .72rem;
  line-height: 1.6;
  letter-spacing: .06em;
  color: var(--shadow);
  text-shadow: 2px 2px 0 var(--hot-pink);
}
.site-head__sub {
  display: block;
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--brown);
}
.site-head__tagline {
  margin: .45rem 0 0;
  font-size: .88rem;
  color: #555;
}

/* Nav horizontal (subhalaman) */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem;
  margin-top: .65rem;
}
.site-nav a {
  padding: .3rem .65rem;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: var(--mint);
  border: 2px outset var(--mint-dark);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--sun);
  border-style: inset;
}

/* Nav vertikal (sidebar kiri homepage) */
.nav-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}
.nav-stack a {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .55rem;
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 2px outset var(--win-gray);
  text-align: left;
}
.nav-stack__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  image-rendering: pixelated;
}
.nav-stack a:hover,
.nav-stack a[aria-current="page"] {
  background: var(--sun);
  border-style: inset;
}

.nav-toggle {
  display: none;
  margin: .5rem auto 0;
  padding: .4rem 1rem;
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  background: var(--sky);
  border: 2px outset #5a9fd4;
}

/* 3-column homepage */
.layout-triple {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr) 200px;
  gap: 12px;
  align-items: start;
}

.col-side { min-width: 0; }
.col-main { min-width: 0; }

/* 2-column legacy */
.layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 860px) {
  .layout-triple { grid-template-columns: 1fr; }
  .layout-triple .nav-stack { display: none; }
  .layout-triple .nav-stack.is-open {
    display: flex;
    margin-bottom: .5rem;
  }
  .layout-triple .site-head .nav-toggle,
  .layout .nav-toggle,
  .site-head .nav-toggle { display: block; }
  .layout-triple .col-side--left .nav-toggle { display: none; }
  .site-head .site-nav:not(.nav-stack) { display: none; }
  .site-head .site-nav:not(.nav-stack).is-open { display: flex; }
}

@media (max-width: 720px) {
  .layout { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav:not(.nav-stack) { display: none; }
  .site-nav:not(.nav-stack).is-open { display: flex; }
}

/* Player card */
.player-card {
  background: linear-gradient(180deg, #fff 0%, #f5e6ff 100%);
  border: 3px ridge var(--border);
  padding: .6rem;
  margin-bottom: .5rem;
  text-align: center;
  font-size: .82rem;
}
.player-card__avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto .4rem;
  border: 3px solid var(--brown);
  background: var(--sky);
  display: grid;
  place-items: center;
  font-size: 2rem;
  image-rendering: pixelated;
}
.player-card__name {
  font-family: var(--pixel);
  font-size: .45rem;
  line-height: 1.7;
  margin: 0 0 .25rem;
  color: var(--shadow);
}
.player-card__status {
  font-family: var(--mono);
  font-size: .95rem;
  margin: 0;
  color: var(--mint-dark);
}

/* Win95 window boxes */
.win-box {
  background: var(--win-gray);
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  margin-bottom: .5rem;
  box-shadow: 2px 2px 0 rgba(0,0,0,.25);
}
.win-box__titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  padding: 3px 4px;
  background: linear-gradient(90deg, var(--win-blue), #1084d0);
  color: #fff;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 700;
}
.win-box__titlebar span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-box__buttons {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.win-box__btn {
  width: 14px;
  height: 12px;
  background: var(--win-gray);
  border: 1px solid;
  border-color: #fff #000 #000 #fff;
  font-size: 8px;
  line-height: 10px;
  text-align: center;
  color: #000;
}
.win-box__body {
  padding: .65rem;
  background: #fff;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  margin: 2px;
  font-size: .9rem;
}
.win-box__body--scroll {
  max-height: 220px;
  overflow-y: auto;
}
.win-box--mint .win-box__body { background: #f0fff4; }
.win-box--pink .win-box__body { background: #fff5fa; }
.win-box--sky .win-box__body { background: #f0f8ff; }

/* Hero pixel art */
.hero-pixel {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-bottom: .5rem;
  border: 3px ridge var(--brown);
  image-rendering: pixelated;
}

/* Classic boxes (subhalaman) */
.box {
  background: var(--cream);
  border: 3px ridge var(--border);
  box-shadow: 3px 3px 0 var(--shadow);
  padding: 1rem;
  margin-bottom: 1rem;
}
.box--pink { background: #ffe6f5; }
.box--mint { background: #e6ffe6; }
.box--sky { background: #e6f5ff; }
.box__title {
  margin: 0 0 .6rem;
  padding: .25rem .5rem;
  font-family: var(--mono);
  font-size: 1.1rem;
  text-align: center;
  background: linear-gradient(90deg, var(--hot-pink), var(--lavender));
  color: #fff;
  text-shadow: 1px 1px 0 var(--ink);
  border: 2px groove var(--border);
}
.box p { margin: 0 0 .65rem; }
.box p:last-child { margin-bottom: 0; }

.blink { animation: blink 1.2s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Counter */
.counter-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .5rem;
  padding: .5rem;
  background: #111;
  border: 3px inset #666;
}
.counter-strip--compact { padding: .4rem; }
.counter-strip__label {
  color: var(--mint);
  font-family: var(--mono);
  font-size: .95rem;
  margin: 0;
}
.counter-strip__digits { display: flex; gap: 2px; }
.counter-strip__digit {
  display: grid;
  place-items: center;
  width: 20px;
  height: 26px;
  background: #111;
  border: 1px solid #333;
  color: #0f0;
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: inset 0 0 6px #0f0;
}
.counter-strip__badge {
  font-size: .75rem;
  color: #ff9;
  font-family: var(--mono);
  margin: 0;
}

/* Stickers / blinkies */
.sticker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin: .4rem 0;
}
.sticker {
  display: inline-block;
  padding: 3px 6px;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  border: 2px outset var(--win-gray);
  background: linear-gradient(180deg, #fff, #ddd);
}
.sticker--game { background: linear-gradient(180deg, var(--mint), #5cb88a); color: #123; }
.sticker--retro { background: linear-gradient(180deg, var(--sun), #e6a020); }
.sticker--safe { background: linear-gradient(180deg, var(--sky), #6ab0e0); }

/* Story list */
.story-list { list-style: none; padding: 0; margin: 0; }
.story-list li {
  margin-bottom: .45rem;
  padding: .45rem;
  background: #fff;
  border: 2px dotted var(--border);
}
.story-list a { font-weight: 700; color: #9900cc; }
.story-list .meta {
  display: block;
  font-size: .8rem;
  color: #666;
  margin-top: .15rem;
}

/* Sidebar */
.sidebar .box,
.col-side .box { font-size: .88rem; }
.guestbook-preview {
  background: #fff;
  border: 1px solid #ccc;
  padding: .45rem;
  margin-bottom: .35rem;
  font-size: .82rem;
}
.guestbook-preview cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--pink-deep);
  font-size: .78rem;
}
.webring { text-align: center; }
.webring a {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  margin: .2rem;
  padding: .25rem .5rem;
  background: var(--sky);
  border: 2px outset #5a9fd4;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.webring a::before {
  content: "";
  width: 12px;
  height: 12px;
  background: url("/images/icons/icon-star.svg") center/contain no-repeat;
  image-rendering: pixelated;
}

/* CTA */
.cta-big {
  display: block;
  text-align: center;
  padding: .65rem 1rem;
  margin: .5rem 0;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #ff66aa, #cc3388);
  border: 4px ridge #ff99cc;
  box-shadow: 0 0 10px rgba(255,102,204,.5);
  animation: pulse-cta 2.5s ease-in-out infinite;
}
@keyframes pulse-cta {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}
.cta-big:hover { background: linear-gradient(180deg, #ff88bb, #dd4499); }

/* Page content */
.page-main h1 {
  margin: 0 0 .5rem;
  font-family: var(--mono);
  font-size: 1.65rem;
  color: var(--shadow);
  text-shadow: 1px 1px 0 var(--sun);
}
.page-main h2 {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--brown);
}
.page-main .crumbs {
  font-size: .82rem;
  margin-bottom: .75rem;
  color: #555;
}
.page-main .crumbs a { color: #9900cc; }
.page-main .meta {
  font-size: .85rem;
  color: #666;
  margin-bottom: 1rem;
}
.page-main .byline {
  font-size: .85rem;
  padding: .5rem;
  background: #fff9e6;
  border-left: 4px solid var(--sun);
  margin-bottom: 1rem;
}
.prose p { margin: 0 0 .85rem; }
.prose p:last-child { margin-bottom: 0; }

.article-cover {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 1rem;
  border: 3px ridge var(--border);
}

.article-nav {
  margin-top: 1.25rem;
  padding-top: .75rem;
  border-top: 2px dashed var(--border);
  font-size: .9rem;
}
.article-nav a { color: #9900cc; font-weight: 700; }

/* Guestbook form */
.guest-form label {
  display: block;
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: .25rem;
}
.guest-form input,
.guest-form textarea {
  width: 100%;
  margin-bottom: .6rem;
  padding: .4rem;
  font-family: var(--font);
  font-size: .9rem;
  border: 2px inset #999;
  background: #fff;
}
.guest-form textarea { min-height: 80px; resize: vertical; }
.guest-form button {
  padding: .45rem 1.2rem;
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  background: var(--mint);
  border: 2px outset var(--mint-dark);
}
.guest-form button:hover { border-style: inset; }
.guest-note { font-size: .8rem; color: #666; font-style: italic; }

/* FAQ */
.faq-item { margin-bottom: .75rem; }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--shadow);
  padding: .4rem;
  background: #fff;
  border: 2px dotted var(--border);
}
.faq-item p { margin: .5rem 0 0; padding: 0 .4rem; }

/* Footer */
.site-foot {
  text-align: center;
  margin-top: .75rem;
  padding: .85rem;
  background: var(--shadow);
  border: 3px ridge var(--lavender);
  color: #ffccff;
  font-size: .82rem;
}
.site-foot a { color: var(--mint); }
.site-foot__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1rem;
  margin-bottom: .5rem;
}
.site-foot__disclaimer {
  margin: .5rem 0 0;
  font-size: .75rem;
  color: #cc99ff;
}

.rainbow-hr {
  border: 0;
  height: 6px;
  margin: .75rem 0;
  background: linear-gradient(90deg, var(--hot-pink), var(--sun), var(--mint), var(--sky), var(--lavender));
}

.error-box { text-align: center; padding: 2rem 1rem; }
.error-box h1 {
  font-family: var(--pixel);
  font-size: 1.2rem;
  color: var(--hot-pink);
  text-shadow: 2px 2px 0 var(--ink);
  margin: 0;
}

/* === Anime / kawaii enhancements === */
.site-frame {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.4) 0%, transparent 12%),
    linear-gradient(135deg, #fff0f8 0%, #ffeef6 40%, #f0f8ff 100%);
}

.site-head {
  background: linear-gradient(180deg, #fff 0%, #ffe8f4 55%, #e8f4ff 100%);
  border: 4px ridge var(--hot-pink);
  position: relative;
  overflow: hidden;
}
.site-head::before,
.site-head::after {
  content: "✦";
  position: absolute;
  top: .4rem;
  font-size: 1.1rem;
  color: var(--hot-pink);
  opacity: .7;
}
.site-head::before { left: .6rem; }
.site-head::after { right: .6rem; }

.site-head__tagline {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--pink-deep);
}

.player-card {
  background: linear-gradient(160deg, #fff 0%, #ffe8f4 50%, #e8f4ff 100%);
  border: 3px solid var(--hot-pink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--lavender);
}
.player-card__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--hot-pink);
  background: #fff;
  overflow: hidden;
  padding: 0;
}
.player-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.hero-anime {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-bottom: .5rem;
  border: 4px ridge var(--hot-pink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--lavender);
  image-rendering: pixelated;
}

.kawaii-divider {
  text-align: center;
  margin: .6rem 0;
  font-size: .85rem;
  color: var(--pink-deep);
  letter-spacing: .2em;
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .5rem;
  margin: .5rem 0;
}
.char-card {
  background: linear-gradient(180deg, #fff, #fff5fa);
  border: 2px dotted var(--border);
  border-radius: 10px;
  padding: .5rem;
  text-align: center;
  font-size: .82rem;
}
.char-card__emoji { font-size: 1.8rem; line-height: 1; margin-bottom: .25rem; }
.char-card__avatar {
  width: 64px;
  height: 74px;
  margin: 0 auto .35rem;
  border: 2px solid var(--hot-pink);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.char-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.char-card__name { font-weight: 800; color: var(--shadow); font-size: .88rem; }
.char-card__role { font-family: var(--mono); font-size: .85rem; color: #8866aa; margin: .15rem 0; }
.char-card__bio { font-size: .75rem; color: #666; margin: .25rem 0 0; line-height: 1.35; }

.bulletin {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bulletin li {
  padding: .45rem .5rem;
  margin-bottom: .35rem;
  background: #fff;
  border-left: 4px solid var(--hot-pink);
  border-radius: 0 8px 8px 0;
  font-size: .88rem;
}
.bulletin time {
  display: block;
  font-family: var(--mono);
  font-size: .78rem;
  color: #888;
}

.lore-box {
  background: linear-gradient(135deg, #f8f0ff 0%, #fff5fa 100%);
  border: 2px dashed var(--lavender);
  border-radius: 10px;
  padding: .65rem;
  font-size: .9rem;
}
.lore-box h3 {
  margin: 0 0 .4rem;
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--shadow);
}

.tip-list { margin: 0; padding-left: 1.2rem; font-size: .88rem; }
.tip-list li { margin-bottom: .35rem; }

.mood-box {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  font-size: .82rem;
}
.mood-pill {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .5rem;
  background: #fff;
  border: 2px outset var(--win-gray);
  border-radius: 999px;
}
.mood-pill img {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
}

.sticker--kawaii { background: linear-gradient(180deg, #ffb8d9, #ff8ec8); color: #fff; }
.sticker--guild { background: linear-gradient(180deg, #c9a0ff, #9966cc); color: #fff; }

.sparkle {
  animation: sparkle 2s ease-in-out infinite;
}
@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.1); }
}

.win-box__titlebar {
  background: linear-gradient(90deg, #8060b0, #c080d8, #6080d0);
}

.win-box__titlebar .title-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  image-rendering: pixelated;
  vertical-align: -2px;
  margin-right: 2px;
}

/* Hero + stats */
.hero-wrap {
  position: relative;
  margin-bottom: .5rem;
}
.hero-wrap__deco {
  position: absolute;
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  pointer-events: none;
  animation: float-deco 3s ease-in-out infinite;
}
.hero-wrap__deco--tl { top: -6px; left: -4px; animation-delay: 0s; }
.hero-wrap__deco--tr { top: -4px; right: -2px; animation-delay: .8s; }
.hero-wrap__deco--bl { bottom: 8px; left: 4px; width: 22px; height: 22px; animation-delay: 1.4s; }
.hero-wrap__deco--br { bottom: 4px; right: 6px; width: 24px; height: 24px; animation-delay: .4s; }
@keyframes float-deco {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(6deg); }
}

.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: .5rem;
}
.stat-bar__item {
  text-align: center;
  padding: .45rem .25rem;
  background: linear-gradient(180deg, #fff, #fff5fa);
  border: 2px ridge var(--hot-pink);
  border-radius: 8px;
  box-shadow: 2px 2px 0 var(--lavender);
}
.stat-bar__icon {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto .2rem;
  image-rendering: pixelated;
}
.stat-bar__num {
  display: block;
  font-family: var(--pixel);
  font-size: .42rem;
  line-height: 1.6;
  color: var(--shadow);
}
.stat-bar__label {
  display: block;
  font-size: .65rem;
  color: #8866aa;
  font-weight: 700;
}

.main-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-bottom: .5rem;
}
.main-grid-2 .win-box { margin-bottom: 0; }
@media (max-width: 600px) {
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .main-grid-2 { grid-template-columns: 1fr; }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .45rem;
  margin: 0;
}
.feature-card {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  padding: .5rem;
  background: #fff;
  border: 2px dotted var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--lavender);
  background: #fff8fc;
}
.feature-card__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  padding: 4px;
  background: linear-gradient(135deg, #ffe8f4, #e8f4ff);
  border: 2px solid var(--hot-pink);
  border-radius: 8px;
  image-rendering: pixelated;
}
.feature-card__title {
  display: block;
  font-weight: 800;
  font-size: .82rem;
  color: var(--shadow);
}
.feature-card__desc {
  display: block;
  font-size: .72rem;
  color: #666;
  line-height: 1.35;
  margin-top: .1rem;
}

.quest-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.quest-list li {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .45rem;
  margin-bottom: .35rem;
  background: #fff;
  border: 2px solid var(--mint);
  border-radius: 8px;
  font-size: .82rem;
}
.quest-list li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("/images/icons/icon-quest.svg") center/contain no-repeat;
  image-rendering: pixelated;
}
.quest-list li.done {
  opacity: .75;
  border-color: var(--win-gray);
  text-decoration: line-through;
  color: #888;
}
.quest-list li.done::before {
  background-image: url("/images/icons/icon-star.svg");
}

.level-box { font-size: .82rem; }
.level-box__bar {
  height: 12px;
  margin: .35rem 0;
  background: #eee;
  border: 2px inset var(--win-gray);
  border-radius: 6px;
  overflow: hidden;
}
.level-box__fill {
  display: block;
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, var(--mint), var(--sky), var(--lavender));
  border-radius: 4px;
  animation: level-shine 2.5s ease-in-out infinite;
}
@keyframes level-shine {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}
.level-box__xp {
  font-family: var(--mono);
  font-size: .9rem;
  color: var(--pink-deep);
  margin: 0;
}

.blinkie-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin: .35rem 0 .5rem;
}
.blinkie {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  border: 2px outset var(--win-gray);
  animation: blinkie-bob 2s ease-in-out infinite;
}
.blinkie:nth-child(2) { animation-delay: .3s; }
.blinkie:nth-child(3) { animation-delay: .6s; }
.blinkie img {
  width: 12px;
  height: 12px;
  image-rendering: pixelated;
}
.blinkie--pink { background: #ffb8d9; color: #5c2040; }
.blinkie--mint { background: #a8e8c8; color: #1a4030; }
.blinkie--sky { background: #b8d8ff; color: #204060; }
@keyframes blinkie-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.sticker--anime { background: linear-gradient(180deg, #b8d8ff, #8ecfff); color: #204060; }

.story-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: .5rem;
  align-items: start;
  padding: .55rem;
  margin-bottom: .5rem;
  background: #fff;
  border: 2px solid var(--sky);
  border-radius: 10px;
}
.story-card__icon {
  width: 36px;
  height: 36px;
  padding: 4px;
  background: linear-gradient(135deg, #f0f8ff, #fff5fa);
  border: 2px solid var(--sky);
  border-radius: 8px;
  image-rendering: pixelated;
}
.story-card__body { min-width: 0; }
.story-card h3 { margin: 0 0 .3rem; font-size: .95rem; }
.story-card h3 a { color: #9900cc; text-decoration: none; }
.story-card p { margin: 0; font-size: .85rem; color: #444; }
.story-card .tag {
  display: inline-block;
  margin-top: .35rem;
  padding: 2px 6px;
  font-size: .7rem;
  font-weight: 700;
  background: var(--lavender);
  border-radius: 4px;
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* —— Perpustakaan (gaya library personal homepage) —— */
.lib-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 1rem;
  text-align: center;
}
.lib-hero__wing { width: 40px; height: auto; image-rendering: pixelated; }
.lib-hero h1 { margin: 0; font-size: 1.5rem; color: #9900cc; }

.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .75rem;
  margin: 1rem 0;
}
.lib-card {
  display: block;
  padding: .85rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #fff, #fff8fc);
  border: 2px solid var(--pink);
  border-radius: 12px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.lib-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--lavender);
}
.lib-card__icon {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto .5rem;
  image-rendering: pixelated;
}
.lib-card h2 { margin: 0 0 .35rem; font-size: 1rem; color: #9900cc; }
.lib-card p { margin: 0; font-size: .82rem; color: #555; }

.lib-entry {
  margin: 1.25rem 0;
  padding: 1rem;
  background: #fff;
  border: 2px dashed var(--sky);
  border-radius: 10px;
}
.lib-entry h2 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
}
.lib-entry h2 a { color: #9900cc; }
.lib-quote {
  margin: .5rem 0;
  padding: .65rem .85rem;
  font-size: .88rem;
  font-style: italic;
  color: #444;
  background: #f8f0ff;
  border-left: 4px solid var(--lavender);
  border-radius: 0 8px 8px 0;
}
.lib-says {
  margin: .65rem 0 0;
  padding: .65rem;
  font-size: .88rem;
  background: linear-gradient(135deg, #fff5fa, #f0f8ff);
  border: 2px solid var(--pink);
  border-radius: 8px;
}
.lib-says strong { color: #c06090; }
.lib-divider {
  border: none;
  height: 2px;
  margin: 1.5rem 0;
  background: repeating-linear-gradient(90deg, var(--pink), var(--pink) 8px, transparent 8px, transparent 16px);
}

.lib-manga {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: .75rem;
  margin: 1.25rem 0;
  padding: .85rem;
  background: #fff;
  border: 2px solid var(--mint);
  border-radius: 12px;
}
.lib-manga__cover {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border: 2px solid var(--sky);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffe8f4, #e8f4ff);
  image-rendering: pixelated;
}
.lib-manga h2 { margin: 0 0 .25rem; font-size: 1rem; color: #9900cc; }
.lib-manga .meta { margin: 0 0 .4rem; font-size: .78rem; color: #8866aa; }
.lib-manga .synopsis { margin: 0; font-size: .85rem; color: #444; }
.lib-manga .synopsis em { color: #666; }

.deco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
  margin: 1rem 0;
}
.deco-tile {
  padding: .65rem;
  text-align: center;
  background: #fff;
  border: 2px solid var(--lavender);
  border-radius: 10px;
}
.deco-tile img {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto .45rem;
  image-rendering: pixelated;
}
.deco-tile a {
  display: inline-block;
  margin-top: .35rem;
  padding: 3px 10px;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: var(--pink);
  border-radius: 6px;
}
.deco-tile a:hover { background: #e070a8; }

.lib-credit {
  margin-top: 1.5rem;
  padding: .65rem;
  font-size: .8rem;
  color: #666;
  background: #faf8ff;
  border-radius: 8px;
}

/* —— Search, bilingual, arcade —— */
.game-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .65rem;
  margin: 1rem 0;
}
.game-tab {
  padding: .6rem .5rem;
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 700;
  color: #4a3060;
  background: linear-gradient(180deg, #fff, #f8f0ff);
  border: 2px solid var(--lavender);
  border-radius: 8px;
  cursor: pointer;
}
.game-tab:hover, .game-tab.is-active {
  background: linear-gradient(180deg, #ffe8f4, #ffc8e8);
  border-color: var(--pink);
}
.game-panel { display: none; margin-top: 1rem; }
.game-panel.is-active { display: block; }
.game-stage {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: .5rem;
  background: #1a1028;
  border: 3px solid var(--pink);
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px #4a3060;
}
.game-stage canvas {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  image-rendering: pixelated;
  background: #0d0818;
}
.game-hud {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
  font-family: var(--mono);
  font-size: .85rem;
  color: #8866aa;
}
.game-hud strong { color: #9900cc; }
.game-btn {
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  background: var(--pink);
  border: 2px solid #c06090;
  border-radius: 6px;
  cursor: pointer;
}
.game-btn:hover { background: #e070a8; }
.game-help { margin: .5rem 0 0; font-size: .8rem; color: #666; }
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-width: 320px;
  margin: 0 auto;
}
.memory-card {
  aspect-ratio: 1;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #8ecfff, #c9a0ff);
  border: 2px solid #5c3d6e;
  border-radius: 8px;
  cursor: pointer;
}
.memory-card.is-flipped, .memory-card.is-matched {
  background: linear-gradient(135deg, #ffe8f4, #fff);
  color: #9900cc;
  cursor: default;
}
.memory-card:disabled { opacity: .55; }
.site-search-wrap { position: relative; margin: .5rem 0 0; max-width: 280px; }
.site-search { display: flex; gap: 4px; }
.site-search input[type="search"] {
  flex: 1; min-width: 0; padding: 5px 8px; font-size: .82rem;
  border: 2px solid var(--sky); border-radius: 6px; background: #fff;
}
.site-search button {
  padding: 5px 10px; font-family: var(--mono); font-size: .75rem; font-weight: 700;
  color: #fff; background: var(--pink); border: 2px solid #c06090; border-radius: 6px; cursor: pointer;
}
.search-suggest {
  position: absolute; z-index: 50; top: 100%; left: 0; right: 0; margin: 4px 0 0;
  padding: 0; list-style: none; background: #fff; border: 2px solid var(--lavender);
  border-radius: 8px; box-shadow: 0 4px 12px rgba(80,40,100,.15);
}
.search-suggest[hidden] { display: none; }
.search-suggest a { display: block; padding: 6px 10px; font-size: .82rem; color: #9900cc; text-decoration: none; }
.search-suggest a:hover { background: #fff5fa; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results__item { padding: .65rem 0; border-bottom: 1px dashed var(--sky); }
.search-results__item a { color: #9900cc; text-decoration: none; }
.search-results__item p { margin: .25rem 0 0; font-size: .85rem; color: #555; }
.search-hint, .search-empty, .search-count { font-size: .9rem; color: #555; }
.prose-en {
  margin-top: 1.5rem; padding: 1rem;
  background: linear-gradient(135deg, #f8f8ff, #fff8fc);
  border: 2px dashed var(--sky); border-radius: 10px; font-size: .9rem; color: #444;
}
.prose-en h2 { margin: 0 0 .5rem; font-size: .95rem; color: #8866aa; text-transform: uppercase; letter-spacing: .04em; }
.prose-en p:last-child { margin-bottom: 0; }

