/* rs.css: the shared design system of the launch redesign (spec docs/specs/launch-redesign.md section 2; piece P0, 17 Nov 2026).
   Direction C "Dua kepala" from the closed mockup (v10 = docs/design/launch-redesign/launch-redesign-v8.html, .t-dua / .t-dua.nt).
   Only P0 edits this file. A piece adds modifiers in its own file, scoped under its page class (.pg-land, .pg-curang, .pg-akaun,
   .pg-owner, .pg-baca, .pg-app); it never restyles a component here. Every class here starts with rs- (the reveal pair .rv/.in and the
   Worker's ladder classes dd-* are the two contracts that keep their names).

   Contrast (WCAG 2.x, checked by script 17 Nov 2026; AA = 4.5:1 body text, 3:1 large text):
     light  ink/bg 15.80 · ink/surf 17.14 · ink/bg2 14.49 · ink/hi 15.22 · soft/bg 6.03 · soft/surf 6.54 · soft/bg2 5.53 · onacc/acc 17.14
            rose/bg 4.95 · rose/surf 5.37 · rose/bg2 4.54 · rose/hi 4.77 · bubble #fff/rose 5.37 · #fff/him 6.19 · Beli #1B1626/lamp 7.51
            ok/ok-pill 4.51 · ok/surf 5.80 · #fff/ok 5.80 · him/surf 6.19 · toast bg/ink 15.80 · cover #fff/#3B3466 11.24, #fff/#6B3445 9.54
     dark   ink/bg 16.46 · ink/surf 14.30 · ink/bg2 15.13 · ink/hi 11.53 · soft/bg 8.25 · soft/surf 7.17 · soft/bg2 7.59 · onacc/acc 16.46
            rose/bg 8.10 · rose/surf 7.03 · rose/bg2 7.44 · bubble #0F1120/rose 8.10 · #0F1120/him 8.67 · Beli #1B1626/lamp 9.56
            ok/ok-pill 5.62 · ok/surf 8.19 · lamp/bg 10.14 · lamp/surf 8.81 · toast 16.46
   Two light pairs failed at v10's values and were moved one shade darker (spec 2.1): --rose #C0456A -> #B83E63 (eyebrows on --bg2
   were 4.13) and --ok #2B7A57 -> #287252 (the ok pill's text was 4.09). Dark values are v10's, unchanged.
   --lamp in light (2.17 on --bg) is never used for text: fills, the meter, lit windows and the Beli button only. /curang is always dark.

   Fixed colours outside the token table: bubble text (#fff light, #0F1120 dark), Beli text #1B1626, and the two book covers (v10's
   gradients, white text). The phone-strip frames on /curang keep their own (spec 2.1) in rs-curang.css. */

/* ---------- fonts: self-hosted (D10), no outside host. A browser downloads only the faces a page uses. ---------- */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/plus-jakarta-sans-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2"); }
/* the reader's "Buku" setting only (spec open question 2): used through --f-read, so no other page downloads it */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2"); }

