/* Roundkins — homepage V1 (Figma "Website" › V1 - Home, 38:900). Satu lapisan: tiap selector muncul sekali,
   lalu satu blok per breakpoint (1120 / 800 / 480 px). Ukuran desktop mengikuti frame Figma 1440 px. */

:root {
  /* token warna/sudut/bayangan: public/css/tokens.css */
  /* bingkai layar: tinggi header, rel putih kiri/kanan/bawah, sudut bukaan (dipakai juga intro.js) */
  --frame-top: 80px;
  --frame-gap: 20px;
  --frame-r: 40px;
}

/* ---------- Dasar ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--foreground); background: var(--background); font-family: "Google Sans", system-ui, sans-serif; font-size: var(--text-body-md); line-height: var(--text-body-md--line-height); overflow-x: hidden; }
body:has(dialog[open]) { overflow: hidden; }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: var(--tracking-display); line-height: .97; }
h2 { margin-bottom: var(--spacing-6); font-size: var(--text-display-lg); line-height: var(--text-display-lg--line-height); letter-spacing: var(--text-display-lg--letter-spacing); }
h2 em { color: var(--color-lilac-700); font-style: normal; }
.skip { position: fixed; z-index: 100; left: 16px; top: -60px; padding: var(--spacing-2_5) var(--spacing-4); background: var(--foreground); color: var(--emphasis-foreground); border-radius: var(--radius-full); }
.skip:focus { top: 16px; }

/* Akhir halaman (ajak.js, Figma: CTA + footer tanpa bingkai), dua tahap supaya sudut bingkai tidak hilang terlalu cepat:
   --fe = rel kiri/kanan/bawah + sudut bawah hilang begitu barisan Roundkins masuk layar (tokoh tidak terpotong rel);
   --ft = sudut atas (di bawah header) hilang baru setelah kartu cream di atas CTA lewat di bawah header.
   Didaftarkan supaya bisa ditransisikan. */
@property --fe { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --ft { syntax: '<number>'; inherits: true; initial-value: 1; }
html { transition: --fe .5s cubic-bezier(.3, .7, .4, 1), --ft .3s ease; }
/* header naik bersembunyi saat section CTA menyentuh atas layar (html.header-away, ajak.js); scroll balik = turun lagi. Pakai
   properti translate supaya tidak bentrok dengan animasi transform intro. Fokus keyboard di header memunculkannya lagi. */
.site-header { transition: translate .45s cubic-bezier(.3, .7, .4, 1); }
html.header-away .site-header { translate: 0 calc(-100% - 30px); }
html.header-away .site-header:focus-within { translate: none; }
/* Bingkai layar (Figma 114:5581): header 80 px + rel putih 20 px kiri/kanan/bawah yang diam, isi bergulir di dalamnya
   dengan sudut bukaan 40 px. Rel luarnya tetap persegi. --fo (0–1, diatur kru.js) = seberapa terbuka bingkai: 0 = tertutup
   (rel & sudut hilang, header tanpa latar), 1 = normal. */
body::before { --g: calc(var(--frame-gap) * var(--fo, 1) * var(--fe, 1)); content: ""; position: fixed; z-index: 70; inset: 0; border: solid var(--color-white); border-width: 0 var(--g) var(--g); pointer-events: none; }
body::after {
  /* sudut atas (t) memakai rel 20 px penuh walau rel sudah hilang, supaya tetap pas di tepi kartu; sudut bawah (b) ikut rel */
  --gt: calc(var(--frame-gap) * var(--fo, 1)); --rt: calc(var(--frame-r) * var(--fo, 1) * var(--ft, 1)); --rt-in: max(0px, calc(var(--rt) - 1px));
  --gb: calc(var(--frame-gap) * var(--fo, 1) * var(--fe, 1)); --rb: calc(var(--frame-r) * var(--fo, 1) * var(--fe, 1)); --rb-in: max(0px, calc(var(--rb) - 1px));
  content: ""; position: fixed; z-index: 71; inset: var(--frame-top) 0 0; pointer-events: none;
  background:
    radial-gradient(circle at var(--rt) var(--rt), transparent var(--rt-in), var(--color-white) var(--rt)) var(--gt) 0 / var(--rt) var(--rt) no-repeat,
    radial-gradient(circle at 0 var(--rt), transparent var(--rt-in), var(--color-white) var(--rt)) calc(100% - var(--gt)) 0 / var(--rt) var(--rt) no-repeat,
    radial-gradient(circle at var(--rb) 0, transparent var(--rb-in), var(--color-white) var(--rb)) var(--gb) calc(100% - var(--gb)) / var(--rb) var(--rb) no-repeat,
    radial-gradient(circle at 0 0, transparent var(--rb-in), var(--color-white) var(--rb)) calc(100% - var(--gb)) calc(100% - var(--gb)) / var(--rb) var(--rb) no-repeat;
}
.v1-page-content-frame { padding-inline: var(--spacing-5); background: var(--card); }   /* putih = rel bingkai, terlihat di akhir halaman saat rel dilepas */

/* ---------- Komponen bersama ---------- */
.v1-section-inner { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.v1-text-link { display: inline-flex; align-items: center; gap: var(--spacing-2); color: var(--color-lilac-700); text-decoration: none; font-weight: var(--font-weight-bold); border-bottom: 1px solid currentColor; padding-bottom: var(--spacing-1); }
.v1-text-link:hover, .v1-text-link:focus-visible { color: var(--primary); }
/* Tombol FLAT (pemilik 5 Nov, sama dengan game — app/css/lobby.css "Arah UI baru"; tombol timbul dibatalkan): muka rata tanpa
   bibir, bayangan, atau gradasi. Hover/fokus = warna sedikit lebih gelap; tekan = mengecil sedikit. Tombol lain juga rata. */

/* ---------- Header ---------- */
.site-header { position: fixed; z-index: 80; inset: 0 0 auto; height: var(--frame-top); display: flex; align-items: center; gap: var(--spacing-3); padding: 0 var(--spacing-5); color: var(--foreground); background: rgba(255, 255, 255, var(--fo, 1)); }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; }
.brand-logo { display: block; width: 150px; height: auto; }
.site-header nav { display: flex; align-items: center; justify-content: center; gap: var(--spacing-8); margin-left: auto; margin-right: var(--spacing-1_5); }
.site-header nav a, .mobile-menu a { text-decoration: none; font-weight: var(--font-weight-semibold); font-size: var(--text-body-md); line-height: var(--text-body-md--line-height); }
.site-header nav a { white-space: nowrap; transition: color .2s ease; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--primary); }
/* pemilih bahasa di sebelah logo (pemilik 9 Nov): pil kecil "ID ▾" → menu; EN menyusul */
.header-left { display: flex; align-items: center; gap: var(--spacing-3_5); }
.lang { position: relative; }
.lang-button { display: inline-flex; align-items: center; gap: var(--spacing-2); height: 34px; padding: 0 var(--spacing-3) 0 var(--spacing-2); border: 0; border-radius: var(--radius-md); color: var(--foreground); background: var(--secondary); font-size: var(--text-body-sm); font-weight: var(--font-weight-bold); letter-spacing: var(--tracking-label); transition: background .2s ease; line-height: var(--text-body-sm--line-height); }
.lang-button:hover, .lang-button[aria-expanded="true"] { background: var(--secondary-hover); }
.lang-caret { width: 7px; height: 7px; margin-top: -3px; border: solid currentColor; border-width: 0 2px 2px 0; border-radius: 1px; transform: rotate(45deg); transition: transform .2s ease, margin .2s ease; }
.lang-button[aria-expanded="true"] .lang-caret { margin-top: var(--spacing-1); transform: rotate(-135deg); }
.lang-menu { position: absolute; z-index: 2; top: calc(100% + 8px); left: 0; min-width: 220px; }
.lang-flag { flex: 0 0 auto; width: 20px; height: 20px; border-radius: var(--radius-circle); }
.lang-menu .lang-flag { width: 22px; height: 22px; }
.lang-menu button:disabled .lang-flag { opacity: .55; }
.lang-menu [data-i] { display: grid; margin-left: auto; color: var(--color-green-500); }
.lang-menu svg { width: var(--icon-md); height: var(--icon-md); }
.lang-menu small { margin-left: auto; padding: var(--spacing-1) var(--spacing-2); border-radius: var(--radius-full); color: var(--muted-foreground); background: var(--muted); font-size: var(--text-caption); font-weight: var(--font-weight-bold); line-height: var(--text-caption--line-height); }
.menu-toggle, .mobile-menu { display: none; }
/* akun orang tua (sudah masuk di situs, src/scripts/akun.ts): bulatan inisial + menu Dasbor/Keluar */
[data-when][hidden] { display: none !important; }
.acct { position: relative; }
[data-when][hidden] { display: none !important; }   /* status login (src/scripts/akun.ts) menang atas display komponen */
.acct-menu { position: absolute; z-index: 2; top: calc(100% + 10px); right: 0; display: flex; flex-direction: column; min-width: 248px; }
.acct-who { margin: 0; padding: var(--spacing-2_5) var(--spacing-3) var(--spacing-3); border-bottom: 1px solid var(--border); }
.acct-who b { display: block; font-size: var(--text-body-md); line-height: var(--text-body-md--line-height); }
.acct-who span { color: var(--muted-foreground); font-size: var(--text-body-sm); line-height: var(--text-body-sm--line-height); }

