/* Desktop Bandar — landing page and live demo */

:root {
  --bg: #FFF6E9;
  --bg-2: #FFEBD2;
  --ink: #3A2416;
  --ink-2: #6B4A33;
  --orange: #F47B20;
  --orange-2: #FF9238;
  --banana: #FFD23F;
  --banana-2: #FFE27A;
  --leaf: #2E7D4F;
  --card: #FFFFFF;
  --on-dark: #EBD9C6;
  --bar: #2A1C12;
  --bar-2: #3D2A1C;
  --radius: 24px;
  --bw: 120px; /* monkey width */
  --tb-h: 58px; /* taskbar height */
  --font-head: 'Fredoka', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
@media (max-width: 640px) {
  :root { --bw: 92px; --tb-h: 60px; }
}
:root[data-size="tiny"] { --bw: 90px; }
@media (max-width: 640px) {
  :root[data-size="tiny"] { --bw: 70px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-bottom: calc(var(--tb-h) + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* The page hides the real pointer and draws its own, so the monkey can steal it. */
.has-fake-cursor, .has-fake-cursor * { cursor: none !important; }

kbd {
  display: inline-block; min-width: 1.8em; padding: 0 .45em;
  font-family: var(--font-head); font-weight: 600; font-size: .85em; line-height: 1.5; text-align: center;
  border: 2px solid currentColor; border-bottom-width: 4px; border-radius: 8px;
}
.js-touch .k-fine, .js-fine .k-touch { display: none; }
.k-touch { font-weight: 800; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .7em 1.3em;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.1;
  color: var(--ink); text-decoration: none;
  background: var(--card);
  border: 2.5px solid var(--ink); border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn svg { width: 1.4em; height: 1.4em; flex: none; }
.btn-primary { background: var(--orange); }
.btn-primary:hover { background: var(--orange-2); }
.btn-lg { font-size: 1.15rem; padding: .85em 1.6em; }
.btn-sm { font-size: .95rem; padding: .5em 1.05em; }
.btn-banana { background: var(--banana); white-space: nowrap; }
.btn-banana:hover { background: var(--banana-2); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 var(--ink); }

/* Button the monkey ran off with (touch demo) */
.btn.is-stolen {
  background: transparent; color: transparent; border-style: dashed; box-shadow: none; transform: none;
  pointer-events: none;
}
.btn.is-stolen > * { visibility: hidden; }
.btn.is-stolen::after {
  content: 'Stolen!'; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--ink-2); font-size: .95rem;
}

/* ---------- Nav ---------- */
body::before {
  content: ''; position: fixed; inset: 0 0 auto; z-index: 51;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
}
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(255, 246, 233, .94);
  backdrop-filter: blur(8px);
  border-bottom: 2.5px solid var(--ink);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; text-decoration: none;
}
.brand-logo { height: 60px; width: auto; display: block; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 700; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 0 clamp(16px, 4vw, 40px) 80px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
}
.thoranam { height: 72px; margin: 0 calc(-1 * clamp(16px, 4vw, 40px)); }
.thoranam svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hero-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding-top: 16px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 800; font-size: .9rem;
}
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); margin: 18px 0 16px; }
.hero h1 .hl { background: linear-gradient(transparent 64%, var(--banana) 64%); padding: 0 .06em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 32em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 14px; }
.fine { font-size: .92rem; color: var(--ink-2); font-weight: 700; }
.hint { display: none; margin-top: 18px; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; color: var(--leaf); }
.js-fine .hint-fine, .js-touch .hint-touch { display: block; }
.hero-art { padding-top: calc(var(--bw) * 1.1); }
.laptop { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 480 / 320; }
.laptop svg { display: block; width: 100%; height: 100%; }
.perch { position: absolute; left: 50%; top: 3.75%; width: 1px; height: 1px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .lede { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .laptop { max-width: 380px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 104px) clamp(16px, 4vw, 40px); }
.container { max-width: 1120px; margin: 0 auto; }
.section-head { text-align: center; max-width: 42em; margin: 0 auto 44px; }
.kicker { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--leaf); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 6px 0 12px; }
.section-head p:not(.kicker) { color: var(--ink-2); font-size: 1.1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-gang { grid-template-columns: repeat(3, minmax(0, 360px)); justify-content: center; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

.card {
  background: var(--card);
  border: 2.5px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--ink);
  padding: 28px;
}
.card h3 { font-size: 1.45rem; margin: 10px 0 8px; }
.card p { color: var(--ink-2); }
.step-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px;
  background: var(--bg-2); border: 2px solid var(--ink); border-radius: 18px;
}
.step-icon svg { width: 40px; height: 40px; }
.step-num {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-family: var(--font-head); font-weight: 600;
}

/* Make him yours (names) */
.yours-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.yours-form { display: grid; gap: 16px; }
.yours-form h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.yours-sub { color: var(--ink-2); }
.field { display: grid; gap: 6px; font-weight: 800; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: 600 1.05rem var(--font-body); color: var(--ink);
  background: var(--bg); border: 2.5px solid var(--ink); border-radius: 14px;
}
.field input:focus, .field select:focus { outline: 3px solid var(--leaf); outline-offset: 2px; }
.has-fake-cursor .field input { caret-color: var(--ink); }
.style-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.style-pick legend { padding: 0; margin-bottom: 6px; font-weight: 800; }
.style-opt { position: relative; display: block; cursor: pointer; }
.style-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.style-opt > span {
  display: grid; gap: 4px; height: 100%; padding: 12px 14px;
  background: var(--card); border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 0 3px 0 var(--ink);
  transition: background-color .2s ease, transform .15s ease;
}
.style-opt input:checked + span { background: var(--banana-2); transform: translateY(-2px); }
.style-opt input:focus-visible + span { outline: 3px solid var(--leaf); outline-offset: 3px; }
.style-opt strong { font-family: var(--font-head); font-weight: 600; }
.style-opt em { font-style: normal; font-size: .9rem; color: var(--ink-2); overflow-wrap: anywhere; }
.name-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.btn-link {
  font: 700 .95rem var(--font-body); color: var(--ink-2);
  background: none; border: 0; padding: 6px 2px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.name-saved { font-weight: 800; color: var(--leaf); }
.yours-preview { display: grid; justify-items: center; gap: 14px; text-align: center; }
.np-monkey svg { width: 180px; height: auto; overflow: visible; display: block; }
.np-bubble {
  position: relative; max-width: 340px; padding: 12px 18px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; line-height: 1.3; overflow-wrap: anywhere;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: 0 4px 0 var(--ink);
}
.np-bubble::after {
  content: ''; position: absolute; left: 50%; top: 100%; width: 14px; height: 14px; background: #fff;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
}
.np-text { max-width: 30em; font-weight: 700; color: var(--ink-2); overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .yours-grid { grid-template-columns: 1fr; }
  .yours-preview { order: -1; }
}
@media (max-width: 480px) { .style-pick { grid-template-columns: 1fr; } }

/* Setup card (first launch in the app, or "Names" in the Tricks menu) */
.name-card { display: grid; gap: 10px; padding: 24px; }
.modal-card.name-card { width: min(680px, 100%); max-height: calc(100vh - 32px); }
.name-card h2 { margin-bottom: 0; }
.nc-names { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .nc-names { grid-template-columns: 1fr; } }
/* Save stays in view even when the card has to scroll on a short screen. */
.name-card .name-actions {
  position: sticky; bottom: -24px; z-index: 1;
  margin: 0 -24px -24px; padding: 12px 24px 20px;
  background: var(--card); border-top: 2px solid var(--line, rgba(58, 36, 22, .12));
}
.nc-preview { display: flex; align-items: center; gap: 14px; }
.nc-preview .np-monkey svg { width: 64px; }
.nc-preview .np-bubble { font-size: 1rem; }
.nc-preview .np-bubble::after { left: 0; top: 50%; transform: translate(-50%, -50%) rotate(135deg); }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--leaf); flex: none; }
html:not(.is-app) .app-only { display: none; }