/* ---------- tokens (spec 2.1) ---------- */
:root {
  --bg: #F6F5FA; --bg2: #ECEBF4; --surf: #FFFFFF; --ink: #191A2C; --soft: #595C75; --line: #E1E0EB;
  --acc: #191A2C; --onacc: #FFFFFF; --lamp: #E39A2F; --glow: #F3CF8F; --rose: #B83E63; --him: #3560A8; --hi: #FFF0D3; --ok: #287252;
  --on-bubble: #fff; --on-lamp: #1B1626; --on-ok: #fff;
  /* lit things (mark window, rooftop and house windows, the lamp button): plain by day, lit at night (spec 2.3) */
  --lit: var(--bg2); --lit-stroke: currentColor; --lit-glow: none; --win-ring: 0 0 0 3px var(--line) inset;
  --lamp-bg: var(--surf); --lamp-fg: var(--ink); --lamp-shadow: inset 0 0 0 1px var(--line);
  --roof: var(--acc); --roof-o: .92;
  --sky-lit: color-mix(in srgb, var(--ink) 10%, transparent); --sky-glow: none;
  --glow-bg: radial-gradient(70% 55% at 96% 0%, color-mix(in srgb, var(--glow) 55%, transparent), transparent 70%);
  --cover1: linear-gradient(160deg, #3B3466, #1F1B38); --cover2: linear-gradient(160deg, #6B3445, #2C1520);
  --f-d: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --f-ui: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-read: "Fraunces", Georgia, serif;
  --pad: 18px; --sec: 26px; --col: 1040px; --narrow: 520px; --bar-h: 76px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1120; --bg2: #161A2D; --surf: #1B1F33; --ink: #EEF0F8; --soft: #A7ABC3; --line: #2B3049;
    --acc: #EEF0F8; --onacc: #0F1120; --lamp: #F2B35B; --glow: #5D4626; --rose: #F28CA6; --him: #8EB1F2; --hi: #2A2F49; --ok: #71C9A0;
    --on-bubble: #0F1120; --on-ok: #0F1120;
    --lit: var(--lamp); --lit-stroke: var(--lamp); --lit-glow: drop-shadow(0 0 4px var(--lamp));
    --win-ring: 0 0 0 3px var(--lamp), 0 0 22px color-mix(in srgb, var(--lamp) 55%, transparent);
    --lamp-bg: var(--lamp); --lamp-fg: var(--onacc); --lamp-shadow: 0 0 18px color-mix(in srgb, var(--lamp) 60%, transparent);
    --roof: color-mix(in srgb, var(--ink) 16%, var(--bg)); --roof-o: 1;
    --sky-lit: var(--lamp); --sky-glow: 0 0 10px var(--lamp);
    --glow-bg: radial-gradient(60% 40% at 96% 0%, color-mix(in srgb, var(--lamp) 16%, transparent), transparent 72%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1120; --bg2: #161A2D; --surf: #1B1F33; --ink: #EEF0F8; --soft: #A7ABC3; --line: #2B3049;
  --acc: #EEF0F8; --onacc: #0F1120; --lamp: #F2B35B; --glow: #5D4626; --rose: #F28CA6; --him: #8EB1F2; --hi: #2A2F49; --ok: #71C9A0;
  --on-bubble: #0F1120; --on-ok: #0F1120;
  --lit: var(--lamp); --lit-stroke: var(--lamp); --lit-glow: drop-shadow(0 0 4px var(--lamp));
  --win-ring: 0 0 0 3px var(--lamp), 0 0 22px color-mix(in srgb, var(--lamp) 55%, transparent);
  --lamp-bg: var(--lamp); --lamp-fg: var(--onacc); --lamp-shadow: 0 0 18px color-mix(in srgb, var(--lamp) 60%, transparent);
  --roof: color-mix(in srgb, var(--ink) 16%, var(--bg)); --roof-o: 1;
  --sky-lit: var(--lamp); --sky-glow: 0 0 10px var(--lamp);
  --glow-bg: radial-gradient(60% 40% at 96% 0%, color-mix(in srgb, var(--lamp) 16%, transparent), transparent 72%);
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --pad: 32px; --sec: 32px; } }
@media (min-width: 1024px) { :root { --pad: 40px; --sec: 44px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* the Worker's hooks rely on it (spec 4.1): a component's display never beats hidden */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--f-ui); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.rs-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rs-skip { position: absolute; left: 8px; top: -100px; z-index: 100; padding: 10px 14px; border-radius: 12px; background: var(--acc); color: var(--onacc); font-weight: 700; text-decoration: none; }
.rs-skip:focus { top: 8px; }

/* ---------- layout (spec 2.4) ---------- */
.rs-wrap { max-width: var(--col); margin-inline: auto; padding-inline: var(--pad); }
.rs-narrow { max-width: var(--narrow); margin-inline: auto; }
.rs-sec { padding-block: var(--sec); }
.rs-gap { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.rs-wrap.rs-narrow, .rs-foot.rs-narrow { max-width: calc(var(--narrow) + 2 * var(--pad)); }
.rs-main { padding-block: 8px 32px; min-height: 50vh; }
.rs-two { display: grid; gap: 24px; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .rs-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- type (spec 2.2) ---------- */
.rs-h1 { font: 800 46px/1.02 var(--f-d); letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.rs-h2 { font: 800 27px/1.1 var(--f-d); letter-spacing: -.025em; margin: 0 0 10px; text-wrap: balance; }
.rs-h3 { font: 700 17px/1.25 var(--f-ui); margin: 0; text-wrap: balance; }
@media (min-width: 1024px) { .rs-h1 { font-size: 64px; } .rs-h2 { font-size: 36px; } }
.rs-p { color: var(--soft); font-size: 16px; line-height: 1.55; margin: 8px 0 0; text-wrap: pretty; }
.rs-small { font-size: 13px; line-height: 1.45; color: var(--soft); }
.rs-eye { font: 700 11.5px/1.3 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--rose); margin: 0 0 6px; }

/* ---------- top bar, logo, mark, lamp, avatar, chip, pill ---------- */
.rs-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.rs-top-in { max-width: var(--col); margin-inline: auto; display: flex; align-items: center; gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) var(--pad) 10px; min-height: 56px; }
@media (min-width: 1024px) { .rs-top-in { padding-block: 14px; } }
.rs-sp { flex: 1; }
.rs-logo { display: inline-flex; align-items: center; gap: 7px; font: 800 19px/1 var(--f-d); letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.rs-mark { display: inline-grid; width: 22px; height: 22px; flex: none; }
.rs-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rs-mark .w { fill: var(--lit); stroke: var(--lit-stroke); filter: var(--lit-glow); }
.rs-ic svg, .rs-chev svg, .rs-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rs-lamp, .rs-ava { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; border: 0; padding: 0; cursor: pointer; flex: none; }
.rs-lamp { background: var(--lamp-bg); color: var(--lamp-fg); box-shadow: var(--lamp-shadow); }
.rs-ava { background: var(--surf); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.rs-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 0; cursor: pointer;
  font: 650 13px var(--f-ui); color: var(--ink); background: var(--surf); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; text-decoration: none; }
.rs-chip.rs-on, .rs-chip[aria-pressed="true"] { background: var(--acc); color: var(--onacc); box-shadow: none; }
.rs-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 9px; border-radius: 999px; white-space: nowrap;
  font: 700 11.5px var(--f-ui); background: var(--hi); color: var(--ink); }
.rs-pill.rs-ok { background: color-mix(in srgb, var(--ok) 18%, var(--surf)); color: var(--ok); }
.rs-pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- buttons (main, ghost, small, full) and tappable things ---------- */
.rs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 16px; border: 0;
  background: var(--acc); color: var(--onacc); font: 750 16px/1.2 var(--f-ui); text-align: center; text-decoration: none; cursor: pointer; transition: transform .12s; }
.rs-btn.rs-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.rs-btn.rs-sm { min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.rs-btn.rs-full { width: 100%; }
.rs-btn:disabled, .rs-btn[aria-disabled="true"] { opacity: .55; cursor: default; }
/* "Beli": lamp yellow with the live dot that marks the real seat counter; the button itself never flashes (spec 1 rule 6) */
.rs-btn.rs-buy { background: var(--lamp); color: var(--on-lamp); padding-left: 14px; }
.rs-btn.rs-buy::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-lamp); flex: none; animation: rs-live 1.2s ease-in-out infinite; }
@keyframes rs-live { 50% { opacity: .15; transform: scale(.7); } }
.rs-btn:active, .rs-tap:active { transform: scale(.985); }
@media (pointer: coarse) { .rs-btn.rs-sm, .rs-chip, .rs-lamp, .rs-ava { min-height: 44px; } .rs-lamp, .rs-ava { width: 44px; height: 44px; } }

/* ---------- card, row list ---------- */
.rs-card { background: var(--surf); border-radius: 22px; padding: 18px; box-shadow: 0 0 0 1px var(--line), 0 14px 34px -24px #0006; }
.rs-tap { cursor: pointer; transition: transform .12s; }
.rs-glow { background-image: var(--glow-bg); }
.rs-rows { background: var(--surf); border-radius: 22px; padding: 4px 14px; box-shadow: 0 0 0 1px var(--line); }
.rs-row { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rs-row:last-child { border-bottom: 0; }
.rs-tx { flex: 1; min-width: 0; }
.rs-tx b { display: block; font-weight: 700; }
.rs-tx small { display: block; color: var(--soft); font-size: 13px; margin-top: 2px; }
.rs-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--hi); color: var(--ink); flex: none; }
.rs-chev { color: var(--soft); display: grid; }

/* ---------- form fields ---------- */
.rs-label { display: block; font: 700 14px var(--f-ui); margin: 0 0 6px; }
.rs-input { width: 100%; min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surf); color: var(--ink); padding: 0 14px; font: 500 16px var(--f-ui); }
.rs-input::placeholder { color: var(--soft); }
.rs-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--soft); }
.rs-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--acc); }
.rs-err { color: var(--rose); font-weight: 700; font-size: 14px; margin: 8px 0 0; }
.rs-err:empty { display: none; }