/* ---------- Hero ---------- */
.v1-hero { position: relative; isolation: isolate; overflow: hidden; height: 900px; min-height: 900px; padding: var(--spacing-20) 0 var(--spacing-5); background: var(--card); color: var(--emphasis-foreground); }
.v1-hero-wallpaper { position: absolute; z-index: -1; top: 80px; left: 0; width: 100%; height: 800px; border-radius: var(--radius-xl); object-fit: cover; }
.v1-hero-copy { position: absolute; z-index: 2; top: 194px; left: 50%; width: min(698px, calc(100% - 48px)); transform: translateX(-50%); text-align: center; }
.v1-hero-copy h1 { margin-bottom: var(--spacing-5); font-size: var(--text-display-lg); line-height: var(--text-display-lg--line-height); letter-spacing: var(--text-display-lg--letter-spacing); }
.v1-hero-copy h1 span { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 7px; }
.v1-hero-lede { margin-bottom: var(--spacing-7); font-size: var(--text-body-md); line-height: var(--text-body-md--line-height); color: var(--emphasis-foreground); }

/* ---------- Pulau (#pulau) — Figma V1 148:4557 → 148:4566 → 149:5846 ----------
   Satu lukisan (splash.jpg), "kamera" digerakkan public/js/pulau.js sambil panggung ditahan: judul → paragraf → pulau utuh,
   lalu gradasi var(--foreground) menyambung ke section berikutnya. Tanpa .is-live (tanpa JS / reduced motion) = tampilan diam. */
.v1-world { position: relative; background: var(--color-teal-200); }
.v1-world-stage { position: relative; height: 100vh; min-height: 480px; overflow: hidden; }
.v1-world-map { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 62%; }
.v1-world-shade { position: absolute; z-index: 1; inset: var(--frame-top) 0 0; background: linear-gradient(180deg, rgba(37, 35, 51, 0), var(--foreground) 64.4%); opacity: 0; pointer-events: none; }
.v1-world-title, .v1-world-copy { position: relative; z-index: 2; margin: 0 auto; padding-inline: var(--spacing-6); text-align: center; color: var(--foreground); }
.v1-world-title { padding-top: calc(var(--frame-top) + var(--spacing-14)); }
.v1-world-eyebrow { margin: 0 0 var(--spacing-3); color: var(--color-blue-800); font-size: var(--text-caption); font-weight: var(--font-weight-bold); line-height: var(--text-caption--line-height); }
.v1-world-title h2 { margin: 0; font-size: var(--text-display-lg); line-height: var(--text-display-lg--line-height); letter-spacing: var(--text-display-lg--letter-spacing); }
.v1-world-copy { max-width: 491px; margin-top: var(--spacing-7); }
.v1-world-copy p { margin: 0; font-size: var(--text-body-lg); line-height: var(--text-body-lg--line-height); }
.v1-world-copy p + p { margin-top: 26.4px; }
.v1-world:not(.is-live) .v1-world-stage::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, var(--color-blue-100) 0, rgba(226, 244, 241, .94) 46%, rgba(226, 244, 241, 0) 78%); }
.v1-world.is-live { height: 340vh; }
.v1-world.is-live .v1-world-stage { position: sticky; top: 0; }
.v1-world.is-live .v1-world-map { inset: 0 auto auto 0; height: auto; transform-origin: 0 0; }
.v1-world.is-live .v1-world-title { position: absolute; inset: 0 0 auto; }
.v1-world.is-live .v1-world-copy { position: absolute; top: 181px; left: 0; right: 0; margin: 0 auto; }

/* ---------- Permainan (#permainan) — Figma V1 "03 Permainan" 38:989 → 149:6997 → 149:6209 ----------
   permainan.js: .is-live = arena satu per satu (tab 5 tempat + panel daftar game); .is-scroll = panggung ditahan, judul gelap
   muncul lalu tampilan arena memudar masuk. Tanpa .is-live (tanpa JS / layar ≤800) = judul lalu kelima arena berurutan. */
.v1-play { position: relative; background: var(--foreground); }
.v1-play-intro { display: grid; place-items: center; min-height: 100vh; padding: var(--frame-top) var(--spacing-6) var(--frame-gap); text-align: center; }
.v1-play-intro h2 { margin: 0; color: var(--emphasis-foreground); font-size: var(--text-display-lg); line-height: var(--text-display-lg--line-height); letter-spacing: var(--text-display-lg--letter-spacing); }
.v1-venues { display: grid; gap: var(--spacing-5); padding-bottom: var(--spacing-5); }
.v1-venue { position: relative; overflow: hidden; border-radius: var(--frame-r); background: var(--background); }
.v1-venue-art { position: relative; height: 620px; overflow: hidden; }
.v1-venue-art img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.v1-venue-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 52% 48% at 0 0, rgba(40, 25, 10, .34), rgba(40, 25, 10, 0) 72%), linear-gradient(180deg, rgba(0, 0, 0, 0) 44%, rgba(0, 0, 0, .42)); pointer-events: none; }
.v1-venue-head { position: absolute; z-index: 2; top: 55px; left: 60px; max-width: min(620px, calc(100% - 120px)); color: var(--emphasis-foreground); }
.v1-venue-head h3 { margin: 0 0 var(--spacing-5); font-size: var(--text-display-lg); line-height: var(--text-display-lg--line-height); text-shadow: 0 2px 28px rgba(40, 25, 10, .28); letter-spacing: var(--text-display-lg--letter-spacing); }
.v1-venue-head p { margin: 0 0 var(--spacing-2_5); font-size: var(--text-body-md); font-weight: var(--font-weight-semibold); line-height: var(--text-body-md--line-height); text-shadow: 0 1px 12px rgba(40, 25, 10, .35); }
.v1-venue-games { display: flex; flex-direction: column; padding: var(--spacing-9) var(--spacing-10) var(--spacing-9) var(--spacing-16); color: var(--foreground); }
.v1-venue-games-head { padding-right: var(--spacing-20); }
.v1-venue-games-head b { display: block; font-size: var(--text-display-lg); line-height: var(--text-display-lg--line-height); letter-spacing: var(--text-display-lg--letter-spacing); }
.v1-venue-games-head span { display: block; margin-top: var(--spacing-5); font-size: var(--text-body-md); font-weight: var(--font-weight-semibold); line-height: var(--text-body-md--line-height); }
.v1-venue-close { position: absolute; top: 25px; right: 38px; display: grid; place-items: center; width: 70px; height: 70px; padding: 0; border: 0; border-radius: var(--radius-circle); color: var(--foreground); background: var(--muted); font-size: var(--text-title-sm); line-height: var(--text-title-sm--line-height); transition: background .2s ease, color .2s ease, transform .2s ease; letter-spacing: var(--text-title-sm--letter-spacing); }
.v1-venue-close:hover, .v1-venue-close:focus-visible { color: var(--primary-foreground); background: var(--primary); }
.v1-venue-list { display: grid; gap: var(--spacing-6); margin: var(--spacing-11) 0 0; padding: 0; list-style: none; }
.v1-venue-game { display: flex; align-items: center; gap: var(--spacing-4); min-height: 106px; padding: var(--spacing-5) var(--spacing-5) var(--spacing-5) var(--spacing-6); border-radius: var(--radius-md); background: var(--muted); transition: background .2s ease; }
.v1-venue-game:hover { background: var(--secondary-hover); }
.v1-venue-game-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--spacing-5); padding: 0; border: 0; color: inherit; background: none; text-align: left; }
.v1-venue-game-info img { flex: 0 0 auto; width: 70px; height: 70px; border-radius: var(--radius-circle); object-fit: cover; transition: transform .25s ease; }
.v1-venue-game-info:hover img, .v1-venue-game-info:focus-visible img { transform: scale(1.06); }
.v1-venue-game b { display: block; font-size: var(--text-title-sm); line-height: var(--text-title-sm--line-height); letter-spacing: var(--text-title-sm--letter-spacing); }
.v1-venue-game small { display: block; margin-top: var(--spacing-1_5); color: var(--muted-foreground); font-size: var(--text-body-sm); line-height: var(--text-body-sm--line-height); }
.v1-venue-play { flex: 0 0 auto; }
/* game yang sudah dibuat tapi ditahan ke rilis berikutnya (home.ts `locked`) */
.v1-venue-game--locked .v1-venue-game-info img { filter: grayscale(.85); opacity: .55; }
.v1-venue-game--locked b { color: var(--muted-foreground); }
.v1-venue-locked { display: inline-flex; flex: 0 0 auto; align-items: center; gap: var(--spacing-2); padding: var(--spacing-3) var(--spacing-5); border-radius: var(--radius-full); color: var(--muted-foreground); background: var(--card); font-size: var(--text-body-md); font-weight: var(--font-weight-bold); line-height: var(--text-body-md--line-height); }
.v1-venue-locked [data-i], .v1-venue-locked svg { width: var(--icon-md); height: var(--icon-md); }
.v1-venue-game--soon { background: transparent; border: 2px dashed var(--border-translucent); }
.v1-venue-game--soon:hover { background: transparent; }
.v1-venue-soon-mark { display: grid; flex: 0 0 auto; place-items: center; width: 70px; height: 70px; border-radius: var(--radius-circle); color: var(--color-lilac-700); background: var(--card); font-size: var(--text-title-sm); font-weight: var(--font-weight-bold); line-height: var(--text-title-sm--line-height); letter-spacing: var(--text-title-sm--letter-spacing); }
.v1-venue-game--soon b { font-size: var(--text-title-sm); line-height: var(--text-title-sm--line-height); letter-spacing: var(--text-title-sm--letter-spacing); }
.v1-venue-hosts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-2_5) var(--spacing-3); margin-top: var(--spacing-10); font-size: var(--text-body-md); font-weight: var(--font-weight-semibold); line-height: var(--text-body-md--line-height); }
.v1-venue-host { display: inline-flex; align-items: center; gap: var(--spacing-2); padding: var(--spacing-1) var(--spacing-4) var(--spacing-1) var(--spacing-1); border-radius: var(--radius-full); background: var(--muted); }
.v1-venue-host img { width: 40px; height: 44px; object-fit: contain; }
.v1-venue-open, .v1-venue-close, .v1-venue-tabs { display: none; }
.v1-venue-games-head { display: none; }

