/* The cabinet is the playfield. Secondary work lives behind the same five
   destinations on a phone and a desktop. Theme variables still own materials. */
:root { --shell: 1180px; --tabbar-h: 74px; }
body { padding-bottom: calc(var(--tabbar-h) + var(--sab) + 28px); }
html { scroll-padding-block: calc(70px + var(--sat)) calc(var(--tabbar-h) + var(--sab) + 32px); }
.topbar { padding-inline: max(26px, var(--sal)) max(22px, var(--sar)); border-bottom-color: var(--hair); }
.wordmark { min-height: 48px; font-size: 27px; }
.topbar .playroom-launch, .topbar #moreBtn { display: none; }
.topbar .status { justify-content: flex-end; margin-right: 16px; }
.topbar .status > span { font-size: 10px; letter-spacing: .035em; text-transform: none; }
.topbar .status b { font-size: 16px; }
#backupBanner { display: grid; grid-template-columns: minmax(0, max-content) auto auto; justify-content: center; gap: 12px; padding: 5px 22px; background: color-mix(in srgb, var(--key) 6%, var(--night-2)); color: var(--ink-2); border-bottom: 1px solid var(--hair); font-size: 12px; }
#backupBanner > span { line-height: 1.45; }
#backupBanner .btn { min-height: 44px; color: var(--ink); border-color: var(--hair-lit); background: transparent; font-size: 12px; padding: 8px 12px; }
#backupBanner #backupNow { color: var(--key); border-color: var(--key-mid); }
.room-app { display: block; max-width: var(--shell); padding: 23px calc(24px + var(--sar)) 34px calc(24px + var(--sal)); }
.room-app > .pane { display: none; position: static; max-height: none; overflow: visible; padding-right: 0; }
body[data-tab="shelf"] .room-app > .pane-shelf,
body[data-tab="plots"] .room-app > .pane-plots,
body[data-tab="notes"] .room-app > .pane-notes { display: block; }
.room-app > :is(.pane-plots, .pane-notes) { max-width: 880px; margin-inline: auto; }
.shelf-heading { margin: 0 3px 18px; align-items: end; }
.shelf-heading .eyebrow { color: var(--key); font-size: 11px; text-transform: none; letter-spacing: .08em; }
.shelf-heading h1 { margin: 3px 0 0; font-size: 32px; letter-spacing: -.025em; }
.room-live { display: flex; margin-bottom: 5px; font-size: 11px; gap: 8px; }
.room-live i { box-shadow: 0 0 9px color-mix(in srgb, var(--mint) 45%, transparent); }

/* A lit, lined cabinet back and thick joinery make room for the residents.
   --rail exactly matches the usable grid width; no breakpoint changes topology. */