/* ---------- segmented control, switch ---------- */
.rs-seg { display: flex; background: var(--bg2); border-radius: 12px; padding: 3px; gap: 2px; }
.rs-seg > button, .rs-seg > a { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: none; font: 650 13.5px var(--f-ui); color: var(--soft);
  cursor: pointer; display: grid; place-items: center; text-decoration: none; padding: 0 8px; }
/* the chosen option is the accent fill with its own text colour, in day and night: it must read 3:1 against the track (Q1) */
.rs-seg > [aria-pressed="true"], .rs-seg > [aria-checked="true"], .rs-seg > [aria-current="page"] { background: var(--acc); color: var(--onacc); box-shadow: none; }
@media (pointer: coarse) { .rs-seg > button, .rs-seg > a { min-height: 44px; } }
.rs-sw { width: 46px; height: 28px; border-radius: 99px; background: var(--line); position: relative; flex: none; border: 0; padding: 0; cursor: pointer; }
.rs-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surf); box-shadow: 0 1px 3px #0004; transition: left .2s; }
.rs-sw[aria-checked="true"] { background: var(--ok); }
.rs-sw[aria-checked="true"]::after { left: 21px; }
@media (pointer: coarse) {
  .rs-sw { margin-block: 8px; }
  .rs-sw::before { content: ""; position: absolute; inset: -8px -4px; }   /* a 44 px hit area around the 28 px switch (Q3) */
  .rs-logo { min-height: 44px; }
}