/* arena satu per satu */
.v1-play.is-live .v1-play-stage { position: relative; height: 100vh; min-height: 480px; overflow: hidden; }
.v1-play.is-live .v1-play-intro { position: absolute; z-index: 1; inset: 0; }
.v1-play.is-live .v1-play-show { position: absolute; z-index: 2; inset: 0; }
.v1-play.is-live .v1-venues { display: block; height: 100%; padding: 0; }
.v1-play.is-live .v1-venue { position: absolute; inset: 0; border-radius: 0; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s .55s; }
.v1-play.is-live .v1-venue.is-current { opacity: 1; visibility: visible; transition-delay: 0s; }
.v1-play.is-live .v1-venue-art { position: absolute; inset: 0; height: auto; clip-path: inset(0 0 0 0 round 0); transition: clip-path .75s cubic-bezier(.65, 0, .35, 1); }
.v1-play.is-live .v1-venue-art img { transition: transform .75s cubic-bezier(.65, 0, .35, 1); }
.v1-play.is-live .v1-venue-art::after { transition: opacity .4s ease; }
.v1-play.is-live .v1-venue-head { top: calc(var(--frame-top) + 55px); transition: opacity .35s ease, transform .45s ease; }
.v1-play.is-live .v1-venue-open { display: inline-flex; }
.v1-play.is-live .v1-venue-games { position: absolute; top: var(--frame-top); right: 0; bottom: var(--frame-gap); width: 50%; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateX(28px); transition: opacity .4s ease, transform .55s ease, visibility 0s .55s; }
.v1-play.is-live .v1-venue-games-head, .v1-play.is-live .v1-venue-close { display: block; }
.v1-play.is-live .v1-venue-close { display: grid; }
.v1-play.is-live .v1-venue-tabs { position: absolute; z-index: 3; right: 24px; bottom: calc(var(--frame-gap) + 19px); left: 24px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--spacing-6); transition: opacity .35s ease, transform .45s ease; }
.v1-venue-tab { position: relative; height: 120px; overflow: hidden; padding: 0; border: 0; border-radius: var(--radius-md); color: var(--emphasis-foreground); background: var(--color-ink-900); transition: transform .12s ease-out; }
.v1-venue-tab img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.62); transition: filter .25s ease, transform .4s ease; }
.v1-venue-tab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(20, 15, 35, 0) 35%, rgba(20, 15, 35, .62)); }
.v1-venue-tab span { position: absolute; z-index: 1; left: 16px; bottom: 13px; font-size: var(--text-body-md); font-weight: var(--font-weight-bold); letter-spacing: var(--tracking-heading); line-height: var(--text-body-md--line-height); }
.v1-venue-tab:active { transform: scale(.96); transition-duration: 60ms; }
.v1-venue-tab:hover img, .v1-venue-tab:focus-visible img { filter: saturate(.9) brightness(.85); }
.v1-venue-tab[aria-selected="true"] img { filter: none; transform: scale(1.05); }
.v1-venue-tab:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
/* panel daftar game terbuka (Figma 149:6209): gambar menyempit ke kiri, daftar masuk dari kanan */
.v1-play.is-open .v1-venue.is-current .v1-venue-art { clip-path: inset(var(--frame-top) 50% var(--frame-gap) 0 round var(--frame-r)); }
.v1-play.is-open .v1-venue.is-current .v1-venue-art img { transform: translateX(-26%); }
.v1-play.is-open .v1-venue.is-current .v1-venue-art::after { opacity: 0; }
.v1-play.is-open .v1-venue.is-current .v1-venue-head { opacity: 0; transform: translateX(-24px); pointer-events: none; }
.v1-play.is-open .v1-venue.is-current .v1-venue-games { opacity: 1; visibility: visible; transform: none; transition-delay: .15s, .15s, 0s; }
.v1-play.is-open .v1-venue-tabs { opacity: 0; transform: translateY(24px); pointer-events: none; }
/* panggung ditahan selama scroll: judul → arena */
.v1-play.is-live:not(.is-scroll) .v1-play-stage { height: auto; min-height: 0; }
.v1-play.is-live:not(.is-scroll) .v1-play-intro { position: relative; }
.v1-play.is-live:not(.is-scroll) .v1-play-show { position: relative; height: 100vh; min-height: 480px; }
.v1-play.is-scroll { height: 280vh; }
.v1-play.is-scroll .v1-play-stage { position: sticky; top: 0; }

/* ---------- Kru Bintang + Tingkat (#tingkat) — Figma V1 46:2150 → "Tingkat - Mudah" 46:2265 ----------
   kru.js .is-live = panggung ditahan: kru muncul satu per satu (pantul Boing, lalu bernapas) → satu gelombang pastel kru
   menjadi topeng yang membuka panel tingkat dari bawah → di akhir seluruh panggung mengecil sambil menggelap ke navy (bingkai &
   header putih kembali, --fo 0 → 1) lalu memudar ke section Kartu yang sudah ada di belakangnya (margin bawah negatif). Selama section ini bingkai tertutup
   & header tanpa latar. Ganti tingkat = isi panel baru dibuka gelombang di atas salinan panel lama (.v1-levels-ghost).
   Tanpa .is-live = "Yuk kenalan" lalu panel berurutan; latar pastel lewat :has(). */
