/* 1.6 layout and visual tokens. Loaded after the legacy stylesheet. */
:root { --bg:#F8F3ED; --card:#FFFCF7; --ink:#403349; --ink2:#706079; --line:#E8DED5; --edge:#DFD1C8; --violet:#756184; --violet-d:#59456B; --cta:#59456B; --cta-d:#3F3050; --cta-soft:#EBE3F0; --t-violet:#EBE3F0; --c-hunger:#B36E3C; --c-happy:#A97B1B; --c-energy:#7568A6; --c-hygiene:#397D80; --c-health:#AB5575; }
.topbar { display:grid; grid-template-columns:1fr auto; gap:4px 12px; padding:8px 18px 5px; }
.pet-name { font-family:Georgia,serif; font-size:26px; letter-spacing:-.4px; }
.pet-sub { font-size:12px; color:var(--ink2); }
.bell-chip { grid-column:2; grid-row:1; background:#F4E7C8; color:#73521E; box-shadow:inset 0 0 0 1px #DCCA9E; }
.status-pill { grid-column:1 / -1; grid-row:2; width:100%; height:44px; gap:12px; padding:0 2px; border-radius:8px; box-shadow:none; background:transparent; }
.status-pill .need { flex:1; align-items:stretch; flex-direction:column-reverse; gap:7px; min-width:0; }
.status-pill .need-lbl { text-align:left; font-size:12px; font-weight:600; color:#65526E; letter-spacing:0; }
.status-pill .ring { width:100%; height:5px; border-radius:5px; background:linear-gradient(to right,var(--rc) calc(var(--v) * 1%),#DDD2CB 0); }
.status-pill .ring::before,.status-pill .ring > span { display:none; }
.status-pill .ring.low::after { top:-2px; right:0; height:8px; width:8px; box-shadow:0 0 0 2px var(--bg); }
.status-pill .ring.low + .need-lbl { color:#A32C43; }
.meters,.ring-hint { top:calc(env(safe-area-inset-top) + 110px); }
.scene { min-height:160px; border-radius:24px; box-shadow:0 0 0 1px #DFD1C8,0 7px 18px #59405212; }
.room-options { position:absolute; top:8px; right:8px; z-index:8; min-width:44px; min-height:44px; padding:0 12px; border-radius:14px; background:#FFFAF2ED; color:#55415F; font-size:12px; font-weight:700; }
.room-tabs { right:112px; gap:5px; overflow-x:auto; scrollbar-width:none; flex-wrap:nowrap; }
.room-tab { min-height:44px; padding:0 12px; font-size:12px; background:#FFFAF2E8; color:#5B4565; box-shadow:none; flex-shrink:0; }
.room-tab.on,.room-chip.on { background:#756184; box-shadow:none; color:#fff; }
.room-wall.wp-cream { background:repeating-linear-gradient(90deg,#F5E9DC 0 22px,#F0E1D1 22px 44px); }
.room-wall.wp-lilac { background:radial-gradient(circle at 12px 12px,#FFFFFF66 1px,transparent 1.6px) 0 0 / 26px 26px,linear-gradient(120deg,#F6E9DE,#E3D7EA); }
.room-wall.wp-mint { background:radial-gradient(circle at 12px 12px,#FFFFFF55 1px,transparent 1.6px) 0 0 / 26px 26px,linear-gradient(125deg,#EDF0DD,#D4E6DE); }
.room-floor.fl-oak { background:repeating-linear-gradient(0deg,transparent 0 54px,#99745940 54px 56px),repeating-linear-gradient(90deg,#FFFFFF06 0 55px,#8C65451A 55px 57px,transparent 57px 112px),linear-gradient(#D2AF8D,#B88A68); }
.room-trim { opacity:.85; }
.furn-item .fi-svg { filter:drop-shadow(0 2px 1px #76575D14); }
.app.dock-flow .dock { padding:0 0 8px; }
.panel-actions { padding:2px 7px 7px; border:1px solid var(--edge); border-radius:20px; box-shadow:0 3px 10px #59405208; }
.panel-actions .drawer-head { min-height:36px; padding:0 4px; gap:4px; }
.panel-actions .drawer-txt b { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.panel-actions .drawer-txt small { font-size:12px; font-weight:500; color:#765137; white-space:normal; }
.care-toggle { min-height:44px; min-width:60px; padding:0 8px; font-size:12px; color:#624F72; border-radius:10px; }
.care-toggle:focus-visible { outline-offset:-2px; }
.care-grid { grid-template-columns:repeat(6,minmax(0,1fr)); gap:3px; }
.care-grid .act,.care-grid .act:nth-child(n+5) { grid-column:auto; height:54px; min-width:44px; border-radius:12px; background:transparent; gap:3px; }
.care-grid .act-ic { width:26px; height:26px; background:transparent; color:#756184; border-radius:0; }
.care-grid .act-ic svg { width:23px; height:23px; }
.care-grid .act-label { font-size:12px; font-weight:600; }
.care-grid .badge { display:none; }
.care-grid .act.needs { background:#F7E6D6; box-shadow:inset 0 0 0 1px #D8AA83; }
.care-grid .act.needs .act-ic { color:#9B592F; transform:none; }
.care-grid .act:disabled, .care-grid .act[aria-disabled="true"] { opacity:.55; cursor:default; }
.care-grid [data-act="cook"] { display:none; }
.care-expanded .care-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.care-expanded .care-grid .act { height:66px; background:#F2EBE3; }
.care-expanded .care-grid .act.needs { background:#F7E6D6; }
.care-expanded .care-grid .act-label { font-size:13px; }
.care-expanded .care-grid .act.needs .badge { display:block; top:2px; right:2px; font-size:12px; }
.care-expanded .care-grid [data-act="cook"] { display:flex; grid-column:1 / -1; flex-direction:row; min-height:44px; height:44px; border-top:1px solid #E0D5C9; background:transparent; }
.care-expanded .drawer-txt b { position:static; width:auto; height:auto; clip-path:none; font-size:16px; }
.panel-feed { max-height:min(320px,45dvh); overflow-x:hidden; overflow-y:auto; border:1px solid var(--edge); box-shadow:none; }
.nav-row { grid-template-columns:repeat(3,minmax(0,1fr)); background:transparent; box-shadow:none; border-radius:16px; padding:0; }
.nav-btn { height:52px; font-size:12px; border-radius:16px; color:#6E5E78; }
.nav-btn.on { color:#59456B; }
.sheet { max-height:min(420px,65dvh); overflow:auto; border:1px solid var(--edge); }
.ex-info { gap:6px; }
.ex-info .chip { font-size:12px; }
.ex-result { padding:12px 14px; box-shadow:none; border:1px solid var(--edge); }
.ex-line { font-size:14px; font-weight:600; }
.field-journal { padding:14px; margin:12px 0; background:#FFFCF7; border:1px solid var(--edge); border-radius:18px; }
.field-journal h3 { margin:0 0 7px; font:700 18px Georgia,serif; }
.field-journal p { margin:6px 0; font-size:13px; color:#65526E; line-height:1.5; }
.journal-checks { display:flex; gap:6px; flex-wrap:wrap; }
.journal-checks span { font-size:12px; color:#66536E; padding:6px 8px; border-radius:9px; background:#F2EBE3; }
.journal-checks .done { background:#E3EDE2; color:#315C3F; }
.field-journal button,.practice-button { min-height:44px; padding:10px 14px; border-radius:12px; background:#EBE3F0; color:#59456B; font-weight:700; font-size:13px; }
.practice-button { width:100%; margin:0 0 10px; }
.practice-button[aria-pressed="true"] { background:#E1EDE9; color:#315C4C; }
.practice-button:disabled { opacity:.6; }
.save-notice { position:fixed; bottom:10px; left:50%; transform:translateX(-50%); width:min(95%,510px); z-index:110; padding:12px; border:2px solid #AF543F; border-radius:16px; background:#FFF4E7; color:#6D3024; box-shadow:0 4px 25px #30202030; font-size:14px; }
.save-notice span { display:block; }
.load-notice { top:calc(10px + env(safe-area-inset-top)); bottom:auto; border-color:#D9B68A; color:#5A3D2B; background:#FFF8EE; line-height:1.4; }
.save-notice button,.save-recovery button { min-height:44px; padding:8px 14px; margin:4px 4px 0 0; border-radius:10px; background:#EBDCCD; font-weight:700; }
.save-recovery { position:fixed; inset:10%; z-index:120; background:#FFFCF7; color:var(--ink); padding:20px; border:2px solid var(--edge); border-radius:20px; overflow:auto; box-shadow:0 0 0 100vmax #33263D99; }
.save-recovery textarea { width:100%; min-height:160px; user-select:text; font-size:14px; }
@media (max-width:350px) { .care-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; } .care-grid .act { height:44px; flex-direction:row; gap:5px; } .care-grid .act-label { font-size:12px; } .room-tabs { right:84px; } .care-expanded .care-grid .act { flex-direction:column; height:60px; } }
@media (max-height:620px) { .topbar { padding-top:3px; gap:0; } .pet-name { font-size:22px; } .status-pill { height:44px; } .scene { min-height:120px; } .nav-btn { height:44px; } .care-expanded .care-grid .act { height:52px; } .care-expanded .drawer-txt small { display:none; } }
@media (max-height:460px) and (orientation:landscape) { .app { position:relative; min-height:640px; height:640px; } body { overflow-y:auto; } }
@media (prefers-reduced-motion:reduce) { .care-grid .act,.nav-btn { transition:none; } }

.dock:not(.care-expanded) .care-grid .badge { display: none; }
@media (max-height:520px) {
  .care-expanded .care-grid .act { height:44px; flex-direction:row; gap:4px; }
  .care-expanded .care-grid { gap:3px; }
  .care-expanded .care-grid .act-label { font-size:12px; }
  .care-expanded .care-grid .badge { display:none !important; }
  .panel-actions .drawer-head { min-height:44px; }
  .care-expanded .drawer-txt b { font-size:14px; }
}

.primary-btn, .done-btn, .buy-btn { background:var(--violet-d); }

/* 1.6 compact care (David, 2026-10-17): icon-only, one row of six at every width. Pressing (or keyboard focus) shows the
   label in a small bubble above the icon; hud.js bindPeek() decides tap vs peek. Expanded keeps labels always shown. */
.care-grid .act { touch-action:manipulation; -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; -webkit-tap-highlight-color:transparent; }
.dock:not(.care-expanded) .care-grid { grid-template-columns:repeat(6,minmax(0,1fr)); gap:3px; }
.dock:not(.care-expanded) .care-grid .act { height:48px; flex-direction:column; gap:0; }
.dock:not(.care-expanded) .care-grid .act-ic { width:28px; height:28px; }
.dock:not(.care-expanded) .care-grid .act-ic svg { width:24px; height:24px; }
.dock:not(.care-expanded) .care-grid .act .act-label {
  position:absolute; left:50%; bottom:calc(100% + 6px); z-index:3; pointer-events:none; white-space:nowrap;
  padding:5px 10px; border-radius:12px; background:#4A3A5C; color:#FFF9F2; font-size:13px; font-weight:700; line-height:1.2;
  box-shadow:0 3px 10px #33263D33; opacity:0; visibility:hidden; transform:translate(-50%,4px) scale(.96);
  transition:opacity .14s ease, transform .14s ease, visibility 0s linear .14s;
}
.dock:not(.care-expanded) .care-grid .act .act-label::after { content:''; position:absolute; left:50%; top:100%; margin-left:-5px; border:5px solid transparent; border-top-color:#4A3A5C; }
.dock:not(.care-expanded) .care-grid .act:first-child .act-label { left:0; transform:translate(0,4px) scale(.96); }
.dock:not(.care-expanded) .care-grid .act:first-child .act-label::after { left:22px; }
.dock:not(.care-expanded) .care-grid .act:nth-child(6) .act-label { left:auto; right:0; transform:translate(0,4px) scale(.96); }
.dock:not(.care-expanded) .care-grid .act:nth-child(6) .act-label::after { left:auto; right:17px; margin-left:0; }
.dock:not(.care-expanded) .care-grid .act.peek .act-label,
.dock:not(.care-expanded) .care-grid .act:focus-visible .act-label { opacity:1; visibility:visible; transform:translate(-50%,0); transition:opacity .14s ease, transform .14s ease, visibility 0s; }
.dock:not(.care-expanded) .care-grid .act:first-child.peek .act-label, .dock:not(.care-expanded) .care-grid .act:first-child:focus-visible .act-label,
.dock:not(.care-expanded) .care-grid .act:nth-child(6).peek .act-label, .dock:not(.care-expanded) .care-grid .act:nth-child(6):focus-visible .act-label { transform:none; }
@media (prefers-reduced-motion:reduce) { .dock:not(.care-expanded) .care-grid .act .act-label { transition:none !important; } }

/* Home options: one line at every width; the short label at <=350px so it never wraps over the window art */
.room-options { white-space:nowrap; }
.room-options[hidden] { display:none; }
.room-options .ro-short { display:none; }
@media (max-width:400px) { .room-options { padding:0 10px; } .room-options .ro-long { display:none; } .room-options .ro-short { display:inline; } }

/* Short screens (< 680px tall): expanded care keeps one compact line per button so the room keeps its height
   (hud.js also shows the strip compact there unless Expand is tapped), and the feed menu tightens. */
@media (max-height:679px) {
  .care-expanded .care-grid .act { height:44px; flex-direction:row; gap:4px; }
  .care-expanded .care-grid { gap:3px; }
  .care-expanded .care-grid .act-label { font-size:12px; }
  .care-expanded .care-grid .badge { display:none !important; }
  .care-expanded .drawer-txt b { font-size:14px; }
  .panel-feed .feed-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .panel-feed .panel-head h2 { font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .panel-feed .food-card { height:54px; padding:0 10px; gap:8px; }
  .panel-feed .food-art { width:36px; height:36px; }
  .panel-feed .food-title { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
  .panel-feed .food-desc { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
  .panel-feed .food-txt { min-width:0; }
  .pantry-head { margin:6px 2px 4px; }
  .panel-feed { max-height:min(320px,38dvh); }
  .panel-feed .pantry-chip { min-height:48px; padding-top:4px; padding-bottom:4px; }
}
@media (max-height:679px) and (max-width:350px) { .panel-feed .panel-head h2 { font-size:14px; } .panel-feed .food-title { font-size:14px; white-space:normal; line-height:1.1; } .panel-feed .food-desc { display:none; } .panel-feed .food-card { gap:6px; padding:0 8px; } .panel-feed .food-art { width:32px; height:32px; } }
@media (max-height:679px) and (max-width:350px) { .care-expanded .care-grid .act { padding:0 4px; gap:3px; } .care-expanded .care-grid .act-ic { width:22px; height:22px; flex:none; } .care-expanded .care-grid .act-ic svg { width:20px; height:20px; } .care-expanded .care-grid .act-label { white-space:nowrap; } }

/* ================= 1.6.3 (PR C): room identities, room arrows + doors, colourful care, Fredoka ================= */
/* Fredoka (SIL OFL 1.1, fonts/OFL.txt), self-hosted: Latin subset, variable weight 400-700, WOFF2. CSP font-src 'self' covers it. */
@font-face { font-family:"Fredoka"; src:url("fonts/fredoka-latin-var.woff2") format("woff2") tech("variations"), url("fonts/fredoka-latin-var.woff2") format("woff2");
  font-weight:400 700; font-stretch:100%; font-style:normal; font-display:swap;
  unicode-range:U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+2212; }
:root { --font:"Fredoka", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html, body, button, input, select, textarea { font-family:var(--font); }
.pet-name { font-family:var(--font); font-weight:600; letter-spacing:-.2px; }
.field-journal h3 { font-family:var(--font); font-weight:600; }
.pet-sub, .status-pill .need-lbl, .care-toggle, .room-options, .nav-btn, .panel-actions .drawer-txt small, .care-grid .act-label, .ex-info .chip, .journal-checks span { font-size:12.5px; }
.help-card p, .help-card li, .field-journal p { font-size:max(13px, 1em); line-height:1.5; }

/* ---- room identities: tokens come from MP.world.ROOM_THEMES via --th-* on #scene (cozy.js render) ---- */
.scene[data-room="living"] .wp-theme { background:
    radial-gradient(circle at 7px 7px, var(--th-wall-ink) 1.7px, transparent 2.5px) 0 0 / 28px 28px,
    radial-gradient(circle at 21px 21px, var(--th-wall-ink2) 1.4px, transparent 2.2px) 0 0 / 28px 28px,
    linear-gradient(180deg, #FFF9EC, var(--th-wall)); }
.scene[data-room="bedroom"] .wp-theme { background:
    radial-gradient(circle at 9px 9px, var(--th-wall-ink) 2px, transparent 3px) 0 0 / 30px 30px,
    radial-gradient(circle at 24px 22px, var(--th-wall-ink2) 1.5px, transparent 2.3px) 0 0 / 30px 30px,
    linear-gradient(180deg, #EEE6FF, var(--th-wall) 70%); }
.scene[data-room="kitchen"] .wp-theme { background:
    repeating-linear-gradient(90deg, var(--th-wall) 0 18px, var(--th-wall-ink2) 18px 36px),
    var(--th-wall); }
.scene[data-room="kitchen"] .wp-theme::before { content:''; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(circle at 9px 9px, var(--th-wall-ink) 1.6px, transparent 2.4px) 0 0 / 36px 36px; opacity:.9; }
/* 1.9.2 polish: the basement's flat walls match its lantern-lit brick cellar (they were a plain wash) */
.scene[data-room="basement"] .wp-theme { background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='28'%3E%3Cg fill='none' stroke='%23D6C9E4' stroke-width='1.6'%3E%3Cpath d='M0 .8H48M0 14.8H48M12 .8V14.8M36 .8V14.8M24 14.8V28M0 14.8V28M48 14.8V28'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 48px 28px,
    linear-gradient(180deg, #F6F0F7, var(--th-wall)); }
.scene[data-room="basement"] .fl-theme { background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28'%3E%3Cpath d='M0 .8H56M0 14.8H56M28 .8V14.8M14 14.8V28M42 14.8V28' fill='none' stroke='%23A8927C' stroke-opacity='.55' stroke-width='1.4'/%3E%3C/svg%3E") 0 0 / 56px 28px,
    linear-gradient(180deg, var(--th-floor-hi), var(--th-floor)); }
.scene[data-room="living"] .fl-theme { background:
    repeating-linear-gradient(90deg, transparent 0 4px, var(--th-floor-hi) 4px 6px, transparent 6px 44px),
    repeating-linear-gradient(90deg, var(--th-floor) 0 42px, var(--th-floor-line) 42px 44px); }
.scene[data-room="bedroom"] .fl-theme { background:
    repeating-linear-gradient(90deg, transparent 0 3px, var(--th-floor-hi) 3px 5px, transparent 5px 32px),
    repeating-linear-gradient(90deg, var(--th-floor) 0 30.5px, var(--th-floor-line) 30.5px 32px); }
.scene[data-room="kitchen"] .fl-theme { background:
    conic-gradient(var(--th-floor) 25%, var(--th-floor-line) 0 50%, var(--th-floor) 0 75%, var(--th-floor-line) 0) 0 0 / 34px 34px; }
.theme-swatch { display:block; width:100%; height:100%; border-radius:8px; box-shadow:inset 0 0 0 1.5px #0000001a; }
.theme-swatch.ts-wall[data-room="living"] { background:radial-gradient(circle at 6px 6px, #EBCB98 2px, transparent 3px) 0 0 / 14px 14px, #FFF4DE; }
.theme-swatch.ts-wall[data-room="bedroom"] { background:radial-gradient(circle at 6px 6px, #D9C8FF 2.4px, transparent 3.4px) 0 0 / 14px 14px, #F6F0FF; }
.theme-swatch.ts-wall[data-room="kitchen"] { background:repeating-linear-gradient(90deg, #F1F8EF 0 7px, #F7FBF4 7px 14px); box-shadow:inset 0 0 0 1.5px #CFE6CD; }
.theme-swatch.ts-floor[data-room="living"] { background:repeating-linear-gradient(90deg, #E7B47E 0 12px, #C98E58 12px 13.5px); }
.theme-swatch.ts-floor[data-room="bedroom"] { background:repeating-linear-gradient(90deg, #EBC79C 0 9px, #CFA272 9px 10.5px); }
.theme-swatch.ts-floor[data-room="kitchen"] { background:conic-gradient(#FFF4E6 25%, #F8CFCF 0 50%, #FFF4E6 0 75%, #F8CFCF 0) 0 0 / 14px 14px; }

/* built-in details: behind the furniture, never moved or saved */
.room-props { position:absolute; inset:0; pointer-events:none; }
.room-prop { position:absolute; }
.room-prop svg { display:block; width:100%; height:100%; overflow:visible; }
.scene.outdoor .room-props { display:none; }
.prop-wainscot { left:0; right:0; bottom:28%; height:15%; background:
    linear-gradient(180deg, var(--th-trim) 0 5px, #F5DEBC 5px), repeating-linear-gradient(90deg, transparent 0 40px, #C98A4B33 40px 42px);
  background-blend-mode:normal; box-shadow:0 -1px 0 #A0683466 inset; }
.prop-wainscot::after { content:''; position:absolute; inset:5px 0 0; background:repeating-linear-gradient(90deg, transparent 0 40px, #B5794255 40px 42px); }
.prop-shelf { left:22%; top:max(9%, 52px); width:26%; aspect-ratio:160 / 56; }
.prop-backsplash { left:0; right:0; bottom:28%; height:15%; background:
    linear-gradient(var(--th-wall-ink) 1.5px, transparent 1.5px) 0 0 / 26px 13px,
    linear-gradient(90deg, var(--th-wall-ink) 1.5px, transparent 1.5px) 0 0 / 26px 13px, #FFFFFF;
  box-shadow:inset 0 4px 0 var(--th-trim); }
.prop-potrail { left:5%; top:max(13%, 54px); width:30%; aspect-ratio:170 / 80; }
.prop-canopy { left:0; right:0; top:0; height:30px; background:
    radial-gradient(circle at 50% 0, var(--th-wall-ink) 13px, transparent 14px) 0 0 / 36px 20px repeat-x,
    linear-gradient(var(--th-wall-ink) 0 6px, transparent 6px); opacity:.9; }
.prop-mobile { left:66%; top:12%; width:17%; aspect-ratio:100 / 120; transform-origin:50% -60%; }
.prop-mobile::before { content:''; position:absolute; left:50%; bottom:100%; height:400px; border-left:2px solid #756478; margin-left:-1px; }
.dark .room-props, .dark .room-door { filter:brightness(.42) saturate(.8); }
.phase-night .prop-shelf .prop-flame { filter:drop-shadow(0 0 5px #FFC970); }
.phase-night .prop-mobile svg { filter:drop-shadow(0 0 6px #E6DEFFAA); }
@media (prefers-reduced-motion:no-preference) {
  .prop-mobile { animation:mobileSway 7s ease-in-out infinite; }
  @keyframes mobileSway { 0%, 100% { transform:rotate(-2.5deg); } 50% { transform:rotate(2.5deg); } }
}
.scene.editing .prop-mobile { animation:none; }

/* lighting mood per room, above the furniture like the phase tint (framed while the camera pans) */
.room-mood { position:absolute; inset:0; z-index:4; pointer-events:none; transition:opacity 1.2s ease, background 1.2s ease;
  transform:translateY(calc(var(--cam, 0px) * -1)); }
.scene[data-mood="open"] .room-mood, .scene.editing .room-mood { opacity:0; }
.scene[data-mood="warm"] .room-mood { background:radial-gradient(ellipse 62% 55% at 10% 80%, #FFBE6E30, #FFBE6E00 70%), linear-gradient(180deg, #FFD6960F, #FFAA5A14); }
.scene[data-mood="moonlit"] .room-mood { background:linear-gradient(180deg, #D6C8FF26, #D6C8FF08 65%), radial-gradient(ellipse 70% 50% at 50% 100%, #B9A3FF14, #B9A3FF00 70%); }
.scene[data-mood="fresh"] .room-mood { background:linear-gradient(180deg, #FFFFFF38, #FFFFFF00 48%), #D2F5E00F; }
.scene.phase-dusk[data-mood="warm"] .room-mood, .scene.phase-night[data-mood="warm"] .room-mood { background:radial-gradient(ellipse 70% 62% at 12% 78%, #FFB25C4D, #FFB25C00 72%), #FFA0500F; }
.scene.phase-night[data-mood="moonlit"] .room-mood { background:linear-gradient(112deg, #C8BEFF00 24%, #DCD2FF45 40%, #C8BEFF00 58%), radial-gradient(ellipse 60% 45% at 50% 0, #B4A0FF1F, #B4A0FF00 70%), #8C78F014; }
.scene.phase-night[data-mood="fresh"] .room-mood, .scene.phase-dusk[data-mood="fresh"] .room-mood { background:radial-gradient(ellipse 60% 55% at 50% 4%, #FFF2C842, #FFF2C800 72%), #FFE8B00A; }
.scene.dark .room-mood { opacity:.6; }

/* ---- room name + ‹ › arrows (replace the tab row) ---- */
.room-name { position:absolute; top:10px; left:10px; z-index:6; display:flex; align-items:center; gap:8px; max-width:calc(100% - 156px);
  min-width:0; min-height:36px; padding:0 12px; border-radius:18px; background:#FFFAF2EB; color:#4E3B5C; font-size:13.5px; font-weight:600; line-height:1;
  box-shadow:0 1px 0 #3A2C551A, 0 4px 12px #2E244814; pointer-events:none; overflow:hidden; transition:opacity .25s ease, transform .3s ease; }
.room-name[hidden] { display:none; }
.room-name-txt { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.room-dots { display:flex; gap:4px; flex:none; }
.room-dots i { width:6px; height:6px; border-radius:3px; background:#CBBDD5; transition:width .2s ease, background-color .2s ease; }
.room-dots i.on { width:14px; background:#756184; }
.scene.cam-up .room-name { opacity:0; transform:translateY(-8px); }
@media (max-width:400px) { .room-name { max-width:calc(100% - 118px); padding:0 10px; gap:6px; font-size:13px; } }
.room-arrow { position:absolute; top:30%; z-index:6; width:44px; height:44px; margin-top:-22px; padding:0; border:0; border-radius:50%; display:grid; place-items:center;
  background:#FFFAF2E0; color:#59456B; box-shadow:0 1px 0 #3A2C551F, 0 5px 14px #2E24481F; cursor:pointer; -webkit-tap-highlight-color:transparent;
  touch-action:manipulation; transition:transform .12s ease, background-color .2s ease; }
.room-arrow[hidden] { display:none; }
.room-arrow svg { width:24px; height:24px; }
.room-prev { left:6px; } .room-next { right:6px; }
.room-arrow:active { transform:scale(.92); background:#FFFFFF; }
.room-arrow:focus-visible, .door-go:focus-visible { outline:3px solid #59456B; outline-offset:2px; }
.app.decorating .room-name, .app.decorating .room-arrow, .app.decorating .door-go { display:none; }
.scene { touch-action:pan-y pinch-zoom; }
.scene.editing { touch-action:none; }

/* ---- doors: the Living room front door goes out, the Garden cottage door comes back in ---- */
.room-door.is-front { left:2.5%; bottom:28%; height:34%; aspect-ratio:70 / 120; min-width:46px; }
.room-door.door-cottage, .door-go.go-in { left:-9%; bottom:27%; height:max(38%, 150px); aspect-ratio:120 / 200; }
.door-go { position:absolute; padding:0; border:0; background:transparent; cursor:pointer; border-radius:16px 16px 4px 4px; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.door-go[hidden] { display:none; }
.door-go.go-out { left:2.5%; bottom:28%; height:34%; aspect-ratio:70 / 120; min-width:46px; }
.door-go.go-out.door-rounddoor { height:30%; aspect-ratio:1; }
.door-go.go-out.door-archdoor { height:42%; aspect-ratio:80 / 130; }
.door-go:active { background:#FFE9B833; }
.room-door.door-wooddoor.is-front, .door-go.go-out.door-wooddoor { height:34%; }

/* ---- room change: a short veil (a door also eases the room toward it). JS skips this entirely with reduced motion. ---- */
.room-veil { position:absolute; inset:0; z-index:9; pointer-events:none; opacity:0; background:#FFF8EE; transition:opacity .15s ease; }
.scene.phase-night .room-veil, .scene.dark .room-veil { background:#2A2266; }
.scene.room-going .room-veil { opacity:.8; }
.scene.go-door.room-going .room-veil { opacity:.92; transition-duration:.24s; }
.scene.room-coming .room-veil { opacity:0; transition-duration:.2s; }
.scene.go-next.room-going .cam { translate:-14px 0; transition:translate .15s ease, transform .5s cubic-bezier(.3, .8, .3, 1); }
.scene.go-prev.room-going .cam { translate:14px 0; transition:translate .15s ease, transform .5s cubic-bezier(.3, .8, .3, 1); }
.scene.go-door.room-going .cam { scale:1.07; transform-origin:12% 66%; transition:scale .24s ease, transform .5s cubic-bezier(.3, .8, .3, 1); }
.scene.go-next.room-coming .cam { animation:roomInR .2s ease-out; }
.scene.go-prev.room-coming .cam { animation:roomInL .2s ease-out; }
.scene.go-door.room-coming .cam { animation:roomInDoor .26s ease-out; }
@keyframes roomInR { from { translate:14px 0; } to { translate:0 0; } }
@keyframes roomInL { from { translate:-14px 0; } to { translate:0 0; } }
@keyframes roomInDoor { from { scale:.97; } to { scale:1; } }
@media (prefers-reduced-motion:reduce) { .room-veil, .room-arrow, .room-dots i, .room-name { transition:none !important; } .scene .cam { animation:none !important; translate:none !important; scale:none !important; } }

/* ---- colourful but cozy care: one soft chip colour per action (muted pastels; label and icon tints pass WCAG AA) ---- */
.care-grid .act { --chip:#F2EBE3; --tint:#6A577A; --deep:#4E3B5C; --wash:#FBF7F2; }
.care-grid .act[data-act="feed"] { --chip:#FBE1CF; --tint:#9A4F24; --deep:#7A3A17; --wash:#FEF4EC; }
.care-grid .act[data-act="play"] { --chip:#F8EBC2; --tint:#86620C; --deep:#644805; --wash:#FEF9EA; }
.care-grid .act[data-act="sleep"] { --chip:#E8E0F7; --tint:#62509A; --deep:#46377A; --wash:#F7F4FD; }
.care-grid .act[data-act="clean"] { --chip:#D9EEE3; --tint:#2C7155; --deep:#1E5440; --wash:#F1F9F5; }
.care-grid .act[data-act="bath"] { --chip:#D8E9F5; --tint:#2B6789; --deep:#1D4C68; --wash:#F0F7FC; }
.care-grid .act[data-act="heal"] { --chip:#F6DCE4; --tint:#A0415D; --deep:#7A2B43; --wash:#FDF2F5; }
.care-grid .act[data-act="cook"] { --chip:#E5ECCF; --tint:#5A6820; --deep:#424D14; --wash:#F7F9EE; }
.care-grid .act .act-ic { background:var(--chip); color:var(--tint); border-radius:12px; transition:background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.care-grid .act .act-label { color:var(--deep); }
/* compact: icon chips in a row; a need turns the whole button into its colour with a ring and a dot */
.dock:not(.care-expanded) .care-grid .act { background:transparent; box-shadow:none; }
.dock:not(.care-expanded) .care-grid .act .act-ic { width:36px; height:36px; }
.dock:not(.care-expanded) .care-grid .act .act-ic svg { width:22px; height:22px; }
.dock:not(.care-expanded) .care-grid .act .act-label { color:#FFF9F2; }
.dock:not(.care-expanded) .care-grid .act.needs { background:var(--chip); box-shadow:inset 0 0 0 2px var(--tint); }
.dock:not(.care-expanded) .care-grid .act.needs .act-ic { background:#FFFDF9; color:var(--tint); }
.dock:not(.care-expanded) .care-grid .act.needs::after { content:''; position:absolute; top:4px; right:4px; width:8px; height:8px; border-radius:50%; background:#C7304F; box-shadow:0 0 0 2px #FFFDF9; }
/* expanded: soft washed tiles with the same chip; a need gets its colour, a 2px ring and the Low / Now badge */
.care-expanded .care-grid .act { background:var(--wash); box-shadow:inset 0 0 0 1px var(--chip); }
.care-expanded .care-grid .act .act-ic { width:38px; height:38px; }
.care-expanded .care-grid .act.needs { background:var(--chip); box-shadow:inset 0 0 0 2px var(--tint); }
.care-expanded .care-grid .act.needs .act-ic { background:#FFFDF9; }
.care-expanded .care-grid [data-act="cook"] { background:var(--wash); box-shadow:inset 0 0 0 1px var(--chip); border-top:0; }
.care-expanded .care-grid [data-act="cook"] .act-ic { width:30px; height:30px; border-radius:10px; }
.care-grid .act.muted, .care-grid .act[aria-disabled="true"] { background:transparent; box-shadow:none; }
.care-expanded .care-grid .act.muted, .care-expanded .care-grid .act[aria-disabled="true"] { background:#F6F3EF; }
.care-grid .act.muted .act-ic, .care-grid .act[aria-disabled="true"] .act-ic { background:#EEE8E2; color:#857A8E; }
.care-grid .act.muted .act-label, .care-grid .act[aria-disabled="true"] .act-label { color:#6F6478; }
.dock:not(.care-expanded) .care-grid .act.muted .act-label, .dock:not(.care-expanded) .care-grid .act[aria-disabled="true"] .act-label { color:#FFF9F2; }
@media (max-height:679px) { .care-expanded .care-grid .act .act-ic { width:28px; height:28px; } .care-expanded .care-grid .act .act-ic svg { width:20px; height:20px; } }
@media (max-height:679px) and (max-width:350px) { .care-expanded .care-grid .act .act-ic { width:24px; height:24px; } }
@media (max-width:350px) { .dock:not(.care-expanded) .care-grid .act .act-ic { width:32px; height:32px; } }
@media (prefers-reduced-motion:reduce) { .care-grid .act .act-ic { transition:none; } }

.scene.outdoor.phase-dusk .room-door.door-cottage { filter:brightness(.82) saturate(.9); }
.scene.outdoor.phase-night .room-door.door-cottage { filter:brightness(.6) saturate(.85); }
.scene.outdoor.dark .room-door.door-cottage { filter:brightness(.42) saturate(.8); }

/* ===================== 1.7.0: the isometric dollhouse (js/iso.js) ===================== */
.iso-view { position:absolute; inset:0; overflow:hidden; --hz:60%; }
.iso-view[hidden] { display:none !important; }
.iso-sky { position:absolute; inset:0; z-index:0; pointer-events:none;
  background: radial-gradient(60px 24px at 16% 18%, #fff 98%, transparent 100%), radial-gradient(44px 18px at 24% 15%, #fff 98%, transparent 100%),
    radial-gradient(70px 26px at 86% 30%, rgba(255,255,255,.9) 98%, transparent 100%), radial-gradient(46px 20px at 78% 27%, rgba(255,255,255,.9) 98%, transparent 100%),
    linear-gradient(#A9DDFF, #E4F5FF 70%, #F3FAFF); transition:opacity .8s ease; }
.iso-sky i { position:absolute; border-radius:50%; transition:opacity .8s ease; }
.iso-sun { right:9%; top:64px; width:34px; height:34px; background:#FFE27A; box-shadow:0 0 0 7px rgba(255,226,122,.35); }
.iso-moon { right:10%; top:66px; width:28px; height:28px; background:#FFF0B5; box-shadow:0 0 18px rgba(255,240,181,.7); opacity:0; }
/* keep the sun / moon clear of the Options pill (top) and the › arrow (right) */
@media (max-width: 350px) { .iso-sun { right:30%; } .iso-moon { right:31%; } }
.phase-dawn .iso-sky { background: radial-gradient(60px 24px at 16% 18%, #FFF4F0 98%, transparent 100%), linear-gradient(#FFAFA0, #FFE7C6 70%, #FFF3E2); }
.phase-dusk .iso-sky { background: radial-gradient(56px 22px at 72% 24%, rgba(255,214,190,.8) 90%, transparent 100%), linear-gradient(#6F5CD2, #FFB0A0 75%, #FFD7C2); }
.phase-night .iso-sky, .scene.dark .iso-sky { background:
    radial-gradient(1.6px 1.6px at 12% 14%, #FFF3C4 98%, transparent), radial-gradient(1.2px 1.2px at 28% 32%, #fff 98%, transparent),
    radial-gradient(1.8px 1.8px at 62% 10%, #FFF3C4 98%, transparent), radial-gradient(1.2px 1.2px at 88% 36%, #fff 98%, transparent),
    radial-gradient(1.4px 1.4px at 7% 44%, #fff 98%, transparent), radial-gradient(1.2px 1.2px at 46% 22%, #fff 98%, transparent),
    linear-gradient(#17134A, #3A2F7E 75%, #4C3F93); }
.phase-night .iso-sun, .phase-dusk .iso-sun, .scene.dark .iso-sun { opacity:0; }
.phase-night .iso-moon, .scene.dark .iso-moon { opacity:1; }
/* the meadow the house stands on: from the plot's back corner down, so a tall phone never shows a band of empty sky */
.iso-ground { position:absolute; left:0; right:0; top:var(--hz); bottom:0; z-index:0; pointer-events:none;
  background: radial-gradient(120% 60px at 20% 0, #B9E39E 60%, transparent 62%), radial-gradient(110% 50px at 85% 0, #ADDD92 60%, transparent 62%), linear-gradient(#B4E09A, #9CD47E); }
.season-autumn .iso-ground { background: linear-gradient(#CED48A, #B9BE6E); }
.season-winter .iso-ground { background: linear-gradient(#EEF3FA, #DCE6F2); }
.phase-night .iso-ground, .scene.dark .iso-ground { filter:brightness(.55) saturate(.8); }
.iso-world, .iso-glows { position:absolute; left:0; top:0; transform-origin:0 0; }
.iso-world { z-index:1; }
.iso-glows { z-index:5; pointer-events:none; mix-blend-mode:screen; }
.iso-view:not(.iso-still) .iso-world, .iso-view:not(.iso-still) .iso-glows { transition:transform .62s cubic-bezier(.25, .8, .25, 1); }
.iso-view.iso-moving .iso-world { will-change:transform; }
/* build i: while the field camera follows Pip, the world moves as one composited layer (re-drawn sharp when it stops) */
.iso-view.iso-follow .iso-world, .iso-view.iso-follow .iso-glows { will-change:transform; }
.iso-house, .iso-house svg { position:absolute; left:0; top:0; width:100%; height:100%; display:block; overflow:visible; }
.iso-house { z-index:0; }
.iso-static, .iso-occs { position:absolute; left:0; top:0; width:0; height:0; }
.iso-occ, .iso-item, .iso-ceil { position:absolute; left:0; top:0; pointer-events:none; }
.iso-occ svg, .iso-item > svg, .scene.iso .furn-item > svg, .iso-ceil svg { width:100%; height:100%; display:block; overflow:visible; }
.iso-measure { position:absolute; left:-9999px; top:0; width:10px; height:10px; visibility:hidden; pointer-events:none; }
.room-hit { fill:#000; fill-opacity:0; stroke:none; cursor:pointer; }
.room-hit:focus { outline:none; }
.kbd .room-hit:focus-visible { stroke:#7B5CFF; stroke-width:2.5; stroke-dasharray:5 3; }
.iso-zoomed .room-hit { cursor:default; }
/* the door piers and the kitchen pier fade to a ghost when you look into the room behind them (the cut-away) */
.iso-pier { transition:opacity .45s ease; }
.iso-view[data-cam="living"] .pier-living, .iso-view[data-cam="kitchen"] .pier-kitchen { opacity:.16; }
/* day / night details of the house */
.iso-view .glass-night, .iso-view .iso-lit { opacity:0; transition:opacity .6s; }
.phase-night .iso-view .glass-night, .scene.dark .iso-view .glass-night, .phase-night .iso-view .iso-lit, .phase-dusk .iso-view .iso-lit { opacity:1; }
.phase-night .iso-view .sunbeam, .phase-dusk .iso-view .sunbeam, .scene.dark .iso-view .sunbeam { opacity:0; }
.iso-glow { position:absolute; left:0; top:0; border-radius:50%; background:radial-gradient(closest-side, rgba(255,227,160,.85), rgba(255,201,112,.35) 50%, rgba(255,180,92,0)); opacity:.45; transition:opacity .6s ease; }
.phase-night .iso-glow, .phase-dusk .iso-glow { opacity:1; }
.scene.dark .iso-glow { opacity:.7; }
.iso-glow.g-win { opacity:0; }
.phase-night .iso-glow.g-win, .phase-dusk .iso-glow.g-win { opacity:.55; }
.scene.editing .iso-glows { opacity:0; }
/* the flat room's own layers rest while the dollhouse is on */
.scene.iso .room-wall, .scene.iso .room-sky, .scene.iso .room-floor, .scene.iso .room-trim, .scene.iso .room-props, .scene.iso .room-door,
.scene.iso .room-mood, .scene.iso .room-light, .scene.iso .room-motes, .scene.iso .room-glow, .scene.iso .room-veil { display:none !important; }
.scene.iso .furn, .scene.iso .poops, .scene.iso.editing .furn { position:absolute; left:0; top:0; width:0; height:0; inset:auto; z-index:auto; }
.scene.iso.dark .furn, .scene.iso.dark .room-wall, .scene.iso.dark .room-floor { filter:none; }
/* furniture on the dollhouse floor and walls: positioned by inline transforms (iso.placeItem) */
.scene.iso .furn-item { left:0; top:0; bottom:auto; }
.scene.iso .furn-item.iso-art::before, .scene.iso .furn-item.cat-window::before { display:none; }
.scene.iso .furn-item.cat-floor::before, .scene.iso .furn-item.cat-seat::before, .iso-item.cat-floor::before { transform:none; opacity:.7; }
.scene.iso .lamp-hit { width:max(calc(45px / var(--zs, 1)), 100%); height:calc(45px / var(--zs, 1)); min-width:0; min-height:0; }
/* every piece is at least a 44px touch target while decorating (small pieces get a bigger dashed box) */
.scene.iso.editing .furn-item::after { top:calc(min(0px, (100% - 44px / var(--zs, 1)) / 2) - 3px / var(--zs, 1)); bottom:calc(min(0px, (100% - 44px / var(--zs, 1)) / 2) - 3px / var(--zs, 1));
  left:calc(min(0px, (100% - 44px / var(--zs, 1)) / 2) - 3px / var(--zs, 1)); right:calc(min(0px, (100% - 44px / var(--zs, 1)) / 2) - 3px / var(--zs, 1));
  border-width:calc(2px / var(--zs, 1)); border-radius:calc(8px / var(--zs, 1)); }
.scene.iso.editing .furn-item.selected::after { border-width:calc(3px / var(--zs, 1)); }
.scene.iso .room-ceil { left:0; top:0; aspect-ratio:auto; }
.scene.iso .room-ceil .lamp-hit { bottom:calc(-12px / var(--zs, 1)); width:calc(45px / var(--zs, 1)); }
.room-ceil.ceil-off svg, .iso-ceil.ceil-off svg { filter:saturate(.6) brightness(.92); }
/* Pip in the dollhouse: placed with the translate property (iso.placePet) so its own transform animations still run */
.scene.iso .pet-wrap { left:0 !important; top:0 !important; bottom:auto !important; transform:none; transition:filter .8s, opacity .2s; will-change:translate; }
.scene.iso .pet-wrap.sitting { transition:filter .8s; }
.pet-hop.iso-walking { animation:isowalk .42s ease-in-out infinite; }
@keyframes isowalk { 0%, 100% { transform:translateY(0) rotate(0); } 25% { transform:translateY(-6%) rotate(-3deg); } 75% { transform:translateY(-6%) rotate(3deg); } }
.scene.iso .poop { left:0 !important; top:0; bottom:auto !important; transform:none; }
.scene.iso .door-go { left:0; top:0; bottom:auto; right:auto; border-radius:6px; }
.scene.iso:not(.iso-zoomed) .door-go { display:none; }
/* in the overview a tap anywhere in a room zooms into it (seats, mirrors and lamps answer once you are inside) */
.scene.iso:not(.iso-zoomed) .furn-item, .scene.iso:not(.iso-zoomed) .lamp-hit { pointer-events:none !important; }
.scene.iso:not(.iso-zoomed) .room-name-txt { font-weight:700; }
/* the house button: back to the whole dollhouse */
.iso-house-btn { position:absolute; left:10px; top:10px; z-index:7; width:44px; height:44px; padding:0; border:0; border-radius:14px; display:grid; place-items:center;
  background:#FFFAF2ED; color:#55415F; box-shadow:0 2px 0 #E7DACA, 0 4px 12px rgba(80, 56, 30, .10); cursor:pointer; }
.iso-house-btn svg { width:22px; height:22px; }
.iso-house-btn:focus-visible { outline:3px solid #7B5CFF; outline-offset:2px; }
.scene.iso-zoomed .room-name { left:62px; max-width:calc(100% - 192px); }
@media (max-width:400px) { .scene.iso-zoomed .room-name { left:58px; max-width:calc(100% - 168px); } }
.app.decorating .iso-house-btn { display:none; }
.app.decorating .scene.iso-zoomed .room-name { left:10px; }
@media (prefers-reduced-motion:reduce) {
  .iso-view .iso-world, .iso-view .iso-glows, .iso-pier, .iso-glow, .iso-sky, .iso-view .glass-night, .iso-view .iso-lit { transition:none !important; }
  .pet-hop.iso-walking { animation:none; }
}
/* while decorating, the picked item comes to the front so the finger always finds it */
.scene.iso.editing .furn-item.selected:not(.is-rug), .scene.iso.editing .furn-item.dragging:not(.is-rug) { z-index:99999 !important; }

/* ===================== 1.7.0 h: ENTER: each room or outdoor area as its own field (js/iso.js) ===================== */
.iso-field { position:absolute; left:0; top:0; width:100%; height:100%; z-index:0; }
.iso-field svg { position:absolute; left:0; top:0; width:100%; height:100%; display:block; overflow:visible; }
.iso-field[hidden], .iso-doors[hidden], .iso-foccs[hidden] { display:none !important; }
.iso-view.in-field .iso-house, .iso-view.in-field .iso-static, .iso-view.in-field .iso-occs:not(.iso-foccs) { display:none !important; }
/* indoors (build i): the room fills the play area; its walls fade into a ceiling shade at the top and its floor into a floor
   shade at the front, and the backdrop is those same two shades, so the cut edges melt away (iso.js fFades / showField) */
.iso-view.f-in { --f-ceil:var(--fth-ceil, #E3DAEA); --f-floor:var(--fth-floor, #C9A383); background:linear-gradient(var(--f-ceil) 0%, var(--f-ceil) 45%, var(--f-floor) 55%, var(--f-floor) 100%); }
.iso-view.f-in .iso-sky, .iso-view.f-in .iso-ground { display:none; }
.phase-dusk .iso-view.f-in { --f-ceil:#CDBBD8; --f-floor:#9C7E86; }
.phase-night .iso-view.f-in, .scene.dark .iso-view.f-in { --f-ceil:#2B2560; --f-floor:#3A3170; }
.iso-field .f-sf { stop-color:var(--f-floor); }
.iso-field .f-sc { stop-color:var(--f-ceil); }
/* build i: the doors are the door / stair art; an invisible >= 44px button sits on each (sized in iso.placeDoors), no label */
.iso-doors { position:absolute; left:0; top:0; width:0; height:0; z-index:6; }
.iso-door { position:absolute; left:0; top:0; min-width:44px; min-height:44px; padding:0; border:0; border-radius:12px; background:transparent; color:transparent;
  cursor:pointer; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.iso-door.off { pointer-events:none; }
/* 1.9.1 b: tap areas never draw anything (no pressed tint, no ring, no box) except a keyboard focus ring while someone is really using the keyboard */
.iso-door:focus, .iso-door:focus-visible { outline:none; }
.kbd .iso-door:focus-visible { outline:3px solid #7B5CFF; outline-offset:2px; }
.scene.editing .iso-doors { display:none !important; }
.scene.iso-infield .door-go { display:none !important; }
/* the Enter button (overview and zoomed room) */
.iso-enter-btn { position:absolute; left:50%; bottom:12px; transform:translateX(-50%); z-index:7; height:44px; max-width:calc(100% - 24px); padding:0 18px 0 13px; display:flex; align-items:center; gap:8px;
  border:0; border-radius:22px; background:var(--cta); color:#fff; font:inherit; font-size:14.5px; font-weight:700; line-height:1; white-space:nowrap; cursor:pointer;
  box-shadow:0 3px 0 var(--cta-d), 0 6px 14px rgba(64, 48, 79, .25); }
.iso-enter-btn svg { width:20px; height:20px; flex:none; }
.iso-enter-t { overflow:hidden; text-overflow:ellipsis; }
.iso-enter-btn[hidden], .app.decorating .iso-enter-btn { display:none !important; }
.iso-enter-btn:focus-visible { outline:3px solid #FFD84A; outline-offset:2px; }
/* the short fade between fields (none with reduced motion) */
.iso-veil { position:absolute; inset:0; z-index:6; background:#FFF8EE; opacity:0; pointer-events:none; transition:opacity .17s ease; }
.phase-night .iso-veil, .scene.dark .iso-veil { background:#241E52; }
.iso-view.f-veil .iso-veil { opacity:1; }
@media (prefers-reduced-motion:reduce) { .iso-veil { transition:none !important; } }

/* ---- 1.7.0 j: the wall view (one wall straight on: the flat room, js/iso.js) and the zoom button ---- */
.iso-wall-btn { top:62px; }
.iso-wall-btn[hidden] { display:none; }
.iso-wall-btn svg { width:23px; height:23px; }
.app.decorating .iso-wall-btn { display:none; }
.scene.iso-infield, .scene.wall-view { touch-action:pan-y; }
.scene.wall-view.editing { touch-action:none; }
/* the front door / cottage door belong to their own wall */
.scene.wall-view:not(.wall-door) .room-door, .scene.wall-view:not(.wall-door) .door-go { display:none !important; }
.scene.wall-view .room-name.is-wall .room-name-txt { font-weight:600; }
@media (max-width:350px) { .scene.wall-view .rn-room { display:none; } }
/* while decorating on a wall the arrows still turn to the other walls */
.app.decorating .scene.wall-view .room-arrow:not([hidden]) { display:grid; }
/* zoom in: the field dives at the wall (iso.js), then the wall settles in; zoom out: the wall falls back */
.iso-view.wall-zoom .iso-veil { opacity:.75; transition:opacity .25s ease-in; }
.scene.wall-in .cam { animation:wallIn .28s cubic-bezier(.2, .7, .3, 1); }
@keyframes wallIn { from { transform:scale(.9); opacity:.35; } to { transform:none; opacity:1; } }
.scene.wall-out .cam { transform:scale(.86); opacity:.25; transition:transform .18s ease-in, opacity .18s ease-in; }
.scene.wall-turn.go-next.room-going .cam { translate:-30px 0; }
.scene.wall-turn.go-prev.room-going .cam { translate:30px 0; }
@media (prefers-reduced-motion:reduce) { .scene.wall-in .cam, .scene.wall-out .cam { animation:none !important; transition:none !important; transform:none !important; opacity:1 !important; } .iso-view.wall-zoom .iso-veil { transition:none !important; } }
/* the name pill carries the wall's name too: the options pill goes short to give it room */
.scene.wall-view .room-options { padding:0 12px; } .scene.wall-view .room-options .ro-long { display:none; } .scene.wall-view .room-options .ro-short { display:inline; }
.scene.wall-view .room-name { max-width:calc(100% - 158px); }
@media (max-width:400px) { .scene.wall-view .room-name { max-width:calc(100% - 168px); } }
/* the room's one-off props (shelf, pot rail) hang on its left wall only; bands (wainscot, backsplash) run round every wall */
.scene.wall-view:not([data-wall="left"]) .prop-shelf, .scene.wall-view:not([data-wall="left"]) .prop-potrail { display:none; }
/* short screens: the ‹ arrow (30% down) would meet a zoom button under the house button, so it sits beside it instead */
@media (max-height:700px) {
  .iso-wall-btn { top:10px; left:58px; }
  .scene.iso-infield .room-name, .scene.wall-view .room-name { left:106px; max-width:calc(100% - 220px); }
  .scene.wall-view .room-name { max-width:calc(100% - 214px); }
}
@media (max-height:700px) and (max-width:400px) {
  .iso-wall-btn { left:56px; }
  .scene.iso-infield .room-name, .scene.wall-view .room-name { left:104px; max-width:calc(100% - 204px); }
  .scene.iso-infield .room-dots, .scene.wall-view .room-dots { display:none; }
}
.scene.wall-view .room-name { gap:6px; }
@media (min-height:701px) { .scene.wall-view .room-name { max-width:calc(100% - 146px); } }

/* ===================== 1.8.0 (PR D2): places you visit (js/places.js) ===================== */
/* neighbor homes, Moon Lane and the Moon Market shop: a full-screen layer over the Home scene; the home underneath rests */
.place { position:absolute; inset:0; z-index:12; overflow:hidden; touch-action:none; user-select:none; -webkit-user-select:none;
  background:linear-gradient(180deg, var(--pl-ceil, #F6EBDD) 0%, var(--pl-ceil, #F6EBDD) 38%, var(--pl-floor, #E7C9A0) 62%, var(--pl-floor, #E7C9A0) 100%); }
.place[hidden] { display:none; }
.place:focus { outline:none; }
.place[data-kind="lane"] { background:#9CD47E; }
.scene.in-place > :not(.place) { visibility:hidden; }
.app.in-place .dock { opacity:.5; filter:saturate(.6); transition:opacity .2s ease; }
.pl-world { position:absolute; left:0; top:0; transform-origin:0 0; }
.pl-world.pl-follow { will-change:transform; }
.pl-room { position:absolute; left:0; top:0; pointer-events:none; }
.pl-room svg { display:block; width:100%; height:100%; overflow:visible; }
.pl-node { position:absolute; left:0; top:0; pointer-events:none; }
.pl-node > svg, .pl-node .pl-pip-bob > svg { display:block; width:100%; height:100%; overflow:visible; }
.pl-host, .pl-lane-host { pointer-events:auto; cursor:pointer; }
.pl-pip-bob { position:absolute; inset:0; transform-origin:50% 95%; }
.pl-pip-bob > svg { transform:scaleX(var(--face, 1)); transform-origin:50% 50%; }
.pl-pip.walking .pl-pip-bob { animation:walk .42s ease-in-out infinite; }
.pl-pip:not(.walking) .pl-pip-bob, .pl-host > svg { animation:breathe 3.2s ease-in-out infinite; transform-origin:50% 95%; }
.pl-hop > svg { animation:hop .6s ease-out 1 !important; }
.pl-sign-t, .iso-sign-t { font-family:var(--font); font-weight:600; }
.pl-day-only { display:inline; } .pl-night-only, .pl-lit { display:none; }
.scene.phase-night .place .pl-day-only { display:none; }
.scene.phase-night .place .pl-night-only, .scene.phase-night .place .pl-lit, .scene.phase-dusk .place .pl-lit { display:inline; }
.pl-tint { position:absolute; inset:0; pointer-events:none; opacity:0; transition:opacity .4s ease; background:radial-gradient(ellipse at 50% 38%, rgba(255, 214, 140, .12), rgba(36, 26, 92, .40) 78%); }
.scene.phase-night .pl-tint { opacity:1; }
.scene.phase-dusk .pl-tint { opacity:.45; }
.place[data-kind="lane"] .pl-tint { background:rgba(30, 24, 80, .18); }
/* the tap targets on the art: doors, the host, the counter (no tags; aria-label only) */
.pl-btns { position:absolute; inset:0; pointer-events:none; }
.pl-hit { position:absolute; left:0; top:0; min-width:44px; min-height:44px; padding:0; border:0; border-radius:14px; background:transparent; color:transparent; pointer-events:auto; cursor:pointer; }
.pl-hit:focus, .pl-hit:focus-visible { outline:none; }
.kbd .pl-hit:focus-visible { outline:3px solid #7B5CFF; outline-offset:2px; }
.pl-hit.off { pointer-events:none; }
#place .pl-house { top:10px; left:10px; z-index:8; }
#place .pl-name { left:62px; top:10px; z-index:8; max-width:calc(100% - 74px); }
.pl-name .room-name-txt { font-weight:700; }
/* the speech bubble (the host's lines) */
.pl-say { position:absolute; left:50%; top:58px; z-index:8; width:max-content; max-width:calc(100% - 28px); margin:0; padding:10px 14px; transform:translateX(-50%);
  background:#FFFAF2; color:#3F2F4A; border-radius:16px; font-size:14.5px; line-height:1.35; box-shadow:0 2px 0 #E7DACA, 0 6px 16px rgba(60, 40, 80, .14); text-align:center; }
.pl-say[hidden] { display:none; }
.pl-say.show { animation:plpop .22s ease-out 1; }
@keyframes plpop { 0% { opacity:0; transform:translate(-50%, 6px); } 100% { opacity:1; transform:translate(-50%, 0); } }
/* the bottom bar: Talk / Gift in a home, Shop in the market */
.pl-bar { position:absolute; left:10px; right:10px; bottom:10px; z-index:8; display:flex; gap:8px; justify-content:center; pointer-events:none; }
.pl-bar[hidden] { display:none; }
.pl-act { pointer-events:auto; min-height:44px; height:46px; padding:0 16px 0 10px; display:flex; align-items:center; gap:8px; border:0; border-radius:23px; background:var(--cta); color:#fff;
  font:inherit; font-size:15px; font-weight:700; line-height:1; white-space:nowrap; cursor:pointer; box-shadow:0 3px 0 var(--cta-d), 0 6px 14px rgba(64, 48, 79, .25); max-width:100%; }
.pl-act + .pl-act { background:#FFFAF2; color:#4E3B5C; box-shadow:0 3px 0 #E2D3C2, 0 6px 14px rgba(70, 40, 60, .14); }
.pl-act-ic { width:24px; height:24px; display:grid; place-items:center; flex:none; }
.pl-act-ic svg { width:22px; height:22px; }
.pl-act-t { overflow:hidden; text-overflow:ellipsis; }
.pl-act:focus-visible { outline:3px solid #FFD84A; outline-offset:2px; }
#plOut { background:#FFFAF2; color:#4E3B5C; box-shadow:0 3px 0 #E2D3C2, 0 6px 14px rgba(70, 40, 60, .14); font-weight:600; }
/* the veil between places */
.pl-veil { position:absolute; inset:0; z-index:9; background:var(--pl-ceil, #FBF4EA); opacity:0; pointer-events:none; transition:opacity .16s ease; }
.pl-veil.on { opacity:1; }
/* the Neighbor page: Visit home; the Neighbors page: Moon Lane */
.nb-visit, .friends-lane { gap:8px; font-weight:700; color:#4E3B5C; }
.nb-visit [data-icon], .friends-lane [data-icon] { width:22px; height:22px; display:inline-grid; }
.friends-lane { margin:0 0 12px; }
@media (prefers-reduced-motion:reduce) {
  .pl-pip .pl-pip-bob, .pl-host > svg, .pl-hop > svg, .pl-say.show { animation:none !important; }
  .pl-veil, .pl-tint { transition:none; }
}
@media (max-width:350px) { .pl-act { font-size:14px; padding:0 13px 0 8px; } #place .pl-name { left:58px; max-width:calc(100% - 66px); } .pl-say { font-size:13.5px; } }
/* the lane's sun / moon (fixed in the sky while the street scrolls) */
.pl-orb { position:absolute; right:22px; top:70px; z-index:1; width:44px; height:44px; border-radius:50%; display:none; pointer-events:none;
  background:radial-gradient(circle at 40% 38%, #FFF6C8, #FFD84A 70%); box-shadow:0 0 0 10px rgba(255, 226, 122, .25), 0 0 30px rgba(255, 216, 74, .5); }
.place[data-kind="lane"] .pl-orb { display:block; }
.scene.phase-night .place .pl-orb { background:transparent; box-shadow:inset -12px 5px 0 0 #FFF3C4, 0 0 22px rgba(255, 243, 196, .25); }
@media (max-height:700px) { .pl-orb { top:12px; right:14px; width:34px; height:34px; } }

/* ===================== 1.8.0 build b: Moon Lane graphics pass (js/lane-art.js) + neighbor dialogue (js/dialogue.js) ===================== */
.sr-only { position:absolute !important; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
/* the lane: the sky + parallax hills behind the street (fixed to the scene), weather / life particles over it */
.place[data-kind="lane"] .pl-orb, .place[data-kind="lane"] .pl-tint { display:none; }
.pl-bgl, .pl-fx { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.pl-fx { z-index:3; }
.pl-sky { position:absolute; left:0; top:0; display:block; }
.pl-par { position:absolute; display:block; will-change:transform; }
.pl-street { position:absolute; left:0; top:0; pointer-events:none; }
/* the lane's street stays one composited layer (no re-raster each time Pip starts / stops walking) */
.place[data-kind="lane"] .pl-world { will-change:transform; }
.pl-tile { position:absolute; display:block; }
.pl-amb { position:absolute; inset:0; }
.pl-cloud { position:absolute; display:block; animation:plcloud var(--dur, 90s) linear infinite alternate; will-change:transform; }
@keyframes plcloud { from { transform:translateX(0); } to { transform:translateX(var(--dx, 160px)); } }
.pl-twinkle { position:absolute; width:3px; height:3px; border-radius:50%; background:#FFF6D8; box-shadow:0 0 6px 2px rgba(255, 246, 216, .55); animation:pltwinkle 3.6s ease-in-out infinite; }
@keyframes pltwinkle { 0%, 100% { opacity:.15; transform:scale(.6); } 50% { opacity:1; transform:scale(1.15); } }
.pl-smoke { position:absolute; border-radius:50%; background:radial-gradient(circle at 45% 45%, rgba(255, 255, 255, .7), rgba(236, 232, 244, .35) 50%, rgba(236, 232, 244, 0) 70%); opacity:0; animation:plsmoke 4.2s ease-out infinite; }
@keyframes plsmoke { 0% { opacity:0; transform:translate(0, 0) scale(.45); } 18% { opacity:.85; } 100% { opacity:0; transform:translate(var(--drift, 10px), var(--rise, -60px)) scale(1.5); } }
.pl-sway { position:absolute; display:block; transform-origin:50% 100%; animation:plsway 3.2s ease-in-out infinite alternate; }
@keyframes plsway { from { transform:rotate(-5deg); } to { transform:rotate(5deg); } }
.pl-glow { position:absolute; border-radius:50%; background:radial-gradient(circle, rgba(255, 220, 150, .30), rgba(255, 210, 130, .10) 45%, rgba(255, 210, 130, 0) 70%); animation:plbreathe 3.4s ease-in-out infinite; }
@keyframes plbreathe { 0%, 100% { opacity:.55; transform:scale(.94); } 50% { opacity:1; transform:scale(1.04); } }
.pl-p { position:absolute; display:block; pointer-events:none; }
.pl-leaf { width:10px; height:7px; border-radius:7px 1px 7px 1px; background:var(--c, #F2A65A); box-shadow:inset -1px -1px 0 rgba(120, 60, 30, .25); animation:plfall 10s linear infinite; }
.pl-petal { width:8px; height:6px; border-radius:6px 1px 6px 1px; background:#FFC2D8; animation:plfall 11s linear infinite; }
.pl-snow { width:5px; height:5px; border-radius:50%; background:#FFFFFF; box-shadow:0 0 3px rgba(255, 255, 255, .8); animation:plfall 12s linear infinite; }
@keyframes plfall { 0% { transform:translate(0, 0) rotate(0); opacity:0; } 8% { opacity:1; } 50% { transform:translate(var(--sway, 20px), calc(var(--fall, 600px) * .5)) rotate(200deg); } 92% { opacity:1; } 100% { transform:translate(0, var(--fall, 600px)) rotate(400deg); opacity:0; } }
.pl-fly { width:5px; height:5px; border-radius:50%; background:#FFF6A8; box-shadow:0 0 8px 3px rgba(255, 238, 120, .65); animation:plfly 7s ease-in-out infinite; }
@keyframes plfly { 0%, 100% { transform:translate(0, 0); opacity:.1; } 25% { transform:translate(18px, -14px); opacity:1; } 50% { transform:translate(-8px, -26px); opacity:.35; } 75% { transform:translate(-20px, -6px); opacity:1; } }
.pl-bfly { width:10px; height:8px; background:radial-gradient(circle at 25% 50%, var(--c, #FFB3D1) 45%, transparent 47%), radial-gradient(circle at 75% 50%, var(--c, #FFB3D1) 45%, transparent 47%); animation:plbfly 9s ease-in-out infinite; }
@keyframes plbfly { 0%, 100% { transform:translate(0, 0) scaleX(1); } 20% { transform:translate(30px, -18px) scaleX(.4); } 40% { transform:translate(60px, -4px) scaleX(1); } 60% { transform:translate(36px, -26px) scaleX(.4); } 80% { transform:translate(10px, -10px) scaleX(1); } }
/* the speech box: paged lines, a name tag in the neighbor's colour, typewriter text, choice replies */
#place .pl-talk { position:absolute; left:10px; right:10px; bottom:66px; z-index:9; margin:0; padding:15px 16px 12px; background:#FFFAF2; color:#3F2F4A; border-radius:22px;
  box-shadow:0 3px 0 #E7DACA, 0 10px 24px rgba(60, 40, 80, .2); cursor:pointer; border:2px solid #F0E3D2; }
#place .pl-talk[hidden] { display:none; }
#place.no-bar .pl-talk { bottom:10px; }
#place .pl-talk.pop { animation:pltalk .2s ease-out 1; }
@keyframes pltalk { 0% { opacity:0; transform:translateY(8px) scale(.98); } 100% { opacity:1; transform:none; } }
.pl-talk-name { position:absolute; left:14px; top:-15px; padding:4px 13px 5px; border-radius:13px; background:var(--tag, var(--cta)); color:#FFFFFF; font-weight:700; font-size:14.5px; line-height:1.15; transform:rotate(-2.5deg); box-shadow:0 2px 0 rgba(0, 0, 0, .12); }
.pl-talk-name[hidden] { display:none; }
#place .pl-say { position:static; transform:none; width:auto; max-width:none; margin:0; padding:0; background:none; box-shadow:none; border-radius:0; text-align:left; font-size:15.5px; line-height:1.42; min-height:2.84em; color:#3F2F4A; animation:none; }
#place .pl-say[hidden] { display:none; }
.pl-say .tw-off { visibility:hidden; }
.pl-talk-next { position:absolute; right:16px; bottom:7px; width:0; height:0; border-left:6px solid transparent; border-right:6px solid transparent; border-top:8px solid #7B5CFF; opacity:0; }
.pl-talk.done.more .pl-talk-next { opacity:1; animation:plnext .9s ease-in-out infinite; }
@keyframes plnext { 0%, 100% { transform:translateY(0); } 50% { transform:translateY(3px); } }
.pl-choices { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:10px; }
.pl-choices[hidden] { display:none; }
.pl-choice { min-height:44px; padding:0 16px; border:2px solid #D9C9F5; border-radius:22px; background:#FFFFFF; color:#4E3B5C; font:inherit; font-size:15px; font-weight:700; cursor:pointer; box-shadow:0 2px 0 #E2D3C2; }
.pl-choice:hover { border-color:#7B5CFF; }
.pl-choice:focus-visible { outline:3px solid #7B5CFF; outline-offset:2px; }
/* 1.8.1 d: the way out of a choice row */
.pl-bye { min-height:44px; min-width:44px; padding:0 14px; border:2px solid transparent; border-radius:22px; background:#EFE7FB; color:#4E3B5C; font:inherit; font-size:15px; font-weight:700; cursor:pointer; margin-right:auto; order:-1; }
.pl-bye:hover { border-color:#7B5CFF; }
.pl-bye:focus-visible { outline:3px solid #7B5CFF; outline-offset:2px; }
@media (max-width:350px) { #place .pl-say { font-size:14px; } .pl-choices { gap:6px; } .pl-choice, .pl-bye { font-size:13.5px; padding:0 10px; } #place .pl-talk { padding:14px 12px 10px; bottom:64px; } }
@media (prefers-reduced-motion:reduce) {
  .pl-cloud, .pl-twinkle, .pl-smoke, .pl-sway, .pl-glow, .pl-p, #place .pl-talk.pop, .pl-talk.done.more .pl-talk-next { animation:none !important; }
}

/* ======================= 1.8.1 (PR D3): mail, birthdays, seasonal decor, the lane cat, the shop showroom, smaller poops ======================= */
/* Neighbors page: lane + mailbox buttons side by side, upcoming birthdays */
.friends-row { display:flex; gap:10px; margin:0 0 12px; }
.friends-row .friends-lane, .friends-row .friends-mail { margin:0; flex:1; min-height:50px; height:auto; padding:6px 10px; line-height:1.15; }
.friends-mail { gap:8px; font-weight:700; color:#4E3B5C; }
.friends-mail [data-icon] { width:22px; height:22px; display:inline-grid; flex:none; }
.scene.has-mail ~ * .friends-mail, .friends-mail { position:relative; }
.bday-card { padding:10px 14px; margin:0 0 12px; }
.bday-h { display:flex; align-items:center; gap:6px; margin:0 0 4px; font-size:15px; }
.bday-h svg { width:20px; height:20px; color:#C2417A; }
.bday-list { list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.bday-row { display:flex; justify-content:space-between; gap:8px; font-size:14px; padding:3px 0; color:#4E3B5C; }
.bday-row b { font-weight:800; }
.bday-row.today { color:#A3245E; font-weight:800; }
.chip-bday { background:#FFE3EF; color:#A3245E; }

/* the mailbox page */
.mail-tabs { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:2px 0 12px; }
.mail-tab { min-height:46px; border-radius:14px; background:#F3EEE6; font-weight:800; color:#4E3B5C; display:flex; align-items:center; justify-content:center; gap:6px; }
.mail-tab.on { background:var(--cta); color:#fff; }
.mail-count:not(:empty) { min-width:22px; height:22px; padding:0 6px; border-radius:99px; background:#E5484D; color:#fff; font-size:12.5px; display:inline-grid; place-items:center; }
.mail-list { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.ml-row { display:flex; align-items:stretch; gap:6px; background:var(--card); border-radius:18px; box-shadow:var(--shadow); }
.ml-row.unread { background:#FFFBF0; box-shadow:0 3px 0 #F1D79A, 0 8px 18px rgba(80,56,30,.06); }
.ml-open { flex:1; min-width:0; display:flex; align-items:center; gap:10px; padding:8px 4px 8px 10px; text-align:left; min-height:64px; border-radius:18px; }
.ml-pic { width:44px; height:44px; flex:none; border-radius:14px; background:#F3EEE6; overflow:hidden; display:block; }
.ml-pic svg { width:100%; height:100%; }
.ml-pic.big { width:56px; height:56px; }
.ml-txt { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.ml-top { display:flex; align-items:center; gap:6px; min-width:0; }
.ml-top b { font-size:16px; font-weight:900; }
.ml-kind { margin:0; font-size: 12px; padding:2px 7px; }
.ml-kind-pip, .ml-kind-thanks, .ml-kind-bday { background:#FFE3EF; color:#A3245E; }
.ml-snip { color:#5E5470; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ml-row.unread .ml-snip { color:#3E2F4A; font-weight:700; }
.ml-side { flex:none; display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.ml-day { font-size:12px; color:#5E5470; font-weight:700; }
.ml-gift { width:18px; height:18px; color:#C2417A; }
.ml-dot { width:10px; height:10px; border-radius:50%; background:#E5484D; }
.ml-keep { flex:none; width:46px; min-height:46px; display:grid; place-items:center; color:#A69CB8; border-radius:14px; }
.ml-keep svg { width:24px; height:24px; }
.ml-keep.on { color:#D99A00; }
.ml-keep.on svg { fill:#FFD84A; }
.ml-readhead { display:flex; align-items:center; gap:12px; margin:2px 0 10px; }
.ml-readhead b { display:block; font-size:18px; font-weight:900; }
.ml-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.ml-actions .ml-act { flex:1 1 30%; margin:0; min-width:96px; min-height:48px; height:auto; gap:6px; }
.ml-actions .ml-act svg { width:20px; height:20px; }
.ml-act.on svg { fill:#FFD84A; color:#B07A00; }
.ml-back { margin-top:8px; }

/* a letter on its stationery: dark ink on a light page everywhere (AA), the paper style is in the edges and corners */
.letter { position:relative; display:block; margin:0; padding:22px 20px 18px; border-radius:16px; background:#FFFDF6; color:#3E2F4A; box-shadow:0 2px 0 #E9DCC6, 0 10px 24px rgba(80,56,30,.10);
  font-size:16px; line-height:1.5; overflow:hidden; outline:none; }
.letter p { margin:0 0 8px; position:relative; }
.letter-dear { font-weight:800; }
.letter-sign { text-align:right; font-weight:800; margin-top:12px !important; }
.letter-deco { position:absolute; inset:0; pointer-events:none; }
.letter-gift { display:flex; align-items:center; gap:10px; margin-top:12px; padding:8px 10px; border-radius:12px; background:rgba(255,255,255,.75); border:2px dashed #E2B9C9; font-weight:700; font-size:14px; position:relative; }
.letter-gift-art { width:40px; height:40px; flex:none; } .letter-gift-art svg { width:100%; height:100%; }
.letter[data-paper="cream"] { background:#FFFAEE radial-gradient(circle at 12px 12px, #F6D97A 1.6px, transparent 2.4px) 0 0/34px 34px; }
.letter[data-paper="pink"] { background:#FFF2F6; box-shadow:inset 0 0 0 6px #FFD6E4, 0 10px 24px rgba(120,40,80,.10); }
.letter[data-paper="pink"] .letter-deco { background:radial-gradient(circle at 92% 8%, #FF9EC0 0 7px, transparent 8px), radial-gradient(circle at 6% 94%, #FF9EC0 0 6px, transparent 7px); }
.letter[data-paper="leaf"] { background:#F3FBEE; box-shadow:inset 0 0 0 6px #CFEBC2, 0 10px 24px rgba(40,90,40,.10); }
.letter[data-paper="leaf"] .letter-deco { background:linear-gradient(135deg, #9FD08C 0 18px, transparent 18px), linear-gradient(-45deg, #9FD08C 0 18px, transparent 18px); }
.letter[data-paper="sky"] { background:#EFF7FF repeating-linear-gradient(0deg, transparent 0 27px, #CFE4FA 27px 28px); }
.letter[data-paper="maple"] { background:#FFF5E8; box-shadow:inset 0 0 0 6px #F7CFA0, 0 10px 24px rgba(120,70,30,.10); }
.letter[data-paper="maple"] .letter-deco { background:radial-gradient(circle at 94% 6%, #F2A65A 0 9px, transparent 10px), radial-gradient(circle at 88% 12%, #E07A4F 0 5px, transparent 6px); }
.letter[data-paper="moon"] { background:#F5F0FF; box-shadow:inset 0 0 0 6px #DCD0FF, 0 10px 24px rgba(70,50,140,.12); }
.letter[data-paper="moon"] .letter-deco { background:radial-gradient(circle at 90% 10%, #FFE27A 0 9px, transparent 10px), radial-gradient(circle at 93% 7%, #F5F0FF 0 8px, transparent 9px); }
.letter[data-paper="kraft"] { background:#F4E6CF; box-shadow:inset 0 0 0 4px #F4E6CF, inset 0 0 0 6px #C9A77E, 0 10px 24px rgba(90,60,30,.12); }
.letter[data-paper="kraft"] .letter-deco { border:2px dashed rgba(160,120,80,.45); inset:10px; border-radius:10px; }
.letter[data-paper="candy"] { background:#FFF6FA repeating-linear-gradient(90deg, #FFE1EC 0 10px, #FFF6FA 10px 20px) top/100% 10px no-repeat; padding-top:28px; }
.letter[data-paper="candy"] .letter-deco { background:radial-gradient(circle at 50% 100%, #FF8FB1 0 4px, transparent 5px) bottom/18px 8px repeat-x; }
.letter[data-paper="parch"] { background:#FBF3DF; box-shadow:inset 0 0 0 3px #FBF3DF, inset 0 0 0 5px #C9A24D, 0 10px 24px rgba(40,50,80,.14); color:#22334A; font-family:Georgia, 'Times New Roman', serif; }
.letter[data-paper="lily"] { background:#F0FAF3 radial-gradient(ellipse at 100% 100%, #BFE3D2 0 40px, transparent 41px); }
.letter[data-paper="lily"] .letter-deco { background:radial-gradient(circle at 92% 90%, #FF9EC0 0 6px, transparent 7px); }
.letter[data-paper="honey"] { background:#FFF7DD; box-shadow:inset 0 0 0 6px #FFE08A, 0 10px 24px rgba(140,90,20,.12); }
.letter[data-paper="honey"] .letter-deco { background:radial-gradient(circle at 8% 8%, #F2BE5A 0 8px, transparent 9px), radial-gradient(circle at 15% 4%, #F2BE5A 0 5px, transparent 6px); }
.letter[data-paper="sport"] { background:#FFF8EE; border-top:10px solid #F0833F; }
.letter[data-paper="sport"] .letter-deco { background:repeating-linear-gradient(90deg, #7FB8E8 0 14px, transparent 14px 28px) top/100% 4px no-repeat; }
.letter[data-paper="market"] { background:#F7F3FF; box-shadow:inset 0 0 0 6px #D9CCFF, 0 10px 24px rgba(80,60,160,.12); }
.letter[data-paper="party"] { background:#FFFBF2 radial-gradient(circle at 10% 20%, #FF9EC0 2px, transparent 3px) 0 0/40px 36px, radial-gradient(circle at 30% 70%, #9CDCFF 2px, transparent 3px) 0 0/44px 40px, radial-gradient(circle at 70% 40%, #FFD84A 2px, transparent 3px) 0 0/38px 42px; }
.letter-preview { font-size:15px; }

/* compose */
.mc-sec h3 { margin:0 0 6px; }
.mc-sec .muted.small { margin:0 0 8px; }
.mc-to { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.mc-to-btn { min-height:76px; border-radius:16px; background:#F7F2EA; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:6px 2px; border:2px solid transparent; }
.mc-to-btn.on { background:var(--cta-soft); border-color:var(--cta); }
.mc-to-btn.done { opacity:.62; }
.mc-pic { width:40px; height:40px; display:block; } .mc-pic svg { width:100%; height:100%; }
.mc-to-n { font-size:13.5px; font-weight:800; color:#3E2F4A; }
.mc-ph { display:flex; flex-wrap:wrap; gap:8px; }
.mc-chip { min-height:44px; padding:8px 12px; border-radius:14px; background:#F7F2EA; color:#3E2F4A; font-weight:700; font-size:14px; text-align:left; border:2px solid transparent; line-height:1.25; }
.mc-chip.on { background:var(--cta-soft); border-color:var(--cta); color:var(--cta-d); }
.mc-chip[aria-disabled="true"] { opacity:.55; }
.mc-paper { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.mc-paper-btn { min-height:74px; border-radius:14px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:6px 4px; border:2px solid transparent; background:#FBF8F3; }
.mc-paper-btn.on { border-color:var(--cta); background:var(--cta-soft); }
.mc-swatch.letter { width:48px; height:34px; padding:0; border-radius:8px; font-size:0; }
.mc-paper-n { font-size:12.5px; font-weight:800; color:#3E2F4A; text-align:center; line-height:1.15; }
.mc-gift.tile-grid { max-height:236px; }
.mc-gift-btn.on { box-shadow:0 0 0 3px var(--cta), var(--shadow); }
.mc-gift-btn.off { opacity:.5; }
.mc-nogift { display:grid; place-items:center; font-size:26px; color:#A69CB8; }
.mc-post { gap:8px; } .mc-post svg { width:22px; height:22px; }
.mc-post[aria-disabled="true"] { background:#B8AEDB; box-shadow:none; }
.mc-note { text-align:center; margin:8px 0 0; }

/* the cat (lane, dollhouse, fields) */
.cat-svg { overflow:visible; }
.cat-svg .cat-tail, .cat-svg .cat-eyes, .cat-svg .cat-breathe, .cat-svg .cat-legs-f, .cat-svg .cat-legs-b { transform-box:fill-box; }
.cat-svg .cat-tail { transform-origin:0 0; } .cat-svg .cat-tail-up { transform-origin:0 100%; }
.cat-svg .cat-eyes { transform-origin:50% 50%; } .cat-svg .cat-breathe { transform-origin:50% 100%; } .cat-svg .cat-legs-f, .cat-svg .cat-legs-b { transform-origin:50% 0; }
.cat-svg .cat-tail { animation:catTail 2.6s ease-in-out infinite; }
.cat-svg .cat-tail-up { animation-duration:1.4s; }
.cat-svg .cat-breathe { animation:catBreathe 3.2s ease-in-out infinite; }
.cat-svg .cat-eyes { animation:catBlink 4.6s infinite; }
.cat-svg .cat-zzz text { animation:catZ 2.8s ease-in-out infinite; }
.cat-svg .cat-zzz text + text { animation-delay:-1.3s; }
.cat-svg .cat-legs-f { animation:catLeg .5s ease-in-out infinite alternate; }
.cat-svg .cat-legs-b { animation:catLeg .5s ease-in-out infinite alternate-reverse; }
@keyframes catTail { 0%, 100% { transform:rotate(-6deg); } 50% { transform:rotate(8deg); } }
@keyframes catBreathe { 0%, 100% { transform:scale(1, 1); } 50% { transform:scale(1.015, 1.035); } }
@keyframes catBlink { 0%, 93%, 100% { transform:scaleY(1); } 95% { transform:scaleY(.1); } }
@keyframes catZ { 0% { opacity:0; transform:translate(0, 4px); } 30% { opacity:1; } 100% { opacity:0; transform:translate(-6px, -10px); } }
@keyframes catLeg { from { transform:skewX(-8deg); } to { transform:skewX(8deg); } }
.pl-cat { pointer-events:auto; cursor:pointer; }
.pl-cat .pl-cat-walk { width:100%; height:100%; }
.pl-cat.wander .pl-cat-walk { animation:catWander 16s linear infinite; }
@keyframes catWander { 0% { transform:translateX(0) scaleX(1); } 46% { transform:translateX(var(--wx, 60px)) scaleX(1); } 50% { transform:translateX(var(--wx, 60px)) scaleX(-1); } 96% { transform:translateX(0) scaleX(-1); } 100% { transform:translateX(0) scaleX(1); } }
.pl-cat .pl-hearts, .iso-cat .pl-hearts { position:absolute; left:50%; top:-6px; pointer-events:none; font-size:18px; color:#FF5C86; animation:catHeart 1.1s ease-out forwards; text-shadow:0 1px 0 #fff; }
@keyframes catHeart { 0% { opacity:0; transform:translate(-50%, 6px) scale(.6); } 25% { opacity:1; } 100% { opacity:0; transform:translate(-50%, -28px) scale(1.1); } }
.iso-cat { position:absolute; left:0; top:0; padding:0; border:0; background:transparent; cursor:pointer; pointer-events:auto; }
.iso-cat::before { content:''; position:absolute; left:50%; top:50%; width:max(100%, 44px); height:max(100%, 44px); transform:translate(-50%, -50%); }
.iso-cat > svg { width:100%; height:100%; display:block; pointer-events:none; }
.phase-night .iso-cat > svg, .scene.dark .iso-cat > svg { filter:brightness(.78) saturate(.9); }

/* Pip's mailbox in the dollhouse (garden) and its flag; the lane gate mailbox flag is a node over the baked street */
.iso-mbox { position:absolute; left:0; top:0; padding:0; border:0; background:transparent; cursor:pointer; pointer-events:auto; }
.iso-mbox::before { content:''; position:absolute; left:50%; top:50%; width:max(100%, 44px); height:max(100%, 44px); transform:translate(-50%, -50%); }
.iso-mbox > svg, .pl-mflag > svg { width:100%; height:100%; display:block; overflow:visible; pointer-events:none; }
.iso-mbox > svg { position:absolute; left:50%; bottom:0; width:var(--aw, 100%); height:var(--ah, 100%); transform:translateX(-50%); }
.mb-up { display:none; } .scene.has-mail .mb-up { display:inline; } .scene.has-mail .mb-down { display:none; }
.scene.has-mail .iso-mbox .mb-up, .scene.has-mail .pl-mflag .mb-up { animation:mbWave 1.8s ease-in-out infinite; transform-origin:100% 100%; transform-box:fill-box; }
@keyframes mbWave { 0%, 100% { transform:rotate(0); } 50% { transform:rotate(-8deg); } }
.pl-mflag { pointer-events:none; }

/* birthday + seasonal nodes in a home */
.pl-deco { pointer-events:none; }
.pl-deco.pl-balloon > svg { animation:balloon 3.4s ease-in-out infinite; transform-origin:50% 100%; }
.pl-deco.pl-balloon:nth-child(2n) > svg { animation-delay:-1.4s; }
@keyframes balloon { 0%, 100% { transform:rotate(-3deg) translateY(0); } 50% { transform:rotate(3deg) translateY(-3px); } }

/* the shop showroom: price tags + hit areas over the displayed stock */
.pl-tag { pointer-events:none; }
.pl-tag > span { position:absolute; left:50%; bottom:0; transform:translateX(-50%); white-space:nowrap; padding:1px 6px 1px 5px; border-radius:7px 7px 7px 2px; background:#FFFDF6; color:#3E2F4A; font-weight:800;
  font-size:var(--tagf, 11px); line-height:1.35; box-shadow:0 1px 0 #C9B79A, 0 0 0 1px #E2D4BC; }
.pl-tag.sold > span { background:#EDE7F4; color:#5E5470; text-decoration:line-through; text-decoration-color:#A06; }
.pl-tag.sold-badge > span { text-decoration:none; background:#5E5470; color:#fff; }
.pl-show.sold > svg { filter:grayscale(.8) opacity(.55); }
.shop-card.shop-focus { box-shadow:0 0 0 3px var(--cta), var(--shadow); animation:shopFocus 1.2s ease-out 1; }
@keyframes shopFocus { 0% { transform:scale(1.04); } 100% { transform:scale(1); } }

/* poops: the mess is drawn small next to Pip (about 0.4 of Pip's height) inside a >= 44px tap area */
.poop { --pa:var(--poop-art, calc(var(--pet, 110px) * .58)); width:max(44px, var(--pa)); height:max(44px, var(--pa)); }
.poop > svg { position:absolute; left:50%; bottom:0; width:var(--pa); height:var(--pa); transform:translateX(-50%); }
.poop .stink { left:calc(50% - var(--pa) * .28); top:auto; bottom:calc(var(--pa) * .78); width:calc(var(--pa) * .56); height:calc(var(--pa) * .46); }

@media (prefers-reduced-motion: reduce) {
  .cat-svg *, .pl-cat .pl-cat-walk, .pl-deco > svg, .mb-up, .scene.has-mail .iso-mbox .mb-up, .scene.has-mail .pl-mflag .mb-up, .shop-card.shop-focus { animation:none !important; }
}
.pl-cat-walk > svg { width:100%; height:100%; display:block; overflow:visible; }
.phase-night .pl-cat .cat-svg, .phase-night .pl-mflag > svg { filter:brightness(.74) saturate(.88); }
.phase-dusk .pl-cat .cat-svg, .phase-dusk .pl-mflag > svg { filter:brightness(.9); }
.pl-sample { width:100%; height:100%; box-sizing:border-box; padding:1.5px; border-radius:3px; background:#FFFDF6; box-shadow:0 0 0 1.5px #8F5C30, 0 2px 3px rgba(58,44,85,.2); }
.pl-sample .swatch, .shop-art .pl-sample .swatch { width:100%; height:100%; border-radius:2px; }
.pl-tag-bell { display:inline-block; width:.95em; height:.95em; margin-right:2px; vertical-align:-.12em; color:#B07A00; }
.pl-tag-bell svg { width:100%; height:100%; }
.pl-show > svg, .pl-display > svg, .pl-deco > svg { width:100%; height:100%; display:block; overflow:visible; }
.mail-list { grid-template-columns:minmax(0, 1fr); }
.ml-row { min-width:0; }
.letter:focus, .letter:focus-visible { outline:none; }

/* ===== 1.8.1 build d ===== */
/* a pinch on the dollhouse never zooms the whole page (iOS kept the page zoomed into the next sheet, e.g. the letters) */
.scene, .scene.iso { touch-action:pan-y; }
.scene.editing, .scene.wall-view.editing { touch-action:none; }
/* letters always fit 320-430px: nothing in the mail page can push it wider than the screen */
#pageMail .page-body { overflow-x:hidden; }
#pageMail .letter, #pageMail .letter p, .ml-readhead, .ml-readhead > * { min-width:0; max-width:100%; overflow-wrap:anywhere; }
.ml-readhead > span:last-child, .ml-readhead > div:last-child { flex:1; min-width:0; }
.ml-readhead b { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:350px) { #pageMail .letter { padding:18px 14px 14px; font-size:15px; } .ml-actions .ml-act { min-width:0; flex:1 1 40%; } }

/* the lane at night stays smooth: the cat is two still pictures on its own layer (opacity step + transform breathe only),
   the lane mailbox flag stands still (it waves in the dollhouse), and both pause off screen */
.pl-cat, .pl-mflag { will-change:transform; }
.pl-cat .pl-cat-walk { position:relative; }
.pl-cat-img { position:absolute; inset:0; width:100%; height:100%; display:block; pointer-events:none; -webkit-user-drag:none; transform-origin:50% 92%; animation:catImgBreathe 3.2s ease-in-out infinite; }
.pl-cat.nap .pl-cat-img { animation-duration:4.4s; }
.pl-cat-f2 { opacity:0; animation:catImgBreathe 3.2s ease-in-out infinite, catFrame 2.6s steps(1, end) infinite; }
.pl-cat.wander .pl-cat-f2 { animation:catFrame .5s steps(1, end) infinite; }
.pl-cat.wander .pl-cat-img:not(.pl-cat-f2) { animation:catFrameB .5s steps(1, end) infinite; }
@keyframes catImgBreathe { 0%, 100% { transform:scale(1, 1); } 50% { transform:scale(1.012, 1.03); } }
@keyframes catFrame { 0% { opacity:0; } 50% { opacity:1; } }
@keyframes catFrameB { 0% { opacity:1; } 50% { opacity:0; } }
.pl-mflag .mb-up { animation:none !important; }
.pl-off, .pl-off * { animation-play-state:paused !important; }
.phase-night .pl-cat .pl-cat-img { filter:brightness(.74) saturate(.88); }
.phase-dusk .pl-cat .pl-cat-img { filter:brightness(.9); }
@media (prefers-reduced-motion: reduce) { .pl-cat-img { animation:none !important; } .pl-cat-f2 { display:none; } .pl-cat.wander .pl-cat-img { opacity:1; } }
/* the Moon Market sections: the section (short name + dots) after the name in the pill, ‹ › arrows low at the sides */
#place .pl-sec { display:inline-flex; align-items:center; gap:6px; margin-left:2px; font-weight:700; color:#5E4A6E; white-space:nowrap; }
#place .pl-sec[hidden] { display:none; }
#place .pl-sec::before { content:'\00B7'; margin-right:2px; }
.pl-sec-dots { display:flex; gap:4px; flex:none; }
.pl-sec-dots i { width:6px; height:6px; border-radius:3px; background:#CBBDD5; }
.pl-sec-dots i.on { width:14px; background:var(--cta); }
#place .pl-sec-arrow { top:auto; bottom:72px; margin-top:0; z-index:8; }
#place .pl-sec-prev { left:8px; } #place .pl-sec-next { right:8px; }
#place[data-sec="decor"] .pl-sec-dots i.on { background:#2F6A50; } #place[data-sec="boutique"] .pl-sec-dots i.on { background:#A23C6C; }
.pl-pendant > svg, .pl-sprop > svg, .pl-counter > svg { width:100%; height:100%; display:block; overflow:visible; }
.pl-pendant { pointer-events:none; }
@media (max-width:350px) { #place .pl-sec-dots { display:none; } }

/* 1.8.1 e: the fuller shop: tags under an item hang down from their point; the speech box docks at the bottom in the shop
   (over the bar, which hides while someone talks) so it never covers the wares or lifts the room */
.pl-tag.pl-tag-dn > span { bottom:auto; top:0; }
#place.pl-store-secs.talking .pl-talk { bottom:10px; }
#place.pl-store-secs.talking .pl-bar, #place.pl-store-secs.talking .pl-sec-arrow { visibility:hidden; }
.pl-show-ceil > svg, .pl-show-door > svg, .pl-show-season > svg, .pl-show-hfloor > svg, .pl-show-mirror > svg { width:100%; height:100%; display:block; overflow:visible; }
.pl-pack { width:100%; height:100%; box-sizing:border-box; padding:8% 6%; border-radius:12%; background:#FFF7EA; box-shadow:0 0 0 1.5px #8F5C30, 0 2px 3px rgba(58,44,85,.2); display:flex; align-items:center; justify-content:center; }
.pl-pack > svg { width:100%; height:auto; max-height:100%; display:block; }
.pl-show.sold .pl-pack { filter:grayscale(.8) opacity(.55); }
#place.pl-tags-compact .pl-tag-bell { display:none; }
#place.pl-tags-compact .pl-tag > span { padding:1px 4px; }

/* 1.9.0 comfort pass: one soft panel style, calmer spacing, readable on 320px */
.card, .tile, .tile-btn, .sheet { border-radius:20px; }
.tile-btn { border-radius:18px; }
.page-body > .card:first-child { margin-top:8px; }
.nb-visit { margin-top:12px; }
.need-lbl { letter-spacing:0; }
@media (max-width: 340px) {
  .page-body { padding-left:12px; padding-right:12px; }
  .card { padding:12px 14px; margin-top:10px; }
  .nb-hero { padding-top:10px; padding-bottom:10px; }
  .nb-portrait { width:120px; height:120px; }
}
/* 1.9.0: the Moon Lane chip (porch + garden) and the bigger garden gate */
.iso-lane-btn { position:absolute; right:10px; bottom:12px; z-index:7; height:44px; padding:0 14px 0 11px; border:0; border-radius:22px; display:flex; align-items:center; gap:6px;
  background:#FFFAF2ED; color:#55415F; font-family:var(--font); font-size:13px; font-weight:700; line-height:1; box-shadow:0 2px 0 rgba(58,44,85,.12), 0 6px 14px rgba(46,36,72,.08); white-space:nowrap; touch-action:manipulation; }
.iso-lane-btn svg { width:19px; height:19px; flex:none; }
.iso-lane-btn[hidden], body.is-away .iso-lane-btn, .scene.editing .iso-lane-btn, .app.decorating .iso-lane-btn { display:none !important; }
.iso-lane-btn:active { transform:translateY(1px); }
.iso-lane-btn:focus-visible { outline:3px solid #7B5CFF; outline-offset:2px; }
.iso-door.iso-gate { z-index:2; touch-action:manipulation; }
/* 1.9.0: today's little goals (World sheet) */
.today-card { margin:2px 2px 10px; padding:10px 12px; border-radius:18px; background:#FFF6E6; border:1px solid #F1E2C6; }
.today-head { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.today-head b { font-size:14px; color:#4E3B5C; }
.today-head small { font-size:12px; font-weight:600; color:#7A6680; text-align:right; }
.today-goals { list-style:none; margin:6px 0 0; padding:0; display:grid; gap:4px; }
.today-goal { display:flex; align-items:center; gap:8px; min-height:26px; font-size:13px; font-weight:600; color:#55415F; }
.today-ck { width:20px; height:20px; flex:none; border-radius:50%; border:2px solid #D9C9B0; display:grid; place-items:center; font-size:12px; font-weight:800; color:#fff; }
.today-goal.done .today-ck { background:#2E7D57; border-color:#2E7D57; }
.today-goal.done .today-t { color:#7A6680; }
.today-t { flex:1; }
.today-n { font-size:12px; font-weight:700; color:#7A6680; }
.today-claim { height:44px; margin-top:8px; }
.today-claim[hidden] { display:none; }
.today-next { margin:6px 0 0; font-size:12px; font-weight:600; color:#7A6680; }
.today-next:empty { display:none; }
/* 1.9.0: first steps tip (a brand-new pet) */
.coach-tip { position:absolute; left:12px; right:12px; bottom:calc(100% + 8px); z-index:16; display:flex; align-items:center; gap:10px; padding:10px 10px 10px 14px; border-radius:18px;
  background:#4E3B5C; color:#FFF8EE; font-size:13px; font-weight:700; line-height:1.3; box-shadow:0 8px 20px rgba(46,36,72,.22); }
.coach-tip[hidden] { display:none; }
.coach-tip span { flex:1; }
.coach-skip { flex:none; min-height:44px; min-width:44px; padding:0 12px; border:0; border-radius:12px; background:rgba(255,255,255,.16); color:#FFF8EE; font:inherit; font-size:12px; font-weight:700; }
.act.coach-pulse { box-shadow:0 0 0 3px #FFD84A; border-radius:16px; animation:coachPulse 1.8s ease-in-out infinite; }
@keyframes coachPulse { 50% { box-shadow:0 0 0 6px rgba(255,216,74,.45); } }
@media (prefers-reduced-motion: reduce) { .act.coach-pulse { animation:none; } }
/* 1.9.0: on the whole house Pip is small; a round 48px touch area around Pip (only Pip, not the room) */
.scene.iso:not(.iso-infield):not(.iso-zoomed) .pet { position:relative; }
.scene.iso:not(.iso-infield):not(.iso-zoomed) .pet::after { content:''; position:absolute; left:50%; top:55%; width:48px; height:48px; transform:translate(-50%,-50%); border-radius:50%; pointer-events:auto; }
/* 1.9.0 chunk 4: narrow phones — museum tiles in two columns so hints stay readable */
@media (max-width: 359px) { .museum-grid { grid-template-columns: repeat(2, 1fr); } }
/* 1.9.0 chunk 4: short phones (320x568 class) — the World tiles come first, goals follow in a tighter card, no scroll needed to reach a place */
@media (max-height: 700px) {
  #sheetWorld:not([hidden]) { display:flex; flex-direction:column; }
  #sheetWorld > .drawer-head { order:0; }
  #sheetWorld > .sheet-grid { order:1; margin-bottom:8px; }
  #sheetWorld > .today-card { order:2; margin-bottom:2px; padding:8px 12px; }
  #sheetWorld .today-goals { gap:0; margin-top:4px; }
  #sheetWorld .today-goal { min-height:24px; }
  #sheetWorld .today-next { margin:4px 0 0; }
}
/* 1.9.0 chunk 5: one press feel everywhere — the few tappables that had none get the same gentle .97 squish */
.seg-btn, .lvl-btn, .ml-open, .practice-button, .easy-toggle, .today-claim { transition: transform .12s ease; }
.seg-btn:active, .lvl-btn:active, .ml-open:active, .practice-button:active, .easy-toggle:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .seg-btn, .lvl-btn, .ml-open, .practice-button, .easy-toggle, .today-claim { transition: none; } .seg-btn:active, .lvl-btn:active, .ml-open:active, .practice-button:active, .easy-toggle:active { transform: none; } }
/* 1.9.0 chunk 6: Larger text (Profile > Settings). Pages, sheets, toasts and the talk box scale up 15%; layout reflows
   (zoom, not transform), so nothing overlaps; the game canvases and the house art keep their size. */
html.big-text .page-body, html.big-text .sheet, html.big-text .coach-tip { zoom: 1.15; }
html.big-text .toast { font-size: 16px; }
html.big-text #place .pl-talk { font-size: 17px; }
html.big-text .page-head h2, html.big-text .page-title { zoom: 1.1; }
html.big-text .sheet-grid.g2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 359px) { html.big-text .sheet-grid.g2 { grid-template-columns: minmax(0, 1fr); } html.big-text .sheet-grid.g2 .sheet-tile { min-height: 52px; } }
/* ===== 1.9.0g review fixes (Critiquito 2026-10-21, F-numbers) ===== */
:root { --dock-h:111px; --ink-disabled:#8E84A0; }
/* F1: the care dock is a fixed 111px slot; Expanded care and the Feed panel float up over the room as a sheet */
.app.dock-flow .dock.dock-float, .app.dock-flow .dock:has(> #panelActions:not([hidden])), .app.dock-flow .dock:has(> #panelFeed:not([hidden])) { position:relative; top:auto; bottom:auto; left:auto; right:auto; height:var(--dock-h); padding:0; }
.app.dock-flow .dock.dock-float > #panelActions, .app.dock-flow .dock.dock-float > #panelFeed, .app.dock-flow .dock > #panelActions, .app.dock-flow .dock > #panelFeed { position:absolute; left:0; right:0; bottom:8px; }
.dock.care-expanded > #panelActions, .app.dock-flow .dock > #panelFeed { z-index:16; box-shadow:0 -8px 24px #2E244822; }
.care-expanded .care-grid { grid-template-columns:repeat(6,minmax(0,1fr)) !important; gap:6px !important; }
.care-expanded .care-grid .act { height:66px !important; flex-direction:column !important; padding:0 !important; gap:2px !important; }
.care-expanded .care-grid [data-act="cook"] { grid-column:1 / -1; flex-direction:row !important; height:44px !important; min-height:44px; }
/* F20: "Care" stays visually hidden in both states (no extra height) */
.care-expanded .drawer-txt b { position:absolute !important; width:1px !important; height:1px !important; overflow:hidden; clip-path:inset(50%) !important; }
/* F7: the toggle keeps one width */
.care-toggle { width:84px; min-width:84px; }
/* F2: labels fit on narrow phones */
.care-grid .act-label { max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:clip; letter-spacing:-.01em; }
.dock:not(.care-expanded) .care-grid .act .act-label { max-width:none; overflow:visible; }
@media (max-width:340px) { .care-grid .act-label { font-size:11.5px !important; } }
/* F12: away from home the bottom keeps the dock's 111px slot, so the scene never changes height */
body.is-away .app.dock-flow .bottom::before { content:''; display:block; height:var(--dock-h); }
/* F4: the bars hint never sits over a sheet, page or place */
.app:has(.sheet:not([hidden])) .ring-hint, body:has(.page.open) .ring-hint, body.is-away .ring-hint { display:none !important; }
/* F6: the coach tip sits at the top of the room, off the room's CTA, the needs pill and the care buttons */
.scene > .coach-tip { position:absolute; left:12px; right:12px; top:60px; bottom:auto; z-index:17; }
/* 1.9.2 r2: off the room header and back wall too, in the open space under the floor (clear of the Moon Lane button) */
.scene > .coach-tip { top:auto; bottom:72px; }   /* moved into the scene by extras.js: upper wall, below the room pills */
/* F3: one World order at every width (places, then goals), fixed 72px tiles, subtitles max 2 lines, internal scroll */
#sheetWorld:not([hidden]) { display:flex; flex-direction:column; max-height:calc(100dvh - 140px); overflow-y:auto; overscroll-behavior:contain; }
#sheetWorld > .drawer-head { order:0; }
#sheetWorld > .sheet-grid { order:1; margin-bottom:8px; }
#sheetWorld > .today-card { order:2; }
#sheetWorld .sheet-tile { height:72px; min-height:72px; }
#sheetWorld .tile-txt b, #sheetWorld .tile-txt small { display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; }
#sheetWorld .tile-txt b { -webkit-line-clamp:1; } #sheetWorld .tile-txt small { -webkit-line-clamp:2; }
@media (max-width:359px) { #sheetWorld .tile-ic { width:32px; height:32px; flex:none; } }
/* F13 */
.sheet-tile { padding-right:20px; } .sheet-tile.v { padding-right:2px; } .sheet-tile .dot { top:6px; right:6px; }
/* F10/F17: toasts sit just above the nav row, clear of page headers and mail tabs */
.toast { top:auto !important; bottom:calc(64px + env(safe-area-inset-bottom)) !important; transform:translateX(-50%) translateY(10px); }
.toast.show { transform:translateX(-50%); }
/* F9/F19/F24: comfortable targets */
.switch::after { content:''; position:absolute; inset:-8px -6px; }
.setting { min-height:52px; }
.lvl-btn { min-height:44px; min-width:64px; }
.ex-tabs .seg-btn, .seg-btn { min-height:44px; }
/* F8: disabled text and meter tracks with real contrast */
.care-grid .act.muted .act-label, .care-grid .act[aria-disabled="true"] .act-label, .dock.locked .act-label { color:var(--ink-disabled) !important; }
.dock.locked .act-ic, .care-grid .act.muted .act-ic, .care-grid .act[aria-disabled="true"] .act-ic { color:#7D7290 !important; }
.meter-track { background:#E2D6C6; }
.meter-fill { box-shadow:inset 0 0 0 1px #0000001f; }
/* F5: profile stats in three even columns, nothing clipped */
#pageStats .tile-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
#pageStats .tile-k { font-size:11px; letter-spacing:.04em; overflow-wrap:anywhere; }
#pageStats .tile-v { white-space:nowrap; font-size:18px; }
/* F25: boot splash until the app has drawn the real dock */
.boot-splash { display:none; }
body.booting .boot-splash { position:fixed; inset:0; z-index:200; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; background:var(--bg); color:var(--ink); font-size:22px; }
body.booting .boot-egg { width:64px; height:80px; border-radius:50% 50% 46% 46% / 58% 58% 42% 42%; background:#FFF3C4; box-shadow:inset 0 -8px 0 #FFD98A, 0 0 0 3px #59456B; }
body.booting #dock, body.booting #navbar { visibility:hidden; }
/* F18: compose action stays reachable */
#mailCompose > :last-child { position:sticky; bottom:0; padding:8px 0 calc(8px + env(safe-area-inset-bottom)); background:var(--bg); }
/* F21: the goodbye button sits apart from everyday settings */
#pageStats .ghost-danger { margin-top:28px; }
/* F23: no chip until a best score exists */
.game-best.none:empty { display:none; }
/* F27 */
.tour-skip.ghost { background:transparent; font-weight:700; color:#6F6478; }
/* 1.9.0g gameplay chips: museum season tags, today's featured game */
.museum-season { display:inline-block; margin-top:3px; padding:1px 6px; border-radius:99px; background:#E3F1E6; color:#2C6B45; font-size:11px; font-weight:800; }
.museum-season.leaving { background:#FBE6D6; color:#8A4318; }
.game-feat { display:inline-block; margin-right:6px; padding:2px 8px; border-radius:99px; background:#FFE9A8; color:#6B4A00; font-size:12px; font-weight:800; }

/* ===== 1.9.0h art direction (Game Art Director) ===== */
/* tappable props: a ~2px plum outline (the backdrop stays outline-free) */
.iso-mbox > svg { filter:drop-shadow(1px 0 0 #59456B) drop-shadow(-1px 0 0 #59456B) drop-shadow(0 1px 0 #59456B) drop-shadow(0 -1px 0 #59456B); }
/* shop icons: one canvas, art ~70% on a soft cream disc */
.shop-art::before { width:68px; height:68px; transform:translate(-50%, -50%); border-radius:50%; background:radial-gradient(closest-side, #FFF3DC 90%, rgba(255, 243, 220, 0) 100%); }
.shop-art svg { width:70%; height:70%; max-width:50px; max-height:50px; }
/* Moon Lane: the dock slot carries a gentle pan hint */
body.is-away:has(#place[data-kind="lane"]) .app.dock-flow .bottom::before { content:'\2039  Swipe to stroll Moon Lane  \203A'; display:flex; align-items:center; justify-content:center; color:var(--ink2); font-size:13px; font-weight:700; }
/* one plum for selected / primary buttons (lilac was not a deliberate tier) */
.small-btn, .cook-go, .lvl-btn[aria-pressed="true"], .room-tab.on, .station-btn.on, .look-chip.on, .room-chip.on { background:var(--violet-d); color:#fff; box-shadow:0 2px 0 #3F2F4E; }
/* F3 at narrow widths: titles may take two lines, subtitles one (tile stays 72px) */
@media (max-width:359px) { #sheetWorld .tile-txt b { -webkit-line-clamp:2; line-height:1.15; } #sheetWorld .tile-txt small { -webkit-line-clamp:1; } #sheetWorld .sheet-tile { gap:6px; padding-left:8px; } }

/* 1.9.1 #1: the fixed slot no longer depends on :has() alone (iOS Safari did not always re-match it when the Feed panel
   un-hid, so the panel went into the flow and the room shrank to a far-away diorama). JS sets .dock-float too. */
.app.dock-flow .dock.dock-float { flex:0 0 var(--dock-h); max-height:var(--dock-h); overflow:visible; }
/* 1.9.1 #4: try before you buy */
.try-btn { margin-top:6px; width:100%; min-height:44px; border-radius:14px; border:1.5px dashed #8E7BD6; background:#F6F2FF; color:var(--violet-d, #5B3FD0); font-weight:800; font-size:13px; }
.scene .furn-item.try-item { pointer-events:auto !important; touch-action:none; cursor:grab; opacity:.94; }
.try-item > svg { filter:drop-shadow(0 3px 4px rgba(46, 36, 72, .22)); }
.try-item::after { content:''; position:absolute; left:-3px; top:-3px; right:-3px; bottom:-3px; border:1.5px dashed rgba(123, 92, 255, .38); border-radius:7px; pointer-events:none; }
.try-bar { position:absolute; left:10px; right:10px; bottom:10px; z-index:19; display:flex; align-items:center; gap:8px; padding:8px 8px 8px 14px; border-radius:18px; background:#FFFDF6; box-shadow:0 8px 22px #2E244833; font-weight:700; color:#3E2F4A; }
.try-txt { flex:1; font-size:13px; line-height:1.25; }
.try-hint { display:block; font-size:11px; font-weight:700; opacity:.7; }
@media (max-width:360px) { .try-bar { left:6px; right:6px; bottom:6px; padding:6px 6px 6px 10px; gap:6px; } .try-hint { display:none; } .try-buy, .try-cancel { padding:0 10px; } }
.try-buy, .try-cancel { min-height:44px; padding:0 14px; border-radius:14px; font-weight:800; border:0; }
.try-buy { background:var(--violet-d, #5B3FD0); color:#fff; display:inline-flex; align-items:center; gap:4px; }
.try-buy svg { width:16px; height:16px; }
.try-cancel { background:#EFE9F6; color:#3E2F4A; }
.phase-night:not(.dark) .room-tint { background:radial-gradient(ellipse 125% 95% at 50% 44%, rgba(40,40,110,0) 48%, rgba(30,22,84,.2)), rgba(58,56,150,.26); }

/* ---- art pass 2 (v1.9.1+art2) ---- */
/* shop art: 64px tile, cream disc behind, item ~70%; furniture stands on a small wooden display stand, wearables float */
.shop-art { height: 76px; }
.shop-art::before { width: 64px; height: 64px; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: #FFF3DC; box-shadow: none; }
.shop-art svg { width: 45px; height: 45px; max-width: 45px; max-height: 45px; z-index: 1; filter: none; }
.stand-card .shop-art::after { content: ''; position: absolute; left: 50%; top: calc(50% + 22px); width: 52px; height: 7px; transform: translateX(-50%); border-radius: 3px;
  background: linear-gradient(#E9B98A 0 55%, #C98A4B 55% 100%); box-shadow: 0 0 0 2px #3D2E4F; z-index: 1; pointer-events: none; }
.stand-card .shop-art svg { transform: translateY(-3px); }
.shop-art .swatch, .shop-art .pl-sample { z-index: 1; }
/* locked items: dimmed with a lock badge */
.shop-card.is-locked .shop-art { opacity: .5; }
.shop-card.is-locked::after { content: ''; position: absolute; right: calc(50% - 38px); top: 14px; width: 20px; height: 20px; border-radius: 50%; z-index: 2;
  background: #3D2E4F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 9V7a3 3 0 0 1 6 0v2' fill='none' stroke='%23FFF3DC' stroke-width='1.8'/%3E%3Crect x='5.5' y='9' width='9' height='7' rx='1.6' fill='%23FFD84A'/%3E%3C/svg%3E") center/20px no-repeat; }
.shop-card.is-locked { position: relative; }
/* one family of light game tiles (Star Catch was the lone navy tile) */
.gc-catch .game-ic { background: #FFF3C4; }
/* room floors fade into a warm wood tone at dusk (was a muddy mauve) and a softer indigo at night */
.phase-dusk .iso-view.f-in { --f-floor:#B98F7A; }
.phase-night .iso-view.f-in, .scene.dark .iso-view.f-in { --f-ceil:#34306E; --f-floor:#4A4084; }
/* museum unknowns: a plum silhouette at 30% inside a dashed outline */
.museum-tile:not(.got) .museum-art { opacity: 1; border: 2px dashed rgba(61,46,79,.35); border-radius: 12px; box-sizing: border-box; padding: 3px; }
.museum-tile:not(.got) .museum-art svg { filter: brightness(0) invert(17%) sepia(18%) saturate(1200%) hue-rotate(230deg); opacity: .3; }
#codeOutMsg.ok-msg { color: #2E7D4F; }
/* Critiquito pass (art-2) */
:root { --go-green: #59456B; --go-green-d: #3F2F4E; }   /* 1.9.8: Go and Sell are Plum (style guide), the green was off palette */
.sell-btn { background: var(--go-green) !important; box-shadow: 0 3px 0 var(--go-green-d); }
.trip-go { background: var(--go-green); box-shadow: 0 3px 0 var(--go-green-d); }
.try-btn { background: none !important; border: 0 !important; box-shadow: none !important; color: var(--cta, #5A4A78); text-decoration: underline; text-underline-offset: 3px; font-weight: 800; min-height: 44px; }
.look-chip { min-height: 44px; }
.score-unit { margin-left: 3px; font-size: 12px; font-weight: 800; opacity: .85; }
.ring.m-happy { --rc: #B87A00; }
.m-happy .meter-fill { background: #C98500; }
.buy-btn.short::after { content: attr(data-need); display: block; font-size: 11px; font-weight: 800; margin-left: 6px; }
.app.decorating #panelDecor { bottom: calc(12px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); max-height: calc(100dvh - var(--decor-tray-top, 0px) - 12px); overflow-y: auto; }
.ex-act { position: sticky; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 3; }
.ex-act:active:not(:disabled) { box-shadow: 0 1px 0 rgba(31,20,60,.35); transform: translateY(2px); }
.pl-tag { margin: 0 6px; }
.big-text .sheet-tile .tile-txt small, .big-text .shop-desc { white-space: normal; }
@media (min-width: 900px) { .app { max-width: 560px; } }
.wall-moon-door { position: absolute; left: 7%; bottom: 28%; height: 36%; aspect-ratio: 70 / 120; z-index: 2; pointer-events: none; }
.wall-moon-door svg { width: 100%; height: 100%; display: block; }
.wall-moon-door.unlocked .wmd-lock { display: none; }
.wall-moon-door[hidden] { display: none; }
.scene.wall-view, .scene.iso { touch-action: none; }
.shop-art .fl-path, .pl-sample .fl-path { --grass: #A2C98F; }
.bell-delta { position: fixed; z-index: 90; transform: translateX(-50%); padding: 3px 9px; border-radius: 10px; font: 800 13px/1.2 inherit; font-family: inherit; pointer-events: none;
  background: #FFF3C4; color: #6A4A00; box-shadow: 0 0 0 1.5px #3D2E4F; animation: bellDelta 1.8s ease-out forwards; }
.bell-delta.down { background: #EBE3F0; color: #3D2E4F; }
@keyframes bellDelta { 0% { opacity: 0; translate: 0 -4px; } 12% { opacity: 1; translate: 0 0; } 80% { opacity: 1; } 100% { opacity: 0; translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .bell-delta { animation: none; } }
.bell-delta-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.shop-jump { position: sticky; top: 0; z-index: 4; display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px 10px; margin: 0 -2px 6px; background: linear-gradient(#FFF8EE 80%, rgba(255,248,238,0)); scrollbar-width: none; }
.shop-jump::-webkit-scrollbar { display: none; }
.jump-chip { flex: none; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1.5px solid #3D2E4F; background: #EBE3F0; color: #3D2E4F; font: inherit; font-weight: 800; font-size: 13px; }
.jump-chip:active { background: #D9CCE6; }
#pageShop h3 { scroll-margin-top: 58px; }
.scene.away #petWrap, .scene.away .iso-pet { visibility: hidden; }
.scene.editing .pet-wrap, .scene.editing #petWrap { opacity: 1; filter: none; }
/* N10 slow-load note */
.boot-slow { margin: 6px 24px 0; max-width: 300px; text-align: center; font-size: 14px; font-weight: 700; color: #5E5577; }
.boot-slow button { display: block; margin: 10px auto 0; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 0; background: #5A456F; color: #fff; font: inherit; font-weight: 800; }
/* N13 a locked dock still takes taps so it can say why */
.dock.locked { pointer-events: auto; }
/* N15 the forage button keeps a darker lip under it */
.ex-act { box-shadow: 0 4px 0 color-mix(in srgb, var(--cta) 62%, #1C1426); }
.ex-act:active { box-shadow: 0 2px 0 color-mix(in srgb, var(--cta) 62%, #1C1426); }
/* N16 compact care row always shows a short label under each icon */
.dock:not(.care-expanded) .care-grid .act { height:auto; min-height:54px; padding:3px 0; }
.dock:not(.care-expanded) .care-grid .act .act-label { position:static; opacity:1; visibility:visible; transform:none; background:none; box-shadow:none; color:var(--ink-2, #5E5577); padding:0; font-size:11px; font-weight:700; transition:none; }
.dock:not(.care-expanded) .care-grid .act .act-label::after { display:none; }
.dock:not(.care-expanded) .care-grid .act:first-child .act-label, .dock:not(.care-expanded) .care-grid .act:nth-child(6) .act-label { transform:none; }
/* N17 worn outfits get a check badge, not just a border */
.closet-tile { position: relative; }
.closet-tile.on::after { content: '\2713'; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: #59456B; color: #fff; font-size: 13px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
/* N5: the kept dock slot away from home says something instead of sitting blank */
body.is-away .app.dock-flow .bottom::before { content:'Tap anything to take a closer look'; display:flex; align-items:center; justify-content:center; box-sizing:border-box; margin:0 12px; padding:0 16px; border-radius:20px; background:#FFF8EE; box-shadow:inset 0 0 0 1.5px #E6DCEB; color:#5E5577; font-size:14px; font-weight:700; text-align:center; }
/* N9: the foraging status card sits up top, clear of the path and the Moon Lane sign */
.away-sign { bottom:auto; top:62px; }
/* the drifting sky clouds fade in and out at the screen edges instead of being sliced off (house view pink cloud) */
@keyframes drift { 0% { left: -90px; opacity: 0; } 22% { opacity: 1; } 62% { opacity: 1; } 78%, 100% { opacity: 0; } 100% { left: 105%; } }
/* the Shop title sits in the true centre (back button and bell chip have different widths) */
#pageShop .page-head { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; }
#pageShop .page-head > :first-child { justify-self:start; }
#pageShop .page-head > #shopTitle { grid-column:2; text-align:center; margin:0; }
#pageShop .page-head > :nth-child(n+3) { justify-self:end; grid-column:3; }
.pl-lane, .pl-lane * { -webkit-user-drag:none; user-select:none; -webkit-user-select:none; } body:has(.pl-lane) .place { cursor:grab; }
/* wall views: both doors match (same size, threshold on the floor line), sit in from the edge, under Pip */
.scene.wall-view .room-door.is-front, .wall-moon-door { left: 9%; bottom: 27.4%; height: 34%; aspect-ratio: 70 / 120; z-index: 1; }
.scene.wall-view .pet-wrap { z-index: 4; }
/* 1.9.1 polish: the Basement's moon door at the top of its stairs (right, by the back corner) and the arched doorways */
.wall-moon-door.wd-moonup { left: auto; right: 4%; height: 45.3%; aspect-ratio: 150 / 160; }
.wall-moon-door.wd-arch { left: 9%; height: 30%; }
/* whole-house view: Pip's speech bubble floats in the sky band, never over the Moon Lane sign or the house */
.scene.iso:not(.iso-infield):not(.iso-zoomed) .bubble { top:62px !important; bottom:auto !important; left:50% !important; transform:translateX(-50%) !important; }
.scene.iso:not(.iso-infield):not(.iso-zoomed) .bubble::after { display:none; }
/* short screens: the Enter button sits lower and slimmer so the Moon Lane sign stays readable */
@media (max-height:700px) { .iso-enter-btn { bottom:6px; height:44px; } }

/* art pass 2 r5: Album / Settings views of the Profile page */
#pageStats[data-view="album"] .page-body > :not(.v-album), #pageStats[data-view="settings"] .page-body > :not(.v-settings) { display:none; }
#pageStats[data-view="album"] .v-album > h3, #pageStats[data-view="settings"] .v-settings > h3 { display:none; }
/* N8: a bigger mailbox hit area (at least 56px, centred on the box) */
.iso-mbox::before { width:max(130%, 56px); height:max(130%, 56px); }

/* art pass 2 r5: one icon system: line drawings in plum ink on soft pastel tiles */
.tile-ic, .care-grid .act .act-ic, .dock:not(.care-expanded) .care-grid .act-ic { border-radius:12px; }
.tile-ic { color:#5E4B73 !important; }
.tile-ic svg *, .act-ic svg *, .nav-ic svg * { stroke-width:1.9; }
.t-green { background:#E3F3E8; } .t-blue { background:#E6ECFB; } .t-orange { background:#FCEBDD; } .t-gray { background:#EFEAE3; }
.t-violet { background:#ECE4F6; } .t-gold { background:#FBF0CF; } .t-pink { background:#FBE4EC; }
.dock:not(.care-expanded) .care-grid .act-ic { background:var(--chip, #EFE8F4); }
/* art pass 2 r7: with a page open (Closet, Shop…) the home care strip underneath is never painted (no loose Feed / Play / Sleep labels) */
.app[inert] .dock, .app[inert] #panelActions, .app.covered .dock { visibility:hidden; }
/* art pass 2 r7: over a page (Shop, Closet, the Market…) toasts sit under the page header, never over the buy buttons */
body:has(.page.open) .toast, body:has(.place:not([hidden])) .toast { top:calc(64px + env(safe-area-inset-top)) !important; bottom:auto !important; transform:translateX(-50%) translateY(-10px); }
body:has(.page.open) .toast.show, body:has(.place:not([hidden])) .toast.show { transform:translateX(-50%); }
/* art pass 2 r7: very short screens (e.g. 333x415) — room arrows sit just under the name / Options pills, and the
   Enter button moves to the right so it never covers the mailbox (which stands mid-house) */
@media (max-height: 520px) {
  .room-arrow { top:84px !important; transform:none !important; width:38px !important; height:38px !important; }
  .iso-enter-btn { left:auto !important; right:10px !important; bottom:8px !important; transform:none !important; height:38px !important; max-width:44% !important; padding:0 12px 0 10px !important; }
}
.app[inert] #panelActions, .app[inert] #panelActions *, .app.covered #panelActions *, .app[inert] .dock * { visibility:hidden !important; }

/* ===== art pass 2 r8 (Critiquito art6 verify) ===== */
/* F8: Joy reads at 3:1+ in the header ring and the care meter */
.ring.m-happy, .status-pill .ring.m-happy { --rc:#8E6614 !important; }
.m-happy .meter-fill { background:#8E6614 !important; }
/* F11: market prices are compact everywhere (no bell) so the shelf tags don't pile up */
#place.pl-store .pl-tag-bell { display:none; }
#place.pl-store .pl-tag > span { padding:1px 4px; }
/* A1: 44px tap area for shop jump chips, same 36px pill look */
.jump-chip { min-height:44px !important; padding-block:4px !important; background-clip:content-box; border:0 !important; box-shadow:inset 0 0 0 1.5px #3D2E4F; position:relative; }
/* A3: Nutmeg's lines never clip at 320 */
.pl-say { max-height:none !important; }
@media (max-width:359px) { .pl-say { -webkit-line-clamp:unset !important; overflow:visible !important; } }
/* A4: the foraging card sits below the stage control row */
.away-sign { top:112px !important; max-width:calc(100% - 116px) !important; width:max-content; }
.away-sign .away-txt b { white-space:normal; }
/* A5: 320 try bar keeps "need N more" */
@media (max-width:360px) { .try-hint { display:block !important; white-space:normal; } }
/* A6: on the Closet the toast sits at the bottom, over no rows */
/* N6: 320 food cards keep the description and energy line (two lines, smaller) */
@media (max-height:679px) and (max-width:350px) { .panel-feed .food-desc { display:block !important; white-space:normal; font-size:11px; line-height:1.15; } .panel-feed .food-card { height:auto; min-height:54px; padding-block:6px; } }
/* N1: at 320 the World sheet subtitles show in full (wrap, no clamp) */
@media (max-width:359px) { #sheetWorld .tile-txt small { -webkit-line-clamp:unset !important; display:block !important; overflow:visible !important; white-space:normal !important; font-size:11px; line-height:1.2; } #sheetWorld .sheet-tile { height:auto !important; min-height:56px; padding-block:6px; } }

/* ===== art pass 2 r9 (Play Tester decorate pass) ===== */
/* tray: the whole first row of tiles fits; more rows scroll inside the tray */
.app.decorating .decor-list { overflow-y:auto; overscroll-behavior:contain; padding-bottom:8px; }
/* no dashed boxes on unselected pieces; the selected piece gets a soft outline only, no white backing */
.scene.editing .furn-item::after { border-color:transparent !important; background:none !important; box-shadow:none !important; }
.scene.editing .furn-item.selected::after { border:2px solid rgba(94,75,115,.55) !important; background:none !important; }
.scene.editing .furn-item.selected, .scene.editing .furn-item.selected > * { background:none !important; }
/* art pass 2 r10: the tray is one row that scrolls sideways (never a clipped second row); the selected-item buttons
   sit at the bottom of the panel, well below where tray slot 1 was, with a tip line in between */
.app.decorating .decor-list { display:grid; grid-auto-flow:column; grid-template-columns:none; grid-template-rows:auto; grid-auto-columns:88px;
  overflow-x:auto; overflow-y:hidden; align-content:start; scroll-snap-type:x proximity; padding-bottom:10px; }
.app.decorating .decor-list > * { scroll-snap-align:start; }
.app.decorating .decor-list .fix-label { width:72px; }
.decor-actions { justify-content:space-between; }
.decor-tip { flex:1 1 auto; margin:0; display:flex; align-items:center; justify-content:center; text-align:center; font-size:12px; font-weight:800; color:var(--ink2); min-height:20px; }
.decor-btns { flex:none; margin-top:auto; }
.shop-have { display:block; font-size:12px; font-weight:800; color:#5E4B73; margin-top:2px; }
.build-id { font-size:12px; font-weight:800; color:var(--ink2); font-variant-numeric:tabular-nums; }
/* r10 #4: the selected-item bar floats just above the Decorate panel (over the room's bottom edge), so it never takes the
   place of a tray slot; the tray stays where it was */
.app.decorating #panelDecor, .app.decorating #panelDecor .decor-body { overflow: visible; }
.app.decorating #decorActions { position: absolute; inset: auto 0 calc(100% + var(--dtabs-h, 52px) + 10px) 0; height: auto; z-index: 3;
  box-shadow: 0 2px 0 var(--edge), 0 10px 24px rgba(61,46,79,.18); }
.app.decorating #decorActions .decor-tip { display: none; }
.app.decorating #decorActions { flex-direction: row; align-items: center; gap: 6px; padding: 6px; }
.app.decorating #decorActions .decor-sel { flex: 1 1 auto; flex-direction: column; align-items: flex-start; gap: 0; padding: 0 2px 0 6px; }
.app.decorating #decorActions .decor-sel b { font-size: 13px; max-width: 100%; }
.app.decorating #decorActions .decor-sel small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.app.decorating #decorActions .decor-btns { flex: none; display: flex; gap: 4px; margin: 0; min-height: 0; }
.app.decorating #decorActions .decor-act { width: 52px; min-height: 48px; font-size: 10.5px; }
/* r11 #2: flat room / wall view in Decorate: the furniture layer no longer lifts as one block above Pip; rugs stay
   under Pip and every other piece (selected or dragged too), the rest keeps the old edit stacking */
.scene.editing:not(.iso) .furn { z-index: auto; }
.scene.editing:not(.iso) .furn-item { z-index: 6; }
.scene.editing:not(.iso) .furn-item.selected { z-index: 7; }
.scene.editing:not(.iso) .furn-item.dragging { z-index: 8; }
.scene.editing:not(.iso) .furn-item.cat-rug, .scene.editing:not(.iso) .furn-item.cat-rug.selected, .scene.editing:not(.iso) .furn-item.cat-rug.dragging { z-index: 1 !important; }

/* art pass 2 r16: spawn occupancy scan (cozy.js spawnPixels / iso builtinAt) hit-tests painted art for one frame */
.mp-scan .occ, .mp-scan .occ *, .mp-scan .furn-item *, .mp-scan #petWrap * { pointer-events: visiblePainted !important; }
/* r16: a newly placed piece shows selected and gently pulses, so it is plainly draggable */
@keyframes mpJustPlaced { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 216, 74, 0)); } 50% { filter: drop-shadow(0 0 5px rgba(255, 216, 74, .85)); } }
.furn-item.just-placed { animation: mpJustPlaced 1.1s ease-in-out 3; }
@media (prefers-reduced-motion: reduce) { .furn-item.just-placed { animation: none; filter: drop-shadow(0 0 4px rgba(255, 216, 74, .8)); } }

/* art19: Settings > Send feedback */
.fb-form { display:flex; flex-direction:column; gap:10px; padding:12px 0 14px; border-top:1px solid var(--line); min-width:0; }
.fb-form[hidden] { display:none; }
.fb-form fieldset { border:0; margin:0; padding:0; min-width:0; }
.fb-form legend, .fb-label { font-weight:800; font-size:15px; margin-bottom:6px; padding:0; }
.fb-form legend small, .fb-check small { font-weight:600; opacity:.7; }
.fb-type { display:flex; flex-wrap:wrap; gap:6px; }
.fb-type legend { width:100%; }
.fb-type label { position:relative; }
.fb-type input { position:absolute; opacity:0; inset:0; margin:0; }
.fb-type span { display:inline-flex; align-items:center; min-height:40px; padding:0 14px; border-radius:20px; border:1.5px solid var(--line); font-weight:800; font-size:14px; background:var(--card, #fff); }
.fb-type input:checked + span { background:#f5e6ff; border-color:#a77bd6; color:#4b2a73; }
.fb-type input:focus-visible + span { outline:3px solid #a77bd6; outline-offset:2px; }
#fbMsg { width:100%; box-sizing:border-box; min-height:96px; resize:vertical; font:inherit; font-size:16px; padding:10px 12px; border-radius:14px; border:1.5px solid var(--line); background:#fffdf8; }
.fb-count { margin:-6px 0 0; text-align:right; font-size:12px; opacity:.65; }
.fb-hrow { display:flex; gap:4px; }
.fb-hrow button { width:44px; height:44px; border:0; background:none; font-size:26px; color:#d9cbd6; border-radius:12px; cursor:pointer; padding:0; }
.fb-hrow button.on { color:#e86a92; }
.fb-hrow button:focus-visible { outline:3px solid #a77bd6; }
.fb-check { display:flex; gap:10px; align-items:flex-start; font-weight:700; font-size:14px; }
.fb-check input { width:22px; height:22px; margin:0; flex:none; accent-color:#a77bd6; }
.fb-hp { position:absolute !important; left:-9999px !important; width:1px; height:1px; opacity:0; }
.fb-ts:empty { display:none; }
.fb-actions { display:flex; justify-content:flex-end; align-items:center; gap:14px; }
@media (max-width:340px) { .fb-type span { padding:0 10px; font-size:13px; } .fb-hrow button { width:40px; } }

/* 1.9.2 graphics r1: dust motes drifting in the room light (GPU-only transforms; still with reduced motion) */
.f-mote { opacity:0; animation:fMote 9s ease-in-out infinite; }
.f-mote.m1 { animation-duration:12s; animation-delay:-4s; } .f-mote.m2 { animation-duration:15s; animation-delay:-8s; }
@keyframes fMote { 0% { opacity:0; transform:translate(0,0); } 30% { opacity:.75; } 70% { opacity:.55; } 100% { opacity:0; transform:translate(6px,-14px); } }
@media (prefers-reduced-motion: reduce) { .f-mote { animation:none; opacity:.4; } }
/* 1.9.3 graphics r2 (wall views): warm light from above, deeper AO at the skirting and corners, a sun pool and a soft sheen on the floor */
.scene.wall-view .room-wall::after {
  background: radial-gradient(circle at 3px 4px, rgba(61,46,79,.06) .6px, transparent 1.1px) 0 0 / 9px 9px, radial-gradient(circle at 6px 7px, rgba(255,255,255,.35) .6px, transparent 1.1px) 0 0 / 11px 11px, radial-gradient(ellipse 70% 55% at 50% 8%, rgba(255, 246, 225, .42), rgba(255, 246, 225, 0) 70%),
    linear-gradient(90deg, rgba(70, 46, 90, .14), rgba(70, 46, 90, 0) 10%, rgba(70, 46, 90, 0) 90%, rgba(70, 46, 90, .14)),
    linear-gradient(180deg, rgba(70, 46, 90, 0) 78%, rgba(70, 46, 90, .22)); }
.scene.wall-view .room-floor::after {
  background: linear-gradient(180deg, rgba(50, 30, 40, .26), rgba(50, 30, 40, .08) 5%, rgba(50, 30, 40, 0) 14%),
    radial-gradient(ellipse 55% 30% at 55% 16%, rgba(255, 224, 160, .32), rgba(255, 224, 160, 0) 70%),
    linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .1) 45%, rgba(255, 255, 255, 0) 60%); }

/* 1.9.3 graphics r4: a deeper two-layer contact shadow under the pet (tight core, soft penumbra) */
.pet-shadow { background: radial-gradient(closest-side, rgba(36, 22, 62, .34), rgba(36, 22, 62, .16) 55%, rgba(36, 22, 62, .05) 80%, rgba(36, 22, 62, 0)); }

/* 1.9.3 redraw: shared shading defs holder */
.mp-vol-defs { position:absolute; width:0; height:0; overflow:hidden; pointer-events:none; }

/* 1.9.8 polish (2026-11-17): the shop's shelf chips sit in a fixed 3-column grid. The row never slides sideways
   and every label fits (David: menu rows stay put, text fits neatly). 44px tap rows, 36px pill look. */
.shop-jump { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:5px 6px; overflow:visible; position:static; padding:6px 0 8px; margin:0 0 6px; background:none; }
.shop-jump .jump-chip { flex:initial; min-width:0; width:100%; min-height:40px !important; padding:3px 4px !important; border:1.5px solid #3D2E4F !important; box-shadow:none; background-clip:border-box; border-radius:14px; font-size:12.5px; line-height:1.1; white-space:normal; text-align:center; overflow-wrap:anywhere; }
/* 1.9.8 polish: the Bedroom's built-in bed in the right-wall view (iso.js wallBedSVG), standing on the floor just in front of the wall */
.wall-moon-door.wd-bed { height:25%; bottom:21.5%; aspect-ratio:170 / 104; }
/* 1.9.8 polish: the first-steps tip is a light card 12px above the dock, with a tail at the care button it names
   (extras.js sets --tail). Its words come from the same reading as the dock status (MP.hud.mood). Never over the pet:
   when it would be, it lifts up under the room name (.up, no tail). */
#bottom > .coach-tip { left:12px; right:auto; width:auto; max-width:min(300px, calc(100% - 24px)); bottom:calc(100% + 12px); top:auto; z-index:17;
  gap:8px; padding:6px 4px 6px 8px; border-radius:18px; background:#FFFCF7; border:1.5px solid #DFD1C8; color:#403349;
  font-size:15px; font-weight:600; line-height:1.25; box-shadow:0 4px 14px rgba(64,51,73,.12); animation:coachIn .2s ease-out both; }
#bottom > .coach-tip.up { bottom:calc(100% + 12px + var(--up, 0px)); }
#bottom > .coach-tip::after { content:''; position:absolute; left:var(--tail, 40px); bottom:-7px; width:12px; height:12px; margin-left:-6px; background:#FFFCF7;
  border-right:1.5px solid #DFD1C8; border-bottom:1.5px solid #DFD1C8; transform:rotate(45deg); border-bottom-right-radius:3px; }
#bottom > .coach-tip.up::after { display:none; }
#bottom > .coach-tip .coach-ic { flex:none; width:34px; height:34px; border-radius:11px; background:#FBE1CF; color:#9A4F24; display:grid; place-items:center; }
#bottom > .coach-tip .coach-ic.is-play { background:#F8EBC2; color:#86620C; }
.coach-ic[hidden] { display:none; }
.coach-ic svg { width:20px; height:20px; }
#bottom > .coach-tip .coach-skip { background:none; color:#59456B; font-size:14px; font-weight:700; padding:0 10px; text-decoration:underline; text-underline-offset:3px; }
@keyframes coachIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { #bottom > .coach-tip { animation:none; } }
/* 1.9.8: at home the toast sits at the top of the room (cozy.js sets --toast-top), clear of the dock labels */
.toast.at-room { top:var(--toast-top, 140px) !important; bottom:auto !important; transform:translateX(-50%) translateY(-8px); }
.toast.at-room.show { transform:translateX(-50%); }
/* 1.9.8 (style guide): toasts are light cards like every other message, not dark slabs */
.toast { background:#FFFCF7 !important; color:#403349 !important; border:1.5px solid #DFD1C8; font-weight:600; box-shadow:0 4px 14px rgba(64,51,73,.14) !important; }
/* 1.9.8: the room's bottom buttons ride above an expanded care dock (hud.js --dock-over) instead of hiding under it */
.scene .iso-enter-btn, .scene .iso-lane-btn { margin-bottom:var(--dock-over, 0px); transition:margin-bottom .2s ease-out; }
/* 1.9.8 games (style guide): the game's own scene shows behind its intro and results under a 45% Game Frame scrim,
   the card is centred, cream, 24px round, and the how-to is one short line plus chips */
.page-game .game-cover { background:rgba(27, 22, 70, .45); }
.page-game .cover-card { background:#FFFCF7; border-radius:24px; padding:20px; box-shadow:0 10px 30px rgba(20, 14, 50, .35); color:#403349; }
.page-game .cover-card p#gameHow { font-size:15px; line-height:1.35; font-weight:600; color:#403349; margin:0 0 10px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.rule-row { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin:0 0 16px; }
.rule-row[hidden] { display:none; }
.rule-chip { padding:4px 10px; border-radius:12px; background:#EBE3F0; color:#59456B; font-size:13px; font-weight:600; line-height:1.3; }
/* 1.9.8 Pip Says (style guide): the pads rest on the care-chip tints with an edge in their own darker shade; a lit pad
   takes on 35% of its glyph colour, glows 8px in that colour and grows to 1.06 */
.ps-pad { --pc:#86620C; background:var(--pt); border:2px solid color-mix(in srgb, var(--pc) 45%, var(--pt)); box-shadow:0 4px 0 color-mix(in srgb, var(--pc) 30%, var(--pt)); filter:none; transition:transform .12s, background-color .12s, box-shadow .12s; }
.ps-moon { --pt:#F8EBC2; --pc:#86620C; } .ps-heart { --pt:#F6DCE4; --pc:#A0415D; } .ps-cloud { --pt:#D8E9F5; --pc:#2B6789; } .ps-star { --pt:#E8E0F7; --pc:#62509A; }
.ps-pad.lit { filter:none; transform:scale(1.06); background:color-mix(in srgb, var(--pc) 35%, var(--pt)); box-shadow:0 0 0 3px #FFFCF7, 0 0 8px 4px color-mix(in srgb, var(--pc) 70%, transparent); }
@media (prefers-reduced-motion: reduce) { .ps-pad, .ps-pad.lit { transition:none; transform:none; } }
/* 1.9.8 games list (style guide): every icon sits on a light care tint (no dark tiles), with a soft edge in the same family,
   and the button is a Plum play triangle so it no longer looks like the Play care star */
.game-ic { box-shadow:inset 0 0 0 1.5px rgba(64, 51, 73, .08); }
.gc-catch .game-ic { background:#F8EBC2; } .gc-memory .game-ic { background:#E8E0F7; } .gc-bubble .game-ic { background:#D8E9F5; }
.gc-pipsays .game-ic { background:#F6DCE4; } .gc-flutter .game-ic { background:#D9EEE3; } .gc-shooter .game-ic { background:#FBE1CF; } .gc-blocks .game-ic { background:#EBE3F0; }
.game-go { background:#59456B; box-shadow:0 3px 0 #3F2F4E; }
.game-go svg { width:18px; height:18px; fill:#FFFCF7; margin-left:3px; }
.game-txt .game-feat { align-self:flex-start; margin-top:3px; }
/* 1.9.8 off-palette accents (style guide): every "something new" dot is Health rose with a cream ring; shop jump chips
   use the soft Edge line instead of an ink outline, at a full 44px target */
.badge, .nav-btn .dot, .favor-dot, .sheet-tile .dot { width:10px; height:10px; background:#AB5575; box-shadow:0 0 0 2px #FFFCF7; }
.shop-jump .jump-chip { border:1.5px solid #DFD1C8 !important; min-height:44px !important; }
/* 1.9.8 dead space (style guide): away from home the dock's spare slot is a 44px hint pill, so the place itself gets the
   freed height instead of a large empty card */
body.is-away .app.dock-flow .bottom::before { height:44px; min-height:44px; margin:6px 16px 4px; border-radius:22px; font-size:15px; font-weight:600; color:#706079; background:#FFFCF7; box-shadow:inset 0 0 0 1.5px #DFD1C8; }
body.is-away:has(#place[data-kind="lane"]) .app.dock-flow .bottom::before { font-size:15px; font-weight:600; color:#706079; }
.decor-empty { grid-column:1 / -1; flex:1 0 100%; width:100%; box-sizing:border-box; background:#FFFCF7; border-radius:18px; box-shadow:inset 0 0 0 1.5px #DFD1C8; padding:16px; }
.decor-empty .empty-text { font-size:15px; font-weight:600; color:#403349; }
.decor-empty .empty-go { min-height:44px; padding:0 20px; background:#59456B; color:#FFFCF7; }
.app.decorating .decor-list:has(> .decor-empty) { grid-auto-flow:row; grid-template-columns:1fr; grid-auto-columns:auto; }
/* 1.9.8 title moment (style guide): before hatching the top bar is a centred Moonpip logotype with the pip's star over
   the i, there is no bells chip, the egg card skips its duplicate title, and the egg gives a small wobble every 3 s;
   hatching ends in a 250 ms cream flash. Reduced motion keeps it all still. */
body.egg-time .topbar { justify-content:center; text-align:center; }
body.egg-time .topbar .who { flex:1 1 auto; align-items:center; text-align:center; }
body.egg-time #petName { font-size:44px; font-weight:600; color:#403349; line-height:1.05; letter-spacing:-.5px; overflow:visible; }
body.egg-time #petSub { font-size:15px; font-weight:600; color:#706079; }
.logo-i { position:relative; display:inline-block; }
.logo-i::after { content:""; position:absolute; left:50%; top:.1em; width:.34em; height:.34em; transform:translateX(-50%) rotate(-8deg);
  background:#FFD84A; clip-path:polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
body.egg-time .egg-card .brand { display:none; }
@keyframes eggIdle { 0%, 86.7%, 100% { transform:rotate(0); } 90% { transform:rotate(-6deg); } 93.3% { transform:rotate(6deg); } 96.7% { transform:rotate(-3deg); } }
.scene.is-egg .pet-bob:not(.wobble) { animation:eggIdle 3s ease-in-out infinite; transform-origin:50% 90%; }
.hatch-flash { position:absolute; inset:0; z-index:30; pointer-events:none; background:#FFFCF7; opacity:0; animation:hatchFlash .25s ease-out; }
@keyframes hatchFlash { 0% { opacity:0; } 35% { opacity:.85; } 100% { opacity:0; } }
@media (prefers-reduced-motion: reduce) { .scene.is-egg .pet-bob:not(.wobble) { animation:none; } .hatch-flash { display:none; } }
/* 1.9.8: every look chip is a full 44px target (Big was 36px wide) */
.look-chip { min-width:44px; }
/* 1.9.8 games (Play Tester M2): a pause button during a round, and a cream Paused card over the stage */
.game-pause { flex:none; }
.game-pause svg { width:20px; height:20px; fill:currentColor; }
.game-paused { position:absolute; inset:0; z-index:8; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; border:0; background:rgba(27, 22, 70, .45); font:inherit; cursor:pointer; }
.game-paused[hidden] { display:none; }
.game-paused .pc { display:flex; flex-direction:column; align-items:center; gap:4px; min-width:220px; padding:20px 28px; border-radius:24px; background:#FFFCF7; box-shadow:0 10px 30px rgba(20, 14, 50, .35); }
.game-paused b { font-size:28px; font-weight:600; color:#403349; }
.game-paused i { font-style:normal; font-size:15px; font-weight:600; color:#706079; }
/* 1.9.8 Moon Blocks (Art Director, Play Tester N1): the results card docks to the bottom 45% of the screen and the final
   board stays in view above it, dimmed to about 60% */
.page-game .game-cover.docked { align-items:flex-end; padding:12px; background:rgba(27, 22, 70, .4); }
.page-game .game-cover.docked .cover-card { max-width:none; max-height:45vh; overflow:auto; padding:16px 18px; }
.page-game .game-cover.docked .cover-card h2 { margin:0 0 2px; font-size:22px; }
.page-game .game-cover.docked .result-score { margin:0; }
/* 1.9.8 r2: with the pause button in the header the game name stays on one line on narrow phones */
.game-title { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:360px) { .game-head { gap:6px; padding:8px 10px; } .game-title { font-size:17px; } .game-score { min-width:0; padding:0 10px; } .game-score .score-unit { display:none; } }
/* 1.9.8 r2 (AD): "Tap the bars" is a light Paper card under the room-name row (placed by extras.js), not a dark plum bubble */
.ring-hint { background:#FFFCF7; color:#403349; font-size:14px; font-weight:600; box-shadow:inset 0 0 0 1.5px #DFD1C8, 0 6px 16px rgba(64, 51, 73, .12); padding:9px 14px; }
.ring-hint .ring-hint-arrow { display:none; }
/* 1.9.8 r2 (AD): the tour dims the app with one soft Ink scrim (the ring's cut-out), not two plum layers */
.tour::before { background:transparent; }
.tour-ring { box-shadow:0 0 0 4px #FFD84A, 0 0 0 9999px rgba(64, 51, 73, .32); }
@keyframes tourPulse { 50% { box-shadow:0 0 0 7px #FFD84A, 0 0 0 9999px rgba(64, 51, 73, .32); } }
/* 1.9.8 r2: a lit pad brightens to its glyph's own colour (it went a muddy khaki mixing in the dark edge colour) */
.ps-moon { --pl:#FFE27A; } .ps-heart { --pl:#FFB3C8; } .ps-cloud { --pl:#AFDDF7; } .ps-star { --pl:#CDBDF5; }
.ps-pad.lit { background:var(--pl, var(--pt)); border-color:color-mix(in srgb, var(--pc) 55%, var(--pl, var(--pt))); box-shadow:0 0 0 3px #FFFCF7, 0 0 14px 6px color-mix(in srgb, var(--pl, var(--pt)) 85%, transparent); }
/* 1.9.8 r2 (AD): the opening close-up. For the first session only, the front-door wall view frames Pip at about a
   quarter of the screen: the room layers scale 1.9x about Pip's feet (which stand low in the wall view), so Pip is about 200px tall, whole, and the door crops at its arch; the bubble keeps its size */
.scene.wall-view.first-look .cam { scale:1.9; transform-origin:var(--fl-x, 50%) 84%; transition:scale .5s cubic-bezier(.3, .8, .3, 1), transform .5s cubic-bezier(.3, .8, .3, 1); }
.scene.wall-view.first-look .cam .bubble { scale:.526; transform-origin:50% 100%; }
@media (prefers-reduced-motion: reduce) { .scene.wall-view.first-look .cam { transition:none; } }
/* ---------- 1.9.8 r2 (AD art call): a cozy night sky, not a dark slab ----------
   One sky for the whole house and the indoor rooms: deep blue-violet lifting to a warm horizon, two layers of stars that
   twinkle out of step, a moon with craters and a soft halo. The cellar never shows sky: it gets warm stone and a lamp pool. */
.phase-night .iso-sky, .scene.dark .iso-sky {
  background: radial-gradient(130% 60px at 50% 100%, rgba(138, 111, 149, .85), rgba(138, 111, 149, 0) 100%),
    linear-gradient(#2E2A66 0%, #3E3880 45%, #5B4D8E 80%, #66548F 100%); }
.iso-sky::before, .iso-sky::after { content:''; position:absolute; left:0; right:0; top:0; height:58%; opacity:0; pointer-events:none; transition:opacity .8s ease; }
.iso-sky::before { background:
  radial-gradient(1.6px 1.6px at 8% 22%, #FFF6E0 98%, transparent), radial-gradient(1.2px 1.2px at 17% 41%, #FFF6E0 98%, transparent),
  radial-gradient(2px 2px at 26% 16%, #FFF6E0 98%, transparent), radial-gradient(1.2px 1.2px at 34% 52%, #FFF6E0 98%, transparent),
  radial-gradient(1.6px 1.6px at 43% 28%, #FFF6E0 98%, transparent), radial-gradient(1.2px 1.2px at 52% 12%, #FFF6E0 98%, transparent),
  radial-gradient(1.8px 1.8px at 61% 44%, #FFF6E0 98%, transparent), radial-gradient(1.2px 1.2px at 69% 24%, #FFF6E0 98%, transparent),
  radial-gradient(1.6px 1.6px at 92% 50%, #FFF6E0 98%, transparent), radial-gradient(1.2px 1.2px at 4% 58%, #FFF6E0 98%, transparent),
  radial-gradient(1.4px 1.4px at 56% 62%, #FFF6E0 98%, transparent);
  animation:skyTwinkle 3.4s ease-in-out infinite; }
.iso-sky::after { background:
  /* the one small cluster, upper right */
  radial-gradient(1.6px 1.6px at 76% 13%, #FFF6E0 98%, transparent), radial-gradient(1.2px 1.2px at 80% 9%, #FFF6E0 98%, transparent),
  radial-gradient(1.4px 1.4px at 83% 15%, #FFF6E0 98%, transparent), radial-gradient(1.2px 1.2px at 79% 19%, #FFF6E0 98%, transparent),
  radial-gradient(1.2px 1.2px at 13% 30%, #FFF6E0 98%, transparent), radial-gradient(1.4px 1.4px at 38% 38%, #FFF6E0 98%, transparent),
  radial-gradient(1.2px 1.2px at 47% 56%, #FFF6E0 98%, transparent), radial-gradient(1.6px 1.6px at 64% 8%, #FFF6E0 98%, transparent),
  radial-gradient(1.2px 1.2px at 88% 34%, #FFF6E0 98%, transparent), radial-gradient(1.4px 1.4px at 22% 60%, #FFF6E0 98%, transparent),
  /* four-point sparkles */
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M4 0Q4.5 3.5 8 4Q4.5 4.5 4 8Q3.5 4.5 0 4Q3.5 3.5 4 0Z' fill='%23FFE9A8'/%3E%3C/svg%3E") 21% 25% / 7px 7px no-repeat,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M4 0Q4.5 3.5 8 4Q4.5 4.5 4 8Q3.5 4.5 0 4Q3.5 3.5 4 0Z' fill='%23FFE9A8'/%3E%3C/svg%3E") 57% 33% / 6px 6px no-repeat,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M4 0Q4.5 3.5 8 4Q4.5 4.5 4 8Q3.5 4.5 0 4Q3.5 3.5 4 0Z' fill='%23FFE9A8'/%3E%3C/svg%3E") 9% 47% / 8px 8px no-repeat,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M4 0Q4.5 3.5 8 4Q4.5 4.5 4 8Q3.5 4.5 0 4Q3.5 3.5 4 0Z' fill='%23FFE9A8'/%3E%3C/svg%3E") 71% 49% / 6px 6px no-repeat;
  animation:skyTwinkle 2.7s ease-in-out -1.3s infinite; }
.phase-night .iso-sky::before, .phase-night .iso-sky::after, .scene.dark .iso-sky::before, .scene.dark .iso-sky::after { opacity:1; }
@keyframes skyTwinkle { 0%, 100% { filter:opacity(1); } 50% { filter:opacity(.4); } }
.phase-night .iso-moon, .scene.dark .iso-moon { width:36px; height:36px;
  background: radial-gradient(6px 6px at 34% 38%, #F3DFA8 96%, transparent), radial-gradient(4px 4px at 62% 64%, #F3DFA8 96%, transparent), #FFF1C9;
  box-shadow:0 0 0 1.5px #FFD84A, 0 0 0 18px rgba(255, 233, 168, .28), 0 0 70px 40px rgba(255, 233, 168, .14); }
/* indoors at night the same sky stands behind the cutaway, and the edge fades melt into it */
.phase-night .iso-view.f-in:not([data-room="basement"]) .iso-sky, .scene.dark .iso-view.f-in:not([data-room="basement"]) .iso-sky { display:block; }
.phase-night .iso-view.f-in, .scene.dark .iso-view.f-in { --f-ceil:#3A357C; --f-floor:#5E4F8E; }
/* the cellar: warm stone and the lamp's pool, never sky */
.phase-night .iso-view.f-in[data-room="basement"], .scene.dark .iso-view.f-in[data-room="basement"] { --f-ceil:#5B4A6B; --f-floor:#6E5C78;
  background: radial-gradient(140px 140px at 35% 57%, rgba(255, 201, 138, .2), rgba(255, 201, 138, 0) 100%), linear-gradient(#5B4A6B, #6E5C78); }
/* the meadow at night: blue-green grass with a lighter top edge (not a grey filter) and a few slow fireflies */
.phase-night .iso-ground, .scene.dark .iso-ground { filter:none; background:linear-gradient(#5A6C80 0, #46566B 10px, #3E4C60 100%); }
.iso-ground::after { content:''; position:absolute; inset:0 0 auto 0; height:90px; opacity:0; pointer-events:none;
  background: radial-gradient(3px 3px at 14% 30%, #FFE9A8 70%, transparent), radial-gradient(3px 3px at 33% 62%, #FFE9A8 70%, transparent),
    radial-gradient(3px 3px at 71% 40%, #FFE9A8 70%, transparent), radial-gradient(3px 3px at 88% 70%, #FFE9A8 70%, transparent);
  filter:drop-shadow(0 0 3px #FFE9A8); }
.phase-night .iso-ground::after, .scene.dark .iso-ground::after { opacity:.9; animation:fireflies 7s ease-in-out infinite alternate; }
@keyframes fireflies { 0% { transform:translate(0, 0); opacity:.5; } 50% { opacity:1; } 100% { transform:translate(10px, -8px); opacity:.6; } }
@media (prefers-reduced-motion: reduce) { .iso-sky::before, .iso-sky::after, .phase-night .iso-ground::after { animation:none; } }
/* 1.9.8 r2 (AD): portrait tiles (look picker, closet, games) sit in the palette on Plum Mist, not a cool blue gradient */
.portrait:not(.glow) { background:#EBE3F0; }