/* Chaos levels */
.levels { background: var(--ink); color: var(--bg); }
.levels .kicker { color: var(--banana); }
.levels .section-head p:not(.kicker) { color: var(--on-dark); }
.level-card { display: flex; flex-direction: column; gap: 4px; color: var(--ink); transition: transform .2s ease, background-color .2s ease; }
.level-card h3 { margin-top: 12px; }
.level-card > p:last-of-type { margin-bottom: 18px; }
.level-card .btn { margin-top: auto; align-self: flex-start; }
.level-card.is-active { background: var(--banana-2); } /* colour only: no lift, so the buttons stay level */
.level-card.is-active .btn { background: var(--ink); color: var(--bg); }
.meter { display: flex; gap: 6px; }
.nana {
  width: 34px; height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M31 11 L33.5 5.5' stroke='%236B4A12' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M6 30 C14 35 29 30 34 14 C35 10.5 32.5 9 30.8 11.2 C26 22 18 26 8 25 C4 25 2.8 28.4 6 30 Z' fill='%23FFD23F' stroke='%238A5A12' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nana.off { opacity: .22; filter: grayscale(1); }
.nap-tip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px;
  max-width: 760px; margin: 44px auto 0; text-align: center; color: var(--on-dark);
}
.nap-tip strong { color: var(--bg); }
.nap-tip .btn[aria-pressed="true"] { background: #D8E6F5; }
.demo-note { margin-top: 16px; text-align: center; font-size: .92rem; color: #CDB8A3; }

/* Catalogue */
.catalogue { background: var(--bg-2); border-block: 2.5px solid var(--ink); }
.cat-grid { columns: 2 380px; column-gap: 24px; }
.cat-card { break-inside: avoid; margin: 0 0 24px; padding: 22px 22px 14px; }
.cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.cat-head h3 { margin: 0; font-size: 1.35rem; }
.cat-count {
  margin-left: auto; font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  padding: 2px 10px; border-radius: 999px; background: var(--bg-2); border: 2px solid var(--ink);
}
.cat-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--banana-2); border: 2px solid var(--ink); }
.cat-icon svg { width: 28px; height: 28px; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 2px dashed #E9D9C4; }
.cat-list li:first-child { border-top: 0; }
.cat-text { min-width: 0; flex: 1; }
.cat-text strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.cat-text span { display: block; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.cat-list .btn { flex: none; min-height: 40px; padding: .4em 1em; font-size: .95rem; }
.tag {
  display: inline-block; padding: 3px 12px;
  font-size: .82rem; font-weight: 800; line-height: 1.4; white-space: nowrap;
  background: var(--bg-2); border: 2px solid var(--ink); border-radius: 999px;
}
.tag-app { background: #E3EEF9; }
.tag-secret { background: #F6E1F0; }

/* Wardrobe */
.wardrobe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.outfit {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 10px 12px;
  font: inherit; color: var(--ink); text-align: center;
  background: var(--card); border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease;
}
.outfit:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--ink); }
.outfit[aria-pressed="true"] { background: var(--banana-2); }
.outfit svg { width: 84px; height: auto; overflow: visible; }
.outfit strong { font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.2; }
.outfit span { font-size: .8rem; color: var(--ink-2); line-height: 1.3; }
.wardrobe-grid-sm { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.wardrobe-grid-sm .outfit { padding: 8px 6px; border-radius: 14px; box-shadow: 0 3px 0 var(--ink); }
.wardrobe-grid-sm .outfit svg { width: 54px; }
.wardrobe-grid-sm .outfit strong { font-size: .82rem; }
.wardrobe-grid-sm .outfit span { display: none; }

/* Gang */
.gang-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
/* Every card in a row ends with its button on the same line, however long the text above it. */
.gang-card > p { margin-bottom: 18px; }
.gang-card .btn { margin-top: auto; }
/* Friends: each name on one line, so their descriptions start level too */
.friend-card h3 { white-space: nowrap; font-size: clamp(1.02rem, 1.45vw, 1.28rem); }
/* His diary */
.diary-card { width: min(600px, 100%); display: grid; gap: 16px; }
.diary-card h2 { margin-bottom: 0; }
.diary-add { display: grid; gap: 12px; padding: 16px; border: 2px dashed #E9D9C4; border-radius: 16px; }
.diary-date { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
.diary-error { margin: 0; color: #B3202E; font-weight: 700; }
.diary-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.diary-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #FFF8EE; border: 2px solid #E9D9C4; border-radius: 14px; }
.diary-list .di-icon { font-size: 1.4rem; flex: none; }
.diary-list .di-text { flex: 1; min-width: 0; display: grid; }
.diary-list .di-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diary-list .di-text small { color: #6B5443; font-weight: 600; }
.diary-list .di-soon { color: #2E7D4F; font-weight: 800; }
.diary-list .di-del { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); background: #FFFFFF; font: 700 1.2rem/1 var(--font-head); cursor: pointer; }
.diary-empty { margin: 0; color: #6B5443; }
.diary-privacy { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; justify-items: start; }
.diary-privacy legend { font-weight: 800; margin-bottom: 6px; }
.friends-head { margin-top: 56px; }
.cat-more-btn { margin: 6px 0 2px; font-weight: 800; }
/* A scrollbar you can actually grab on a long page */
html::-webkit-scrollbar { width: 14px; }
html::-webkit-scrollbar-track { background: #F3E6D3; }
html::-webkit-scrollbar-thumb { min-height: 72px; background: #A0714A; border: 3px solid #F3E6D3; border-radius: 999px; }
html::-webkit-scrollbar-thumb:hover { background: #7B4A27; }
/* The website demo: locked tricks, the seen counter, and what only the desktop can do */
.tag-lock { background: #FFF1C2; }
.btn-lock { background: #FFF1C2; }
.at-chip.is-locked { opacity: .62; border-style: dashed; }
.at-chip.is-locked::before { content: '🔒 '; }
.quick.is-locked { position: relative; opacity: .7; }
.quick.is-locked::after { content: '🔒'; position: absolute; top: 2px; right: 4px; font-size: 11px; }
.seen-count { font-weight: 800; color: #2E7D4F; margin: 12px 0 0; }
.seen-count:empty { display: none; }
.do-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.do-grid li { display: grid; gap: 4px; align-content: start; padding: 18px; }
.do-grid li > span { font-size: 1.8rem; }
.do-grid small { color: #6B5443; font-size: .92rem; line-height: 1.45; }
.desktop-only .seen-count { text-align: center; margin-top: 20px; }
.do-cta { text-align: center; margin: 16px 0 0; }
@media (max-width: 1000px) { .do-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .do-grid { grid-template-columns: minmax(0, 1fr); } }
.friends-head h3 { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 8px; }
.grid-friends { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 260px)); justify-content: center; }
.p-friend svg { width: 100%; height: 100%; overflow: visible; }
.p-friend svg g { transform-box: view-box; }
@media (max-width: 1100px) { .grid-friends { grid-template-columns: repeat(2, minmax(0, 300px)); } }
@media (max-width: 560px) { .grid-friends { grid-template-columns: minmax(0, 1fr); } }
.portrait {
  display: grid; place-items: center; width: 132px; height: 132px; margin: 0 auto 8px;
  border: 2.5px solid var(--ink); border-radius: 50%;
}
.portrait svg { width: 108px; height: 108px; }
.p-dog { background: #FFE0B8; }
.p-cow { background: #DCEFD9; }
.p-crow { background: #D8E6F5; }
.p-cow { background: #DDF1D5; }
.p-cow svg { width: 82%; height: auto; }

/* Promise */
.promise { background: var(--leaf); color: #FFFFFF; }
.promise .kicker { color: var(--banana); }
.promise .section-head p:not(.kicker) { color: #DDF0E3; }
.promise-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise-grid li { display: flex; flex-direction: column; gap: 4px; padding: 22px; color: var(--ink-2); font-size: .98rem; }
.promise-grid strong { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.p-icon {
  width: 38px; height: 38px; margin-bottom: 6px; border-radius: 12px; background: #DCEFD9; border: 2px solid var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 L19 6 V11 C19 15.5 16 19 12 21 C8 19 5 15.5 5 11 V6 Z' fill='none' stroke='%232E7D4F' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M9 12 L11.2 14.2 L15.5 9.6' fill='none' stroke='%232E7D4F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 26px; background-position: center; background-repeat: no-repeat;
}
@media (max-width: 900px) { .promise-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .promise-grid { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { background: var(--bg-2); border-block: 2.5px solid var(--ink); }
.price-card { position: relative; max-width: 560px; margin: 0 auto; padding: clamp(28px, 5vw, 44px); text-align: center; }
.price-card h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.sticker {
  position: absolute; top: -18px; right: -8px; transform: rotate(7deg);
  padding: 6px 12px;
  font-family: var(--font-head); font-weight: 600;
  background: var(--banana); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink);
}
.price { font-family: var(--font-head); font-weight: 700; font-size: clamp(3.4rem, 9vw, 4.6rem); line-height: 1; margin: 14px 0 6px; }
.price-sub { color: var(--ink-2); font-weight: 700; }
.features { list-style: none; display: grid; gap: 12px; max-width: 360px; margin: 26px auto 30px; padding: 0; text-align: left; }
.features li { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.features svg { flex: none; width: 26px; height: 26px; padding: 3px; color: var(--leaf); background: #DCEFD9; border-radius: 50%; }
.price-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.price-actions .btn { width: min(100%, 340px); }
.extra-note { font-size: .92rem; color: var(--ink-2); }
.buy-note { margin-top: 18px; font-weight: 800; color: var(--leaf); }
.later { margin-top: 18px; font-size: .92rem; color: var(--ink-2); }

/* FAQ */
.faq { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); }
.faq summary {
  position: relative; list-style: none; padding: 18px 56px 18px 22px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.7rem; line-height: 1; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); }

/* Final CTA */
.final { background: var(--orange); text-align: center; border-bottom: 2.5px solid var(--ink); }
.final h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.final p { margin: 10px 0 28px; font-size: 1.15rem; font-weight: 700; }
.final .btn-primary { background: var(--card); }
.final .btn-primary:hover { background: var(--banana-2); }

footer { padding: 40px 20px 60px; text-align: center; color: var(--ink-2); font-weight: 600; }
.foot-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.foot-small { margin-top: 6px; font-size: .9rem; }
.foot-brand sup { font-size: .55em; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 14px 0 6px; }
.foot-links a { color: var(--ink-2); }
.legal-dlg { max-width: 560px; width: calc(100% - 32px); border: 0; border-radius: 18px; padding: 28px 26px 22px; color: var(--ink); background: #FFF8EE; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.legal-dlg::backdrop { background: rgba(30, 18, 10, .45); }
.legal-dlg h2 { margin: 0 0 12px; font-family: var(--font-head); }
.legal-dlg p { margin: 0 0 10px; line-height: 1.55; }
.legal-x { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 1.6rem; cursor: pointer; color: var(--ink-2); }

/* ---------- Taskbar ---------- */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 945;
  display: flex; align-items: center; gap: 10px;
  height: calc(var(--tb-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 max(12px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(12px, env(safe-area-inset-left, 0px));
  color: var(--bg);
  background: rgba(42, 28, 18, .96);
  border-top: 2.5px solid var(--ink);
  box-shadow: 0 -6px 18px rgba(58, 36, 22, .18);
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
}
.tb-group { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tb-mid { margin-inline: auto; }
.tb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding: 0 8px;
  font: inherit; color: var(--bg);
  background: transparent; border: 0; border-radius: 12px; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.tb-btn:hover { background: var(--bar-2); }
.tb-btn:active { transform: scale(.94); }
.tb-btn svg { width: 28px; height: 28px; }
.tb-btn[aria-expanded="true"], .tb-btn[aria-pressed="true"] { background: #5A3E2A; }
.tb-start svg { width: 32px; height: 32px; }
.tb-glyph { font-family: 'Nirmala UI', 'Latha', var(--font-head); font-size: 1.3rem; line-height: 1; color: var(--banana); }
#tbSound .snd-on { display: none; }
#tbSound[aria-pressed="true"] .snd-on { display: inline; }
#tbSound[aria-pressed="true"] .snd-off { display: none; }
.tb-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--bar-2); }
.tb-seg button {
  min-height: 36px; padding: 0 12px;
  font: inherit; color: var(--on-dark);
  background: transparent; border: 0; border-radius: 9px; cursor: pointer;
}
.tb-seg button:hover { color: var(--bg); }
.tb-seg button[aria-pressed="true"] { background: var(--banana); color: var(--ink); }
.tb-cycle { display: none; padding: 0 12px; background: var(--banana); color: var(--ink); }
.tb-meter, .tb-cycle-short { display: none; } /* used by the desktop app's side strip */
.tb-cycle:hover { background: var(--banana-2); }
.tb-tray { gap: 14px; font-size: .85rem; color: var(--on-dark); white-space: nowrap; }
.tb-stats b { color: var(--banana); }
.tb-battery svg { width: 30px; height: 16px; display: block; }
.tb-battery-bolt { display: none; }
.tb-battery.low .tb-battery-fill { width: 3px; fill: #FF6B5B; animation: blink .6s steps(1) infinite; }
.tb-battery.charging .tb-battery-fill { fill: #7CD992; }
.tb-battery.charging .tb-battery-bolt { display: inline; }
.tb-clock { font-variant-numeric: tabular-nums; color: var(--bg); }
.tb-focus { padding: 4px 10px; border-radius: 999px; background: var(--leaf); color: #fff; font-variant-numeric: tabular-nums; }
.tb-wins { display: flex; gap: 4px; }
.tb-win {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; max-width: 150px; padding: 0 10px;
  font: inherit; font-size: .8rem; color: var(--bg);
  background: var(--bar-2); border: 0; border-bottom: 3px solid var(--banana); border-radius: 10px; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@keyframes blink { 50% { opacity: .2; } }

@media (max-width: 1080px) { .tb-stats { display: none; } }
@media (max-width: 860px) {
  .tb-seg, .tb-label { display: none; }
  .tb-cycle { display: inline-flex; }
}
@media (max-width: 560px) {
  .tb-lang, .tb-nap, .tb-battery, .tb-wins { display: none; }
  .taskbar { gap: 4px; }
  .tb-tray { gap: 8px; }
}

/* Popovers above the taskbar */
.pop {
  position: fixed; z-index: 947;
  bottom: calc(var(--tb-h) + env(safe-area-inset-bottom, 0px) + 10px);
  left: max(12px, env(safe-area-inset-left, 0px));
  width: min(420px, calc(100vw - 24px)); max-height: min(70vh, 560px); overflow: auto;
  padding: 16px;
  background: var(--card); border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink);
}
.pop-title { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; margin-bottom: 10px; }
.pop-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pop-wardrobe { width: min(520px, calc(100vw - 24px)); }
.pop-hide { width: min(360px, calc(100vw - 24px)); }
.pop-note { color: var(--ink-2); font-size: .9rem; margin-bottom: 2px; }
.pop-water {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding-top: 12px; border-top: 2px dashed rgba(58, 36, 22, .15); font-weight: 800;
}
.pop-water select {
  min-height: 38px; padding: 4px 10px;
  font: 700 .9rem var(--font-body); color: var(--ink);
  background: var(--bg); border: 2px solid var(--ink); border-radius: 10px;
}
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.quick {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px;
  font: inherit; font-size: .82rem; font-weight: 700; color: var(--ink);
  background: var(--bg); border: 2px solid var(--ink); border-radius: 14px; cursor: pointer;
}
.quick:hover { background: var(--banana-2); }
.quick svg { width: 30px; height: 30px; }
.lang-list { display: grid; gap: 6px; }
.lang-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px;
  font: inherit; font-weight: 700; color: var(--ink); text-align: left;
  background: var(--bg); border: 2px solid var(--ink); border-radius: 12px; cursor: pointer;
}
.lang-opt[aria-checked="true"] { background: var(--banana-2); }
.lang-opt small { font-weight: 600; color: var(--ink-2); }
.nm-lang-pick { margin: 0; padding: 0; border: 0; min-width: 0; }
.nm-lang-pick legend { padding: 0; margin-bottom: 6px; font-weight: 800; }
.nm-langs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nm-langs .lang-opt[data-lang="mix"] { grid-column: 1 / -1; }
@media (max-width: 480px) { .nm-langs { grid-template-columns: minmax(0, 1fr); } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 990; display: grid; place-items: center; padding: 16px; background: rgba(42, 28, 18, .55); }
.modal-card { position: relative; width: min(560px, 100%); max-height: 90vh; overflow: auto; }
.modal-card h2 { font-size: 1.6rem; margin-bottom: 12px; padding-right: 40px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  font: 600 1.6rem/1 var(--font-head); color: var(--ink);
  background: var(--bg); border: 2px solid var(--ink); border-radius: 50%; cursor: pointer;
}
.modal-body img { display: block; width: 100%; height: auto; border-radius: 14px; border: 2px solid var(--ink); }
.modal-body p { margin-top: 12px; color: var(--ink-2); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; z-index: 980;
  bottom: calc(var(--tb-h) + env(safe-area-inset-bottom, 0px) + 14px);
  display: flex; align-items: center; gap: 16px;
  width: max-content; max-width: calc(100vw - 24px);
  padding: 12px 12px 12px 20px;
  color: var(--bg); background: var(--ink);
  border-radius: 20px; box-shadow: 0 6px 0 rgba(58, 36, 22, .3);
  transform: translate(-50%, calc(100% + 120px));
  visibility: hidden;
  transition: transform .35s cubic-bezier(.2, 1.3, .4, 1), visibility 0s linear .35s;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .35s cubic-bezier(.2, 1.3, .4, 1), visibility 0s; }
.toast-text { display: grid; line-height: 1.3; min-width: 0; }
.toast-text strong { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.toast-text span { font-size: .92rem; color: var(--on-dark); }
.toast .btn { border-color: var(--bg); box-shadow: 0 4px 0 #140B05; }
.toast.no-btn .btn { display: none; }
.toast.no-icon .btn svg, .toast.no-icon .btn kbd { display: none; } /* the Space hint is only for the banana button */
.toast-bar { display: block; height: 8px; margin-top: 6px; border-radius: 99px; background: #5A3E2A; overflow: hidden; }
.toast-bar span { display: block; height: 100%; width: 0; background: var(--banana); }
@media (max-width: 520px) {
  .toast { flex-direction: column; align-items: stretch; width: calc(100vw - 24px); text-align: center; padding: 14px; gap: 12px; }
}

/* ---------- Game ---------- */
.game { position: fixed; inset: 0; z-index: 958; }
.game-board {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + 74px); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 20px; border-radius: 18px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; white-space: nowrap;
}
.game-board span { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.game-hint {
  position: fixed; left: 50%; transform: translateX(-50%);
  top: calc(env(safe-area-inset-top, 0px) + 140px);
  width: max-content; max-width: calc(100vw - 32px); padding: 6px 14px; border-radius: 12px;
  background: rgba(255, 246, 233, .92); border: 2px solid var(--ink);
  font-family: var(--font-head); font-weight: 600; text-align: center;
}
.g-ball, .g-stumps, .g-bat, .g-fall { position: fixed; left: 0; top: 0; pointer-events: none; will-change: transform; }
.g-ball { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #E85A4F, #A8221A); border: 2px solid #5A1410; }
.g-stumps svg, .g-bat svg, .g-fall svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* ---------- Demo layers ---------- */
.shield { position: fixed; inset: 0; z-index: 900; display: none; }
.shield.on { display: block; }
.fx-canvas { position: fixed; inset: 0; z-index: 935; width: 100%; height: 100%; pointer-events: none; }
.fx-layer { position: fixed; inset: 0; z-index: 936; pointer-events: none; }
.fx-layer > * { position: fixed; }
.fx-click { pointer-events: auto; cursor: pointer; }
.night {
  position: fixed; inset: 0; z-index: 949; pointer-events: none; opacity: 0;
  background: radial-gradient(circle 150px at var(--lx, 50%) var(--ly, 50%), rgba(10, 8, 24, 0) 0, rgba(10, 8, 24, 0) 110px, rgba(10, 8, 24, .9) 170px);
  transition: opacity .6s ease;
}
.night.on { opacity: 1; }
.wins { position: fixed; inset: 0; z-index: 940; pointer-events: none; }

/* Fake windows */
.fw {
  position: fixed; left: 0; top: 0; pointer-events: auto;
  width: 300px; max-width: calc(100vw - 24px);
  background: var(--card); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 0 8px 0 rgba(58, 36, 22, .25);
  overflow: hidden;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1), opacity .45s ease;
}
.fw.is-peek { z-index: 2; }
.fw-bar {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 12px;
  background: var(--leaf); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  cursor: grab; user-select: none; touch-action: none;
}
.fw-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-bar button {
  width: 30px; height: 30px; font: 600 1.1rem/1 var(--font-head); color: #fff;
  background: rgba(255, 255, 255, .16); border: 0; border-radius: 8px; cursor: pointer;
}
.fw-bar button:hover { background: rgba(255, 255, 255, .3); }
.fw-body { padding: 14px 16px 16px; font-size: .95rem; line-height: 1.5; white-space: pre-line; color: var(--ink); }
.fw-call .fw-bar { background: #2B2F36; }
.fw-call .fw-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; white-space: normal; background: #1E2127; }
.fw-call .fw-body span { aspect-ratio: 4 / 3; border-radius: 8px; background: #3A3F47; display: grid; place-items: center; color: #C9D1DA; font-weight: 700; }
.fw.shake { animation: shake .12s linear 6; }
@keyframes shake { 25% { translate: -6px 0; } 75% { translate: 6px 0; } }

/* Hide-and-seek: the card he hides behind sits above him */
.hs-card { position: relative; z-index: 955; }

/* ---------- The monkey ---------- */
.bandar {
  position: fixed; left: 0; top: 0; z-index: 950;
  width: var(--bw);
  pointer-events: none;
  will-change: transform;
}
.bandar.behind { z-index: 939; }
.bandar.can-grab .bandar-svg { pointer-events: auto; cursor: grab; touch-action: none; }
.bandar-flip { transform-origin: 50% 100%; transition: transform .12s ease; }
.bandar.spinning .bandar-flip { transform-origin: 50% 58%; transition: none; }
.bandar-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 4px 0 rgba(58, 36, 22, .18)); pointer-events: none; }

.bandar-bubble, .critter-bubble {
  position: absolute; left: 50%; bottom: calc(100% + 4px);
  width: max-content; max-width: 240px; padding: 6px 12px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.25; text-align: center;
  color: var(--ink); background: #fff;
  border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 0 3px 0 var(--ink);
  opacity: 0;
  transform: translateX(calc(-50% + var(--bx, 0px))) scale(.6);
  transform-origin: 50% 100%;
  transition: opacity .15s ease, transform .2s cubic-bezier(.3, 1.5, .5, 1);
  pointer-events: none;
}
.bandar-bubble.show, .critter-bubble.show { opacity: 1; transform: translateX(calc(-50% + var(--bx, 0px))) scale(1); }
.bandar-bubble::after, .critter-bubble::after {
  content: ''; position: absolute; top: 100%; left: calc(50% - var(--bx, 0px));
  width: 12px; height: 12px; background: #fff;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
}
.bandar-bubble.below { bottom: auto; top: calc(100% + 8px); transform-origin: 50% 0; }
.bandar-bubble.below::after { top: 0; transform: translate(-50%, -50%) rotate(225deg); }
.bandar-bubble.high { bottom: calc(100% + 34px); }
/* On its own layer above everything he can stand in; js places it (translate) over his head. */
.bandar-bubble.is-free, .bandar-bubble.is-free.below, .bandar-bubble.is-free.high { position: fixed; left: 0; top: 0; bottom: auto; z-index: 966; }

.b-fur { fill: #7B4A27; }
.b-skin { fill: #F1CFA6; }
.b-skin2 { fill: #E3B486; }
.b-limb { fill: none; stroke: #6A3F1F; stroke-width: 14; stroke-linecap: round; }
.b-tail path { fill: none; stroke: #6A3F1F; stroke-width: 9; stroke-linecap: round; }
.b-scarf { fill: #F2802A; }
.b-scarf2 { fill: #D9651A; }
.b-eye ellipse { fill: #2A170C; }
.b-glint { fill: #fff; }
.b-eyes-happy path { fill: none; stroke: #2A170C; stroke-width: 4; stroke-linecap: round; }
.b-brow { fill: none; stroke: #4A2A13; stroke-width: 3.5; stroke-linecap: round; }
.b-nostril { fill: #5A341A; }
.b-mouth { fill: none; stroke: #5A341A; stroke-width: 3; stroke-linecap: round; }
.b-mouth-o { fill: #5A1E1E; }
.b-mouth-open ellipse:first-child { fill: #5A1E1E; }
.b-tongue, .b-tongue-out { fill: #E9737A; }
.b-cheek { fill: #F2897A; opacity: .45; }
.p-stars path { fill: #FFD23F; stroke: #E0A800; stroke-width: 1.5; }
[data-outfit="monsoon"] .b-foot { fill: #E0A800; }

/* Rotation pivots are in the SVG's own units */
.bandar-svg g { transform-box: view-box; }
/* When he faces left the whole drawing is mirrored; mirror the words back. */
.bandar-svg text { transform-box: fill-box; transform-origin: center; transform: scaleX(var(--face, 1)); }
.b-tail { transform-origin: 130px 196px; animation: tail 2.6s ease-in-out infinite; }
/* Resting between acts: a gentler, stepped wag that costs almost nothing to draw. */
.bandar-resting.bandar-svg .b-tail, .bandar-svg.bandar-resting .b-tail { animation-timing-function: steps(13, jump-none); } /* ~10 small steps a second: a gentle wag that doesn't redraw the screen 60 times a second */
.b-head { transform-origin: 100px 124px; transition: transform .3s ease; }
.b-torso { transform-origin: 100px 214px; transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.b-arm-l { transform-origin: 68px 140px; transition: transform .28s cubic-bezier(.3, 1.4, .5, 1); }
.b-arm-r { transform-origin: 132px 140px; transition: transform .28s cubic-bezier(.3, 1.4, .5, 1); }
.b-held { transform-origin: 147px 183px; transition: transform .28s cubic-bezier(.3, 1.4, .5, 1); }
.b-held-banana { transform-origin: 53px 183px; transition: transform .28s ease; }
.b-eyes { transition: transform .12s linear; }
.bandar-svg .b-eye { transform-box: fill-box; transform-origin: center; animation: blink-eye 4.2s infinite; }
.b-brow { transform-box: fill-box; transform-origin: center; transition: transform .2s ease; }
.p-stars { transform-origin: 100px 26px; }
.p-sign { transform-origin: 100px 110px; }
.p-notes { transform-origin: 140px 90px; }

/* Things that are hidden until a pose or outfit asks for them */
.of, .h, .b-ban-full, .b-ban-half, .b-ban-peel,
.b-eyes-happy, .b-mouth-frown, .b-mouth-o, .b-tongue-out,
.p-sign, .p-paper, .p-leaf, .p-juggle, .p-notes, .p-stars, .p-partyhat { display: none; }
.b-mouth-open { opacity: 0; transition: opacity .1s; }

[data-outfit="classic"] .of-classic, [data-outfit="chennai"] .of-chennai, [data-outfit="office"] .of-office,
[data-outfit="cricket"] .of-cricket, [data-outfit="mundu"] .of-mundu, [data-outfit="kurta"] .of-kurta,
[data-outfit="auto"] .of-auto, [data-outfit="chef"] .of-chef, [data-outfit="santa"] .of-santa,
[data-outfit="super"] .of-super, [data-outfit="gully"] .of-gully, [data-outfit="wedding"] .of-wedding,
[data-outfit="doctor"] .of-doctor, [data-outfit="moon"] .of-moon, [data-outfit="monsoon"] .of-monsoon { display: inline; }

[data-held="cursor"] .h-cursor, [data-held="pill"] .h-pill, [data-held="phone"] .h-phone,
[data-held="chai"] .h-chai, [data-held="torch"] .h-torch, [data-held="sparkler"] .h-sparkler,
[data-held="bat"] .h-bat, [data-held="glass"] .h-glass, [data-held="charger"] .h-charger,
[data-held="color"] .h-color, [data-held="marker"] .h-marker, [data-held="banana"] .h-banana,
[data-held="dumbbell"] .h-dumbbell, [data-held="rod"] .h-rod, [data-held="wand"] .h-wand, [data-held="oar"] .h-oar,
[data-banana="full"] .b-ban-full, [data-banana="half"] .b-ban-half, [data-banana="peel"] .b-ban-peel { display: inline; }

[data-belly="1"] .b-torso { transform: scale(1.08, 1.03); }
[data-belly="2"] .b-torso { transform: scale(1.16, 1.06); }
[data-belly="3"] .b-torso { transform: scale(1.25, 1.09); }

@keyframes tail { 50% { transform: rotate(-10deg); } }
@keyframes blink-eye { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes swingL { from { transform: rotate(26deg); } to { transform: rotate(-20deg); } }
@keyframes swingR { from { transform: rotate(-26deg); } to { transform: rotate(20deg); } }
@keyframes walkL { from { transform: rotate(12deg); } to { transform: rotate(-10deg); } }
@keyframes walkR { from { transform: rotate(-12deg); } to { transform: rotate(10deg); } }
@keyframes scratch { from { transform: rotate(142deg); } to { transform: rotate(158deg); } }
@keyframes scratchBelly { from { transform: rotate(38deg); } to { transform: rotate(52deg); } }
@keyframes chomp { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes munch { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes flailL { from { transform: rotate(110deg); } to { transform: rotate(132deg); } }
@keyframes flailR { from { transform: rotate(-110deg); } to { transform: rotate(-132deg); } }
@keyframes danceL { 0%, 100% { transform: rotate(120deg); } 50% { transform: rotate(20deg); } }
@keyframes danceR { 0%, 100% { transform: rotate(-20deg); } 50% { transform: rotate(-120deg); } }
@keyframes danceBob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
@keyframes juggleArmL { from { transform: rotate(18deg); } to { transform: rotate(-6deg); } }
@keyframes juggleArmR { from { transform: rotate(6deg); } to { transform: rotate(-18deg); } }
@keyframes juggle {
  0% { transform: translate(147px, 168px) rotate(0); }
  25% { transform: translate(156px, 40px) rotate(120deg); }
  45% { transform: translate(100px, -6px) rotate(220deg); }
  65% { transform: translate(44px, 40px) rotate(300deg); }
  85% { transform: translate(53px, 168px) rotate(400deg); }
  100% { transform: translate(147px, 168px) rotate(480deg); }
}
@keyframes readEyes { 0%, 100% { transform: translate(-3px, 3px); } 50% { transform: translate(3px, 3px); } }
@keyframes sip { 0%, 30%, 100% { transform: rotate(-105deg); } 45%, 80% { transform: rotate(-178deg); } }
@keyframes sipHeld { 0%, 30%, 100% { transform: rotate(105deg); } 45%, 80% { transform: rotate(178deg); } }
@keyframes stars { to { transform: rotate(360deg); } }
@keyframes notes { from { transform: translateY(6px); opacity: 0; } 40% { opacity: 1; } to { transform: translateY(-14px); opacity: 0; } }
@keyframes sparks { 0% { transform: scale(.7) rotate(0); opacity: .7; } 50% { transform: scale(1.15) rotate(20deg); opacity: 1; } 100% { transform: scale(.7) rotate(40deg); opacity: .7; } }
@keyframes steam { 0% { opacity: .2; transform: translateY(4px); } 50% { opacity: .9; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes throwR { 0% { transform: rotate(-160deg); } 60% { transform: rotate(30deg); } 100% { transform: rotate(0); } }
@keyframes shakeFist { from { transform: rotate(-100deg); } to { transform: rotate(-125deg); } }
@keyframes stomp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes draw { from { transform: rotate(-60deg); } to { transform: rotate(-84deg); } }
@keyframes wave { from { transform: rotate(-112deg); } to { transform: rotate(-140deg); } }
@keyframes cheerL { from { transform: rotate(110deg); } to { transform: rotate(140deg); } }
@keyframes cheerR { from { transform: rotate(-140deg); } to { transform: rotate(-110deg); } }

.is-running .b-arm-l { animation: swingL .22s ease-in-out infinite alternate; }
.is-running:not(.is-holding) .b-arm-r { animation: swingR .22s ease-in-out infinite alternate; }
/* Running for his life: arms and feet pumping, fast. */
.is-sprinting .b-arm-l { animation: swingL .15s ease-in-out infinite alternate; }
.is-sprinting:not(.is-holding) .b-arm-r { animation: swingR .15s ease-in-out infinite alternate; }
.is-sprinting .b-foot { animation: tiptoe .15s ease-in-out infinite alternate; }
.is-sprinting .b-foot + .b-foot { animation-delay: -.15s; }
.is-walking .b-arm-l { animation: walkL .3s ease-in-out infinite alternate; }
.is-walking:not(.is-holding) .b-arm-r { animation: walkR .3s ease-in-out infinite alternate; }
.is-sneaking .b-arm-l { transform: rotate(40deg); }
.is-sneaking:not(.is-holding) .b-arm-r { transform: rotate(-40deg); }
.is-holding .b-arm-r { transform: rotate(-105deg); }
.is-holding .b-held { transform: rotate(105deg); }
.is-eating .b-arm-l { animation: none; transform: rotate(175deg); }
.is-eating .b-held-banana { transform: rotate(-175deg); }
.is-eating .b-mouth-open { animation: chomp .3s steps(1) infinite; }
.is-eating .b-head { animation: munch .3s ease-in-out infinite alternate; }
.is-scratching .b-arm-l { animation: scratch .2s ease-in-out infinite alternate; }
.is-scheming .b-brow-l { transform: translateY(3px) rotate(16deg); }
.is-scheming .b-brow-r { transform: translateY(3px) rotate(-16deg); }
.is-scheming .b-eye { animation: none; transform: scaleY(.7); }
.is-laughing .b-mouth-open { opacity: 1; }
.is-laughing .b-mouth-smirk { display: none; }
.is-sleeping .b-eye { animation: none; transform: scaleY(.12); }
.is-sleeping .b-head { transform: rotate(9deg) translateY(4px); }
.is-sleeping .b-tail { animation-duration: 7s; }

.is-happy .b-eyes { display: none; }
.is-happy .b-eyes-happy { display: inline; }
.is-happy .b-mouth-open { opacity: 1; }
.is-happy .b-mouth-smirk { display: none; }
.is-sad .b-mouth-smirk, .is-angry .b-mouth-smirk { display: none; }
.is-sad .b-mouth-frown, .is-angry .b-mouth-frown { display: inline; }
.is-sad .b-brow-l { transform: translateY(-2px) rotate(-14deg); }
.is-sad .b-brow-r { transform: translateY(-2px) rotate(14deg); }
.is-sad .b-head { transform: rotate(-6deg) translateY(5px); }
.is-angry .b-brow-l { transform: translateY(4px) rotate(20deg); }
.is-angry .b-brow-r { transform: translateY(4px) rotate(-20deg); }
.is-angry .b-cheek { opacity: .9; fill: #E8453C; }
.is-angry .b-arm-r { animation: shakeFist .12s linear infinite alternate; }
.is-whistle .b-mouth-smirk, .is-startled .b-mouth-smirk, .is-yawn .b-mouth-smirk { display: none; }
.is-whistle .b-mouth-o, .is-startled .b-mouth-o { display: inline; }
.is-whistle .b-eyes { transform: translate(3px, -4px) !important; }
.is-whistle .p-notes { display: inline; }
.is-whistle .p-notes text { animation: notes 1s ease-out infinite; }
.is-whistle .p-notes text + text { animation-delay: .5s; }
.is-startled .b-eye { animation: none; transform: scale(1.3); }
.is-startled .b-arm-l { transform: rotate(120deg); }
.is-startled .b-arm-r { transform: rotate(-120deg); }
.is-startled .b-brow { transform: translateY(-5px); }

.is-yawn .b-arm-l { transform: rotate(120deg); }
.is-yawn .b-arm-r { transform: rotate(-120deg); }
.is-yawn .b-mouth-open { opacity: 1; transform: scale(1, 1.4); transform-origin: 100px 108px; }
.is-yawn .b-eye { animation: none; transform: scaleY(.15); }

.is-dangling .b-arm-l { animation: flailL .15s linear infinite alternate; }
.is-dangling .b-arm-r { animation: flailR .15s linear infinite alternate; }
.is-dangling .b-mouth-smirk { display: none; }
.is-dangling .b-mouth-o { display: inline; }
.is-dangling .b-eye { animation: none; transform: scale(1.2); }
.is-flying .b-arm-l { transform: rotate(120deg); }
.is-flying .b-arm-r { transform: rotate(-120deg); }
.is-flying .b-mouth-open { opacity: 1; }
.is-flying .b-mouth-smirk { display: none; }
.is-dizzy .p-stars { display: inline; animation: stars 1s linear infinite; }
.is-dizzy .b-eye { animation: none; transform: scaleY(.35); }
.is-dizzy .b-head { transform: rotate(-8deg); }

.is-dancing { animation: danceBob .45s ease-in-out infinite; }
.is-dancing .b-arm-l { animation: danceL .9s ease-in-out infinite; }
.is-dancing .b-arm-r { animation: danceR .9s ease-in-out infinite; }
.is-dancing .b-eyes { display: none; }
.is-dancing .b-eyes-happy { display: inline; }
.is-dancing .p-notes { display: inline; }
.is-dancing .p-notes text { animation: notes 1s ease-out infinite; }
.is-dancing .p-notes text + text { animation-delay: .5s; }

.is-juggling .p-juggle { display: inline; }
.is-juggling .p-jb { animation: juggle 1.2s linear infinite; }
.is-juggling .p-jb:nth-child(2) { animation-delay: -.4s; }
.is-juggling .p-jb:nth-child(3) { animation-delay: -.8s; }
.is-juggling .b-arm-l { animation: juggleArmL .2s ease-in-out infinite alternate; }
.is-juggling .b-arm-r { animation: juggleArmR .2s ease-in-out infinite alternate; }
.is-juggling .b-eyes { transform: translateY(-4px) !important; }

.is-reading .p-paper { display: inline; }
.is-reading .b-head { transform: rotate(4deg) translateY(3px); }
.is-reading .b-eyes { animation: readEyes 1.4s ease-in-out infinite; }
.is-reading .b-arm-l { transform: rotate(-8deg); }
.is-reading .b-arm-r { transform: rotate(8deg); }

.is-sign .p-sign { display: inline; }
.is-sign .b-arm-l { transform: rotate(105deg); }
.is-sign .b-arm-r { transform: rotate(-105deg); }

.is-ooh .b-arm-l { animation: scratch .2s ease-in-out infinite alternate; }
.is-ooh .b-arm-r { animation: scratchBelly .18s ease-in-out infinite alternate; }
.is-ooh .b-mouth-smirk { display: none; }
.is-ooh .b-mouth-open { opacity: 1; }

.is-sipping .b-arm-r { animation: sip 1.6s ease-in-out infinite; }
.is-sipping .b-held { animation: sipHeld 1.6s ease-in-out infinite; }
.is-sipping .h-steam { animation: steam 1.4s ease-out infinite; }
.is-selfie .b-eyes { display: none; }
.is-selfie .b-eyes-happy { display: inline; }
.is-selfie .b-tongue-out { display: inline; }
.is-selfie .b-mouth-smirk { display: none; }
.is-selfie .b-mouth-open { opacity: 1; }
.is-sparkle .h-sparks { animation: sparks .25s linear infinite; }

.is-namaste .b-arm-l { transform: rotate(-86deg); }
.is-namaste .b-arm-r { transform: rotate(86deg); }
.is-namaste .b-eye { animation: none; transform: scaleY(.12); }
.is-armsup .b-arm-l { transform: rotate(165deg); }
.is-armsup .b-arm-r { transform: rotate(-165deg); }
.is-bend { transform: rotate(28deg); transform-origin: 50% 100%; transition: transform .4s ease; }
.is-bend .b-arm-l { transform: rotate(-30deg); }
.is-bend .b-arm-r { transform: rotate(30deg); }

.is-throwing .b-arm-r { animation: throwR .45s ease-out 1; }
.is-drawing .b-arm-r { animation: draw .14s linear infinite alternate; }
.is-drawing .b-held { transform: rotate(72deg); }
.is-waving .b-arm-r { animation: wave .25s ease-in-out infinite alternate; }
.is-waving .b-eyes { display: none; }
.is-waving .b-eyes-happy { display: inline; }
/* Petting the cow: a gentle pat, eyes open on her. */
.is-patting .b-arm-r { animation: pat .32s ease-in-out infinite alternate; }
@keyframes pat { from { transform: rotate(-96deg); } to { transform: rotate(-76deg); } }
.is-eyesopen .b-eyes { display: inline !important; }
.is-eyesopen .b-eyes-happy { display: none !important; }
.is-eyesopen .b-eye { transform: none !important; }
.is-cheering .b-arm-l { animation: cheerL .25s ease-in-out infinite alternate; }
.is-cheering .b-arm-r { animation: cheerR .25s ease-in-out infinite alternate; }
.is-stomping { animation: stomp .32s ease-in-out infinite; }
.is-pointing .b-arm-r { transform: rotate(-70deg); }
.is-lunch .p-leaf { display: inline; }
.is-lunch .b-arm-l { animation: sip-l 1s ease-in-out infinite; }
@keyframes sip-l { 0%, 40%, 100% { transform: rotate(0deg); } 60%, 85% { transform: rotate(175deg); } }
.is-lunch .b-mouth-open { animation: chomp .3s steps(1) infinite; }
.is-party .p-partyhat { display: inline; }
.is-raspberry .b-mouth-smirk { display: none; }
.is-raspberry .b-mouth-open, .is-raspberry .b-tongue-out { display: inline; opacity: 1; }
.is-raspberry .b-eye { animation: none; transform: scaleY(.3); }
.is-peeking .b-eyes { transform: translateY(-3px) !important; }

/* ---------- Taskbar antics and moods ---------- */
/* Whole-body poses tilt and squash from his feet, and ease in and out. */
.bandar .bandar-svg { transform-origin: 50% 100%; transition: transform .25s ease; }

/* Sneaking: hunched, hands up, on tiptoe */
.is-creeping { transform: rotate(6deg) scaleY(.94); }
.is-creeping .b-arm-l { animation: creepL .5s ease-in-out infinite alternate; }
.is-creeping:not(.is-holding) .b-arm-r { animation: creepR .5s ease-in-out infinite alternate; }
.is-creeping .b-foot { animation: tiptoe .5s ease-in-out infinite alternate; }
.is-creeping .b-foot + .b-foot { animation-delay: -.25s; }
@keyframes creepL { from { transform: rotate(80deg); } to { transform: rotate(96deg); } }
@keyframes creepR { from { transform: rotate(-96deg); } to { transform: rotate(-80deg); } }
@keyframes tiptoe { from { transform: translateY(0); } to { transform: translateY(-7px); } }
.is-sliding { transform: rotate(-7deg); }
.is-rubhands .b-arm-l { animation: rubL .12s linear infinite alternate; }
.is-rubhands .b-arm-r { animation: rubR .12s linear infinite alternate; }
@keyframes rubL { from { transform: rotate(-36deg); } to { transform: rotate(-46deg); } }
@keyframes rubR { from { transform: rotate(46deg); } to { transform: rotate(36deg); } }
.is-crouch { transform: scale(1.08, .82); }
.is-crouch .b-arm-l { transform: rotate(-20deg); }
.is-crouch .b-arm-r { transform: rotate(20deg); }
.is-reach .b-arm-r { transform: rotate(-170deg); transition-duration: .9s; }
.is-reach .b-eyes { transform: translate(2px, -4px) !important; }

/* Pounce, and what happens when he misses */
.is-pounce { transform: scale(.96, 1.06); }
.is-pounce .b-arm-l { transform: rotate(130deg); }
.is-pounce .b-arm-r { transform: rotate(-130deg); }
.is-pounce .b-mouth-smirk { display: none; }
.is-pounce .b-mouth-open { opacity: 1; }
.is-pounce .b-eye { animation: none; transform: scale(1.25); }
.bandar .bandar-svg.is-faceplant { transform: translateY(-25%) rotate(82deg); transition-duration: .16s; }
.is-faceplant .b-eye { animation: none; transform: scaleY(.15); }
.is-faceplant .b-arm-l { transform: rotate(150deg); }
.is-faceplant .b-arm-r { transform: rotate(-60deg); }
.is-lookhands .b-arm-l { transform: rotate(-50deg); }
.is-lookhands .b-arm-r { transform: rotate(50deg); }
.is-lookhands .b-head { transform: rotate(6deg) translateY(4px); }
.is-lookhands .b-eyes { transform: translateY(3px) !important; }
.is-lookhands .b-brow-l { transform: translateY(-4px) rotate(-10deg); }
.is-lookhands .b-mouth-smirk { display: none; }
.is-lookhands .b-mouth-o { display: inline; }
.is-sitdown { transform: scale(1.05, .88); }
.bandar .bandar-svg.is-flat { transform: translateY(-25%) rotate(-86deg); }
.is-flat .b-arm-l { transform: rotate(60deg); }
.is-flat .b-arm-r { transform: rotate(-30deg); }
.is-flat .b-eye { animation: none; transform: scaleY(.15); }
.is-flat .b-tongue-out { display: inline; }
.b-eyes-x { display: none; }
.b-eyes-x path { fill: none; stroke: #2A170C; stroke-width: 3.5; stroke-linecap: round; }
.is-ko .b-eyes, .is-ko .b-eyes-happy { display: none; }
.is-ko .b-eyes-x { display: inline; }

/* Dizzy: birds circle his head */
.p-birds { display: none; }
.is-birds .p-birds { display: inline; }
.bandar-svg .p-bird { transform-box: fill-box; transform-origin: center; animation: orbit 1.3s linear infinite; }
.bandar-svg .p-bird:nth-child(2) { animation-delay: -.433s; }
.bandar-svg .p-bird:nth-child(3) { animation-delay: -.866s; }
@keyframes orbit {
  0% { transform: translate(-46px, 0) scale(.8); }
  12.5% { transform: translate(-33px, 9px) scale(.92); }
  25% { transform: translate(0, 13px) scale(1.05); }
  37.5% { transform: translate(33px, 9px) scale(.92); }
  50% { transform: translate(46px, 0) scale(.8); }
  62.5% { transform: translate(33px, -9px) scale(.7); }
  75% { transform: translate(0, -12px) scale(.62); }
  87.5% { transform: translate(-33px, -9px) scale(.7); }
  100% { transform: translate(-46px, 0) scale(.8); }
}
.is-wobbly { animation: wobble .7s ease-in-out infinite alternate; }
@keyframes wobble { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }

/* Scared of Moti */
.is-scared .b-arm-l { transform: rotate(150deg); }
.is-scared .b-arm-r { transform: rotate(-150deg); }
.is-scared .b-eye { animation: none; transform: scale(1.35); }
.is-scared .b-brow { transform: translateY(-6px); }
.is-scared .b-mouth-smirk { display: none; }
.is-scared .b-mouth-open { opacity: 1; }
.is-tremble { animation: tremble .07s linear infinite alternate; }
@keyframes tremble { from { transform: translateX(-2%); } to { transform: translateX(2%); } }
.is-lean { transform: rotate(24deg); }

/* Music and exercise */
.is-drumming .b-arm-l { animation: drumL .18s ease-in infinite alternate; }
.is-drumming .b-arm-r { animation: drumR .18s ease-in infinite alternate; animation-delay: -.09s; }
@keyframes drumL { from { transform: rotate(70deg); } to { transform: rotate(-12deg); } }
@keyframes drumR { from { transform: rotate(12deg); } to { transform: rotate(-70deg); } }
.is-drumming .b-head { animation: munch .18s ease-in-out infinite alternate; }
.is-drumming .b-eyes, .is-surf .b-eyes { display: none; }
.is-drumming .b-eyes-happy, .is-surf .b-eyes-happy { display: inline; }
.p-guitar { display: none; }
.is-guitar .p-guitar { display: inline; }
.is-guitar .b-arm-l { transform: rotate(60deg); }
.is-guitar .b-arm-r { animation: strum .16s ease-in-out infinite alternate; }
@keyframes strum { from { transform: rotate(12deg); } to { transform: rotate(28deg); } }
.is-guitar .b-head { animation: headbang .32s ease-in-out infinite alternate; }
@keyframes headbang { from { transform: rotate(-10deg); } to { transform: rotate(10deg) translateY(3px); } }
.is-guitar .b-eye { animation: none; transform: scaleY(.15); }
.is-guitar .b-mouth-smirk, .is-surf .b-mouth-smirk, .is-gum .b-mouth-smirk { display: none; }
.is-guitar .b-mouth-open, .is-surf .b-mouth-open { opacity: 1; }
.is-squat { animation: squat .9s ease-in-out infinite; }
@keyframes squat { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.08, .78); } }
.is-squat .b-arm-l { transform: rotate(88deg); }
.is-squat .b-arm-r { transform: rotate(-88deg); }
.is-curl .b-arm-r { animation: curl .8s ease-in-out infinite; }
.is-curl .b-held { animation: curlHeld .8s ease-in-out infinite; }
@keyframes curl { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(-150deg); } }
@keyframes curlHeld { 0%, 100% { transform: rotate(10deg); } 50% { transform: rotate(150deg); } }
.is-strain .b-cheek { opacity: .9; fill: #E8453C; }
.is-strain .b-eye { animation: none; transform: scaleY(.2); }
.is-strain .b-arm-r, .is-strain .b-held { animation-duration: .2s; }
.bandar .bandar-svg.is-headstand { animation: headstand 1s ease-in-out infinite alternate; transform-origin: 50% 50%; }
@keyframes headstand { from { transform: translateY(11%) rotate(176deg); } to { transform: translateY(11%) rotate(184deg); } }
.is-headstand .b-arm-l { transform: rotate(150deg); }
.is-headstand .b-arm-r { transform: rotate(-150deg); }
.is-boxing { animation: hop-in-place .3s ease-in-out infinite alternate; }
@keyframes hop-in-place { from { transform: translateY(0); } to { transform: translateY(-4%); } }
.is-boxing .b-arm-l { animation: jabL .6s ease-in-out infinite; }
.is-boxing .b-arm-r { animation: jabR .6s ease-in-out infinite; animation-delay: -.3s; }
@keyframes jabL { 0%, 45%, 100% { transform: rotate(140deg); } 20% { transform: rotate(88deg); } }
@keyframes jabR { 0%, 45%, 100% { transform: rotate(-140deg); } 20% { transform: rotate(-88deg); } }
.is-boxing .b-brow-l { transform: translateY(4px) rotate(18deg); }
.is-boxing .b-brow-r { transform: translateY(4px) rotate(-18deg); }
.is-meditate .b-arm-l { transform: rotate(38deg); }
.is-meditate .b-arm-r { transform: rotate(-38deg); }
.is-meditate .b-eye { animation: none; transform: scaleY(.12); }

/* Little moments */
.is-sniff .b-head { transform: rotate(-12deg) translateY(-3px); }
.is-sniff .b-eye { animation: none; transform: scaleY(.4); }
.is-sniff .b-mouth-smirk { display: none; }
.is-sniff .b-mouth-o { display: inline; }
.p-gum, .p-gumsplat { display: none; fill: #F48FB1; stroke: #D9658F; stroke-width: 1.5; }
.bandar-svg .p-gum { transform-box: fill-box; transform-origin: 50% 40%; opacity: .92; }
.is-gum .p-gum { display: inline; animation: gum 2.3s ease-in forwards; }
@keyframes gum { from { transform: scale(.15); } to { transform: scale(2.3); } }
.is-gum .b-eye { animation: none; transform: translateY(2px) scale(.9); }
.is-gumpop .p-gumsplat { display: inline; }
.is-phoneear .b-arm-r { transform: rotate(-150deg); }
.is-phoneear .b-held { transform: rotate(150deg); }
.is-phoneear .b-eyes { transform: translate(3px, 0) !important; }
.is-zombie .b-arm-l { animation: none; transform: rotate(100deg); }
.is-zombie .b-arm-r { animation: none; transform: rotate(-100deg); }
.is-stare .b-eye { animation: none; transform: scale(1.45); }
.is-stare .b-brow { transform: translateY(-5px); }
.is-stare .b-mouth-smirk { display: none; }
.is-stare .b-mouth-o { display: inline; }
.bandar .bandar-svg.is-closeup { transform: scale(1.9); transition: transform 2.4s ease-in; }
.is-closeup .b-arm-r { transform: rotate(-120deg); }
.bandar .bandar-svg.is-rofl { animation: rofl .35s ease-in-out infinite alternate; }
@keyframes rofl { from { transform: translateY(-25%) rotate(-78deg); } to { transform: translateY(-25%) rotate(-98deg); } }
.is-rofl .b-arm-l { animation: cheerL .2s ease-in-out infinite alternate; }
.is-rofl .b-arm-r { animation: cheerR .2s ease-in-out infinite alternate; }
.is-fishing .b-arm-r { transform: rotate(-30deg); }
.is-fishing .b-held { transform: rotate(30deg); }
.is-fishing .h-bobber { animation: bob 1s ease-in-out infinite alternate; }
.is-fishing .b-eyes { transform: translate(3px, 3px) !important; }
.is-kite .b-arm-r { transform: rotate(-160deg); }
.is-kite .b-eyes { transform: translate(2px, -4px) !important; }
.is-bubbles .b-arm-r { transform: rotate(-130deg); }
.is-bubbles .b-held { transform: rotate(130deg); }
.is-bubbles .b-mouth-smirk { display: none; }
.is-bubbles .b-mouth-o { display: inline; }
.p-board { display: none; }
.is-surf .p-board { display: inline; }
.is-surf .b-arm-l { animation: none; transform: rotate(80deg); }
.is-surf .b-arm-r { animation: none; transform: rotate(-80deg); }
/* Boat, ladder, bat */
.is-rowing .b-arm-r { animation: row .7s ease-in-out infinite alternate; }
.is-rowing .b-arm-l { animation: rowL .7s ease-in-out infinite alternate; }
.is-rowing .b-held { transform: rotate(0deg); }
@keyframes row { from { transform: rotate(-8deg); } to { transform: rotate(-48deg); } }
@keyframes rowL { from { transform: rotate(-36deg); } to { transform: rotate(-12deg); } }
.is-rowing.is-fast .b-arm-r, .is-rowing.is-fast .b-arm-l { animation-duration: .25s; }
.is-climbing .b-arm-l { animation: climbL .33s ease-in-out infinite alternate; }
.is-climbing .b-arm-r { animation: climbR .33s ease-in-out infinite alternate; }
.is-climbing .b-foot { animation: tiptoe .33s ease-in-out infinite alternate; }
.is-climbing .b-foot + .b-foot { animation-delay: -.16s; }
@keyframes climbL { from { transform: rotate(165deg); } to { transform: rotate(118deg); } }
@keyframes climbR { from { transform: rotate(-118deg); } to { transform: rotate(-165deg); } }
.is-batting .b-arm-r { transform: rotate(-35deg); }
.is-batting .b-held { transform: rotate(35deg); }
.is-batting .b-arm-l { transform: rotate(-42deg); }
.is-swing .b-arm-r { animation: batSwing .26s ease-out forwards; }
.is-swing .b-held { transform: rotate(70deg); }
.is-driving .b-arm-l { transform: rotate(-38deg); }
.is-driving .b-arm-r { transform: rotate(38deg); }
.is-driving .b-head { animation: munch .5s ease-in-out infinite alternate; }
@keyframes batSwing { from { transform: rotate(-35deg); } to { transform: rotate(-175deg); } }

/* ---------- Gang ---------- */
.critter { position: fixed; left: 0; top: 0; z-index: 948; display: none; pointer-events: none; will-change: transform; }
.critter.on { display: block; }
.critter svg { display: block; width: 100%; height: auto; overflow: visible; }
.critter-flip { transform-origin: 50% 100%; }
.moti { width: 130px; }
.moti .moti-svg { transform-origin: 50% 100%; }
.moti g { transform-box: fill-box; }
.moti .d-leg { transform-origin: 50% 0; }
.moti .d-tail { transform-box: view-box; transform-origin: 30px 50px; animation: tail-dog 1.6s ease-in-out infinite; }
.moti .d-head { transform-box: view-box; transform-origin: 104px 44px; transition: transform .3s ease; }
.moti .d-eye { transform-origin: center; }
.moti .d-tongue { display: none; }
.moti.is-running .d-l1, .moti.is-running .d-l4 { animation: leg-a .22s ease-in-out infinite alternate; }
.moti.is-running .d-l2, .moti.is-running .d-l3 { animation: leg-b .22s ease-in-out infinite alternate; }
.moti.is-running .moti-svg { animation: bob .22s ease-in-out infinite alternate; }
.moti.is-running .d-tongue { display: inline; }
.moti.is-wag .d-tail { animation: tail-dog .18s ease-in-out infinite; }
.moti.is-sleep .d-leg { transform: scaleY(.25); }
.moti.is-sleep .moti-svg { transform: translateY(16%); }
.moti.is-sleep .d-head { transform: rotate(18deg) translateY(10px); }
.moti.is-sleep .d-eye { transform: scaleY(.15); }
.moti.is-sleep .d-tail { animation: none; transform: rotate(70deg); }
@keyframes leg-a { from { transform: rotate(28deg); } to { transform: rotate(-28deg); } }
@keyframes leg-b { from { transform: rotate(-28deg); } to { transform: rotate(28deg); } }
@keyframes tail-dog { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(16deg); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-5px); } }
.kaaka { width: 96px; z-index: 962; }
.kaaka .k-wing { transform-box: view-box; transform-origin: 44px 40px; animation: flap .16s ease-in-out infinite alternate; }
@keyframes flap { from { transform: rotate(-12deg); } to { transform: scaleY(-.7) rotate(-6deg); } }
.kaaka-load { position: absolute; left: 30%; top: 70%; }
.kaaka.is-perched .k-wing { animation: none; transform: rotate(-4deg) scaleY(.6); }
.moti.is-walk .d-l1, .moti.is-walk .d-l4 { animation: leg-a .4s ease-in-out infinite alternate; }
.moti.is-walk .d-l2, .moti.is-walk .d-l3 { animation: leg-b .4s ease-in-out infinite alternate; }
.moti.is-sniffing .d-head { transform: rotate(16deg) translateY(6px); }
.moti.is-bark .d-head { animation: bark-nod .2s ease-in-out infinite alternate; }
@keyframes bark-nod { from { transform: rotate(0); } to { transform: rotate(-10deg); } }
.kaaka-load > * { display: block; }

/* ---------- Effects ---------- */
.fly, .peel { position: fixed; left: 0; top: 0; z-index: 960; width: 44px; height: 44px; pointer-events: none; will-change: transform; }
.peel { width: 40px; height: 40px; }
.fly svg, .peel svg { display: block; width: 100%; height: 100%; overflow: visible; }
.peel.landed { z-index: 930; pointer-events: auto; transition: opacity .3s ease; }
.peel.swept { opacity: 0; pointer-events: none; }
.heart { font-size: 26px; line-height: 1; color: #E8458B; animation: float-up 1.2s ease-out forwards; }
@keyframes float-up { from { transform: translate(0, 0) scale(.6); opacity: 0; } 20% { opacity: 1; } to { transform: translate(var(--dx, 0px), -90px) scale(1.2); opacity: 0; } }
.puff { width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%; background: radial-gradient(circle, #FFFFFF 0 40%, rgba(255, 255, 255, 0) 70%); animation: puff .5s ease-out forwards; }
@keyframes puff { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.flash { inset: 0; background: #FFFFFF; animation: flash .35s ease-out forwards; }
@keyframes flash { from { opacity: .95; } to { opacity: 0; } }
.big-text {
  left: 50%; top: 38%; transform: translate(-50%, -50%);
  font-family: var(--font-head); font-weight: 700; font-size: clamp(3rem, 12vw, 8rem); line-height: 1; white-space: nowrap;
  color: var(--banana); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--ink);
  animation: pop-in .5s cubic-bezier(.3, 1.6, .5, 1) both;
}
@keyframes pop-in { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
/* Props he uses on the taskbar */
.fx-front { z-index: 952; }
.prop-fx { will-change: transform; }
.prop-fx svg, .ball-fx svg { display: block; width: 100%; height: auto; overflow: visible; }
.auto-fx .wheel { transform-box: fill-box; transform-origin: center; }
.auto-fx.is-driving .wheel { animation: spin-wheel .35s linear infinite; }
@keyframes spin-wheel { to { transform: rotate(360deg); } }
.tree-fx svg { transform-origin: 50% 100%; animation: grow-tree .9s cubic-bezier(.3, 1.4, .5, 1) both; }
.tree-fx.is-going svg { animation: sink-tree .6s ease-in forwards; }
@keyframes grow-tree { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes sink-tree { to { transform: scaleY(0); opacity: 0; } }
.tree-fx .tree-banana { transition: opacity .2s ease; }
.tree-fx .tree-banana.gone { opacity: 0; }
.hammock-fx .sling { transform-box: view-box; transform-origin: 120px 30px; animation: sway-sling 1.6s ease-in-out infinite alternate; }
@keyframes sway-sling { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.hammock-fx.is-snapped .sling { animation: drop-sling .4s ease-in forwards; }
@keyframes drop-sling { to { transform: translateY(70px) rotate(8deg); opacity: .4; } }
.ladder-fx { transition: transform .5s ease; }
.waves-fx { left: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.waves-fx.on { opacity: 1; }
.waves-fx svg { display: block; }
.waves-fx .w-back { fill: #3E86C9; opacity: .85; animation: wave-roll 2.6s linear infinite; }
.waves-fx .w-front { fill: #7FC0E8; opacity: .92; animation: wave-roll 1.8s linear infinite reverse; }
@keyframes wave-roll { to { transform: translateX(-60px); } }
.ball-fx { width: 18px; left: 0; top: 0; }
.dust { width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: rgba(150, 128, 104, .55); animation: dust .65s ease-out forwards; }
@keyframes dust { from { transform: scale(.4); opacity: .9; } to { transform: translate(var(--dx, 0px), -16px) scale(1.7); opacity: 0; } }
.zzz { font-family: var(--font-head); font-weight: 700; line-height: 1; color: #4A3A8A; text-shadow: 0 2px 0 #fff, 0 0 4px #fff; animation: zfloat 2.3s steps(28, jump-none) forwards; }
@keyframes zfloat { from { transform: translate(0, 0) scale(.6); opacity: 0; } 20% { opacity: 1; } to { transform: translate(28px, -70px) rotate(-14deg) scale(1.1); opacity: 0; } }
.caught, .kite-fx, .plane-fx, .sparrow-fx { left: 0; top: 0; will-change: transform; }
.caught { width: 40px; }
.kite-fx { width: 54px; }
.plane-fx { width: 60px; }
.sparrow-fx { width: 46px; }
.caught svg, .kite-fx svg, .plane-fx svg, .sparrow-fx svg { display: block; width: 100%; height: auto; overflow: visible; }
.kite-line { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.kite-line line { stroke: #3A2416; stroke-width: 1.3; }
.bubble-fx {
  border-radius: 50%; pointer-events: auto; cursor: pointer;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .95) 0 12%, rgba(255, 255, 255, .15) 14% 55%, rgba(160, 210, 255, .35) 72%, rgba(232, 69, 139, .4) 100%);
  border: 1.5px solid rgba(120, 170, 230, .75);
  transition: opacity .2s ease;
}
.bubble-fx.popped { opacity: 0; }
.sparrow-fx .sp-wing { transform-box: fill-box; transform-origin: 50% 100%; }
.sparrow-fx.flying .sp-wing { animation: flap .1s ease-in-out infinite alternate; }
.sparrow-fx.pecking svg { transform-origin: 70% 95%; animation: peck .7s ease-in-out infinite; }
@keyframes peck { 0%, 55%, 100% { transform: rotate(0); } 70% { transform: rotate(22deg); } }
.splat { width: 150px; height: 150px; margin: -75px 0 0 -75px; transition: opacity .4s ease, transform .4s ease; }
.splat svg { width: 100%; height: 100%; }
.splat.washed { opacity: 0; transform: scale(.6); }
.doodle { inset: 0; width: 100%; height: 100%; }
.doodle path { fill: none; stroke: #1F3A93; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.doodle text { font-family: var(--font-head); font-weight: 700; fill: #1F3A93; }
.doodle .hit { fill: transparent; stroke: none; pointer-events: all; cursor: pointer; }
.doodle .love { font-family: var(--font-head); font-weight: 800; font-size: 44px; font-style: italic; }
.doodle .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw-line 1.8s ease forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.doodle.wiped { opacity: 0; transition: opacity .4s ease; }
.diya-row { left: 0; right: 0; display: flex; justify-content: space-around; padding: 0 20px; }
.diya { width: 40px; height: 34px; }
.diya svg { width: 100%; height: 100%; overflow: visible; }
.diya-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker .18s ease-in-out infinite alternate; }
@keyframes flicker { from { transform: scale(.9, 1); } to { transform: scale(1.08, 1.15) skewX(4deg); } }
.prop { width: 110px; }
.prop svg { display: block; width: 100%; height: auto; overflow: visible; }
.foam circle { animation: foam .8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes foam { from { transform: scale(.8); } to { transform: scale(1.15); } }
.pookalam { width: 220px; height: 220px; margin: -110px 0 0 -110px; }
.pookalam circle { transform-box: fill-box; transform-origin: center; animation: grow .5s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes grow { from { transform: scale(0); } to { transform: scale(1); } }
.lantern { width: 46px; transform-origin: 50% 0; animation: swing-l 2.4s ease-in-out infinite alternate; }
@keyframes swing-l { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.cloud { width: 120px; }
.cloud .drop { animation: rain .5s linear infinite; }
@keyframes rain { from { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(18px); opacity: 0; } }
.hands { inset: 0; display: grid; place-items: center; background: rgba(58, 36, 22, .25); }
.hands .hand { position: fixed; top: 0; bottom: 0; width: 55vw; transition: transform .6s cubic-bezier(.3, 1.3, .5, 1); }
.hands .hand svg { width: 100%; height: 100%; }
.hands .hand-l { left: 0; transform: translateX(-102%); }
.hands .hand-r { right: 0; transform: translateX(102%); }
.hands.on .hand-l, .hands.on .hand-r { transform: none; }
.hands-text {
  position: relative; z-index: 2; padding: 14px 22px; border-radius: 20px;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.2rem, 3vw, 1.8rem); text-align: center;
  background: var(--card); border: 2.5px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
}
.glass-cup { width: 46px; height: 62px; }
.glass-cup svg { width: 100%; height: 100%; }
.glass-cup .water { transition: transform 1s ease; transform-box: fill-box; transform-origin: 50% 100%; }
.glass-cup.drunk .water { transform: scaleY(0); }
.cake { width: 110px; }
.flame-c { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker .18s ease-in-out infinite alternate; }
.cake.blown .flame-c { display: none; }

/* Stolen page element carried off by Kaaka */
.carried { position: fixed !important; z-index: 961 !important; margin: 0 !important; pointer-events: none; }
.stolen-hole { display: inline-block; border: 3px dashed #C9B49A; border-radius: 14px; vertical-align: middle; }

/* ---------- Fake cursor ---------- */
.fake-cursor {
  position: fixed; left: 0; top: 0; z-index: 1000;
  width: 28px; height: 28px;
  pointer-events: none; will-change: transform;
  transform: translate3d(-100px, -100px, 0);
}
.fake-cursor svg { position: absolute; inset: 0; width: 28px; height: 28px; overflow: visible; display: none; }
.fake-cursor .fc-arrow { display: block; }
.fake-cursor.is-hand .fc-arrow, .fake-cursor.is-banana .fc-arrow { display: none; }
.fake-cursor.is-hand .fc-hand { display: block; }
.fake-cursor.is-banana .fc-banana { display: block; width: 40px; height: 40px; left: -8px; top: -8px; }
.fake-cursor.is-ghost { opacity: .45; }
.fake-cursor.hidden { opacity: 0; }
.tug-line { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 999; pointer-events: none; }
.tug-line line { stroke: #F47B20; stroke-width: 4; stroke-dasharray: 8 6; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .b-tail, .moti .d-tail,   .btn, .level-card, .toast { transition-duration: .01s !important; }
}

/* ---------- More acts (js/more.js) ---------- */
.bandar .bandar-svg.is-pushup { transform-origin: 50% 96%; animation: pushup .8s ease-in-out infinite alternate; }
@keyframes pushup { from { transform: translateY(6%) rotate(80deg); } to { transform: translateY(1%) rotate(68deg); } }
.bandar .bandar-svg.is-wiggle { transform-origin: 50% 100%; animation: wiggle .32s ease-in-out infinite alternate; }
@keyframes wiggle { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.bandar .bandar-svg.is-bounce { animation: bounce .3s ease-in-out infinite alternate; }
@keyframes bounce { to { transform: translateY(-6%); } }
.bandar .bandar-svg.is-shiver { animation: shiver .07s linear infinite alternate; }
@keyframes shiver { from { transform: translateX(-2%); } to { transform: translateX(2%); } }
.is-clap .b-arm-l { animation: clapL .19s ease-in-out infinite alternate; }
.is-clap .b-arm-r { animation: clapR .19s ease-in-out infinite alternate; }
@keyframes clapL { from { transform: rotate(-58deg); } to { transform: rotate(-88deg); } }
@keyframes clapR { from { transform: rotate(58deg); } to { transform: rotate(88deg); } }

.rope-fx svg { transform-origin: 50% 60%; animation: rope .3s linear infinite; }
.rope-fx.is-stopped svg { animation: none; transform: scaleY(-.3); }
@keyframes rope { 50% { transform: scaleY(-1); } }
.hoop-fx svg { animation: hoop .3s ease-in-out infinite alternate; }
@keyframes hoop { from { transform: translateX(-9%) rotate(-7deg); } to { transform: translateX(9%) rotate(7deg); } }
.hoop-fx .hoop-stripe { animation: hoop-spin .5s linear infinite; }
.hoop-fx .hoop-stripe.back { animation-direction: reverse; }
@keyframes hoop-spin { to { stroke-dashoffset: -142; } }
.easel-fx .art { opacity: var(--art, 0); transition: opacity .5s ease; }
.laptop-fx .code { animation: code .5s steps(2) infinite; }
@keyframes code { 50% { transform: translateY(3px); opacity: .6; } }
.stove-fx .flame path { transform-box: fill-box; transform-origin: 50% 100%; animation: flame .25s ease-in-out infinite alternate; }
@keyframes flame { to { transform: scaleY(.7); } }
.fan-fx svg { transform-origin: 50% 90%; animation: fan .22s ease-in-out infinite alternate; }
@keyframes fan { from { transform: rotate(-25deg); } to { transform: rotate(20deg); } }
.mozzie-fx .wing { animation: buzz-wing .05s linear infinite alternate; }
@keyframes buzz-wing { to { opacity: .2; } }
.lizard-fx .legs { animation: liz .12s steps(1) infinite; }
.lizard-fx .legs2 { animation: liz .12s steps(1) infinite reverse; }
@keyframes liz { 50% { opacity: 0; } }
.bike-fx .wheel, .train-fx .wheel { transform-box: fill-box; transform-origin: center; }
.bike-fx.is-driving .wheel, .train-fx.is-driving .wheel { animation: spin-wheel .4s linear infinite; }
.cracker-fx .spark { opacity: 0; transform-box: fill-box; transform-origin: center; }
.cracker-fx.is-lit .spark { animation: spark .12s ease-in-out infinite alternate; }
@keyframes spark { from { opacity: 1; transform: scale(.6); } to { opacity: 1; transform: scale(1.5); } }
.can-fx svg { transform-origin: 50% 100%; transition: transform .3s ease-out; }
.can-fx.is-hit svg { transform: translateX(40%) rotate(85deg); }
.top-fx.is-spinning svg { animation: top-spin .14s linear infinite; }
@keyframes top-spin { 50% { transform: scaleX(.55); } }
.coin-fx.is-flipping svg { animation: coin-flip .16s linear infinite; }
@keyframes coin-flip { 50% { transform: scaleY(.1); } }
.snake-fx.is-swaying svg { transform-origin: 50% 100%; animation: snake-sway .6s ease-in-out infinite alternate; }
@keyframes snake-sway { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.plant-fx .plant { transform-box: view-box; transform-origin: 50% 66%; transform: scale(.35); transition: transform 1.1s cubic-bezier(.3, 1.5, .5, 1); }
.plant-fx.is-grown .plant { transform: scale(1); }
.plant-fx .flower { opacity: 0; transition: opacity .6s ease; }
.plant-fx.is-bloom .flower { opacity: 1; }
.yoyo-fx .disc { animation: yoyo-disc .7s ease-in-out infinite alternate; }
.yoyo-fx .string { transform-box: view-box; transform-origin: 15px 0; animation: yoyo-string .7s ease-in-out infinite alternate; }
@keyframes yoyo-disc { from { transform: translateY(-56px); } to { transform: translateY(0); } }
@keyframes yoyo-string { from { transform: scaleY(.24); } to { transform: scaleY(1); } }
.yoyo-fx.is-tangled .disc, .yoyo-fx.is-tangled .string { animation: none; }
.yoyo-fx.is-tangled .disc { transform: translate(6px, -30px) rotate(40deg); }
.yoyo-fx.is-tangled .string { transform: scaleY(.6); }
.kolam-fx .line { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw-kolam 2.6s ease forwards; }
@keyframes draw-kolam { to { stroke-dashoffset: 0; } }
.prop-fx.is-flipped svg { transform: scaleY(-.6); transform-origin: 50% 40%; transition: transform .15s ease; }
.star-fx svg { animation: twinkle .8s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .3; transform: scale(.7); } to { opacity: 1; transform: scale(1.1); } }
.note-fx { font: 700 24px/1 var(--font-head); color: var(--ink); text-shadow: 0 0 3px #fff, 0 0 6px #fff; animation: note-up 1.8s ease-out both; }
@keyframes note-up { from { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } to { opacity: 0; transform: translateY(-80px) rotate(15deg); } }
.rain-fx {
  inset: 0; opacity: 0; transition: opacity .6s ease;
  background-image: repeating-linear-gradient(105deg, transparent 0 22px, rgba(90, 140, 210, .35) 22px 24px, transparent 24px 46px);
  background-size: 140px 140px; animation: rain-fall .4s linear infinite;
}
.rain-fx.on { opacity: 1; }
@keyframes rain-fall { to { background-position: -36px 140px; } }
@media (prefers-reduced-motion: reduce) {
  .rain-fx, .rope-fx svg, .hoop-fx svg, .note-fx, .star-fx svg { animation: none; }
}
.is-armsopen .b-arm-l { transform: rotate(105deg); }
.is-armsopen .b-arm-r { transform: rotate(-105deg); }
.bandar .bandar-svg.is-tilt { transform-origin: 50% 100%; transform: rotate(-9deg); }
.is-chinflick .b-arm-r { animation: chinflick .9s ease-in-out infinite; }
@keyframes chinflick { 0%, 100% { transform: rotate(-150deg); } 50% { transform: rotate(-178deg); } }

/* Welcome note when the app starts */
.welcome-note {
  position: fixed; left: 0; top: 0; z-index: 964; max-width: 260px; padding: 14px 16px 12px;
  background: #FFF3B0; color: var(--ink); border-radius: 6px;
  box-shadow: 0 6px 18px rgba(42, 28, 18, .25), inset 0 -2px 0 rgba(0, 0, 0, .05);
  font-family: var(--font-head); display: grid; gap: 4px; pointer-events: auto; cursor: pointer;
  opacity: 0; transition: opacity .4s ease;
}
.welcome-note::before { content: ''; position: absolute; top: -9px; left: 50%; width: 64px; height: 18px; translate: -50% 0; background: rgba(232, 69, 139, .55); border-radius: 3px; }
.welcome-note strong { font-size: 1.15rem; line-height: 1.2; }
.welcome-note span { font-family: var(--font-body); font-size: .92rem; color: #6B4F2E; }
.welcome-note.show { opacity: 1; }
.welcome-note.gone { opacity: 0; pointer-events: none; }
.pop-keys kbd { font: 600 .8rem var(--font-body); padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .3); }

/* Tasks panel */
.tasks-card { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; display: grid; gap: 14px; }
.task-add { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(255, 210, 63, .14); }
.task-row { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 10px; }
.task-row [hidden] { display: none; }
@media (max-width: 520px) { .task-row { grid-template-columns: 1fr; } }
.task-actions { display: flex; align-items: center; gap: 12px; }
.task-msg { font-size: .9rem; color: #2E7D4F; font-weight: 600; }
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.task { display: grid; grid-template-columns: 32px 1fr auto auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #FFF8EC; border: 1.5px solid rgba(58, 36, 22, .12); }
.task-icon { font-size: 1.3rem; text-align: center; }
.task strong { display: block; overflow-wrap: anywhere; }
.task small { color: #7A6450; }
.task.is-done strong { text-decoration: line-through; opacity: .6; }
.task-del { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; font-size: 1.3rem; color: #9A7B5E; cursor: pointer; }
.task-del:hover { background: rgba(215, 38, 61, .12); color: #D7263D; }
.task-empty { color: #7A6450; text-align: center; margin: 0; }

/* Games: XO, rock-paper-scissors */
.game-card { width: min(420px, calc(100vw - 32px)); display: grid; gap: 12px; justify-items: center; text-align: center; }
.game-status { margin: 0; font-weight: 700; min-height: 1.4em; }
.game-actions { display: flex; gap: 8px; min-height: 36px; }
.xo-grid { display: grid; grid-template-columns: repeat(3, 84px); gap: 8px; }
.xo-cell { width: 84px; height: 84px; border-radius: 16px; border: 2.5px solid var(--ink); background: #FFF8EC; font: 700 2.6rem/1 var(--font-head); color: var(--ink); cursor: pointer; }
.xo-cell:disabled { cursor: default; }
.xo-cell.is-x { color: #2463C9; }
.xo-cell.is-o { color: #D7263D; }
.xo-cell.is-line { background: #FFD23F; }
.xo-cell:not(:disabled):hover { background: #FFF3B0; }
.rps-score { margin: 0; font-weight: 600; color: #6B4F2E; }
.rps-row { display: flex; gap: 12px; }
.rps-hand { width: 92px; height: 92px; border-radius: 20px; border: 2.5px solid var(--ink); background: #FFF8EC; cursor: pointer; padding: 10px; }
.rps-hand svg { width: 100%; height: 100%; }
.rps-hand:not(:disabled):hover { background: #FFF3B0; transform: translateY(-2px); }
.rps-hand:disabled { opacity: .55; cursor: default; }
.cup-fx.fx-click { pointer-events: auto; cursor: pointer; }
.cup-fx.fx-click:hover svg { filter: brightness(1.12); }

/* Kids mode quiz card */
.kids-quiz {
  position: fixed; left: 0; top: 0; z-index: 964; padding: 14px 16px 16px; border-radius: 22px;
  background: #FFFFFF; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
  display: grid; gap: 10px; justify-items: center; pointer-events: auto; max-width: min(440px, calc(100vw - 24px));
  font-family: var(--font-head);
}
.kq-title { margin: 0; font-size: 1.6rem; font-weight: 700; color: #E8458B; line-height: 1; }
.kq-show:empty { display: none; }
.kq-sum { font-size: 2.2rem; font-weight: 700; color: var(--ink); }
.kq-row { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.kq-ban { width: 34px; height: 34px; }
.kq-choices { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.kq-choice { min-width: 64px; min-height: 64px; padding: 6px 12px; border-radius: 18px; border: 3px solid var(--ink); background: #FFF3B0; font: 700 1.8rem/1 var(--font-head); color: var(--ink); cursor: pointer; display: inline-grid; place-items: center; }
.kq-choices.is-wide .kq-choice { max-width: 200px; }
.kq-choices.is-pics .kq-choice .kq-ban { width: 44px; height: 44px; }
.kq-choice:hover:not(:disabled) { transform: translateY(-2px); background: #FFE680; }
.kq-choice.is-right { background: #7CD992; }
.kq-choice.is-wrong { background: #FFB3B3; opacity: .7; }

/* Wardrobe groups */
.outfit-group { grid-column: 1 / -1; margin: 6px 0 -4px; font: 700 .95rem var(--font-head); color: var(--ink); }
.pop-wardrobe .wardrobe-grid-sm { max-height: min(60vh, 520px); overflow: auto; padding-right: 4px; }
.pop-wardrobe .outfit-group { color: var(--ink); opacity: .72; font-size: .85rem; letter-spacing: .02em; }

.sweat-fx { width: 10px; height: 14px; }
.sweat-fx svg { display: block; width: 100%; height: 100%; }

/* The cow */
.cow-fx svg { transition: none; overflow: visible; }
.cow-fx .c-leg { transform-box: fill-box; transform-origin: 50% 0; }
.cow-fx.is-walk .c-l1, .cow-fx.is-walk .c-l4 { animation: cowleg .5s ease-in-out infinite alternate; }
.cow-fx.is-walk .c-l2, .cow-fx.is-walk .c-l3 { animation: cowleg .5s ease-in-out infinite alternate-reverse; }
@keyframes cowleg { from { transform: rotate(14deg); } to { transform: rotate(-14deg); } }
.cow-fx.is-walk .c-bob { animation: cowbob .25s ease-in-out infinite alternate; }
@keyframes cowbob { to { transform: translateY(-2.5px); } }
.cow-fx .c-tail { transform-box: view-box; transform-origin: 38px 80px; animation: cowtail 1.7s ease-in-out infinite alternate; }
@keyframes cowtail { from { transform: rotate(-8deg); } to { transform: rotate(16deg); } }
.cow-fx.is-happy .c-tail { animation-duration: .3s; }
.cow-fx .c-head { transform-box: view-box; transform-origin: 140px 84px; transition: transform .45s ease; }
.cow-fx.is-walk .c-head { animation: cownod .5s ease-in-out infinite alternate; }
@keyframes cownod { from { transform: rotate(-2deg); } to { transform: translateY(2px) rotate(3deg); } }
.cow-fx.is-eat .c-head { animation: none; transform: translate(8px, 36px) rotate(26deg); }
.cow-fx .c-eye { transform-box: fill-box; transform-origin: center; animation: blink-eye 3.8s infinite; }
.cow-fx .c-eyes-happy, .cow-fx .c-peel, .cow-fx .c-heart { display: none; }
.cow-fx.is-happy .c-eye { display: none; }
.cow-fx.is-happy .c-eyes-happy, .cow-fx.is-chew .c-peel { display: inline; }
.cow-fx.is-happy .c-heart { display: inline; transform-box: fill-box; transform-origin: 50% 100%; animation: cowheart 1.1s ease-out infinite; }
@keyframes cowheart { from { transform: translateY(6px) scale(.4); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(-14px) scale(1.1); opacity: 0; } }
.cow-fx .c-muzzle { transform-box: fill-box; transform-origin: 50% 0; }
.cow-fx.is-eat .c-muzzle, .cow-fx.is-chew .c-muzzle { animation: cowchew .26s ease-in-out infinite alternate; }
@keyframes cowchew { to { transform: scaleY(.86) translateX(1.5px); } }
.cow-fx .c-bell { transform-box: view-box; transform-origin: 150px 91px; }
.cow-fx.is-walk .c-bell { animation: cowbell .5s ease-in-out infinite alternate; }
@keyframes cowbell { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@media (prefers-reduced-motion: reduce) { .cow-fx * { animation: none !important; } }

/* Dreams */
.dream { position: fixed; left: 0; top: 0; z-index: 963; width: calc(var(--bw, 120px) * 1.45); min-width: 150px; pointer-events: none; }
.dream .dr-cap { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.7); opacity: 0; width: max-content; max-width: 70%;
  text-align: center; color: #3A2416; font-family: var(--font-head); font-weight: 700; line-height: 1.2; font-size: clamp(12px, calc(var(--bw, 120px) * .12), 17px);
  transition: opacity .3s ease, transform .3s ease; }
.dream.words .dr-cap { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.dream.show.words .dr-art { opacity: 0; transition: opacity .3s ease; }
.dream.out .dr-cap { opacity: 0; transition-delay: 0s; }
/* Thought bubble: pops out of his head (small bubble, bigger bubble, cloud), and pops away in place. */
.dream .dr-b1, .dream .dr-b2, .dream .dr-cloud { transform-box: view-box; opacity: 0; }
.dream .dr-b1 { transform-origin: 10px 146px; }
.dream .dr-b2 { transform-origin: 22px 128px; }
.dream .dr-cloud { transform-origin: 40px 110px; }
.dream .dr-art { opacity: 0; transition: opacity .35s ease .55s; }
.dream.show .dr-b1 { animation: dr-pop .26s cubic-bezier(.3, 1.7, .5, 1) forwards; }
.dream.show .dr-b2 { animation: dr-pop .28s cubic-bezier(.3, 1.7, .5, 1) .14s forwards; }
.dream.show .dr-cloud { animation: dr-pop-cloud .5s cubic-bezier(.25, 1.35, .5, 1) .28s forwards; }
.dream.show .dr-art { opacity: 1; }
.dream.show.out .dr-cloud { animation: dr-poof .32s ease-in forwards; }
.dream.show.out:not(.words) .dr-art { opacity: 1; transition: none; }
.dream.show.out .dr-b2 { animation: dr-vanish .2s ease-in .14s both; }
.dream.show.out .dr-b1 { animation: dr-vanish .2s ease-in .26s both; }
@keyframes dr-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes dr-pop-cloud { 0% { opacity: 0; transform: scale(.12); } 55% { opacity: 1; transform: scale(1.07); } 100% { opacity: 1; transform: scale(1); } }
@keyframes dr-poof { 0% { opacity: 1; transform: scale(1); } 40% { opacity: 1; transform: scale(1.08); } 100% { opacity: 0; transform: scale(1.22); } }
@keyframes dr-vanish { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0); } }
.dream > svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 4px 0 rgba(58, 36, 22, .18)); }
.dream svg g, .dream svg path, .dream svg circle, .dream svg rect, .dream svg ellipse { transform-box: fill-box; }
.dr-fall { animation: dr-fall 1.5s linear infinite; }
@keyframes dr-fall { from { transform: translateY(-16px); opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } to { transform: translateY(80px); opacity: 0; } }
.dr-twinkle { transform-origin: center; animation: dr-twinkle 1.1s ease-in-out infinite alternate; }
@keyframes dr-twinkle { from { opacity: .35; transform: scale(.75); } to { opacity: 1; transform: scale(1.1); } }
.dr-bob { animation: dr-bob 1.2s ease-in-out infinite alternate; }
@keyframes dr-bob { to { transform: translateY(-5px); } }
.dr-float { animation: dr-float 2s ease-in-out infinite alternate; }
@keyframes dr-float { to { transform: translateY(-8px); } }
.dr-zoom { animation: dr-zoom .9s ease-in-out infinite alternate; }
@keyframes dr-zoom { from { transform: translateX(-5px); } to { transform: translateX(5px); } }
.dr-rise { animation: dr-rise 2.4s ease-in-out infinite; }
@keyframes dr-rise { from { transform: translate(-10px, 22px); } to { transform: translate(16px, -14px); } }
.dr-flap { transform-origin: 50% 100%; animation: dr-flap .35s ease-in-out infinite alternate; }
@keyframes dr-flap { to { transform: scaleY(.6); } }
.dr-flicker { transform-origin: 50% 100%; animation: dr-flicker .25s ease-in-out infinite alternate; }
@keyframes dr-flicker { to { transform: scaleY(.7) scaleX(1.15); } }
.dr-steam { animation: dr-steam 1.8s ease-in-out infinite; }
@keyframes dr-steam { from { transform: translateY(6px); opacity: 0; } 30% { opacity: .9; } to { transform: translateY(-8px); opacity: 0; } }
.dr-spin { transform-box: view-box !important; animation: dr-spin 4s linear infinite; }
@keyframes dr-spin { to { transform: rotate(360deg); } }
.dr-pulse { transform-box: view-box !important; animation: dr-pulse .7s ease-in-out infinite alternate; }
@keyframes dr-pulse { to { transform: scale(1.18); } }
.dr-sway { transform-box: view-box !important; animation: dr-sway 1.6s ease-in-out infinite alternate; }
@keyframes dr-sway { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
.dr-dash { animation: dr-zoom .3s linear infinite alternate; }
@media (prefers-reduced-motion: reduce) { .dream * { animation: none !important; } .dream.show .dr-b1, .dream.show .dr-b2, .dream.show .dr-cloud { opacity: 1; } .dream.out { display: none; } }

/* Outfit details that move */
.of-flame { transform-box: fill-box; transform-origin: 50% 0; animation: of-flame .18s ease-in-out infinite alternate; }
@keyframes of-flame { to { transform: scaleY(.7); } }
.of-blink { animation: of-blink 1.2s steps(1) infinite; }
@keyframes of-blink { 50% { fill: #7CD992; } }
@media (prefers-reduced-motion: reduce) { .of-flame, .of-blink { animation: none; } }

/* Tobby swimming after the boat: in front of the water, cut off at the water line. */
.moti.is-swim { z-index: 953; }
.moti.is-swim .moti-svg { clip-path: inset(-20% -10% 40% -10%); animation: swim-bob .45s ease-in-out infinite alternate; }
.moti.is-swim::after { content: ''; position: absolute; left: 10%; right: 12%; bottom: calc(40% - 6px); height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 4px rgba(127, 192, 232, .85); animation: swim-ripple .5s ease-in-out infinite alternate; }
@keyframes swim-bob { to { transform: translateY(3px); } }
@keyframes swim-ripple { to { transform: scaleX(1.12); opacity: .7; } }

/* Games pop (side strip and taskbar) */
.pop-games { width: min(340px, calc(100vw - 24px)); }
.game-picks { display: grid; gap: 8px; }
.game-pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; text-align: left; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.game-pick:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); background: #FFF1C9; }
.game-pick:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.game-pick strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.game-pick small { display: block; font-size: .8rem; opacity: .75; }
.gp-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--banana); font-size: 1.3rem; }
.gp-icon b, .gp-icon i { font-style: normal; font-weight: 800; font-size: .95rem; line-height: 1; }
.gp-icon b { color: #2463C9; } .gp-icon i { color: #D7263D; }
.gp-icon:has(b) { grid-auto-flow: column; gap: 1px; }

/* Plans (Basic / Full Access) */
.pricing-head { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.pricing-head h2 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); }
.pricing-head p { margin-top: 8px; font-size: 1.08rem; color: var(--ink-2); }
.pricing-head strong { color: var(--ink); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 26px; max-width: 980px; margin: 0 auto; align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 4vw, 32px); text-align: left; }
.plan-full { border-color: #C2264A; box-shadow: 0 6px 0 #C2264A; background: #FFF4F6; }
.plan-full .sticker { background: #E8456B; color: #fff; right: 18px; }
.plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.plan h3 { font-size: clamp(1.6rem, 3.6vw, 2rem); }
.plan-life { font-weight: 700; color: var(--ink-2); }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.8rem, 7vw, 3.6rem); line-height: 1; }
.plan-basic .plan-price { color: #E59A00; }
.plan-full .plan-price { color: #D7263D; }
.plan-price small { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.plan-why { margin: 10px 0 0; max-width: 30ch; font-style: italic; font-weight: 600; color: var(--ink-2); line-height: 1.4; }
.plan-monkey { flex: none; width: 104px; }
.plan-monkey svg { display: block; width: 100%; height: auto; }
.plan-list { list-style: none; display: grid; gap: 4px; margin: 20px 0 24px; padding: 0; }
.plan-list li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1.5px dashed rgba(58, 36, 22, .14); }
.plan-list li:last-child { border-bottom: 0; }
.plan-list b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.04rem; }
.plan-list small { display: block; font-size: .88rem; color: var(--ink-2); }
.pl-mark { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; margin-top: 1px; }
.plan-list .yes .pl-mark { color: #fff; background: #2EA44F; }
.plan-list .no .pl-mark { color: #fff; background: #B9B0A8; }
.plan-list .no b, .plan-list .no small { opacity: .55; }
.plan-btn { margin-top: auto; width: 100%; justify-content: center; }
.plan-basic .plan-btn { background: var(--banana); }
.plan-full .plan-btn { background: #E8456B; color: #fff; }
.unlock { display: flex; gap: 18px; align-items: flex-start; max-width: 980px; margin: 26px auto 0; padding: clamp(20px, 3.5vw, 28px); background: #FFF6D6; }
.unlock-icon { flex: none; width: 54px; }
.unlock-icon svg { display: block; width: 100%; height: auto; }
.unlock h3 { font-size: 1.3rem; }
.unlock-steps { margin: 10px 0 0; padding-left: 1.3em; display: grid; gap: 6px; font-weight: 600; }
.plan-notes { max-width: 760px; margin: 22px auto 0; text-align: center; font-weight: 700; }
.pricing .buy-note, .pricing .later { text-align: center; }
@media (max-width: 520px) { .unlock { flex-direction: column; } .plan-monkey { width: 84px; } }

/* Every trick, under the quick ones in the Tricks pop */
.pop-sub { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 6px; font-family: var(--font-head); font-weight: 600; }
.pop-sub-note { font-family: var(--font-body); font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.all-tricks { max-height: min(300px, 40vh); overflow-y: auto; overscroll-behavior: contain; padding: 4px 6px 8px 2px; border: 2px solid var(--ink); border-radius: 14px; background: var(--bg); scrollbar-width: thin; }
.at-group { position: sticky; top: -4px; z-index: 1; margin: 0; padding: 8px 6px 4px; font-size: .8rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); background: var(--bg); }
.at-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 4px 6px; }
.at-chip { padding: 6px 11px; font: 700 .84rem var(--font-body); color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 2px 0 var(--ink); cursor: pointer; }
.at-chip:hover { background: #FFF1C9; }
.at-chip:active { transform: translateY(2px); box-shadow: none; }

.pop-start .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pop-start .quick { padding: 8px 4px; }
.pop-start .quick svg { width: 20px; height: 20px; }

/* Instagram unlock form */
.unlock-open { margin-top: 14px; }
.unlock-modal .modal-card { padding: clamp(22px, 4vw, 32px); }
.unlock-modal h2 { font-size: clamp(1.5rem, 3.6vw, 1.9rem); padding-right: 40px; }
.unlock-lead { margin: 8px 0 18px; color: var(--ink-2); }
.unlock-form { display: grid; gap: 14px; }
.unlock-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border: 2px solid var(--ink); border-radius: 14px; background: var(--bg); }
.unlock-switch button { padding: 9px 8px; font: 700 .92rem var(--font-body); color: var(--ink); background: transparent; border: 0; border-radius: 10px; cursor: pointer; }
.unlock-switch button[aria-checked="true"] { background: var(--banana); box-shadow: inset 0 0 0 2px var(--ink); }
.field small { font-weight: 600; color: var(--ink-2); }
.unlock-drop { position: relative; display: grid; place-items: center; min-height: 140px; padding: 14px; text-align: center; border: 2.5px dashed var(--ink); border-radius: 16px; background: var(--bg); cursor: pointer; }
.unlock-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.unlock-drop-text { font-weight: 800; }
.unlock-drop-text small { font-weight: 600; color: var(--ink-2); }
.unlock-preview { max-height: 220px; max-width: 100%; border-radius: 10px; border: 2px solid var(--ink); }
.unlock-preview:not([hidden]) + .unlock-drop-text { display: none; }
.unlock-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: .95rem; }
.unlock-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--leaf); flex: none; }
.unlock-error { padding: 10px 12px; border-radius: 12px; background: #FDE2E4; color: #8E1A26; font-weight: 700; }
.unlock-done { display: grid; gap: 10px; justify-items: start; }
.unlock-done-title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; }
.unlock-done-note { font-size: .9rem; color: var(--ink-2); }

/* Outfit thumbnails are still pictures: dozens of wagging tails and blinking lights kept the
   page redrawing nonstop (with CPU drawing in the app that's real CPU). */
.bandar-svg-thumb, .bandar-svg-thumb * { animation: none !important; transition: none !important; }

/* Badges on the report card */
.badges { margin-top: 16px; }
.badges-title { font-family: var(--font-head); font-weight: 600; margin-bottom: 8px; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.badge { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; text-align: center; border: 2px solid rgba(58, 36, 22, .25); border-radius: 14px; background: var(--bg); opacity: .55; }
.badge.got { opacity: 1; border-color: var(--ink); background: #FFF1C9; box-shadow: 0 3px 0 var(--ink); }
.badge-icon { font-size: 1.6rem; line-height: 1; }
.badge-name { font-size: .8rem; font-weight: 800; }

/* Friends Connect */
.fc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; counter-reset: fc; }
.fc-steps li { counter-increment: fc; position: relative; padding-top: 44px; line-height: 1.5; }
.fc-steps li::before { content: counter(fc); position: absolute; top: 14px; left: 18px; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.fc-steps strong { display: block; margin-bottom: 4px; }
.fc-note { text-align: center; margin-top: 18px; opacity: .8; font-size: .95rem; }

/* Festival scene in the corner, above the taskbar */
.fest-scene { position: fixed; left: 14px; width: 150px; pointer-events: none; z-index: 1; }
.fest-scene svg { display: block; width: 100%; height: auto; overflow: visible; }
.fest-scene .fs-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: fs-flick 1.2s steps(2, jump-none) infinite; }
.fest-scene .fs-twinkle { animation: fs-twinkle 1.6s steps(2, jump-none) infinite; }
@keyframes fs-flick { from { transform: scale(1, 1); } to { transform: scale(.88, 1.1); } }
@keyframes fs-twinkle { from { opacity: 1; } to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .fest-scene .fs-flame, .fest-scene .fs-twinkle { animation: none; } }

/* ---- Sitting and silly acts (js/fun.js) ---- */
.fun-load { background: #FFFFFF; border: 2.5px solid #3A2416; border-radius: 12px; padding: 8px 10px 10px; box-shadow: 0 6px 16px rgba(0,0,0,.18); font: 700 13px/1.2 var(--font-head); color: #3A2416; }
.fun-load .fl-label { display: block; margin-bottom: 6px; white-space: nowrap; }
.fun-load .fl-track { height: 12px; border-radius: 6px; background: #EDE4D8; overflow: hidden; }
.fun-load .fl-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3E8E41, #9BE564); }
.plane-note { pointer-events: auto; cursor: pointer; width: 220px; animation: pn-open .35s cubic-bezier(.3,1.5,.5,1); }
.plane-note .pn-paper { background: #FFFDF5; border: 2px solid #3A2416; border-radius: 6px; padding: 14px 16px; box-shadow: 0 8px 20px rgba(0,0,0,.2); transform: rotate(-3deg); font: 600 15px/1.4 var(--font-head); color: #3A2416; }
.plane-note small { display: block; text-align: right; margin-top: 6px; font-weight: 700; color: #E2563B; }
.plane-note.gone, .polaroid.gone, .kickme-tag.gone, .rangoli-fx.gone { opacity: 0; transition: opacity .4s ease; }
@keyframes pn-open { from { transform: scale(.2) rotate(30deg); opacity: 0; } to { transform: none; opacity: 1; } }
.photo-flash { inset: 0; background: #FFFFFF; opacity: 0; transition: opacity .08s ease; }
.photo-flash.on { opacity: .55; }
.polaroid { pointer-events: auto; cursor: pointer; width: 140px; background: #FFFFFF; padding: 8px 8px 30px; box-shadow: 0 10px 24px rgba(0,0,0,.25); border-radius: 3px; }
.polaroid .po-pic { background: linear-gradient(#BFE3F7, #FFF3D6); height: 120px; display: grid; place-items: end center; overflow: hidden; }
.polaroid .po-pic svg { width: 90%; height: auto; }
.polaroid span { position: absolute; left: 0; right: 0; bottom: 7px; text-align: center; font: 700 13px var(--font-head); color: #3A2416; }
.kickme-tag span { display: inline-block; background: #FFD23F; color: #3A2416; border: 2px solid #3A2416; border-radius: 6px; padding: 3px 8px; font: 800 13px var(--font-head); transform: rotate(-6deg); box-shadow: 0 3px 8px rgba(0,0,0,.2); white-space: nowrap; }
.laser-beam { height: 4px; border-radius: 2px; background: #FF2D2D; box-shadow: 0 0 8px 2px rgba(255,45,45,.7); }
.laser-beam.alarm { animation: laser-alarm .25s steps(2, jump-none) infinite; }
@keyframes laser-alarm { from { opacity: 1; } to { opacity: .2; } }
.pedestal-fx.taken svg path:last-child { display: none; }
.rangoli-fx { opacity: 0; transform: scaleY(.38); transform-origin: 50% 50%; transition: opacity .3s ease; }
.rangoli-fx.on { opacity: 1; }
.rangoli-fx svg { display: block; width: 100%; height: auto; }
.rangoli-fx g[class^="rg-"], .rangoli-fx circle.rg-4 { opacity: 0; }
.rangoli-fx.on .rg-1 { animation: rg-in .5s ease forwards .2s; }
.rangoli-fx.on .rg-2 { animation: rg-in .5s ease forwards .8s; }
.rangoli-fx.on .rg-3 { animation: rg-in .5s ease forwards 1.4s; }
.rangoli-fx.on .rg-4 { animation: rg-in .5s ease forwards 2s; }
@keyframes rg-in { to { opacity: 1; } }
.deck-fx .dj-spin { transform-box: fill-box; transform-origin: 50% 50%; animation: dj-spin 1.2s steps(8) infinite; }
@keyframes dj-spin { to { transform: rotate(360deg); } }
.dj-lights { inset: 0; }
.dj-lights i { position: absolute; top: 6%; width: 90px; height: 90px; border-radius: 50%; filter: blur(18px); opacity: 0; animation: dj-light .9s steps(2, jump-none) infinite; }
.dj-lights i:nth-child(3n+1) { background: #FF6FA5; }
.dj-lights i:nth-child(3n+2) { background: #5BC0EB; }
.dj-lights i:nth-child(3n) { background: #FFD23F; }
@keyframes dj-light { from { opacity: .0; } to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .dj-lights i, .deck-fx .dj-spin, .laser-beam.alarm { animation: none; } }

/* His friends (js/fun.js) */
.friend { width: calc(var(--bw, 120px) * .72); }
.friend svg g { transform-box: view-box; }
.friend .f-arm-r { transform-origin: 70px 82px; }
.friend .f-arm-l { transform-origin: 30px 82px; }
.friend.is-walk svg { animation: f-bob .32s steps(2, jump-none) infinite alternate; }
.friend.is-walk .f-foot-l { animation: f-step .32s steps(2, jump-none) infinite alternate; }
.friend.is-walk .f-foot-r { animation: f-step .32s steps(2, jump-none) infinite alternate-reverse; }
.friend.is-wave .f-arm-r { animation: f-wave .28s ease-in-out infinite alternate; }
.friend .f-tail { transform-origin: 27px 108px; animation: f-tail 1.6s steps(6, jump-none) infinite alternate; }
@keyframes f-bob { from { translate: 0 0; } to { translate: 0 -3px; } }
@keyframes f-step { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@keyframes f-wave { from { transform: rotate(-150deg); } to { transform: rotate(-120deg); } }
@keyframes f-tail { from { transform: rotate(-6deg); } to { transform: rotate(8deg); } }
.friend-call { width: 100px; opacity: 0; transform: scale(.4); transition: opacity .25s ease, transform .3s cubic-bezier(.3,1.6,.5,1); }
.friend-call.on { opacity: 1; transform: none; }
.friend-call svg { display: block; width: 100px; height: 100px; border-radius: 50%; background: #BFE3F7; border: 3px solid #3A2416; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.friend-call .fc-name { display: block; text-align: center; margin-top: 4px; font: 700 12px var(--font-head); color: #3A2416; background: #FFF8EE; border-radius: 999px; }
.friend-call .critter-bubble { bottom: auto; top: calc(100% + 8px); }
@media (prefers-reduced-motion: reduce) { .friend.is-walk svg, .friend .f-tail, .friend.is-wave .f-arm-r { animation: none; } }

/* The board he holds up (reminders, signs): big and readable */
.is-sign .p-sign { transform: scale(1.55); }

/* Make your own outfit */
.cb { grid-column: 1 / -1; display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; padding: 14px; border-radius: 16px; background: var(--bg-2, #FFEBD2); border: 2px solid rgba(58, 36, 22, .12); }
.cb-preview { background: linear-gradient(#BFE3F7, #FFF8EE); border-radius: 12px; display: grid; place-items: end center; height: 150px; overflow: hidden; }
.cb-preview svg { width: 100%; height: auto; }
.cb-title { margin: 0 0 6px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.cb-rows { display: grid; gap: 7px; margin-bottom: 10px; }
.cb-row { display: grid; grid-template-columns: 82px 1fr; gap: 4px 8px; align-items: center; }
.cb-label { font-weight: 700; font-size: .85rem; }
.cb-chips, .cb-swatches { display: flex; flex-wrap: wrap; gap: 5px; }
.cb-swatches { grid-column: 2; }
.cb-chip { border: 1.5px solid rgba(58, 36, 22, .25); background: #FFFFFF; border-radius: 999px; padding: 3px 9px; font: 600 12px var(--font-body, inherit); cursor: pointer; color: var(--ink); }
.cb-chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #FFFFFF; }
.cb-swatch { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(58, 36, 22, .25); cursor: pointer; padding: 0; }
.cb-swatch[aria-pressed="true"] { outline: 3px solid var(--orange); outline-offset: 1px; }
@media (max-width: 520px) { .cb { grid-template-columns: 1fr; } .cb-preview { height: 130px; max-width: 160px; } }

.unlock-ref { font-size: 2.4rem; display: grid; place-items: center; }
.unlock-fine { margin: 8px 0 0; font-size: .9rem; opacity: .8; }

/* Pricing: a bigger logo, even plan cards, the referral offer up front */
.brand-logo { height: 90px; }
@media (max-width: 700px) { .brand-logo { height: 64px; } }
.plans { align-items: stretch; }
.plan .plan-btn { margin-top: auto; }
.plan .plan-list { margin-bottom: 22px; }
.ref-offer { max-width: 980px; margin: 0 auto 28px; border: 3px solid var(--orange); box-shadow: 0 6px 0 var(--orange); background: #FFF8E1; }
.ref-offer h3 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin: 0 0 8px; }
.ref-lede { margin: 0 0 12px; font-size: 1.05rem; line-height: 1.5; }
.ref-steps li { margin: 4px 0; }

/* The plain monkey wears nothing round his neck. */
.b-scarf, .b-scarf2 { display: none; }

/* Friends: a bit bigger, and their mischief */
.friend { width: calc(var(--bw, 120px) * .8); }
.friend svg { transform-origin: 50% 96%; transition: transform .25s ease; }
.friend.is-pounce svg { transform: translateY(-14%) rotate(-12deg); }
.friend.is-nap svg { transform: rotate(-82deg) translateY(30%); }
.friend.is-slide svg { transform: rotate(78deg) translateX(20%); }
.friend.is-hop svg { animation: f-hop .3s ease-in-out infinite alternate; }
@keyframes f-hop { from { translate: 0 0; } to { translate: 0 -22%; } }
@media (prefers-reduced-motion: reduce) { .friend.is-hop svg { animation: none; } }

.orb-fx.glow .orb { fill: #C9A7FF; filter: drop-shadow(0 0 10px #B388FF); transition: fill .6s ease; }
.news-tv { background: #1F2A44; color: #FFFFFF; border: 4px solid #3A2416; border-radius: 10px; padding: 8px 10px 26px; font: 800 13px var(--font-head); position: relative; box-shadow: 0 6px 14px rgba(0,0,0,.2); }
.news-tv span { position: absolute; top: 8px; right: 10px; background: #E2563B; border-radius: 4px; padding: 0 5px; font-size: 10px; }
.news-tv i { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: repeating-linear-gradient(90deg, #E2563B 0 40px, #FFD23F 40px 80px); opacity: .9; border-radius: 0 0 6px 6px; }
.pig-fx.shake svg { animation: pig-shake .12s linear infinite alternate; }
.pig-fx.broke svg { opacity: .35; transform: rotate(12deg) translateY(10%); transition: all .3s ease; }
@keyframes pig-shake { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

/* Kids corner */
.kid-pop { font: 800 26px var(--font-head); color: #3A2416; width: 44px; text-align: center; animation: kid-pop .35s cubic-bezier(.3,1.7,.5,1); }
.kid-pop.kid-ban { width: 36px; }
.kid-pop.kid-ban svg { width: 36px; height: 36px; }
@keyframes kid-pop { from { transform: scale(0); } to { transform: scale(1); } }
.kid-balloon { width: 40px; transition: transform 1.9s ease-out, opacity 1.9s ease-in; }
.kid-balloon.up { transform: translateY(-260px); opacity: .2; }
.kid-shape { width: 80px; opacity: 0; transform: scale(.4); transition: all .5s cubic-bezier(.3,1.5,.5,1); }
.kid-shape.on { opacity: 1; transform: none; }
.kid-shape svg { width: 80px; height: 80px; }
.kid-pot { width: 60px; }
.kid-pot .water { transition: y .6s ease; }
.kid-pebble { width: 8px; height: 8px; border-radius: 50%; background: #8A8F98; animation: kid-drop .5s ease-in forwards; }
@keyframes kid-drop { to { transform: translateY(40px); opacity: 0; } }
.kq-swatch { display: inline-block; width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid #3A2416; }
.kq-emoji { font-size: 34px; line-height: 1; }
.kq-q { font: 800 30px var(--font-head); margin-left: 6px; color: #E2563B; }

/* Fan wall and reviews */
.wall-grid, .reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.wall-week { grid-column: 1 / -1; margin: 6px 0 0; font: 700 1rem var(--font-head); color: var(--orange); }
.wall-card { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.wall-media { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #000; }
.wall-handle { margin: 0; font-weight: 800; }
.wall-caption { margin: 0; font-size: .95rem; }
.wall-link { font-weight: 700; color: #C13584; }
.wall-empty { text-align: center; opacity: .75; margin: 8px 0 18px; }
.tag-us { display: flex; gap: 16px; align-items: flex-start; max-width: 760px; margin: 20px auto 0; }
.review-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.review-stars { margin: 0; color: #E6A800; letter-spacing: 2px; }
.review-text { margin: 0; line-height: 1.5; }
.review-who { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.review-photo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.wall-del { align-self: flex-start; margin-top: 4px; }
/* A visitor's review (it waits for approval) */
.review-form { max-width: 520px; margin: 20px auto 0; padding: 18px; display: grid; gap: 10px; }
.review-form h3 { margin: 0; }
.review-sub { margin: 0; opacity: .8; }
.review-form label { display: grid; gap: 4px; font-weight: 700; font-size: .9rem; }
.review-form input, .review-form textarea, .review-form select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1.5px solid rgba(58, 36, 22, .3); background: #FFFFFF; }
.review-msg { margin: 0; font-size: .92rem; font-weight: 700; color: #2E7D4F; }
.review-msg:empty { display: none; }
/* The owner's announcement bar */
/* Reach out to us (under the plans) */
.reach { margin: 28px auto 0; max-width: 940px; text-align: center; }
.reach h3 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.reach-sub { margin: 4px 0 16px; color: var(--ink-2); }
.reach-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.reach-list li:only-child { grid-column: 1 / -1; justify-self: center; width: min(100%, 464px); }
.reach-link { display: flex; align-items: center; gap: 10px; height: 100%; min-height: 56px; padding: 10px 16px; text-align: left; text-decoration: none; color: var(--ink); background: var(--card); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); }
.reach-link:hover { background: var(--banana-2); }
.reach-icon { flex: none; width: 28px; text-align: center; font-size: 1.3rem; }
.reach-label { flex: none; font-weight: 600; }
.reach-link strong { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .reach-list { grid-template-columns: minmax(0, 1fr); } .reach-link { flex-wrap: wrap; } }
.site-note { position: relative; z-index: 60; padding: 10px 16px; text-align: center; font-weight: 800; color: var(--ink); background: var(--banana); border-bottom: 2.5px solid var(--ink); }
.admin-form { max-width: 520px; margin: 20px auto 0; padding: 18px; display: grid; gap: 10px; border: 2px dashed var(--orange); }
.admin-form h3 { margin: 0; }
.admin-form small { font-weight: 600; opacity: .7; }
.admin-form label { display: grid; gap: 4px; font-weight: 700; font-size: .9rem; }
.admin-form input, .admin-form textarea, .admin-form select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1.5px solid rgba(58, 36, 22, .3); background: #FFFFFF; }
.admin-msg { margin: 0; font-size: .9rem; }

/* Girl monkey */
.b-girl { display: none; }
[data-girl="1"] .b-girl { display: inline; }
.kind-pick { margin-top: 10px; }

/* More games */
.catch-field { position: relative; width: min(340px, 80vw); height: 260px; margin: 0 auto; border-radius: 14px; background: linear-gradient(#BFE3F7, #FFF3D6); overflow: hidden; cursor: none; touch-action: none; }
.catch-basket { position: absolute; bottom: 4px; font-size: 40px; transform: translateX(-50%); pointer-events: none; }
.catch-item { position: absolute; font-size: 28px; transform: translate(-50%, -50%); pointer-events: none; }
.whack-grid { display: grid; grid-template-columns: repeat(3, 84px); gap: 10px; justify-content: center; }
.whack-hole { width: 84px; height: 70px; border-radius: 50% 50% 14px 14px; border: 0; background: radial-gradient(ellipse at 50% 80%, #5A3A1E 0 45%, #8A5A2B 46%); font-size: 0; cursor: pointer; transition: font-size .12s ease; }
.whack-hole.up { font-size: 38px; }
.whack-hole.hit { background: radial-gradient(ellipse at 50% 80%, #2E9E5B 0 45%, #8A5A2B 46%); }
.memory-grid { display: grid; grid-template-columns: repeat(4, 70px); gap: 10px; justify-content: center; }
.memory-card { width: 70px; height: 84px; border-radius: 12px; border: 2.5px solid #3A2416; background: var(--orange); cursor: pointer; font-size: 34px; position: relative; }
.memory-card .mc-face { display: none; }
.memory-card .mc-back { color: #FFFFFF; font: 800 30px var(--font-head); }
.memory-card.open { background: #FFF8EE; }
.memory-card.open .mc-face { display: inline; }
.memory-card.open .mc-back { display: none; }