.v1-kru { --tone: var(--color-blue-500); --pastel: var(--color-blue-100); position: relative; margin-inline: -20px; background: var(--card); }
.v1-kru:has(.v1-levels:not(.v1-levels-ghost) [data-tone="steady"][aria-selected="true"]) { --tone: var(--color-green-500); --pastel: var(--color-green-100); }
.v1-kru:has(.v1-levels:not(.v1-levels-ghost) [data-tone="brave"][aria-selected="true"]) { --tone: var(--color-yellow-500); --pastel: var(--color-yellow-100); }
.v1-kru:has(.v1-levels:not(.v1-levels-ghost) [data-tone="bold"][aria-selected="true"]) { --tone: var(--color-orange-400); --pastel: var(--color-clay-100); }
.v1-kru-anchor { position: absolute; top: 100vh; }
.v1-kru-stage { position: relative; }
.v1-kru-intro { position: relative; display: grid; place-items: center; height: 100vh; min-height: 560px; overflow: hidden; padding: 0 var(--spacing-6); background: var(--card); text-align: center; }
.v1-kru-intro h2 { position: relative; z-index: 1; margin: 0; color: var(--foreground); font-size: var(--text-display-lg); line-height: var(--text-display-lg--line-height); letter-spacing: var(--text-display-lg--letter-spacing); }
/* sprite 636 × 771 setinggi 341/900 layar; bagian yang terlihat = Figma (atas 234, bawah 235, kiri 229, kanan 228); semua menempel tepi */
.v1-kru-peek { position: absolute; height: 37.9vh; aspect-ratio: 636 / 771; pointer-events: none; }
.v1-kru-peek img { display: block; width: 100%; height: 100%; max-width: none; transform-origin: 50% 100%; filter: drop-shadow(0 10px 14px rgba(37, 35, 51, .12)); animation: v1-kru-breathe 3.4s ease-in-out infinite; }
.v1-kru-peek--right img { animation-delay: -.8s; }
.v1-kru-peek--top img { animation-delay: -1.7s; }
.v1-kru-peek--bottom img { animation-delay: -2.5s; }
@keyframes v1-kru-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.025, .965); } }
.v1-kru-peek--top { top: 0; left: calc(50% + 1.91vw); transform: translate(-50%, -31.4%) rotate(180deg); }
.v1-kru-peek--bottom { bottom: 0; left: calc(50% + 1.91vw); transform: translate(-50%, 31.1%); }
.v1-kru-peek--left { top: 50%; left: 0; transform: translate(-29.2%, -50%) rotate(90deg); }
.v1-kru-peek--right { top: 50%; right: 0; transform: translate(29.2%, -50%) rotate(-90deg); }
.v1-kru:not(.is-live) .v1-levels-ghost { display: none; }
.v1-levels { position: relative; display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 560px); justify-content: center; align-items: center; min-height: 100vh; padding: var(--frame-top) var(--spacing-6) var(--spacing-10); background: var(--pastel); transition: background .5s ease; }
.v1-levels-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--spacing-10); }
.v1-levels-copy h2 { margin: 0; color: var(--foreground); font-size: var(--text-display-lg); line-height: var(--text-display-lg--line-height); letter-spacing: var(--text-display-lg--letter-spacing); }
.v1-levels-copy > p { margin: 0; color: var(--muted-foreground); font-size: var(--text-body-lg); line-height: var(--text-body-lg--line-height); }
.v1-level-tabs { display: inline-flex; gap: var(--spacing-0_5); padding: var(--spacing-1); border-radius: var(--radius-lg); background: var(--card); }
.v1-level-tab { height: 44px; padding: 0 var(--spacing-6); border: 0; border-radius: var(--radius-md); color: var(--foreground); background: transparent; font-size: var(--text-body-sm); font-weight: var(--font-weight-bold); transition: background .3s ease, color .3s ease, box-shadow .3s ease; line-height: var(--text-body-sm--line-height); }
.v1-level-tab:hover { background: color-mix(in srgb, var(--pastel) 70%, var(--color-white)); }
.v1-level-tab[aria-selected="true"] { color: var(--emphasis-foreground); background: var(--tone); }
.v1-level-tab--brave[aria-selected="true"] { color: var(--foreground); }
.v1-level-tab:focus-visible { outline: 3px solid var(--foreground); outline-offset: 2px; }
.v1-level-visual { display: flex; flex-direction: column; align-items: center; }
.v1-level-sapa { display: inline-flex; align-items: center; gap: var(--spacing-2); height: 40px; margin-top: var(--spacing-5); padding: var(--spacing-1_5) var(--spacing-4) var(--spacing-1_5) var(--spacing-1_5); border: 0; border-radius: var(--radius-md); color: var(--muted-foreground); background: var(--card); font-size: var(--text-body-lg); transition: background .12s ease-out, transform .12s ease-out; line-height: var(--text-body-lg--line-height); }
.v1-level-sapa:hover, .v1-level-sapa:focus-visible { background: var(--muted); }
.v1-level-sapa:active { transform: scale(.96); transition-duration: 60ms; }
.v1-level-sapa [data-i] { display: grid; place-items: center; width: var(--icon-xl); height: var(--icon-xl); border-radius: var(--radius-circle); color: var(--emphasis-foreground); background: var(--foreground); }
.v1-level-sapa svg { width: var(--icon-sm); height: var(--icon-sm); }
.v1-level-name { margin-top: var(--spacing-4); color: var(--color-black); font-size: var(--text-title-sm); line-height: var(--text-title-sm--line-height); letter-spacing: var(--text-title-sm--letter-spacing); }
.v1-level-meta { margin: var(--spacing-4) 0 0; color: var(--muted-foreground); font-size: var(--text-body-lg); line-height: var(--text-body-lg--line-height); }
/* panggung ditahan */
/* di atas bingkai (z 70–71), di bawah header (80); transparan & tembus klik supaya section berikutnya (yang sudah ada di
   belakang panggung) terlihat dan bisa diklik saat panggung mengecil — panel sendiri diberi pointer-events oleh kru.js */
.v1-kru.is-live { z-index: 75; height: 470vh; margin-bottom: -180vh; background: transparent; pointer-events: none; }
.v1-kru.is-live .v1-kru-anchor { top: 186vh; }
.v1-kru.is-live .v1-kru-stage { position: sticky; top: 0; height: 100vh; min-height: 480px; overflow: hidden; will-change: transform, opacity; }
.v1-kru-dark { position: absolute; z-index: 5; inset: 0; opacity: 0; pointer-events: none; }   /* tirai navy saat keluar menuju Kartu */
.v1-kru.is-live .v1-kru-intro { position: absolute; inset: 0; height: auto; min-height: 0; }
.v1-kru.is-live .v1-levels, .v1-kru.is-live .v1-levels-ghost { position: absolute; inset: 0; min-height: 0; transition: none; }
.v1-kru.is-live .v1-levels { z-index: 2; clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); }
.v1-kru.is-live .v1-levels-ghost { z-index: 1; clip-path: none; visibility: hidden; pointer-events: none; }
html.frame-off body::before, html.frame-off body::after { visibility: hidden; }
/* Permainan menutup bingkai (sudut bawah); tanpa panggung, Kartu membukanya lagi dengan sudut atas */
.v1-play { clip-path: inset(0 round 0 0 var(--frame-r) var(--frame-r)); }
.v1-kru:not(.is-live) + .v1-cards { border-radius: var(--frame-r) var(--frame-r) 0 0; }

/* Sprite Kru: sapaan 9 frame + lompatan boing dari pratinjau lab yang disetujui (JS: public/js/starspring.js). */
.v1-level-sprite { --crew-accent: var(--crew-airu); position: relative; z-index: 1; width: min(422px, 46vh); aspect-ratio: 636 / 771; height: auto; display: grid; place-items: end center; isolation: isolate; }
.v1-level-sprite::before { content: ""; position: absolute; z-index: -1; bottom: 24px; left: 50%; width: 76%; height: 72px; border-radius: var(--radius-circle); background: color-mix(in srgb, var(--crew-accent) 32%, transparent); filter: blur(20px); transform: translateX(-50%) scaleY(.52); opacity: .65; }
.v1-level-sprite[data-sprite="daunu"] { --crew-accent: var(--crew-daunu); }
.v1-level-sprite[data-sprite="setrum"] { --crew-accent: var(--crew-bizi); }
.v1-level-sprite[data-sprite="apiyo"] { --crew-accent: var(--crew-apiyo); }
.v1-level-sprite[data-sprite="airu"] .v1-level-sprite-sheet { background-image: url('/assets/crew-sapa/airu-sheet.png'); }
.v1-level-sprite[data-sprite="daunu"] .v1-level-sprite-sheet { background-image: url('/assets/crew-sapa/daunu-sheet.png'); }
.v1-level-sprite[data-sprite="setrum"] .v1-level-sprite-sheet { background-image: url('/assets/crew-sapa/setrum-sheet.png'); }
.v1-level-sprite[data-sprite="apiyo"] .v1-level-sprite-sheet { background-image: url('/assets/crew-sapa/apiyo-sheet.png'); }
.v1-level-sprite-sheet { position: relative; z-index: 1; display: block; width: 100%; height: 100%; background-position: 0 0; background-repeat: no-repeat; background-size: 900% 100%; transform-origin: 50% 97.4%; filter: drop-shadow(0 24px 18px rgba(32, 71, 110, .19)); will-change: background-position, transform; }
.v1-level-sprite-sheet.is-frame-0 { background-position-x: 0%; }
.v1-level-sprite-sheet.is-frame-1 { background-position-x: 12.5%; }
.v1-level-sprite-sheet.is-frame-2 { background-position-x: 25%; }
.v1-level-sprite-sheet.is-frame-3 { background-position-x: 37.5%; }
.v1-level-sprite-sheet.is-frame-4 { background-position-x: 50%; }
.v1-level-sprite-sheet.is-frame-5 { background-position-x: 62.5%; }
.v1-level-sprite-sheet.is-frame-6 { background-position-x: 75%; }
.v1-level-sprite-sheet.is-frame-7 { background-position-x: 87.5%; }
.v1-level-sprite-sheet.is-frame-8 { background-position-x: 100%; }
.v1-level-sprite-sheet.is-breathing { animation: v1-crew-breathe 3.2s ease-in-out infinite; }
@keyframes v1-crew-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(.988, 1.018); } }
.v1-level-sprite-shadow { position: absolute; z-index: 0; bottom: 13px; left: 50%; width: 62%; height: 58px; border-radius: var(--radius-circle); background: radial-gradient(closest-side, rgba(25,55,40,.36), rgba(25,55,40,0)); transform: translateX(-50%); transform-origin: center; pointer-events: none; will-change: transform, opacity; }

/* ---------- Kartu (#kartu) — Figma V1 "05 Kartu" 156:11587 → 149:6838 → 149:6964 ----------
   kartu.js .is-live = panggung ditahan: kartu game (dua gelombang × 6) melayang miring di kiri-kanan judul lalu menjauh ke
   kedalaman (perspektif); di akhir "dunia" naik sampai lukisan W1 terlihat penuh. Selebar layar (di bawah bingkai 20 px).
   Tanpa .is-live (tanpa JS / layar ≤800 / reduced motion) = judul lalu lukisan, tanpa kartu terbang. */