/* ---------- prices: meter (data-dd-meter sets --p), the Worker's ladder (ol.dd-ladder), ticks ---------- */
.rs-meter { height: 8px; border-radius: 9px; background: var(--line); overflow: hidden; margin-top: 8px; }
.rs-meter::before { content: ""; display: block; height: 100%; width: calc(var(--p, 0) * 1%); border-radius: 9px; background: linear-gradient(90deg, var(--lamp), var(--glow)); }
ol.dd-ladder { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
ol.dd-ladder li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; font-size: 14px; color: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
ol.dd-ladder li strong { font-weight: inherit; }
ol.dd-ladder li.dd-now { background: var(--hi); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--lamp); font-weight: 650; }
ol.dd-ladder li.dd-now > span:not(.dd-seats) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dd-seats { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font: 700 11.5px var(--f-ui); background: var(--acc); color: var(--onacc); white-space: nowrap; }
.rs-ticks { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.rs-ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.rs-ticks li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 2px; border-radius: 50%; background: var(--hi); box-shadow: inset 0 0 0 5px var(--lamp); }

/* ---------- steps, ring, progress line ---------- */
.rs-steps { display: flex; gap: 6px; align-items: center; list-style: none; padding: 0; margin: 4px 0 16px; font: 650 12.5px var(--f-ui); color: var(--soft); }
.rs-steps li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.rs-steps li:not(:last-child) { flex: 1; }
.rs-steps li:not(:last-child)::after { content: ""; flex: 1; min-width: 8px; border-top: 1.5px dashed var(--line); }
.rs-steps b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 12px; }
.rs-steps .rs-on { color: var(--ink); }
.rs-steps .rs-on b { background: var(--acc); color: var(--onacc); }
.rs-ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(var(--lamp) calc(var(--p) * 1%), var(--line) 0); display: grid; place-items: center; margin: 4px auto 10px; }
.rs-ring > * { width: 104px; height: 104px; border-radius: 50%; background: var(--surf); display: grid; place-items: center; text-align: center; line-height: 1; }
.rs-ring b { font: 800 38px var(--f-ui); }
.rs-ring small { font-size: 12px; color: var(--soft); }
.rs-progline { position: sticky; top: 0; z-index: 21; height: 3px; }
.rs-progline > i { display: block; height: 100%; width: calc(var(--p, 0) * 1%); background: var(--lamp); }
.rs-prog { height: 5px; border-radius: 9px; background: var(--line); overflow: hidden; }
.rs-prog > i { display: block; height: 100%; width: calc(var(--p, 0) * 1%); background: var(--lamp); border-radius: 9px; }

