/* ==========================================================================
   retro.css — tampilan ala homepage pribadi tahun 2000-an
   (Windows 98 + GeoCities), tetap terbaca & responsif.
   Semua grafis dibuat sendiri (lihat /img).
   ========================================================================== */

:root {
  --silver: #c0c0c0;
  --silver-light: #dfdfdf;
  --gray: #808080;
  --dark: #0a0a0a;
  --white: #ffffff;
  --navy: #000080;
  --titlebar: linear-gradient(90deg, #000080, #1084d0);
  --link: #0000ee;
  --visited: #551a8b;
  --hover: #ff0000;
  --text: #111111;
  --paper: #ffffff;
  --font: Verdana, Tahoma, "DejaVu Sans", Arial, sans-serif;
  --font-serif: "Times New Roman", Times, "Liberation Serif", serif;
  --font-mono: "Courier New", Courier, "Liberation Mono", monospace;

  /* bevel ala Win98 */
  --raised: inset -1px -1px var(--dark), inset 1px 1px var(--white),
            inset -2px -2px var(--gray), inset 2px 2px var(--silver-light);
  --sunken: inset -1px -1px var(--white), inset 1px 1px var(--gray),
            inset -2px -2px var(--silver-light), inset 2px 2px var(--dark);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 12px 0 24px;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  /* langit malam berbintang, senada dengan header */
  background: #0d0b2b url("/img/bg-malam.svg") repeat;
  image-rendering: auto;
}

img { max-width: 100%; height: auto; }
.badge88, .star, .construction, .banner-moon { image-rendering: pixelated; }

a { color: var(--link); text-decoration: underline; }
a:visited { color: var(--visited); }
a:hover { color: var(--hover); }
a:active { color: var(--hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px dotted var(--dark);
  outline-offset: 2px;
}

h1, h2, h3, h4 { font-family: var(--font); line-height: 1.25; }
h1 { font-size: 20px; margin: 0 0 8px; color: var(--navy); }
h2 { font-size: 16px; }
h3 { font-size: 14px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: #ffff00; color: #000; padding: 4px 8px; z-index: 10; }
.skip-link:focus { left: 8px; }

.small { font-size: 11px; color: #444; }
.center { text-align: center; }
.count { font-size: 11px; color: #555; }

/* ---------- Kerangka halaman ---------- */
.page {
  width: 960px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--silver);
  box-shadow: var(--raised), 0 0 0 1px #000, 6px 6px 0 rgba(0, 0, 0, .55);
  padding: 4px;
}

/* ---------- Banner ---------- */
.banner {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  min-height: 156px;
  padding: 22px 22px 70px;
  /* lapisan: kota (depan) → bintang → langit malam */
  background:
    url("/img/banner-kota.svg") repeat-x left bottom / auto 72px,
    url("/img/banner-stars.svg") repeat 0 0 / 128px 64px,
    linear-gradient(180deg, #05052a 0%, #1b1260 55%, #5a1f6e 100%);
  border: 2px solid;
  border-color: var(--gray) var(--white) var(--white) var(--gray);
  image-rendering: pixelated;
}
.banner-main { position: relative; z-index: 1; min-width: 0; }
.banner-link, .banner-link:visited, .banner-link:hover { text-decoration: none; color: inherit; }

/* Judul bergaya WordArt: gradasi api, garis tepi, efek 3D timbul */
.site-title {
  display: inline-block;
  padding: 0 6px 4px 2px;
  font-family: "Arial Black", "Arial Bold", Gadget, Impact, "DejaVu Sans", Verdana, sans-serif;
  font-size: 46px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 1px;
  color: #ffd800; /* cadangan bila background-clip:text tidak didukung */
  background: linear-gradient(180deg, #fffbe0 0%, #ffe600 30%, #ff9900 62%, #ff3c00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px #2a0000;
  filter: drop-shadow(1px 1px 0 #8a2000) drop-shadow(1px 1px 0 #601400) drop-shadow(1px 1px 0 #3a0800) drop-shadow(3px 3px 0 rgba(0, 0, 0, .55));
  transform: skewX(-8deg);
  transform-origin: left bottom;
}
.banner-link:hover .site-title { filter: drop-shadow(1px 1px 0 #8a2000) drop-shadow(1px 1px 0 #601400) drop-shadow(1px 1px 0 #3a0800) drop-shadow(3px 3px 0 rgba(0, 0, 0, .55)) brightness(1.12); }
.banner-link:focus-visible { outline: 2px dotted #ffff00; }

/* Tagline seperti tooltip kuning Windows */
.tagline {
  display: inline-block;
  max-width: 560px;
  margin: 10px 0 0 6px;
  padding: 2px 7px;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 11px;
  color: #000;
  background: #ffffe1;
  border: 1px solid #000;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .5);
}

/* Panel LCD tanggal */
.banner-lcd {
  position: relative;
  z-index: 1;
  flex: none;
  padding: 5px 10px 6px;
  text-align: center;
  font-family: var(--font-mono);
  color: #46ff74;
  background: #061206;
  border: 2px solid;
  border-color: #404040 #dfdfdf #dfdfdf #404040;
  outline: 2px solid var(--silver);
  text-shadow: 0 0 4px #1fd04a;
}
.lcd-label { display: block; font-size: 9px; letter-spacing: 3px; color: #22a844; text-shadow: none; }
.lcd-date { display: block; font-size: 13px; font-weight: bold; white-space: nowrap; }

.banner-moon { position: absolute; top: 14px; left: 64%; width: 48px; height: 48px; }

/* Kilau bintang berkedip */
.kilau {
  position: absolute;
  width: 18px;
  height: 18px;
  background: url("/img/kilau.svg") no-repeat 0 0 / 100% 100%;
  image-rendering: pixelated;
  animation: kilau 2.4s steps(1, end) infinite;
}
.kilau-1 { top: 10px; left: 34%; }
.kilau-2 { top: 56px; left: 49%; width: 9px; height: 9px; animation-delay: .6s; }
.kilau-3 { top: 26px; left: 78%; animation-delay: 1.2s; }
.kilau-4 { top: 72px; left: 6px; width: 9px; height: 9px; animation-delay: 1.8s; }
@keyframes kilau {
  0% { opacity: 1; transform: scale(1); }
  25% { opacity: .5; transform: scale(.6); }
  50% { opacity: 0; }
  75% { opacity: .6; transform: scale(.8); }
}

/* ---------- Tombol & field ala Win98 ---------- */
.btn98 {
  display: inline-block;
  font: inherit;
  font-size: 12px;
  color: #000;
  background: var(--silver);
  box-shadow: var(--raised);
  border: 0;
  padding: 4px 12px;
  min-height: 24px;
  text-decoration: none;
  cursor: pointer;
  line-height: 16px;
}
a.btn98, a.btn98:visited { color: #000; }
.btn98:hover { color: #000; background: #cacaca; }
.btn98:active, .btn98.is-active {
  box-shadow: var(--sunken);
  padding: 5px 11px 3px 13px;
}
.btn98.is-active { font-weight: bold; background: #d4d4d4; }
.btn98[disabled] { color: var(--gray); text-shadow: 1px 1px 0 var(--white); cursor: inherit; }
.btn-primary { font-weight: bold; outline: 1px solid #000; outline-offset: -1px; }

.field98 {
  font: inherit;
  font-size: 13px;
  background: var(--white);
  color: #000;
  border: 0;
  box-shadow: var(--sunken);
  padding: 4px 6px;
  max-width: 100%;
}
textarea.field98 { width: 100%; resize: vertical; line-height: 1.5; }

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--gray);
  box-shadow: 0 1px 0 var(--white);
}
.navbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.navsearch { display: flex; gap: 4px; }
.navsearch .field98 { width: 150px; }

/* ---------- Marquee pengumuman (CSS, bukan tag <marquee>) ---------- */
.marquee {
  margin: 6px 0 0;
  background: #000;
  color: #00ff00;
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 13px;
  box-shadow: var(--sunken);
  padding: 4px 2px;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track { margin: 0; display: inline-block; padding-left: 100%; animation: marquee 22s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- Layout 3 kolom ---------- */
.layout {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) 196px;
  grid-template-areas: "left main right";
  gap: 8px;
  margin-top: 8px;
}
.content { grid-area: main; }
.sidebar-left { grid-area: left; }
.sidebar-right { grid-area: right; }

.content {
  background: var(--paper);
  box-shadow: var(--sunken);
  padding: 16px 18px 20px;
  min-width: 0;
}
.content:focus { outline: none; }

/* ---------- Jendela (window) Win98 untuk kotak sidebar ---------- */
.window {
  background: var(--silver);
  box-shadow: var(--raised);
  padding: 3px;
  margin: 0 0 8px;
}
.window-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  background: var(--titlebar);
  color: var(--white);
  font-size: 12px;
  font-weight: bold;
  padding: 2px 3px 2px 5px;
  font-family: var(--font);
}
.window-buttons { display: flex; gap: 2px; }
.window-buttons i {
  display: block; width: 14px; height: 12px;
  background: var(--silver); box-shadow: var(--raised);
}
.window-body { padding: 6px 6px 4px; }
.sidebar .window-body { font-size: 12px; }

.menu-list { margin: 0; padding: 0 0 0 4px; list-style: none; }
.menu-list li { padding: 2px 0 2px 14px; background: url("/img/star-on.svg") no-repeat 0 5px / 9px 9px; }
.popular-list { margin: 0; padding-left: 20px; }
.popular-list li { margin-bottom: 4px; }

.tag-cloud { margin: 0; line-height: 1.9; }
.tag-cloud a { margin-right: 6px; white-space: nowrap; }
.tag-size-1 { font-size: 11px; }
.tag-size-2 { font-size: 13px; }
.tag-size-3 { font-size: 15px; font-weight: bold; }

/* ---------- Hit counter LED ---------- */
.hit-counter { text-align: center; }
.counter {
  display: inline-flex;
  gap: 2px;
  margin: 4px 0 2px;
  padding: 4px;
  background: #000;
  box-shadow: var(--sunken);
}
.digit {
  position: relative;
  display: inline-block;
  width: 18px;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: bold;
  line-height: 26px;
  color: #ff2a1a;
  background: #1a0000;
  text-shadow: 0 0 4px #ff3b2b;
}
.counter-caption { margin: 0; font-size: 10px; color: #333; }

/* ---------- Divider bermotif ---------- */
hr.divider {
  border: 0;
  height: 6px;
  margin: 16px 0;
  background: url("/img/divider.svg") repeat-x 0 0 / 12px 6px;
  image-rendering: pixelated;
}
hr.divider-thin {
  height: 2px;
  background: none;
  border-top: 1px dashed var(--gray);
  margin: 14px 0;
}

/* ---------- Badge & label ---------- */
.badge-new {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  padding: 0 4px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: bold;
  font-style: italic;
  color: #ffff00;
  background: #e00000;
  border: 1px solid #000;
  animation: blink 1.2s steps(1, end) infinite;
}
@keyframes blink { 50% { color: #e00000; background: #ffff00; } }

.label-review {
  display: inline-block;
  vertical-align: middle;
  font-size: 10px;
  font-weight: bold;
  color: var(--white);
  background: #008000;
  padding: 0 4px;
  border: 1px solid #004000;
}

/* ---------- Bintang rating ---------- */
.stars { display: inline-flex; gap: 1px; vertical-align: -2px; }
.star { display: inline-block; width: 11px; height: 11px; background: url("/img/star-on.svg") no-repeat 0 0 / 100% 100%; }
.star.off { background-image: url("/img/star-off.svg"); }
.stars-big .star { width: 22px; height: 22px; }
.stars-big { vertical-align: -5px; }

/* ---------- Kartu artikel di daftar ---------- */
.welcome h1 { font-family: var(--font-serif); font-size: 24px; font-style: italic; color: #800000; }
.section-title {
  font-size: 15px;
  color: var(--white);
  background: var(--navy);
  padding: 3px 8px;
  margin: 0 0 12px;
}
.card { display: flex; gap: 12px; align-items: flex-start; }
.card-thumb { flex: none; display: block; border: 2px solid; border-color: var(--gray) var(--white) var(--white) var(--gray); }
.card-thumb img { display: block; width: 160px; height: 80px; object-fit: cover; }
.card-body { min-width: 0; }
.card-title { margin: 0 0 4px; font-size: 16px; }
.card-excerpt { margin: 6px 0; }
.card-rating { margin: 4px 0; font-size: 12px; }
.card-foot { margin: 4px 0 0; }
.meta { margin: 0; font-size: 11px; color: #444; }
.more { font-weight: bold; }

.breadcrumb { font-size: 11px; margin: 0 0 10px; color: #444; }
.intro { font-style: italic; }

/* ---------- Pager ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 20px; }
.pager-info { font-size: 12px; }

/* ---------- Halaman artikel ---------- */
.post-header h1 { font-size: 22px; }
.cover { margin: 12px 0; text-align: center; }
.cover img { border: 2px solid; border-color: var(--gray) var(--white) var(--white) var(--gray); display: inline-block; }

/* Tipografi isi artikel: dibuat nyaman untuk bacaan panjang */
.prose { font-size: 14px; line-height: 1.7; overflow-wrap: break-word; }
.prose h2 { font-size: 17px; color: var(--navy); border-bottom: 1px dotted var(--gray); padding-bottom: 2px; margin: 22px 0 8px; }
.prose h3 { font-size: 15px; color: #800000; margin: 18px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 12px; }
.prose li { margin-bottom: 4px; }
.prose blockquote {
  margin: 14px 0;
  padding: 8px 12px;
  background: #ffffe0;
  border-left: 4px solid #e0c000;
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-family: var(--font-mono); font-size: 13px; background: #f0f0f0; padding: 0 3px; border: 1px solid #ddd; }
.prose pre {
  background: #000;
  color: #c0c0c0;
  padding: 10px 12px;
  overflow-x: auto;
  box-shadow: var(--sunken);
  line-height: 1.4;
}
.prose pre code { background: none; border: 0; color: inherit; padding: 0; }
.prose img { border: 1px solid #000; }
.prose table, .specs { border-collapse: collapse; margin: 0 0 14px; width: 100%; font-size: 13px; }
.prose th, .prose td { border: 1px solid var(--gray); padding: 4px 8px; text-align: left; }
.prose th { background: var(--silver); }
.prose tr:nth-child(even) td { background: #f4f4f4; }
.prose hr { border: 0; border-top: 2px groove var(--silver); margin: 18px 0; }

/* ---------- Kotak review ---------- */
.review-summary { margin: 12px 0 16px; }
.window-specs .window-body { background: var(--white); box-shadow: var(--sunken); margin: 4px; padding: 8px; }
.specs th, .specs td { border: 1px solid #c8c8c8; padding: 4px 8px; text-align: left; vertical-align: top; }
.specs th { width: 38%; background: #eeeeff; color: var(--navy); font-weight: bold; }
.rating-line { margin: 8px 0 0; font-size: 13px; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 10px; }
.box { border: 2px solid; padding: 8px 12px; }
.box h2 { margin: 0 0 6px; font-size: 14px; }
.box ul { margin: 0; padding-left: 18px; }
.box li { margin-bottom: 3px; }
.box-pros { background: #efffef; border-color: #008000; }
.box-pros h2 { color: #006000; }
.box-cons { background: #fff0f0; border-color: #c00000; }
.box-cons h2 { color: #a00000; }
.box-verdict { background: #ffffe8; border-color: #b09000; margin: 10px 0; }
.box-verdict h2 { color: #806000; }
.verdict-rating { margin: 0 0 6px; }
.verdict-text { margin: 0; font-size: 14px; line-height: 1.7; }

.post-tags { margin-top: 16px; }
.tag {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 0 6px;
  font-size: 11px;
  background: #ffffcc;
  border: 1px solid #c0a000;
}

.post-nav { display: flex; justify-content: space-between; gap: 12px; }
.post-nav-prev, .post-nav-next { flex: 1; }
.post-nav-next { text-align: right; }

/* ---------- Komentar & buku tamu ---------- */
.comment {
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #f8f8ff;
  border: 1px solid #b0b0d0;
}
.comment:nth-child(odd) { background: #fffff0; border-color: #d0d0a0; }
.comment-head { margin: 0 0 4px; }
.comment-body { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }

.feedback-form { margin-top: 16px; max-width: 520px; }
.feedback-form .window-body { padding: 8px 10px; }
.form-row { margin: 0 0 10px; }
.form-row label { display: block; font-weight: bold; margin-bottom: 2px; }
.form-row .field98:not(textarea) { width: 100%; max-width: 360px; }
.req { color: #c00000; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 8px 10px; background: #ffffcc; border: 1px solid #c0a000; margin: 10px 0; }
.notice ul { margin: 4px 0 0; padding-left: 20px; }
.notice-ok { background: #e8ffe8; border-color: #008000; }
.notice-error { background: #fff0f0; border-color: #c00000; }

/* ---------- Pencarian ---------- */
.search-big { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.search-big .field98 { width: 260px; }

/* ---------- Halaman error ---------- */
.error-page { text-align: center; padding: 20px 0; }
.error-page h1 { font-family: var(--font-serif); font-size: 24px; color: #800000; }
.construction { width: 240px; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 4px 8px 8px; font-size: 12px; }
.footer .small { color: #333; }
.badges88 { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 10px; }
.badges88 a { line-height: 0; }
.badge88 { width: 88px; height: 31px; display: block; }

/* ==========================================================================
   Responsif: di layar kecil sidebar turun ke bawah konten
   ========================================================================== */
@media (max-width: 800px) {
  body { padding: 0; font-size: 14px; }
  .page { box-shadow: none; padding: 2px; }
  .layout {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "left" "right";
  }
  .content { padding: 12px; }
  .banner { flex-direction: column; gap: 10px; min-height: 0; padding: 14px 12px 64px; }
  .banner-lcd { align-self: flex-start; }
  .banner-moon { left: auto; right: 16px; top: 10px; width: 32px; height: 32px; }
  .site-title { font-size: 32px; }
  .navbar { justify-content: center; }
  .navsearch { width: 100%; }
  .navsearch .field98 { flex: 1; width: auto; }
  .prose { font-size: 15px; }
  .sidebar .window-body { font-size: 14px; }
  .menu-list li { padding-top: 4px; padding-bottom: 4px; }
}
@media (max-width: 520px) {
  .card { flex-direction: column; }
  .card-thumb img { width: 100%; height: auto; aspect-ratio: 2 / 1; }
  .pros-cons { grid-template-columns: 1fr; }
  .post-nav { flex-direction: column; }
  .post-nav-next { text-align: left; }
  .site-title { font-size: 26px; -webkit-text-stroke-width: 1px; }
  .tagline { margin-left: 0; }
}

/* Hormati pengguna yang tidak ingin animasi */
@media (prefers-reduced-motion: reduce) {
  .marquee { white-space: normal; }
  .marquee-track { animation: none; padding-left: 0; }
  .badge-new { animation: none; }
  .kilau { animation: none; }
}

/* ---------- Buku tamu ---------- */
.guestbook-title { font-family: var(--font-serif); font-size: 26px; font-style: italic; color: #800080; text-align: center; }
.gb-entry { margin: 0 0 10px; border: 2px solid; border-color: var(--white) var(--gray) var(--gray) var(--white); background: #f8f8f0; }
.gb-head { margin: 0; padding: 4px 8px; background: #e0e0f8; border-bottom: 1px solid #b0b0d0; }
.gb-num { display: inline-block; min-width: 32px; font-family: var(--font-mono); color: #800000; font-weight: bold; }
.gb-message { margin: 0; padding: 8px 10px; white-space: pre-line; overflow-wrap: anywhere; }

/* ==========================================================================
   Cursor pixel-art ala Windows jadul (gambar buatan sendiri, lihat /img).
   Baris pertama untuk semua browser; baris image-set memberi versi tajam
   untuk layar beresolusi tinggi. Angka setelah url = titik "ujung" cursor.
   Hanya untuk perangkat dengan mouse (layar sentuh tidak terpengaruh).
   ========================================================================== */
@media (pointer: fine) {
  html, body {
    cursor: url("/img/cursor-arrow.png") 0 0, default;
    cursor: -webkit-image-set(url("/img/cursor-arrow.png") 1x, url("/img/cursor-arrow@2x.png") 2x) 0 0, default;
  }
  a[href], button:not([disabled]), .btn98:not([disabled]), summary, select,
  label[for], input[type="checkbox"], input[type="radio"], input[type="file"],
  input[type="submit"], .stat {
    cursor: url("/img/cursor-hand.png") 5 0, pointer;
    cursor: -webkit-image-set(url("/img/cursor-hand.png") 1x, url("/img/cursor-hand@2x.png") 2x) 5 0, pointer;
  }
  input:not([type]), input[type="text"], input[type="search"], input[type="url"],
  input[type="password"], input[type="number"], input[type="email"], textarea {
    cursor: url("/img/cursor-ibeam.png") 3 8, text;
    cursor: -webkit-image-set(url("/img/cursor-ibeam.png") 1x, url("/img/cursor-ibeam@2x.png") 2x) 3 8, text;
  }
  .is-busy, .is-busy * {
    cursor: url("/img/cursor-wait.png") 5 6, wait !important;
    cursor: -webkit-image-set(url("/img/cursor-wait.png") 1x, url("/img/cursor-wait@2x.png") 2x) 5 6, wait !important;
  }
}

/* ---------- Banner GIF "ini bukan iklan" ---------- */
.ad-banner { margin: 0 0 8px; text-align: center; line-height: 0; }
.ad-banner img { width: 176px; max-width: 100%; height: auto; image-rendering: pixelated; }

/* ---------- UFO yang melintas di langit latar ----------
   Lapisan .langit menempel di layar (fixed) di BELAKANG .page, dan
   memotong apa pun yang keluar layar supaya tidak muncul scrollbar. */
.page { position: relative; z-index: 1; }
.langit { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ufo { position: absolute; top: 0; left: 0; animation: ufo-rute 40s linear infinite; will-change: transform; }
.ufo img { display: block; width: 72px; height: 30px; image-rendering: pixelated; animation: ufo-goyang 1.6s ease-in-out infinite; }
/* Kiri→kanan di atas, menghilang, lalu kanan→kiri lebih rendah, lalu jeda di luar layar */
@keyframes ufo-rute {
  0%           { transform: translate(-100px, 8vh); }
  30%          { transform: translate(calc(100vw + 30px), 15vh); }
  30.01%, 48%  { transform: translate(calc(100vw + 30px), 58vh); }
  78%          { transform: translate(-100px, 46vh); }
  78.01%, 100% { transform: translate(-100px, 8vh); }
}
@keyframes ufo-goyang {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
/* Di HP latar tidak terlihat; untuk yang mematikan animasi UFO disembunyikan */
@media (max-width: 800px), (prefers-reduced-motion: reduce) {
  .langit { display: none; }
}

/* ---------- Tombol kontak WhatsApp melayang (jendela mini Win98) ---------- */
.wa-float {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 20;
  display: block;
  width: 172px;
  padding: 3px;
  color: #000;
  text-decoration: none;
  background: var(--silver);
  box-shadow: var(--raised), 3px 3px 0 rgba(0, 0, 0, .5);
}
.wa-float:visited, .wa-float:hover { color: #000; }
.wa-title {
  display: block;
  padding: 2px 5px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #006a1c, #2bc04a);
}
.wa-body { display: flex; align-items: center; gap: 8px; padding: 6px 6px 5px; }
.wa-body img { width: 32px; height: 32px; flex: none; image-rendering: pixelated; }
.wa-text { display: flex; flex-direction: column; font-size: 12px; line-height: 1.3; }
.wa-sub { font-size: 10px; color: #333; }
.wa-float:hover .wa-body { background: #e8ffe8; }
.wa-float:active { box-shadow: var(--sunken); }
.wa-float:focus-visible { outline: 2px dotted #000; outline-offset: 2px; }
@media (max-width: 800px) {
  /* Di HP cukup ikon + tulisan singkat supaya tidak menutupi bacaan */
  .wa-float { width: auto; right: 10px; bottom: 10px; }
  .wa-title, .wa-sub { display: none; }
  .wa-body { padding: 5px 8px; }
  body { padding-bottom: 64px; }
}

.welcome-text p { margin: 0 0 8px; }
.welcome-text p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Easter egg "Serangan UFO!" — UFO bisa diklik, halaman jatuh, langit jadi arena
   ========================================================================== */
button.ufo {
  pointer-events: auto;        /* .langit tidak bisa diklik, tapi UFO-nya bisa */
  padding: 4px;
  margin: -4px;                /* area klik sedikit lebih besar dari gambar */
  border: 0;
  background: none;
}
button.ufo:hover img { filter: drop-shadow(0 0 4px #9fe8ff); }

/* Saat naik kembali: melambat di akhir (kebalikan dari jatuh) */
.page, .wa-float {
  transition: transform .9s cubic-bezier(.1, .55, .4, 1), opacity .5s ease-out;
}
/* Saat jatuh: makin lama makin cepat, sedikit miring */
html.game-mode .page {
  transform: translateY(var(--jatuh, 120vh)) rotate(4deg);
  transition: transform .9s cubic-bezier(.6, 0, .9, .45), opacity .5s ease-in;
}
html.game-mode .wa-float {
  transform: translateY(calc(100vh + 120px));
  pointer-events: none;
  transition: transform .7s cubic-bezier(.6, 0, .9, .45);
}
html.game-mode, html.game-mode body { overflow: hidden; }
html.game-mode .langit { opacity: 0; transition: opacity .3s; }

.ufo-game { position: fixed; inset: 0; z-index: 50; opacity: 0; transition: opacity .35s; pointer-events: none; }
.ufo-game.is-visible { opacity: 1; pointer-events: auto; }
.ufo-game-canvas { display: block; width: 100%; height: 100%; outline: none; image-rendering: pixelated; }
.ufo-game-tutup { position: absolute; top: 12px; right: 12px; }

@media (prefers-reduced-motion: reduce) {
  .page, .wa-float, html.game-mode .page, html.game-mode .wa-float { transition: opacity .2s; }
  html.game-mode .page, html.game-mode .wa-float { transform: none; opacity: 0; }
}