.v1-cards { position: relative; margin-inline: -20px; background: var(--color-navy-800); color: var(--emphasis-foreground); text-align: center; }
.v1-cards-stage { position: relative; overflow: hidden; }
.v1-cards-world { position: relative; }
.v1-cards-copy { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; padding: calc(var(--frame-top) + var(--spacing-20)) var(--spacing-6) var(--spacing-18); }
.v1-cards-copy h2 { margin: 0; color: var(--emphasis-foreground); font-size: var(--text-display-lg); line-height: var(--text-display-lg--line-height); letter-spacing: var(--text-display-lg--letter-spacing); }
.v1-cards-copy h2 em { color: var(--color-blue-500); }
.v1-cards-copy p { margin: var(--spacing-6) 0 0; font-size: var(--text-body-lg); line-height: var(--text-body-lg--line-height); }
.v1-card-rules { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--spacing-2) var(--spacing-9); margin-top: var(--spacing-6); font-size: var(--text-body-sm); line-height: var(--text-body-sm--line-height); }
.v1-card-rules span { display: inline-flex; align-items: center; gap: var(--spacing-2); }
.v1-card-rules i { display: inline-grid; place-items: center; color: var(--color-green-500); }
.v1-card-rules svg { width: var(--icon-sm); height: var(--icon-sm); }
/* lukisan W1 menyatu ke navy di sepertiga atasnya (Figma Rectangle 16) */
.v1-cards-art { position: relative; z-index: 0; display: block; }
.v1-cards-art img { display: block; width: 100%; height: auto; max-width: none; -webkit-mask-image: linear-gradient(180deg, transparent, var(--color-black) 27.4%); mask-image: linear-gradient(180deg, transparent, var(--color-black) 27.4%); }
.v1-cards-fly { display: none; }
.v1-fly-card { position: absolute; top: 50%; left: 50%; width: 275px; height: 368px; margin: -184px 0 0 -137.5px; overflow: hidden; border-radius: var(--radius-sm); background: var(--color-navy-700); box-shadow: 0 0 0 5px var(--color-white), 0 26px 50px rgba(6, 16, 44, .38); backface-visibility: hidden; will-change: transform, opacity; }
.v1-fly-card img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* panggung ditahan */
.v1-cards.is-live { height: 420vh; }   /* 80vh pertama = jeda selama panggung Kru mengecil di depannya */
.v1-cards.is-live .v1-cards-stage { position: sticky; top: 0; height: 100vh; min-height: 480px; }   /* kartu.js memanjangkannya setinggi sisa lukisan */
.v1-cards.is-live .v1-cards-world { position: absolute; top: 0; left: 0; right: 0; height: 100vh; min-height: 480px; will-change: transform; }
.v1-cards.is-live .v1-cards-copy { position: absolute; top: 50%; left: 0; right: 0; padding: 0 var(--spacing-6); transform: translateY(-50%); }
.v1-cards.is-live .v1-cards-art { position: absolute; top: 80.8%; left: 0; width: 100%; }
.v1-cards.is-live .v1-cards-fly { position: absolute; z-index: 1; inset: 0; display: block; perspective: 1000px; perspective-origin: 50% 50%; pointer-events: none; transition: perspective-origin .9s cubic-bezier(.2, .7, .3, 1); }

/* ---------- Orang tua (#orang-tua) — tab Suara / Kontrol / Pantau (Parent+), redesign 4 Nov (tanpa Figma; ikut bahasa visual
   beranda: judul 88 px, pil tab seperti Tingkat dengan warna logo, kartu pastel per tab dengan lukisan splash W2/W5/W3 + satu
   elemen UI hidup di atasnya). Tab & demo umur: public/js/starspring.js ([data-feature-tab], [data-age]). Kartu ini menutup bingkai
   dengan sudut bawah sebelum CTA. */
.v1-parent { --tone: var(--color-blue-500); --pastel: var(--color-blue-100); padding: var(--spacing-30) var(--spacing-10) var(--spacing-10); border-radius: 0 0 var(--frame-r) var(--frame-r); background: var(--muted); }
.v1-parent:has([data-feature-tab="control"][aria-selected="true"]) { --tone: var(--color-green-500); --pastel: var(--color-green-100); }
.v1-parent:has([data-feature-tab="watch"][aria-selected="true"]) { --tone: var(--color-orange-400); --pastel: var(--color-clay-100); }
.v1-parent-head { display: flex; flex-direction: column; align-items: center; gap: var(--spacing-10); margin-bottom: var(--spacing-12); text-align: center; }
.v1-parent-head h2 { margin: 0; color: var(--foreground); font-size: var(--text-display-lg); line-height: var(--text-display-lg--line-height); letter-spacing: var(--text-display-lg--letter-spacing); }
.v1-feature-tabs { display: flex; gap: var(--spacing-1); height: 52px; padding: var(--spacing-1); border-radius: var(--radius-lg); background: var(--card); }
.v1-feature-tab { display: inline-flex; align-items: center; gap: var(--spacing-2); height: 44px; padding: 0 var(--spacing-7); border: 0; border-radius: var(--radius-md); color: var(--foreground); background: transparent; font-size: var(--text-body-lg); font-weight: var(--font-weight-bold); transition: background .25s ease, color .25s ease; line-height: var(--text-body-lg--line-height); }
.v1-feature-tab:hover { background: var(--muted); }
.v1-feature-tab[aria-selected="true"] { color: var(--emphasis-foreground); background: var(--tone); }
.v1-feature-tab small { padding: var(--spacing-1) var(--spacing-2); border-radius: var(--radius-full); color: var(--emphasis-foreground); background: var(--color-orange-400); font-size: var(--text-caption); letter-spacing: var(--tracking-label); line-height: var(--text-caption--line-height); }
.v1-feature-tab[aria-selected="true"] small { color: var(--color-orange-400); background: var(--card); }
/* kartu tab: lukisan kiri, teks kanan */
.v1-fp { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--spacing-4); max-width: 1360px; min-height: 620px; margin: 0 auto; padding: var(--spacing-4); border-radius: var(--radius-xl); background: var(--pastel); transition: background .3s ease; }
.v1-fp[hidden] { display: none; }
.v1-fp-art { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-slate-200); }
.v1-fp-art > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.v1-fp--voice .v1-fp-art > img { object-position: 62% 50%; }
.v1-fp--control .v1-fp-art > img { object-position: 30% 50%; }
.v1-fp--watch .v1-fp-art > img { object-position: 25% 50%; }
.v1-fp--watch .v1-fp-card { top: 24px; bottom: auto; }
.v1-fp-copy { display: flex; flex-direction: column; justify-content: center; padding: var(--spacing-10) var(--spacing-11) var(--spacing-10) var(--spacing-9); color: var(--foreground); }
.v1-fp-eyebrow { display: flex; align-items: center; gap: var(--spacing-2_5); margin: 0 0 var(--spacing-4); color: var(--muted-foreground); font-size: var(--text-body-sm); font-weight: var(--font-weight-bold); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; line-height: var(--text-body-sm--line-height); }
.v1-fp-copy h3 { margin: 0 0 var(--spacing-5); font-size: var(--text-title-lg); line-height: var(--text-title-lg--line-height); letter-spacing: var(--text-title-lg--letter-spacing); }
.v1-fp-lede { max-width: 470px; margin: 0 0 var(--spacing-7); color: var(--muted-foreground); font-size: var(--text-body-lg); line-height: var(--text-body-lg--line-height); }
.v1-fp-list { display: grid; gap: var(--spacing-5); margin: 0; padding: 0; list-style: none; }
.v1-fp-list li { display: grid; grid-template-columns: 40px 1fr; gap: var(--spacing-3_5); align-items: start; }
.v1-fp-list [data-i] { display: grid; place-items: center; width: var(--tile-sm); height: var(--tile-sm); border-radius: var(--radius-sm); color: var(--emphasis-foreground); background: var(--tone); }
.v1-fp-list svg { width: var(--icon-md); height: var(--icon-md); }
.v1-fp-list p { margin: 0; color: var(--muted-foreground); font-size: var(--text-body-md); line-height: var(--text-body-md--line-height); }
.v1-fp-list b { display: block; margin-bottom: var(--spacing-0_5); color: var(--foreground); font-size: var(--text-body-lg); line-height: var(--text-body-lg--line-height); }
.v1-fp-list--plus { gap: var(--spacing-3_5); }
.v1-fp-list--plus p { font-size: var(--text-body-sm); line-height: var(--text-body-sm--line-height); }
.v1-fp-list--plus b { display: inline; margin: 0 var(--spacing-1_5) 0 0; font-size: var(--text-body-md); line-height: var(--text-body-md--line-height); }
.v1-fp-link { align-self: flex-start; margin-top: var(--spacing-7); color: var(--foreground); font-size: var(--text-body-md); font-weight: var(--font-weight-bold); text-decoration: underline; text-underline-offset: 4px; line-height: var(--text-body-md--line-height); }
.v1-fp-link:hover, .v1-fp-link:focus-visible { color: var(--primary); }
.v1-plus-badge { padding: var(--spacing-1_5) var(--spacing-3); border-radius: var(--radius-full); color: var(--emphasis-foreground); background: var(--color-orange-400); letter-spacing: var(--tracking-label); }
/* elemen hidup di atas lukisan */
.v1-fp-bubbles { position: absolute; inset: 0; pointer-events: none; }   /* lapisan sendiri: digeser parallax gerak.js */
.v1-fp-bubbles span { position: absolute; padding: var(--spacing-3) var(--spacing-5); border-radius: var(--radius-md); color: var(--foreground); background: var(--card); font-size: var(--text-body-lg); font-weight: var(--font-weight-bold); box-shadow: var(--shadow-floating); animation: v1-bob 4.2s ease-in-out infinite; line-height: var(--text-body-lg--line-height); }
.v1-fp-bubbles span::after { content: ""; position: absolute; bottom: -7px; left: 26px; width: 16px; height: 16px; border-radius: 3px; background: var(--card); transform: rotate(45deg); }
.v1-fp-bubbles span:nth-child(1) { top: 9%; left: 50%; }
.v1-fp-bubbles span:nth-child(2) { top: 30%; left: 64%; animation-delay: -1.4s; }
.v1-fp-bubbles span:nth-child(3) { top: 14%; left: 79%; color: var(--emphasis-foreground); background: var(--color-blue-500); animation-delay: -2.8s; }
.v1-fp-bubbles span:nth-child(3)::after { background: var(--color-blue-500); }
@keyframes v1-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.v1-fp-card { position: absolute; left: 24px; bottom: 24px; padding: var(--spacing-5) var(--spacing-6); border-radius: var(--radius-lg); color: var(--foreground); background: var(--glass); box-shadow: var(--shadow-floating); backdrop-filter: blur(6px); }
.v1-time-card { width: min(330px, calc(100% - 48px)); }
.v1-time-top, .v1-dash-top { display: flex; align-items: center; gap: var(--spacing-2); margin-bottom: var(--spacing-3_5); }
.v1-time-top [data-i], .v1-time-top svg { width: var(--icon-md); height: var(--icon-md); color: var(--color-green-500); }
.v1-time-top b, .v1-dash-top b { font-size: var(--text-body-md); line-height: var(--text-body-md--line-height); }
.v1-time-top small, .v1-dash-top small { margin-left: auto; color: var(--subtle-foreground); font-size: var(--text-caption); line-height: var(--text-caption--line-height); }
.v1-time-values { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-3); margin-top: var(--spacing-3_5); }
.v1-time-values strong { display: block; font-size: var(--text-display-sm); line-height: var(--text-display-sm--line-height); letter-spacing: var(--text-display-sm--letter-spacing); }
.v1-time-values small { margin-left: var(--spacing-1); font-size: var(--text-body-md); letter-spacing: var(--tracking-normal); line-height: var(--text-body-md--line-height); }
.v1-time-values span { color: var(--subtle-foreground); font-size: var(--text-body-sm); line-height: var(--text-body-sm--line-height); }
.v1-time-note { display: flex; align-items: center; gap: var(--spacing-2); margin: var(--spacing-3_5) 0 0; padding-top: var(--spacing-3); border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: var(--text-body-sm); line-height: var(--text-body-sm--line-height); }
.v1-time-note [data-i], .v1-time-note svg { width: var(--icon-md); height: var(--icon-md); color: var(--muted-foreground); }
.v1-dash-card { width: min(360px, calc(100% - 48px)); }
.v1-dash-card ul { display: grid; gap: var(--spacing-3); margin: 0; padding: 0; list-style: none; }
.v1-dash-card li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: var(--spacing-1_5) var(--spacing-3); font-size: var(--text-body-sm); line-height: var(--text-body-sm--line-height); }
.v1-dash-card li span { font-weight: var(--font-weight-bold); }
.v1-dash-card li em { color: var(--subtle-foreground); font-size: var(--text-caption); font-style: normal; line-height: var(--text-caption--line-height); }
.v1-dash-card li .v1-dash-bar { grid-column: 1 / -1; }
@property --w { syntax: '<percentage>'; inherits: false; initial-value: 100%; }   /* bar tumbuh saat terlihat (gerak.js) */
.v1-dash-bar { display: block; height: 10px; border-radius: var(--radius-xs); background: linear-gradient(90deg, var(--color-orange-400) var(--w), var(--color-sand-100) var(--w)); }
.v1-dash-bar--2 { --w: 50%; }
.v1-dash-bar--3 { --w: 75%; }
.v1-dash-bar--4 { --w: 100%; }
@media (prefers-reduced-motion: reduce) { .v1-fp-bubbles span { animation: none; } }