/* ---------- covers: book 1, book 2, locked, mini ---------- */
.rs-cover { aspect-ratio: 5 / 6; border-radius: 12px 16px 16px 12px; padding: 12px 10px; display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; font: 600 15px/1.15 var(--f-d); box-shadow: inset 6px 0 0 #00000022, 0 10px 20px -12px #0007; position: relative; overflow: hidden; background: var(--cover1); }
.rs-cover small { font: 700 9.5px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.rs-cover.rs-c2 { background: var(--cover2); }
.rs-cover.rs-lock { filter: saturate(.3); opacity: .6; }
.rs-cover.rs-mini { aspect-ratio: 3 / 4; font-size: 10.5px; padding: 7px 6px; border-radius: 6px 9px 9px 6px; }
.rs-cover.rs-mini small { font-size: 7px; }

/* ---------- comic: panel, lines and bubbles (her, him, caption, think), strip ---------- */
.rs-strip { display: grid; gap: 4px; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
.rs-strip.rs-grid { gap: 16px 14px; align-items: start; }
.rs-strip > li, .rs-strip figure { margin: 0; min-width: 0; }
.rs-panel { border-radius: 22px; overflow: hidden; background: var(--bg2); box-shadow: 0 0 0 1px var(--line); }
.rs-panel img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.rs-lines { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 22px; margin: -34px 0 0; position: relative; }
.rs-grid .rs-lines { padding-bottom: 6px; }
.rs-b { max-width: 84%; padding: 9px 13px; border-radius: 18px; font: 600 15px/1.35 var(--f-ui); position: relative; margin: 0; }
.rs-grid .rs-b { font-size: 13.5px; padding: 7px 11px; }
.rs-b small { display: block; font: 700 10.5px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 2px; }
.rs-b.rs-her { align-self: flex-start; background: var(--rose); color: var(--on-bubble); border-bottom-left-radius: 6px; box-shadow: 0 6px 16px -8px #0006; }
.rs-b.rs-him { align-self: flex-end; background: var(--him); color: var(--on-bubble); border-bottom-right-radius: 6px; box-shadow: 0 6px 16px -8px #0006; }
.rs-b.rs-cap { align-self: center; max-width: 92%; padding: 8px 14px; border-radius: 14px; text-align: center; font-weight: 550; font-size: 14px; color: var(--ink);
  background: color-mix(in srgb, var(--surf) 90%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 0 0 1px var(--line); }
.rs-b.rs-think { font-style: italic; font-weight: 500; background: var(--surf); border: 1.5px dashed currentColor; box-shadow: none; color: var(--ink); }
.rs-b.rs-think.rs-her { color: var(--rose); }
.rs-b.rs-think.rs-him { color: var(--him); }
/* reveal on scroll (spec 2.6, 2.7): rs.js sets .rs-rv on <html> only when it will add .in (observer present, motion allowed); without it
   everything is visible. (.rs-js is the earlier "scripts are on" flag, set by rs-theme.js: it must not hide anything, or Reduce Motion
   would leave every panel dimmed and every bubble hidden.) */
.rs-rv .rv:not(.in) .rs-panel img { opacity: .4; transform: scale(1.03); }
.rs-rv .rv:not(.in) .rs-b { opacity: 0; }
.rv.in .rs-panel img { animation: rs-rise .7s ease both; }
.rv.in .rs-b { animation: rs-pop .5s cubic-bezier(.2, .8, .3, 1.2) both; }
.rv.in .rs-b:nth-child(2) { animation-delay: .25s; } .rv.in .rs-b:nth-child(3) { animation-delay: .5s; } .rv.in .rs-b:nth-child(4) { animation-delay: .75s; }
@keyframes rs-rise { from { opacity: .4; transform: scale(1.03); } }
@keyframes rs-pop { from { opacity: 0; transform: translateY(10px) scale(.94); } }

/* ---------- flip card: a button; aria-pressed="true" shows the back ---------- */
.rs-flip { display: block; width: 100%; perspective: 1200px; border: 0; padding: 0; background: none; text-align: left; cursor: pointer; border-radius: 22px; }
.rs-flip-in { display: grid; transition: transform .55s cubic-bezier(.3, .7, .2, 1); transform-style: preserve-3d; }
.rs-face, .rs-back { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 22px; padding: 18px; }
.rs-face { background: var(--surf); box-shadow: 0 0 0 1px var(--line); color: var(--ink); }
.rs-back { background: var(--acc); color: var(--onacc); transform: rotateY(180deg); }
.rs-flip[aria-pressed="true"] .rs-flip-in { transform: rotateY(180deg); }
.rs-flip q { display: block; font: 500 17px/1.4 var(--f-ui); quotes: "\201C" "\201D"; margin: 8px 0; }
.rs-flip .rs-hint { font-size: 12.5px; opacity: .75; display: flex; gap: 6px; align-items: center; }

/* ---------- bottom sheet (dialog.rs-sheet, opened by [data-sheet]) ---------- */
dialog.rs-sheet { padding: 0; border: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 88vh; max-height: 88dvh; overflow: auto;
  border-radius: 24px 24px 0 0; background: var(--surf); color: var(--ink); box-shadow: 0 -10px 40px #0005; }
dialog.rs-sheet[open] { animation: rs-up .25s ease-out; }
/* No JavaScript: the opener is a link to #id, and the sheet it names shows as a plain panel; "Tutup" is a link to # (m10) */
.rs-nojs { display: none; }
html:not(.rs-js) .rs-nojs { display: block; }
html:not(.rs-js) form.rs-sheet-x { display: none; }
html:not(.rs-js) dialog.rs-sheet:target { display: block; position: fixed; inset: auto 0 0 0; z-index: 60; margin: 0; }
@media (min-width: 768px) { html:not(.rs-js) dialog.rs-sheet:target { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: calc(100% - 64px); } }
dialog.rs-sheet:focus { outline: none; }   /* rs.js focuses the sheet itself on open, so a tap shows no ring on "Tutup"; Tab then goes to Tutup with its ring (Q2) */
dialog.rs-sheet::backdrop { background: #0008; }
.rs-sheet-in { padding: 18px 18px max(28px, env(safe-area-inset-bottom)); }
.rs-grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: -6px auto 12px; }
.rs-sheet-x { float: right; margin: -6px -6px 0 8px; }
.rs-sheet-x button, a.rs-sheet-x { min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--soft); font: 600 13px var(--f-ui); cursor: pointer; text-decoration: underline; }
@media (min-width: 768px) {
  dialog.rs-sheet { margin: auto; width: calc(100% - 64px); max-width: 560px; max-height: 80vh; border-radius: 24px; }
  .rs-grab { display: none; }
}
@keyframes rs-up { from { transform: translateY(40px); opacity: .6; } }

/* ---------- toast, sticky bar ---------- */
.rs-toast { position: fixed; left: 50%; bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; width: max-content; max-width: 90vw;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 14px; font: 600 13.5px/1.35 var(--f-ui); box-shadow: 0 10px 30px #0004; text-align: center; }
.rs-toast:empty { display: none; }
nav.rs-bar, .rs-bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 25; display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 16px; border-radius: 20px; background: color-mix(in srgb, var(--surf) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px var(--line), 0 12px 30px -10px #0005; }
.rs-bar .rs-tx { line-height: 1.2; }
.rs-bar b { font-size: 17px; }
.rs-bar small { display: block; font-size: 12px; color: var(--soft); }
@media (min-width: 768px) { .rs-bar { max-width: 640px; margin-inline: auto; } }
/* the page keeps room for the bar, so it never covers the focused element (spec 2.9) */
body:has(.rs-bar:not([hidden])) { padding-bottom: calc(var(--bar-h) + 20px + env(safe-area-inset-bottom)); }
html:has(.rs-bar:not([hidden])) { scroll-padding-bottom: calc(var(--bar-h) + 30px); }

/* ---------- safety box, footer ---------- */
.rs-safe { border-radius: 18px; padding: 16px; background: var(--surf); box-shadow: inset 3px 0 0 var(--rose), 0 0 0 1px var(--line); font-size: 14px; line-height: 1.5; }
.rs-safe b { display: block; margin-bottom: 4px; }
.rs-foot { padding: 28px var(--pad) 40px; color: var(--soft); font-size: 12.5px; line-height: 1.55; max-width: var(--col); margin-inline: auto; }
.rs-foot a { color: inherit; text-decoration: underline; }
.rs-foot .rs-logo { font-size: 15px; color: var(--ink); text-decoration: none; }
.rs-foot .rs-tag { display: block; margin: 4px 0 12px; }

/* ---------- the street: skyline, house, road (decorative parts are aria-hidden in the markup) ---------- */
.rs-sky { display: flex; align-items: flex-end; gap: 3px; height: 70px; margin: 0 0 14px; opacity: .9; }
.rs-sky i { flex: 1; height: var(--h, 56px); background: var(--bg2); border-radius: 3px 3px 0 0; display: flex; justify-content: center; gap: 5px; padding-top: 12px; position: relative; font-style: normal; }
.rs-sky i::before { content: ""; position: absolute; left: -2px; right: -2px; top: -9px; height: 10px; background: var(--bg2); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.rs-sky b { width: 9px; height: 11px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.rs-sky b.rs-lit { background: var(--sky-lit); box-shadow: var(--sky-glow); }
@media (min-width: 1024px) { .rs-sky { height: 90px; margin-bottom: 18px; } }
.rs-house { display: block; color: inherit; text-decoration: none; cursor: pointer; transition: transform .12s; border: 0; padding: 0; background: none; text-align: left; width: 100%; }
.rs-house:active { transform: scale(.985); }
.rs-roof { height: 34px; background: var(--roof); opacity: var(--roof-o); clip-path: polygon(50% 0, 100% 100%, 0 100%); margin: 0 -6px; }
.rs-wall { background: var(--surf); box-shadow: 0 0 0 1px var(--line); border-radius: 0 0 6px 6px; padding: 12px 12px 0; display: grid; grid-template-columns: 1fr 34px; gap: 10px; align-items: end; position: relative; }
.rs-no { position: absolute; top: 6px; right: 10px; font: 700 10.5px var(--f-ui); color: var(--soft); }
.rs-win { border-radius: 6px; overflow: hidden; box-shadow: var(--win-ring); aspect-ratio: 4 / 3; margin-top: 12px; background: var(--bg2); }
.rs-win img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-door { height: 56px; border-radius: 5px 5px 0 0; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.rs-road { height: 10px; border-radius: 9px; background: var(--bg2); box-shadow: inset 0 -2px 0 var(--line); }

/* ---------- the Worker's own system pages (404, 500: .pg-sys, P0) ---------- */
.rs-sys { text-align: center; }
.rs-sys-fig { margin: 0 auto 6px; max-width: 300px; }
.rs-sys-go { margin: 20px 0 0; }

/* ---------- motion off (spec 2.7): one rule; the flip card swaps faces instead of turning ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv .rs-panel img { opacity: 1 !important; transform: none !important; }   /* motion off: everything fully visible and still */
  .rv .rs-b, .rv .pz { opacity: 1 !important; transform: none !important; }
  .rs-btn:active, .rs-tap:active, .rs-house:active { transform: none; }
  .rs-flip-in, .rs-flip[aria-pressed="true"] .rs-flip-in { transform: none; }
  .rs-back { transform: none; visibility: hidden; }
  .rs-flip[aria-pressed="true"] .rs-back { visibility: visible; }
  .rs-flip[aria-pressed="true"] .rs-face { visibility: hidden; }
}
