/* XPETS.LAND — polish.css (Visual v2 "neon storybook") */

/* ---------- karakter SVG hidup ---------- */
[data-polished] { background: none !important; box-shadow: none !important;
  border-radius: 0 !important; animation: none !important; }
[data-polished]::before, [data-polished]::after { display: none !important; }
.chara { width: 100%; height: 100%; overflow: visible; display: block; }
.chara-momo { filter: drop-shadow(0 0 16px rgba(255,126,192,.55)); }
.chara-bobon { filter: drop-shadow(0 0 16px rgba(95,245,201,.5)); }

.chara .float { animation: charaFloat 4.2s ease-in-out infinite; transform-origin: 60px 80px; }
.chara .float.slow { animation-duration: 5.4s; }
@keyframes charaFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.015); }
}
.chara .sway { animation: antSway 3.6s ease-in-out infinite; transform-origin: 60px 36px; }
@keyframes antSway { 0%,100% { transform: rotate(-5deg);} 50% { transform: rotate(5deg);} }
.chara .lantern { animation: lanternPulse 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 6px #FF7EC0); }
.chara .lantern.mint { filter: drop-shadow(0 0 6px #5FF5C9); }
@keyframes lanternPulse { 50% { opacity: .55; } }

.chara .blink { animation: blinkEye 5.2s infinite; transform-origin: center;
  transform-box: fill-box; }
.chara .blink:nth-child(2) { animation-delay: .05s; }
@keyframes blinkEye {
  0%, 91%, 100% { transform: scaleY(1); }
  93.5%, 95.5% { transform: scaleY(.08); }
}
.chara .eyes { animation: lookAround 9s ease-in-out infinite; }
@keyframes lookAround {
  0%, 34%, 100% { transform: translateX(0); }
  40%, 52% { transform: translateX(3px); }
  70%, 82% { transform: translateX(-3px); }
}
.chara .scanline { animation: visorScan 3.4s linear infinite; }
@keyframes visorScan { from { transform: translateY(0);} to { transform: translateY(19px);} }
.chara .led { animation: ledBlink 1.9s steps(1) infinite; }
@keyframes ledBlink { 0%,55% { opacity: 1; } 60%,100% { opacity: .25; } }

/* ---------- logomark ---------- */
a.brand { display: inline-flex; align-items: center; gap: 9px; }
.logomark { width: 30px; height: 30px; flex: none;
  filter: drop-shadow(0 0 7px rgba(183,156,255,.55)); }
.brand-text { letter-spacing: .18em; }

/* ---------- tipografi dongeng ---------- */
section h2::before, .paper h2::before {
  content: "✦ "; color: var(--sovereign-gold); font-size: .72em;
  vertical-align: .18em; text-shadow: 0 0 8px rgba(240,194,75,.6);
}
.dropcap::first-letter {
  font-family: "Cinzel", serif; float: left;
  font-size: 3.05em; line-height: .82; padding: .04em .12em 0 0;
  color: var(--genesis-lavender); text-shadow: 0 0 14px rgba(183,156,255,.45);
}

/* ---------- bingkai storybook neon ---------- */
.storybook { position: relative; }
.storybook::before {
  content: ""; position: absolute; inset: 5px; pointer-events: none;
  border-radius: inherit; z-index: 0;
  background:
    linear-gradient(var(--sb, rgba(183,156,255,.5)), var(--sb, rgba(183,156,255,.5))) top left / 16px 1px,
    linear-gradient(var(--sb, rgba(183,156,255,.5)), var(--sb, rgba(183,156,255,.5))) top left / 1px 16px,
    linear-gradient(var(--sb, rgba(183,156,255,.5)), var(--sb, rgba(183,156,255,.5))) top right / 16px 1px,
    linear-gradient(var(--sb, rgba(183,156,255,.5)), var(--sb, rgba(183,156,255,.5))) top right / 1px 16px,
    linear-gradient(var(--sb, rgba(183,156,255,.5)), var(--sb, rgba(183,156,255,.5))) bottom left / 16px 1px,
    linear-gradient(var(--sb, rgba(183,156,255,.5)), var(--sb, rgba(183,156,255,.5))) bottom left / 1px 16px,
    linear-gradient(var(--sb, rgba(183,156,255,.5)), var(--sb, rgba(183,156,255,.5))) bottom right / 16px 1px,
    linear-gradient(var(--sb, rgba(183,156,255,.5)), var(--sb, rgba(183,156,255,.5))) bottom right / 1px 16px;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 4px rgba(183,156,255,.35));
}
.card.momo.storybook::before  { --sb: rgba(255,126,192,.55); }
.card.bobon.storybook::before { --sb: rgba(95,245,201,.55); }
.card.sealed.storybook::before, .avatara-slot.storybook::before { --sb: rgba(240,194,75,.5); }
.storybook > * { position: relative; z-index: 1; }

/* ---------- langit ---------- */
#sky { position: absolute; inset: 0; z-index: 0; display: block;
  width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
  .chara .float, .chara .sway, .chara .lantern, .chara .blink,
  .chara .eyes, .chara .scanline, .chara .led { animation: none !important; }
}

/* ================= v3: duo panggung & penyempurnaan ================= */
.duo-stage { position: relative; max-width: 460px; margin: 6px auto 0;
  cursor: pointer; -webkit-tap-highlight-color: transparent; }
.duo { width: 100%; height: auto; display: block;
  filter: drop-shadow(0 8px 30px rgba(183,156,255,.18)); }
.duo-bub { position: absolute; top: -8px; right: 2px;
  background: var(--navy-panel); border: 1px solid var(--bobon-mint);
  color: var(--ink); font-size: .82rem; padding: 7px 14px;
  border-radius: 14px 14px 2px 14px;
  box-shadow: 0 0 16px rgba(95,245,201,.25); }
.duo-bub.pop { animation: bubPop .35s ease; }
@keyframes bubPop { from { transform: scale(.6); opacity: 0; } }
.duo-stage.bounce .duo { animation: duoBounce .5s ease; }
@keyframes duoBounce { 30% { transform: translateY(-8px) scale(1.015); } }

@media (min-width: 900px) {
  .hero-sky .wrap { display: grid; grid-template-columns: 1.05fr .95fr;
    gap: 26px; align-items: center; width: 100%; }
  .duo-stage { margin-top: 60px; }
}
@media (max-width: 899px) {
  .duo-stage { max-width: 340px; margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .duo-bub.pop, .duo-stage.bounce .duo { animation: none !important; }
}

/* ================= v5: DEEPFIELD — medan-dalam seluruh halaman ========= */
#deepfield { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  width: 100vw; height: 100vh; }
body > *:not(#deepfield) { position: relative; z-index: 1; }
/* seksi bergradasi dibuat tembus-pandang halus agar medan-dalam berkilau
   di baliknya; panel & kartu tetap solid demi keterbacaan */
.section-alt { background: linear-gradient(180deg, rgba(6,11,30,.55),
  rgba(11,18,48,.62) 30%, rgba(6,11,30,.55)) !important; }

/* ================= v6: 👁 MATA MENARA (ticker) ================= */
#mata-menara { position: fixed; top: 54px; left: 0; right: 0; z-index: 9;
  background: rgba(6,11,30,.82); backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(183,156,255,.18); font-size: .72rem; }
.tk-label { padding: 3px 14px 0; color: var(--ink-dim);
  letter-spacing: .06em; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.tk-label b { color: var(--sovereign-gold); letter-spacing: .14em; }
.tk-strip { overflow: hidden; padding: 2px 0 5px; }
.tk-strip.static { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tk-track { display: inline-flex; gap: 26px; white-space: nowrap;
  animation: tkScroll 40s linear infinite; will-change: transform;
  padding-left: 14px; }
.tk-strip.static .tk-track { animation: none; }
#mata-menara:hover .tk-track { animation-play-state: paused; }
@keyframes tkScroll { to { transform: translateX(-50%); } }
.tk { color: var(--ink-dim); }
.tk .mono { font-family: "JetBrains Mono", monospace; color: var(--ink); }
.tk.up { color: var(--candle-up); } .tk.up .mono { color: var(--candle-up); }
.tk.down { color: var(--candle-down); } .tk.down .mono { color: var(--candle-down); }
.tk.pulse { animation: tkPulse .9s ease; }
@keyframes tkPulse { 30% { text-shadow: 0 0 10px currentColor; transform: scale(1.04); } }
@media (max-width: 640px) { #mata-menara { top: 50px; font-size: .68rem; } }

.hero-copy { padding-top: 128px; }

/* ================= v7: ⚓ Dermaga Komunitas ================= */
.dermaga { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 0 0 22px; margin-bottom: 22px;
  border-bottom: 1px solid rgba(233,237,255,.08); }
.dermaga-label { font-family: "JetBrains Mono", monospace; font-size: .68rem;
  letter-spacing: .28em; color: var(--sovereign-gold); }
.dermaga-row { display: flex; gap: 12px; }
.soc { display: inline-flex; width: 36px; height: 36px; border-radius: 10px;
  align-items: center; justify-content: center;
  border: 1px solid rgba(183,156,255,.3); background: rgba(16,24,58,.6);
  transition: transform .15s ease, box-shadow .15s ease; }
.soc svg { width: 17px; height: 17px; fill: var(--ink-dim); }
a.soc:hover { transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(95,245,201,.3); border-color: var(--bobon-mint); }
a.soc:hover svg { fill: var(--bobon-mint); }
.soc.soon { opacity: .38; border-style: dashed; cursor: default; }

/* ================= v8: Dermaga Resmi (panggung besar) ================= */
.dermaga-grid { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.soc-big { display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 108px; padding: 18px 8px 14px; border-radius: var(--radius);
  border: 1px solid rgba(183,156,255,.3); background: rgba(16,24,58,.65);
  color: var(--ink-dim); font-size: .78rem; letter-spacing: .06em;
  transition: transform .16s ease, box-shadow .16s ease; }
.soc-big svg { width: 26px; height: 26px; fill: var(--genesis-lavender); }
a.soc-big:hover { transform: translateY(-4px); text-decoration: none;
  border-color: var(--bobon-mint); color: var(--ink);
  box-shadow: 0 0 22px rgba(95,245,201,.28); }
a.soc-big:hover svg { fill: var(--bobon-mint); }
.soc-big.soon { opacity: .45; border-style: dashed; }
.soc-big.soon em { font-size: .62rem; color: var(--sovereign-gold);
  font-style: normal; letter-spacing: .1em; }

/* ================= v9: FINAL 100% ================= */
.card-chara { height: 118px; margin-bottom: 10px; }
.card-chara .chara { height: 100%; width: auto; margin: 0 auto; display: block; }

.landing-plate.firstsail { border-color: rgba(95,245,201,.45);
  box-shadow: 0 0 32px rgba(95,245,201,.14); margin-bottom: 12px; }
.landing-plate.firstsail .num { text-shadow: 0 0 14px rgba(95,245,201,.5); }

/* Arena = geladak kapal */
.arena.dek .panel { position: relative;
  background: linear-gradient(180deg, rgba(20,27,62,.92), rgba(12,18,44,.92)),
    repeating-linear-gradient(90deg, rgba(183,156,255,.05) 0 2px, transparent 2px 46px); }
.arena.dek .panel::after { content: ""; position: absolute; left: 10px; right: 10px;
  top: 0; height: 3px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, rgba(240,194,75,.5) 0 10px,
    transparent 10px 20px); opacity: .5; }             /* pagar tali geladak */
.arena.dek .feed-item { border-radius: 16px;
  border: 1px solid rgba(95,245,201,.18); border-left-width: 3px;
  box-shadow: inset 0 0 18px rgba(6,11,30,.6); }        /* jendela dek */

/* ⑭ Mata Menara: mengalir tepat di bawah samudra (bukan fixed di nav) */
#mata-menara { position: static; top: auto;
  border-top: 1px solid rgba(183,156,255,.22);
  border-bottom: 1px solid rgba(183,156,255,.22); }
#mata-menara.in-flow { margin-top: 78px; }   /* arena: beri ruang header fixed */

/* ⑫ Emblem Diary — Kitab-perahu */
a.brand { flex-direction: column; align-items: flex-start; gap: 2px; }
.diary-tag { display: inline-flex; align-items: center; gap: 6px;
  font-family: "Spectral", serif; font-style: italic; font-size: .58rem;
  letter-spacing: .08em; color: var(--ink-dim); }
.diary-emblem { filter: drop-shadow(0 0 6px rgba(183,156,255,.45)); flex: none; }
.diary-hero { text-align: center; margin: 0 0 18px; }
.diary-hero .diary-emblem { filter: drop-shadow(0 0 18px rgba(95,245,201,.4)); }
.diary-title { font-family: "Cinzel", serif; font-size: 1.05rem;
  letter-spacing: .12em; color: var(--genesis-lavender); margin-top: 6px; }
@media (max-width: 640px) { .diary-tag span { display: none; } }