/* ---------- Ajakan akhir — Figma V1 "Section / CTA" 52:5179 ----------
   Judul → tombol + keterangan → barisan 11 Roundkins (slot 267 × 320 px desain) selebar layar, Bolo di tengah. public/js/ajak.js
   mengacak urutan (Bolo tetap tengah) dan membuat satu tokoh melompat bergantian dengan jeda acak. */
.final-invite { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: var(--spacing-12); margin-inline: -20px; padding: var(--spacing-40) var(--spacing-6) 0; text-align: center; background: var(--card); }
.final-invite h2 { margin: 0; color: var(--foreground); font-size: var(--text-display-lg); line-height: var(--text-display-lg--line-height); letter-spacing: var(--text-display-lg--letter-spacing); }
.final-cta { display: flex; flex-direction: column; align-items: center; gap: var(--spacing-5); }
.final-cta p { margin: 0; color: var(--muted-foreground); font-size: var(--text-body-sm); line-height: var(--text-body-sm--line-height); }
.final-mail a { color: var(--foreground); font-weight: var(--font-weight-bold); }
.final-lineup { --slot: clamp(150px, 18.54vw, 267px); display: flex; justify-content: center; width: 100%; margin-top: var(--spacing-12); padding-bottom: calc(var(--slot) * .06); }
/* --foot = garis kaki sprite di slot (diukur dari alfa sprite: crew 99,7 %, npc 99,2 %, Bolo 97,3 %) → pusat bayangan tanah */
.final-kru { --foot: 99.2%; position: relative; flex: 0 0 var(--slot); width: var(--slot); aspect-ratio: 267 / 320; }
.final-kru--crew { --foot: 99.7%; }
.final-kru[data-kru="bolo"] { --foot: 97.3%; }
.final-kru img { position: absolute; z-index: 1; max-width: none; height: auto; transform-origin: 50% 100%; will-change: transform; }
.final-shadow { position: absolute; z-index: 0; top: var(--foot); left: 50%; width: 70%; height: calc(var(--slot) * .1); border-radius: var(--radius-circle); background: radial-gradient(closest-side, rgba(37, 35, 51, .36), rgba(37, 35, 51, .15) 58%, rgba(37, 35, 51, 0)); transform: translate(-50%, -50%); will-change: transform, opacity; }
.final-kru--crew img { top: .3%; left: 0; width: 101.5%; }
.final-kru--npc img { top: -10.9%; left: -10.5%; width: 121.3%; }

/* ---------- Footer — Figma V1 "Section / Footer" 52:5210 ---------- */
.site-footer { position: relative; z-index: 3; padding: var(--spacing-24) max(var(--spacing-6), calc((100% - 1120px) / 2)) var(--spacing-14); color: var(--foreground); background: var(--card); font-size: var(--text-body-lg); line-height: var(--text-body-lg--line-height); }
.site-footer a { color: inherit; text-decoration: none; transition: color .2s ease; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--primary); }
.footer-brand-row { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-6) var(--spacing-10); flex-wrap: wrap; padding-bottom: var(--spacing-8); border-bottom: 1px solid var(--border-emphasis); }
.footer-brand img { display: block; width: 242px; height: auto; }
.footer-brand p { margin: var(--spacing-4) 0 0; color: var(--muted-foreground); }
.footer-social, .footer-legal nav { display: flex; flex-wrap: wrap; align-items: center; }
.footer-social { gap: var(--spacing-3); }
.footer-social a { display: grid; place-items: center; width: var(--control-sm); height: var(--control-sm); border-radius: var(--radius-circle); color: var(--foreground); background: var(--secondary); transition: color .2s ease, background-color .2s ease; }
.footer-social a:hover, .footer-social a:focus-visible { color: var(--primary-foreground); background: var(--primary); }
.footer-legal { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--spacing-4) var(--spacing-6); flex-wrap: wrap; padding-top: var(--spacing-8); font-size: var(--text-body-md); line-height: var(--text-body-md--line-height); color: var(--muted-foreground); }
.footer-legal > span { white-space: nowrap; }
.footer-legal nav { flex: 1 1 520px; gap: var(--spacing-2) var(--spacing-5); }

/* ---------- Dialog detail game & kartu ---------- */

/* ---------- Intro (src/components/Intro.astro + public/js/intro.js) ----------
   Layar putih, telur O dari logo melirik kiri-kanan sambil bernafas, hitungan 0–100 %. Lalu header turun, telur
   melompat ke tempatnya di logo, dan bingkai terbuka dari tengah. Lapisan: rel bingkai 70–71 < tirai 75 < header 80
   < telur 95. Tanpa JS (atau gagal), semua bagian intro hilang sendiri setelah 9 detik. */