.pane-shelf .stage { margin: 0; padding-bottom: 19px; overflow: visible; isolation: isolate; }
.pane-shelf .cabinet-wrap {
  --shelf-w: calc(min(var(--shell), 100vw) - 48px - var(--sal) - var(--sar));
  --case-pad: 16px; --return-w: 19px;
  --rail: calc(var(--shelf-w) - var(--case-pad) * 2 - var(--return-w) * 2);
  width: 100%; border-radius: 11px 11px 5px 5px; padding: 0 var(--return-w);
  background:
    linear-gradient(90deg, #0009, transparent 2px 6px, color-mix(in srgb, var(--wood-lip) 70%, var(--key)) 7px 10px, var(--wood) 11px var(--return-w), transparent var(--return-w) calc(100% - var(--return-w)), color-mix(in srgb, var(--wood) 65%, #000) calc(100% - var(--return-w)) calc(100% - 7px), var(--wood-lip) calc(100% - 7px) calc(100% - 5px), #0009 calc(100% - 4px)),
    repeating-linear-gradient(2deg, #0001 0 1px, transparent 1px 6px), var(--wood);
  box-shadow: 0 3px 0 #0009, 0 24px 45px -21px #000, 0 0 100px -35px var(--key-soft);
}
.pane-shelf .cabinet-wrap::before {
  height: 18px; border-radius: 11px 11px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--wood-lip) 65%, var(--key)) 0 2px, var(--wood-lip) 2px 6px, var(--wood) 6px 11px, color-mix(in srgb, var(--wood) 58%, #000) 11px 15px, #0008 15px);
  box-shadow: 0 8px 12px -5px #000b;
}
/* The room paint and chosen wallpaper are real cabinet materials. */
.pane-shelf, .decor-preview {
  --cabinet-surface: var(--wall-pattern),
    radial-gradient(ellipse at 30% -10%, color-mix(in srgb, var(--key) 18%, transparent), transparent 67%),
    linear-gradient(105deg, color-mix(in srgb, var(--room-a) 76%, var(--case-lit)), color-mix(in srgb, var(--room-b) 72%, var(--case-mid)));
}
.pane-shelf .cabinet {
  padding: 29px var(--case-pad) 0;
  background: var(--cabinet-surface);
  background-size: var(--wall-pattern-size), auto, auto;
  box-shadow: inset 8px 0 13px -9px #000, inset -8px 0 13px -9px #000, inset 0 18px 22px -14px #000;
}
.pane-shelf .cabinet::before { opacity: .28; }
.pane-shelf .cabinet::after { height: 19px; background: linear-gradient(var(--wood), color-mix(in srgb, var(--wood) 65%, #000)); box-shadow: inset 0 2px 0 var(--wood-lip); }
.pane-shelf .cabinet-wrap::after { width: 85px; height: 85px; opacity: .12; top: 18px; }
.pane-shelf .stage::before { width: 70px; height: 70px; opacity: .1; top: 18px; }
#cabinet > .shelf-row {
  --pet-size: clamp(116px, calc(var(--pitch) * .85), 155px);
  --slot-h: calc(var(--pet-size) + 18px); --plank-h: 31px; --label-drop: 16px;
}
#cabinet > .shelf-row.row-empty { --slot-h: 28px; --plank-h: 21px; --label-drop: 8px; }
#cabinet > .shelf-row:not(:has(.pet)):has(.prop) { --slot-h: 98px; --plank-h: 31px; --label-drop: 16px; }
#cabinet .slots { grid-template-columns: repeat(6, minmax(0, 1fr)); }
#cabinet .plank, .decor-preview-plank {
  background:
    linear-gradient(90deg, var(--key-hi), var(--key-soft) 60%, transparent) 0 0 / 100% 2px no-repeat,
    repeating-linear-gradient(2deg, #0001 0 1px, transparent 1px 7px),
    linear-gradient(var(--wood-lip) 0 5px, var(--wood) 5px 7px, color-mix(in srgb, var(--wood) 75%, #000) 7px 100%);
  box-shadow: 0 10px 14px -7px #000b, inset 0 -2px 0 #0005;
}
#cabinet .pet .nameplate, #cabinet .prop .nameplate { color: var(--shelf-ink, #F2E9DC); text-shadow: none; top: calc(100% + 12px); font-size: 11px; letter-spacing: .025em; text-transform: none; }
#cabinet .slot:empty::after { bottom: 8px; font-size: 9px; letter-spacing: .14em; color: color-mix(in srgb, var(--ink) 30%, transparent); }
.cabinet-sign { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); z-index: 6; white-space: nowrap; border: 1px solid color-mix(in srgb, var(--key) 28%, #4e3b2b); border-radius: 3px; padding: 5px 19px; background: linear-gradient(115deg, #5b4737, #8b7054 48%, #5c4736); box-shadow: 0 2px 4px #0006; color: #f2ddbb; font-size: 8px; letter-spacing: .17em; }
.cabinet-sign::before, .cabinet-sign::after { content: ''; position: absolute; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: #30231b; box-shadow: 0 1px 0 #d8b48d66; transform: translateY(-50%); }
.cabinet-sign::before { left: 6px; } .cabinet-sign::after { right: 6px; }
.cabinet-sign > span { font-size: 6px; letter-spacing: .07em; margin-inline: 3px; opacity: .65; }
.shelf-framing { justify-content: space-between; gap: 12px; margin: 0 2px 9px; }
.shelf-framing > span { font: 500 17px/1.3 var(--hand); color: var(--ink-2); }
.framing-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.shelf-framing .btn { font-size: 11px; min-height: 44px; }
.shelf-framing .snap-btn { width: 44px; height: 44px; padding: 10px; color: var(--ink-2); background: none; border-color: transparent; box-shadow: none; }
.shelf-framing .snap-btn:hover { color: var(--key); border-color: var(--hair-lit); }
.shelf-brief { margin: 0 0 12px; padding: 13px 15px; gap: 13px; border: 0; border-left: 2px solid var(--mint); border-radius: 0 6px 6px 0; background: linear-gradient(90deg, color-mix(in srgb, var(--mint) 8%, transparent), transparent); }
.shelf-brief:empty { display: none; }
.shelf-brief .brief-icon { color: var(--mint); font-size: 23px; }
.shelf-brief b { font-size: 14px; }
.shelf-brief span:not(.brief-icon) { font-size: 12px; line-height: 1.4; }
#paneShelf #actions.actions { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; margin: 0 0 19px; }
#paneShelf #actions .btn { display: grid; grid-template-columns: auto 1fr; align-content: center; text-align: left; justify-content: start; column-gap: 12px; row-gap: 3px; padding: 14px 19px; min-height: 65px; border-radius: 9px; background: var(--glass); border-color: var(--hair-lit); box-shadow: 0 3px 0 #0006, inset 0 1px 0 var(--glass); font-size: 14px; white-space: normal; }
#paneShelf #actions .btn svg { grid-row: 1 / 3; align-self: center; width: 24px; height: 24px; }
#paneShelf #actions small { display: block; font-size: 11px; grid-column: 2; line-height: 1.35; color: var(--ink-2); }
#paneShelf #actions .shelf-primary { background: var(--pink); color: var(--accent-ink); border-color: color-mix(in srgb, var(--pink) 70%, white); box-shadow: 0 3px 0 color-mix(in srgb, var(--pink) 50%, #000), inset 0 1px 0 #fff5; }
#paneShelf #actions .shelf-primary small { color: var(--accent-ink); }
#paneShelf #actions .btn:not(:disabled):active { transform: translateY(2px); box-shadow: none; }
#paneShelf .shelf-theatre-controls { margin: 7px 2px 0; padding: 12px 0 0; border-top: 1px solid var(--hair); border-bottom: 0; }
#paneShelf .theatre-heading { flex-direction: row; align-items: baseline; gap: 12px; margin: 0 0 3px; }
#paneShelf .theatre-heading h2 { font: 400 17px/1.3 var(--display); }
#paneShelf #theatreCount { font-size: 10px; }
#paneShelf .theatre-caption { min-height: 0; border: 0; background: none; padding: 4px 0; font: 500 18px/1.4 var(--hand); color: var(--ink-2); }
.theatre-settings > summary { display: flex; gap: 12px; align-items: center; min-height: 44px; cursor: pointer; font-size: 12px; color: var(--key); list-style: none; }
.theatre-settings > summary::before { content: '+'; font: 20px/1 var(--body); }
.theatre-settings[open] > summary::before { content: '−'; }
.theatre-settings > summary::-webkit-details-marker { display: none; }
.theatre-settings > summary > span { margin-left: auto; color: var(--ink-3); font-size: 11px; }
#paneShelf .shelf-teaser { display: none; }

/* Paperwork is a destination, with two folders instead of a permanent column
   of competing panels. Native details retain keyboard and screen-reader use. */
.destination-heading { padding: 9px 0 23px; border-bottom: 1px solid var(--hair-lit); margin-bottom: 20px; }
.destination-heading .eyebrow { text-transform: none; letter-spacing: .07em; color: var(--key); font-size: 11px; }
.destination-heading h1 { margin: 8px 0 10px; font: 400 clamp(32px, 4vw, 45px)/1.08 var(--display); letter-spacing: -.035em; }
.destination-heading p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
#panePlots > .needs-you { margin: 0 0 18px; }
#panePlots > .welcome-panel { margin: 0 0 20px; }
#panePlots > .escapade-hub { margin: 0 0 24px; }
.story-folder { border-top: 1px solid var(--hair-lit); }
.story-folder > summary { min-height: 96px; display: flex; gap: 23px; align-items: center; padding: 16px 7px; cursor: pointer; list-style: none; }
.story-folder > summary::-webkit-details-marker { display: none; }
.story-folder > summary:hover { background: var(--glass); }
.story-folder > summary:focus-visible, .theatre-settings > summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
.folder-number { font: 400 25px var(--display); color: var(--key); opacity: .7; }
.story-folder summary b { display: block; font: 400 24px/1.2 var(--display); }
.story-folder summary small { display: block; color: var(--ink-2); font-size: 12px; margin-top: 7px; }
.folder-arrow { margin-left: auto; font-size: 23px; color: var(--key); transition: transform .15s; }
.story-folder[open] > summary .folder-arrow { transform: rotate(90deg); }
.folder-content { padding: 0 7px 24px; }
.correspondence-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
#panePlots .correspondence-content .story-card { margin: 0; padding: 22px; }
.correspondence-content > .scheme-card { grid-column: 1 / -1; margin: 0; }
#panePlots .life-hub { margin: 0; }
#panePlots .story-archives { margin-top: 10px; border-top: 1px solid var(--hair-lit); }
.story-archives .museum-door { border: 0; background: transparent; border-bottom: 1px solid var(--hair); border-radius: 0; padding: 21px 7px; margin: 0; }
.story-archives .side-doors { margin-top: 13px; }
.story-archives .door { min-height: 114px; }
.settling-in #correspondenceFolder, .settling-in #workshopFolder { display: none; }
.notes-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.notes-tools .btn-check { min-height: 48px; font-size: 14px; }
.pane-notes footer { padding: 23px 0 10px; font-size: 12px; line-height: 1.65; }

/* A small row of drawer pulls remains in thumb reach. Dialogs still own the
   page's inert boundary, so navigation cannot operate behind an open game. */
.tabbar.room-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 50%; right: auto; bottom: calc(16px + var(--sab)); transform: translateX(-50%); z-index: 55; width: min(540px, calc(100vw - 32px)); padding: 7px; gap: 5px; border: 1px solid var(--hair-lit); border-top-color: var(--edge); border-radius: 16px; background: color-mix(in srgb, var(--night-3) 96%, transparent); box-shadow: 0 14px 38px #0007, 0 3px 0 #0008, inset 0 1px 0 var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.room-nav .tab { position: relative; min-width: 0; min-height: 52px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 5px 3px; border-radius: 10px; color: var(--ink-2); font: 600 11px/1.2 var(--body); letter-spacing: .015em; }
.room-nav .tab svg, .room-nav #tabPlay svg { width: 22px; height: 22px; }
.room-nav .tab:hover { color: var(--ink); background: var(--glass); }
.room-nav .tab[aria-current="page"], .room-nav .tab[aria-expanded="true"] { color: var(--key); background: var(--key-soft); box-shadow: inset 0 1px 0 var(--key-mid); }
.room-nav #tabPlay { color: var(--ink-2); background: transparent; }
.room-nav #tabPlay:hover { color: var(--mint); background: color-mix(in srgb, var(--mint) 9%, transparent); }
.room-nav .tab:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; }
.room-nav .tab-badge { position: absolute; top: 1px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding-inline: 4px; border-radius: 20px; background: var(--pink); color: var(--accent-ink); font: 700 10px/17px var(--body); box-shadow: 0 0 0 2px var(--night-3); }
.room-nav .tab-dot { position: absolute; top: 6px; left: calc(50% + 8px); width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 2px var(--night-3); }
.room-nav :is(.tab-badge, .tab-dot)[hidden] { display: none; }
#toast { bottom: calc(var(--tabbar-h) + var(--sab) + 32px); }

@media (max-width: 720px) {
  :root { --topbar-h: 54px; --tabbar-h: 74px; }
  body { padding-bottom: calc(var(--tabbar-h) + var(--sab) + 14px); }
  .topbar { padding-inline: max(14px, var(--sal)) max(8px, var(--sar)); gap: 9px; }
  .wordmark { font-size: 23px; min-height: 44px; }
  .topbar .status { margin: 0; }
  .topbar .status > span { font-size: 10px; letter-spacing: 0; padding-inline: 8px; }
  .topbar .status .moon { display: none; }
  .topbar .status .trust { padding-right: 2px; }
  #backupBanner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 7px; padding: 6px 12px; font-size: 11px; }
  #backupBanner .btn { padding: 8px; font-size: 11px; }
  .room-app { padding: 15px calc(14px + var(--sar)) 22px calc(14px + var(--sal)); }
  .shelf-heading { margin: 0 0 14px; align-items: center; }
  .shelf-heading .eyebrow { font-size: 10px; letter-spacing: .06em; }
  .shelf-heading h1 { font-size: 27px; }
  .room-live { display: flex; margin: 12px 0 0; font-size: 9px; gap: 5px; }
  .room-live i { width: 5px; height: 5px; }
  .pane-shelf .stage { margin-inline: -6px; padding-bottom: 18px; overflow: clip; border-radius: 7px; }
  .pane-shelf .cabinet-wrap { --shelf-w: calc(100vw - 16px - var(--sal) - var(--sar)); --case-pad: 4px; --return-w: 7px; border-radius: 7px 7px 3px 3px; background: linear-gradient(90deg, #0008 0 1px, var(--wood-lip) 1px 3px, var(--wood) 3px var(--return-w), transparent var(--return-w) calc(100% - var(--return-w)), var(--wood) calc(100% - var(--return-w)) calc(100% - 3px), var(--wood-lip) calc(100% - 3px) calc(100% - 1px), #0008 calc(100% - 1px)), var(--wood); }
  .pane-shelf .cabinet { padding-top: 24px; overflow-clip-margin: 0; }
  .pane-shelf .cabinet-wrap::before { height: 13px; border-radius: 7px 7px 0 0; }
  .pane-shelf .cabinet-wrap::after { width: 50px; height: 50px; }
  .pane-shelf .stage::before { width: 40px; height: 40px; right: 7px; }
  #cabinet > .shelf-row { --pet-size: calc(var(--pitch) * 1.04); --slot-h: clamp(80px, calc(var(--pet-size) + 20px), 124px); --plank-h: 32px; --label-drop: 14px; }
  #cabinet > .shelf-row.row-empty { --slot-h: 23px; --plank-h: 19px; --label-drop: 6px; }
  #cabinet > .shelf-row:not(:has(.pet)):has(.prop) { --slot-h: 67px; --plank-h: 32px; --label-drop: 14px; }
  #cabinet .pet .nameplate, #cabinet .prop .nameplate { color: var(--shelf-ink, #F2E9DC); text-shadow: none; top: calc(100% + 9px); font-size: clamp(8.5px, 2.55vw, 10px); letter-spacing: 0; line-height: 10px; height: 21px; }
  #cabinet .slot:empty::after { font-size: 8px; letter-spacing: .03em; }
  /* An absolutely positioned auto-width bubble otherwise shrink-wraps to
     half a slot. Keep a readable measure and pin edge bubbles inside the wood. */
  #cabinet .sl-bubble { width: 120px; max-width: none; padding: 6px 8px; font-size: 14px; line-height: 1.25; overflow-wrap: normal; word-break: normal; }
  #cabinet .shelf-row:first-child .sl-bubble { top: -7px; bottom: auto; }
  #cabinet .slot:first-child > .sl-bubble { left: 62px; }
  #cabinet .slot:last-child > .sl-bubble { left: calc(100% - 62px); }
  #cabinet .slot:first-child > .sl-bubble::after { left: calc(var(--pitch) / 2 - 2px); }
  #cabinet .slot:last-child > .sl-bubble::after { left: calc(100% - var(--pitch) / 2 + 2px); }
  .cabinet-sign { font-size: 7px; letter-spacing: .13em; padding: 5px 13px; }
  .cabinet-sign > span { display: none; }
  .shelf-framing { margin: 0 0 7px; gap: 3px; }
  .shelf-framing > span { font-size: 15px; max-width: 190px; }
  .framing-tools { gap: 3px; }
  .shelf-framing #shelfFocus { max-width: 90px; font-size: 10px; line-height: 1.25; white-space: normal; padding: 5px; }
  .shelf-framing .snap-btn { padding: 11px; }
  .shelf-brief { padding: 11px; gap: 9px; margin-bottom: 12px; align-items: center; }
  .shelf-brief .brief-icon { display: none; }
  .shelf-brief b { font-size: 13px; }
  .shelf-brief span:not(.brief-icon) { font-size: 12px; line-height: 1.35; }
  .shelf-brief .btn { min-height: 44px; font-size: 11px; padding: 9px 10px; max-width: 116px; white-space: normal; }
  #paneShelf #actions.actions { grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 18px; }
  #paneShelf #actions .btn { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 11px 5px; gap: 7px; min-height: 79px; font-size: 12px; line-height: 1.25; }
  #paneShelf #actions .btn svg { width: 23px; height: 23px; }
  #paneShelf #actions small { display: none; }
  #paneShelf .theatre-heading h2 { font-size: 16px; }
  #paneShelf .theatre-caption { font-size: 17px; }
  #paneShelf #theatreCount { font-size: 9px; }
  .theatre-settings > summary { font-size: 12px; }
  .theatre-settings > summary > span { font-size: 10px; }
  .destination-heading { padding: 7px 0 20px; margin-bottom: 17px; }
  .destination-heading h1 { font-size: 34px; }
  .destination-heading p { font-size: 13px; }
  .story-folder > summary { min-height: 86px; gap: 14px; padding-inline: 2px; }
  .folder-number { font-size: 21px; }
  .story-folder summary b { font-size: 21px; }
  .story-folder summary small { font-size: 11px; }
  .folder-content { padding: 0 0 20px; }
  .correspondence-content { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  #panePlots .correspondence-content .story-card { padding: 18px; }
  .story-archives .door { min-height: 122px; }
  .notes-tools { gap: 8px; }
  .notes-tools .btn-check { font-size: 13px; padding-inline: 12px; }
  .notes-tools #clearNotes { font-size: 12px; }
  .tabbar.room-nav { width: auto; left: 0; right: 0; bottom: 0; transform: none; border-radius: 15px 15px 0 0; border-right: 0; border-left: 0; border-bottom: 0; gap: 2px; padding: 7px calc(8px + var(--sar)) calc(7px + var(--sab)) calc(8px + var(--sal)); }
  .room-nav .tab { min-height: 53px; font-size: 10px; gap: 5px; }
  #toast { bottom: calc(var(--tabbar-h) + var(--sab) + 12px); }
}
@media (max-width: 360px) {
  .room-live { display: none; }
  .shelf-framing > span { max-width: 146px; font-size: 14px; }
  #paneShelf #actions .btn { font-size: 11px; }
  .shelf-brief .btn { max-width: 101px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .room-app > .pane, .room-nav .tab, .folder-arrow { animation: none; transition: none; }
}

.household-aftermath{display:flex;gap:14px;align-items:center;margin:10px auto;max-width:820px;padding:12px 16px;background:#303429;color:#e8dcc2;border:1px solid #777557;border-radius:6px}
.household-aftermath b{font:500 20px var(--display)}.household-aftermath p{font:14px/1.5 var(--body);margin:4px 0 8px;max-width:650px}
.aftermath-stage{position:relative;flex:0 0 90px;height:65px;border-bottom:5px solid #756148}
.aftermath-actor{position:absolute;left:5px;bottom:12px;width:30px;height:35px;border-radius:45% 45% 25% 25%;background:#8c8b67;border:2px solid #181c13;color:#151b12;text-align:center;font-size:25px;transform:rotate(-10deg)}
.aftermath-object{position:absolute;left:38px;bottom:4px;width:31px;height:19px;background:#775638;border:3px solid #211e12;transform:rotate(10deg);clip-path:polygon(12% 0,88% 0,100% 24%,82% 100%,18% 100%,0 24%)}
.aftermath-visitor{position:absolute;right:0;bottom:4px;width:15px;height:13px;border-radius:50%;background:repeating-linear-gradient(90deg,#968b69 0 2px,#353b29 2px 4px);box-shadow:0 -7px 0 -2px #171b12}
[data-kind="bath"] .aftermath-object{background:#8a9c65;clip-path:none;border-radius:0 0 40% 40%;animation:after-crawl 4s ease-in-out infinite alternate}
[data-kind="court"] .aftermath-actor:before{content:'';position:absolute;width:23px;height:15px;background:#11190f;top:-12px;left:2px;border-bottom:3px solid #918974}
[data-kind="market"] .aftermath-object{clip-path:none;border-radius:20%;background:#9a8460;animation:after-crawl 3s ease-in-out infinite alternate}
@keyframes after-crawl{to{transform:translateX(10px) rotate(-10deg)}}
@media(max-width:720px){.household-aftermath{margin:8px;gap:10px;padding:10px}.aftermath-stage{flex-basis:65px}.household-aftermath p{font-size:13px}.household-aftermath b{font-size:18px}}
@media(prefers-reduced-motion:reduce){.aftermath-object{animation:none!important}}

.aftermath-actor{width:46px;height:46px;background:transparent;border:0;bottom:9px;left:-3px}
.aftermath-actor .sprite{width:100%;height:100%}
[data-kind="welcome"] .aftermath-visitor{width:22px;height:20px;background:#aba17e;clip-path:polygon(0 0,45% 35%,50% 0,55% 35%,100% 0,90% 100%,55% 65%,50% 100%,45% 65%,10% 100%);border-radius:0;box-shadow:none;bottom:15px}
[data-kind="welcome"] .aftermath-object{clip-path:none;border-radius:0 0 50% 50%;background:#91806b;height:13px}

.household-aftermath>div:last-child{min-width:0;flex:1;overflow-wrap:anywhere}
.household-aftermath button{white-space:normal;max-width:100%}