.intro-veil { position: fixed; z-index: 75; top: 50%; left: 50%; width: 0; height: 0; border-radius: var(--frame-r); box-shadow: 0 0 0 200vmax var(--color-white); }
/* kotak telur = kotak logo utuh (1024 × 200); badan telur di 178.6–298.5 × 33.9–175.9 → tengah 23.3% 52.46%, dasar 87.96% */
.intro-egg { --egg-w: clamp(48px, 4.05vw, 62px); position: fixed; z-index: 95; top: 50%; left: 50%; width: calc(var(--egg-w) * 1024 / 119.9); aspect-ratio: 1024 / 200; translate: -23.3% -52.46%; transform-origin: 23.3% 52.46%; }
.intro-egg-squish { width: 100%; height: 100%; transform-origin: 23.3% 87.96%; animation: intro-breathe 1.7s ease-in-out infinite; }
.intro-egg-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.intro-eyes { animation: intro-glance 4.2s ease-in-out infinite; }
.intro-count { position: fixed; z-index: 95; top: calc(50% + clamp(48px, 4.05vw, 62px) * .592 + 18px); left: 50%; margin: 0; translate: -50% 0; color: var(--color-blue-800); font-size: var(--text-body-sm); font-weight: var(--font-weight-bold); letter-spacing: var(--tracking-eyebrow); font-variant-numeric: tabular-nums; transition: opacity .25s ease; line-height: var(--text-body-sm--line-height); }
.intro.is-out .intro-count { opacity: 0; }
.intro.is-jump .intro-egg-squish, .intro.is-jump .intro-eyes { animation: none; }
@keyframes intro-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(.97, 1.04); } }
/* satuan = viewBox logo; mata di logo sudah condong ke kanan, jadi lirikan kanan lebih pendek (+6 menembus tepi telur) */
@keyframes intro-glance {
  0%, 18% { transform: translateX(0); }
  24%, 44% { transform: translateX(-12px); }
  50%, 70% { transform: translateX(5px); }
  76%, 100% { transform: translateX(0); }
}
/* tanpa JS: intro hilang sendiri; dengan JS (html.intro-run) intro.js yang mengatur */
.intro-veil, .intro-egg, .intro-count { animation: intro-failsafe .4s 9s both; }
html:not(.intro-skip) body:has(> .intro) .site-header { animation: intro-header-in .5s 9s both; }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }
@keyframes intro-header-in { from { transform: translateY(calc(-100% - 30px)); } to { transform: none; } }
.intro-run { overflow: hidden; }
.intro-run body { pointer-events: none; }   /* bayangan tirai tidak menangkap klik → kunci halaman selama intro */
.intro-run :is(.intro-veil, .intro-egg, .intro-count) { animation: none; }
.intro-run body:has(> .intro) .site-header { animation: none; transform: translateY(calc(-100% - 30px)); }   /* + bayangan tombol */
.intro-run .logo-o { visibility: hidden; }
.intro-skip .intro { display: none; }

/* ---------- Gerak scroll (public/js/gerak.js, pemilik 9 Nov) ----------
   .v1-w = kata judul (melompat masuk), .v1-fw = kata paragraf (terisi). .is-armed = kelompok yang masih di luar layar disembunyikan
   sampai gilirannya; tanpa JS kelas ini tidak pernah ada → semua terlihat. Bolo pendamping (.v1-buddy) mengintip dari rel bawah
   bingkai di pojok kiri (kanan bawah = teks Orang tua): data-state hide / peek; wajah bolo-intip atau bolo-intip-wow. */
.v1-w { display: inline-block; transform-origin: 50% 88%; }
.v1-hop.is-armed .v1-w,
.v1-card-rules.is-armed > *,
.v1-fp.is-armed .v1-fp-list li, .v1-fp.is-armed .v1-fp-bubbles span, .v1-fp.is-armed .v1-fp-card { opacity: 0; }
.v1-fw { transition: opacity .25s linear; }
.v1-depth { scale: 1.12; }   /* ruang untuk parallax lukisan Orang tua */
.v1-buddy { position: fixed; z-index: 69; left: calc(var(--frame-gap) + 44px); bottom: calc(var(--frame-gap) - 4px); width: 132px; height: 150px; clip-path: inset(-120px -60px 0 -60px); pointer-events: none; }   /* hanya tepi bawah yang memotong: keluar dari balik rel */
.v1-buddy img { position: absolute; bottom: 0; left: 50%; max-width: none; height: auto; transform-origin: 50% 100%; transition: translate .5s cubic-bezier(.3, 1.4, .5, 1); pointer-events: auto; cursor: pointer; }
.v1-buddy-peek { width: 118px; margin-left: -59px; translate: 0 105%; }
.v1-buddy[data-state="peek"] .v1-buddy-peek { translate: 0 0; }   /* tangan bertumpu di tepi rel */
.v1-buddy[data-state="hide"] img { transition-timing-function: cubic-bezier(.5, 0, .7, .4); transition-duration: .35s; }
body:has(dialog[open]) .v1-buddy { display: none; }

/* ---------- ≤ 1120 px ---------- */
@media (max-width: 1120px) {
  .site-header nav { gap: var(--spacing-6); }
}

/* ---------- ≤ 800 px: tablet tegak & ponsel ---------- */
@media (max-width: 800px) {
  .v1-kru { margin-inline: 0; }
  .v1-kru-peek { height: min(37.9vh, 34vw); }
  .v1-levels { grid-template-columns: minmax(0, 560px); gap: var(--spacing-10); padding: var(--spacing-24) var(--spacing-6) var(--spacing-16); }
  .v1-levels-copy { gap: var(--spacing-6); }
  .v1-level-tabs { flex-wrap: wrap; }
  .v1-level-tab { padding: 0 var(--spacing-4); }
  .v1-play { clip-path: none; }
  .v1-cards { margin-inline: 0; }
  .v1-play-intro { min-height: 70vh; }
  .v1-venue { border-radius: var(--radius-lg); }
  .v1-venue-art { height: 380px; }
  .v1-venue-head { top: 28px; left: 24px; max-width: calc(100% - 48px); }
  .v1-venue-head h3 { margin-bottom: var(--spacing-3); font-size: var(--text-display-sm); line-height: var(--text-display-sm--line-height); letter-spacing: var(--text-display-sm--letter-spacing); }
  .v1-venue-games { padding: var(--spacing-6) var(--spacing-5) var(--spacing-7); }
  .v1-venue-list { margin-top: 0; gap: var(--spacing-3_5); }
  .v1-venue-game { flex-wrap: wrap; padding: var(--spacing-4); }
  .v1-venue-game b { font-size: var(--text-title-sm); line-height: var(--text-title-sm--line-height); letter-spacing: var(--text-title-sm--letter-spacing); }
  .v1-venue-play, .v1-venue-locked { margin-left: auto; }
  :root { --frame-top: 70px; --frame-gap: 10px; --frame-r: 24px; }
  .v1-page-content-frame { padding-inline: 0; }
  .v1-section-inner { width: min(100% - 40px, 600px); }

  .brand-logo { width: 125px; }
  .site-header > nav, .header-play, .header-login, .acct { display: none !important; }
  .mobile-out { align-self: flex-start; padding: 0; border: 0; color: var(--muted-foreground); background: none; font-size: var(--text-body-lg); font-weight: var(--font-weight-semibold); text-decoration: underline; line-height: var(--text-body-lg--line-height); }
  .header-left { gap: var(--spacing-2_5); }
  .menu-toggle { display: grid; place-items: center; width: var(--control-sm); height: var(--control-sm); margin-left: auto; border: 0; border-radius: var(--radius-circle); background: var(--glass); }
  .menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 19px; height: 2px; border-radius: 2px; background: var(--foreground); }
  .menu-lines { position: relative; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { top: -6px; }
  .menu-lines::after { top: 6px; }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu { position: fixed; z-index: 29; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: var(--spacing-6); padding: var(--spacing-24) var(--spacing-8) var(--spacing-8); background: var(--background); }
  .mobile-menu a { font-size: var(--text-title-sm); line-height: var(--text-title-sm--line-height); letter-spacing: var(--text-title-sm--letter-spacing); }

  .v1-hero { height: auto; min-height: 690px; padding-top: var(--spacing-18); }
  .v1-hero-wallpaper { top: 70px; left: 10px; width: calc(100% - 20px); height: calc(100% - 70px); border-radius: var(--radius-sm); }
  .v1-hero-copy { top: 165px; }
  .v1-hero-copy h1 { font-size: var(--text-title-lg); line-height: var(--text-title-lg--line-height); letter-spacing: var(--text-title-lg--letter-spacing); }





  .v1-parent { padding: var(--spacing-24) var(--spacing-3) var(--spacing-3); }
  .v1-parent-head { gap: var(--spacing-7); margin-bottom: var(--spacing-7); }
  .v1-feature-tab { padding: 0 var(--spacing-4); font-size: var(--text-body-md); line-height: var(--text-body-md--line-height); }
  .v1-fp { grid-template-columns: 1fr; min-height: 0; padding: var(--spacing-2_5); border-radius: var(--radius-lg); }
  .v1-fp-art { aspect-ratio: 4 / 3.4; border-radius: var(--radius-md); }
  .v1-fp-copy { padding: var(--spacing-7) var(--spacing-5) var(--spacing-6); }
  .v1-fp--watch .v1-fp-card { top: 12px; }
  .v1-fp-bubbles span { padding: var(--spacing-2_5) var(--spacing-3_5); font-size: var(--text-body-sm); line-height: var(--text-body-sm--line-height); }
  .v1-fp-bubbles span:nth-child(1) { left: 34%; }
  .v1-fp-bubbles span:nth-child(2) { left: 52%; }
  .v1-fp-bubbles span:nth-child(3) { left: 70%; }
  .v1-fp-card { left: 12px; bottom: 12px; padding: var(--spacing-3_5) var(--spacing-4); }

  .final-invite { margin-inline: 0; padding-top: var(--spacing-30); gap: var(--spacing-8); }
  .final-lineup { --slot: 30vw; margin-top: var(--spacing-6); }
  .site-footer { padding: var(--spacing-16) var(--spacing-6) var(--spacing-12); }
  .footer-brand img { width: 190px; }
  .detail-dialog > #dialog-art { height: 230px; }
}

/* ---------- ≤ 480 px: ponsel ---------- */
@media (max-width: 480px) {
  h2 { font-size: var(--text-display-sm); line-height: var(--text-display-sm--line-height); letter-spacing: var(--text-display-sm--letter-spacing); }
  .v1-card-rules { display: grid; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  body:has(> .intro) .site-header { animation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .v1-level-sprite-sheet { animation: none !important; transform: none !important; }
}

/* layar pendek (laptop kecil, TV 960 × 540): panggung Permainan & panel Tingkat dipadatkan */
@media (min-width: 801px) and (max-height: 700px) {
  .v1-play.is-live .v1-venue-head { top: calc(var(--frame-top) + 28px); }
  .v1-venue-head h3 { margin-bottom: var(--spacing-3); font-size: var(--text-display-sm); line-height: var(--text-display-sm--line-height); letter-spacing: var(--text-display-sm--letter-spacing); }
  .v1-play.is-live .v1-venue-tabs { bottom: calc(var(--frame-gap) + 14px); gap: var(--spacing-3_5); }
  .v1-venue-tab { height: 78px; border-radius: var(--radius-sm); }
  .v1-venue-tab span { left: 12px; bottom: 9px; font-size: var(--text-caption); line-height: var(--text-caption--line-height); }
  .v1-venue-games { padding: var(--spacing-6) var(--spacing-8) var(--spacing-6) var(--spacing-10); }
  .v1-venue-close { top: 18px; right: 30px; width: 52px; height: 52px; font-size: var(--text-title-sm); line-height: var(--text-title-sm--line-height); letter-spacing: var(--text-title-sm--letter-spacing); }
  .v1-venue-games-head { padding-right: var(--spacing-16); }
  .v1-venue-games-head b { font-size: var(--text-display-sm); line-height: var(--text-display-sm--line-height); letter-spacing: var(--text-display-sm--letter-spacing); }
  .v1-venue-games-head span { margin-top: var(--spacing-2_5); font-size: var(--text-body-sm); line-height: var(--text-body-sm--line-height); }
  .v1-venue-list { gap: var(--spacing-3); margin-top: var(--spacing-6); }
  .v1-venue-game { min-height: 76px; padding: var(--spacing-3) var(--spacing-3_5) var(--spacing-3) var(--spacing-4); border-radius: var(--radius-md); }
  .v1-venue-game-info { gap: var(--spacing-3_5); }
  .v1-venue-game-info img, .v1-venue-soon-mark { width: 52px; height: 52px; }
  .v1-venue-game b { font-size: var(--text-body-lg); line-height: var(--text-body-lg--line-height); }
  .v1-venue-game--soon b { font-size: var(--text-body-lg); line-height: var(--text-body-lg--line-height); }
  .v1-venue-hosts { margin-top: var(--spacing-5); font-size: var(--text-body-sm); line-height: var(--text-body-sm--line-height); }
  .v1-levels-copy { gap: var(--spacing-6); }
  .v1-levels-copy h2 { font-size: var(--text-display-sm); line-height: var(--text-display-sm--line-height); letter-spacing: var(--text-display-sm--letter-spacing); }
  .v1-level-sprite { width: min(422px, 34vh); }
  .v1-level-sapa { margin-top: var(--spacing-2_5); }
  .v1-level-name { margin-top: var(--spacing-2); font-size: var(--text-title-sm); line-height: var(--text-title-sm--line-height); letter-spacing: var(--text-title-sm--letter-spacing); }
  .v1-level-meta { margin-top: var(--spacing-1_5); font-size: var(--text-body-md); line-height: var(--text-body-md--line-height); }
}

/* ---------- Pemberitahuan cookie (SiteHeader.astro + src/scripts/cookie.ts) ----------
   Kartu kiri bawah, Bolo mengintip di tepi atas. Rincian kategori = <details> (tanpa JS). Hanya cookie yang diperlukan → satu tombol. */
.ck { position: fixed; z-index: 90; left: 24px; bottom: 24px; width: min(400px, calc(100% - 48px)); padding-top: var(--spacing-20); pointer-events: none; }
.ck[hidden] { display: none; }
.ck-bolo { position: absolute; top: 0; right: 30px; width: 112px; height: auto; pointer-events: none; }
.ck-card { position: relative; padding: var(--spacing-6) var(--spacing-6) var(--spacing-6); box-shadow: var(--shadow-overlay); pointer-events: auto; }
.ck-title { margin: 0 0 var(--spacing-2); color: var(--foreground); font-size: var(--text-body-lg); font-weight: var(--font-weight-bold); letter-spacing: var(--tracking-heading); line-height: var(--text-body-lg--line-height); }
.ck-lede { margin: 0; color: var(--muted-foreground); font-size: var(--text-body-sm); line-height: var(--text-body-sm--line-height); }
.ck-more { margin-top: var(--spacing-3_5); border-top: 1px solid var(--color-sand-100); }
.ck-more summary { display: flex; align-items: center; justify-content: space-between; padding: var(--spacing-3) 0 var(--spacing-0_5); color: var(--foreground); font-size: var(--text-body-sm); font-weight: var(--font-weight-bold); cursor: pointer; list-style: none; line-height: var(--text-body-sm--line-height); }
.ck-more summary::-webkit-details-marker { display: none; }
.ck-more summary::after { content: ""; width: 8px; height: 8px; margin-right: var(--spacing-1); border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.ck-more[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.ck-more ul { display: grid; gap: var(--spacing-2); margin: var(--spacing-3) 0 0; padding: 0; list-style: none; }
.ck-more li { display: grid; grid-template-columns: 1fr auto; gap: var(--spacing-0_5) var(--spacing-3); padding: var(--spacing-3) var(--spacing-3_5); border-radius: var(--radius-sm); background: var(--background-subtle); }
.ck-more li b { grid-row: 1; grid-column: 1; color: var(--foreground); font-size: var(--text-body-sm); line-height: var(--text-body-sm--line-height); }
.ck-more li small { grid-column: 1 / -1; color: var(--muted-foreground); font-size: var(--text-caption); line-height: var(--text-caption--line-height); }
.ck-more code { font-size: var(--text-caption); line-height: var(--text-caption--line-height); }
.ck-pill { grid-row: 1; grid-column: 2; align-self: center; padding: var(--spacing-1) var(--spacing-2_5); border-radius: var(--radius-full); color: var(--subtle-foreground); background: var(--secondary-hover); font-size: var(--text-caption); font-weight: var(--font-weight-bold); white-space: nowrap; line-height: var(--text-caption--line-height); }
.ck-pill--on { color: var(--color-green-800); background: var(--color-green-100); }
.ck-actions { display: flex; align-items: center; gap: var(--spacing-2_5); margin-top: var(--spacing-5); }
.ck-actions a { margin-left: auto; }
.footer-cookie { padding: 0; border: 0; color: inherit; background: none; font: inherit; cursor: pointer; }
.footer-cookie:hover { text-decoration: underline; }
.ck-actions a { color: var(--muted-foreground); font-size: var(--text-body-sm); font-weight: var(--font-weight-semibold); text-underline-offset: 3px; line-height: var(--text-body-sm--line-height); }
.ck-actions a:hover { color: var(--foreground); }
@media (max-width: 600px) {
  .ck { left: 12px; right: 12px; bottom: 12px; width: auto; padding-top: var(--spacing-18); }
  .ck-bolo { width: 94px; right: 24px; }
  .ck-card { padding: var(--spacing-5) var(--spacing-5) var(--spacing-5); border-radius: var(--radius-lg); }
  .ck-more ul { max-height: 40vh; overflow-y: auto; }
}

/* Catatan email Apple disembunyikan (src/components/RelayNote.astro) */
.acct-menu .menu-item { margin-top: var(--spacing-1); }
