/* The public highlights site (spec 020): the House look, ported from the agreed mockups in
   specs/020-highlights-site/design/. Per-element values (category colours, room positions,
   bar widths, tilts) are classes generated by render/site_art.py css() and appended at build:
   pages carry no style attribute, since the CSP is style-src 'self'. */

/* ===== home page, rooms, cards (a-house.html) ===== */
:root {
  --sky1: #8fcbea; --sky2: #e4f4fa; --hill1: #a9d98a; --hill2: #8cc56f;
  --ink: #2a2833; --muted: #625f70; --card: #fffdf8; --line: #e8dfcf; --paper: #fbf6ec;
  --grass: #7cbf5e; --grass2: #5fa544; --dirt: #6b4a35; --dirt2: #5a3d2b;
  --frame: #6a4631; --frame2: #57392a; --roof: #bf5640; --roof2: #a2442f;
  --wood: #cfa274; --wood2: #b98a5d; --glow: #fff3c4;
  --funny: #e8962f; --emotional: #d9577a; --intelligent: #3b82c4; --weird: #8456c0; --risky: #c4513a; --artsy: #2b9b72;
  --a: #3b82c4; --b: #d9577a;
  /* Text-safe shades (WCAG AA, 4.5:1 on white and on a card): text, and fills behind white text,
     use these; the bright colours above stay for borders, stripes and drawings (spec 020 B13). */
  --funny-ink: #a46312; --emotional-ink: #d23861; --intelligent-ink: #3676b2; --weird-ink: #8456c0;
  --risky-ink: #c04f39; --artsy-ink: #248360; --a-ink: #3676b2; --b-ink: #d23861;
  --sun: #ffd45c; --window: #cfeaf7; --lamp: 0; --bg: #fbf6ec;
}
@media (prefers-color-scheme: dark) {
  :root { --sky1: #0c1630; --sky2: #24375e; --hill1: #2d4a3a; --hill2: #233c2f; --ink: #f3f0ea; --muted: #bab5c9; --card: #23233a; --line: #3a3a56; --paper: #2a2a44; --grass: #3f6b3a; --grass2: #335a2f; --sun: #f4f1d0; --window: #ffe39a; --lamp: 1; --bg: #1b1b2e; }
  .stars { opacity: 1 !important; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif; color: var(--ink); background: var(--sky2); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.w { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ================= sky + header ================= */
.sky { position: relative; background: linear-gradient(var(--sky1), var(--sky2)); overflow: hidden; }
.stars { position: absolute; inset: 0; opacity: 0; pointer-events: none; background-image: radial-gradient(2px 2px at 12% 14%, #fff, transparent), radial-gradient(1.5px 1.5px at 28% 6%, #fff, transparent), radial-gradient(2px 2px at 47% 18%, #fff, transparent), radial-gradient(1.5px 1.5px at 66% 9%, #fff, transparent), radial-gradient(1.5px 1.5px at 84% 22%, #fff, transparent), radial-gradient(1px 1px at 92% 6%, #fff, transparent), radial-gradient(1px 1px at 6% 30%, #fff, transparent); }
.sun { position: absolute; right: 6%; top: 120px; width: 64px; height: 64px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 14px color-mix(in srgb, var(--sun) 25%, transparent), 0 0 0 30px color-mix(in srgb, var(--sun) 12%, transparent); }
.cloud { position: absolute; height: 24px; border-radius: 99px; background: #fff; opacity: .9; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 34px; height: 34px; left: 14px; top: -16px; }
.cloud::after { width: 24px; height: 24px; left: 42px; top: -9px; }
@media (prefers-color-scheme: dark) { .cloud { opacity: .18; } }

header { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 0 0; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; text-decoration: none; letter-spacing: -.01em; }
header nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
header nav a { text-decoration: none; padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--card) 85%, transparent); font-weight: 800; font-size: 14px; box-shadow: 0 2px 0 color-mix(in srgb, var(--ink) 18%, transparent); }
header nav a:hover { transform: translateY(-1px); }

.hero { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: end; padding: 30px 0 0; }
.hero h1 { font-size: clamp(28px, 4.8vw, 46px); line-height: 1.08; margin: 0 0 12px; letter-spacing: -.02em; }
.hero p { margin: 0; font-size: 18px; max-width: 54ch; }

/* life-sim style status panel, real numbers only */
.status { background: var(--card); border: 3px solid var(--ink); border-radius: 22px; padding: 14px; box-shadow: 0 6px 0 color-mix(in srgb, var(--ink) 22%, transparent); }
.status .row { display: flex; align-items: center; gap: 10px; }
.status .faces { display: flex; }
.status .faces span { width: 44px; height: 44px; border-radius: 14px; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 18%, #fff); display: grid; place-items: end center; overflow: hidden; }
.status .faces span + span { margin-left: -8px; }
.status .hh { font-weight: 900; line-height: 1.2; }
.status .hh small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.stats li { background: var(--paper); border-radius: 12px; padding: 8px 6px; text-align: center; font-size: 11px; color: var(--muted); font-weight: 700; line-height: 1.2; }
.stats b { display: block; font-size: 20px; color: var(--ink); font-weight: 900; }

/* ================= the lot ================= */
.lot { position: relative; margin-top: 100px; }
.hills { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; pointer-events: none; }
.house { position: relative; width: min(900px, 100%); margin: 0 auto; z-index: 1; }
.chimney { position: absolute; right: 19%; top: -40px; width: 44px; height: 66px; background: repeating-linear-gradient(0deg, #a5584a 0 10px, #8c4639 10px 12px); border: 3px solid var(--frame); border-bottom: 0; }
.chimney::before { content: ""; position: absolute; left: -6px; right: -6px; top: -6px; height: 8px; background: var(--frame); border-radius: 2px; }
.smoke { position: absolute; left: 10px; top: -30px; width: 16px; height: 16px; border-radius: 50%; background: #fff; opacity: .55; box-shadow: 10px -14px 0 3px rgba(255,255,255,.4), 2px -32px 0 6px rgba(255,255,255,.25); }

.roof { position: relative; background: repeating-linear-gradient(0deg, var(--roof) 0 14px, var(--roof2) 14px 16px); clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%); padding: 20px 13% 12px; margin: 0 -16px; }
.roof::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 10px; background: var(--frame2); }
.eave { height: 12px; margin: 0 -22px; background: var(--frame2); border-radius: 4px; position: relative; z-index: 2; }
.floors { background: var(--frame); padding: 8px; display: grid; grid-template-columns: 1fr 76px 1fr; gap: 8px; }
.slab { grid-column: 1 / -1; height: 10px; background: var(--frame2); margin: 0 -8px; }

/* a room: back wall, side-wall shading, perspective floor, ceiling lamp */
.room { --wall: #fff6e6; position: relative; display: block; min-height: 262px; text-decoration: none; background: var(--wall); overflow: hidden; isolation: isolate; }
.room .paper { position: absolute; inset: 0 0 40px; background: var(--pattern, none); opacity: .55; }
.room::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(0,0,0,.14), transparent 9%, transparent 91%, rgba(0,0,0,.14)), linear-gradient(rgba(0,0,0,.10), transparent 14%); pointer-events: none; }
.room .base { position: absolute; left: 6%; right: 6%; bottom: 40px; height: 8px; background: color-mix(in srgb, var(--wall) 70%, #8a6a4c); z-index: 0; }
.room .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; z-index: 0; background: repeating-linear-gradient(90deg, var(--wood) 0 44px, var(--wood2) 44px 46px); clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%); }
.room .floor::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.18), transparent 60%); }
.lamp { position: absolute; top: 0; left: var(--lx, 50%); width: 2px; height: 26px; background: #2a2833; z-index: 1; }
.lamp::before { content: ""; position: absolute; left: -13px; top: 24px; width: 28px; height: 14px; border-radius: 14px 14px 3px 3px; background: var(--c); border: 2px solid #2a2833; }
.lamp::after { content: ""; position: absolute; left: -90px; top: 38px; width: 182px; height: 200px; background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--glow) 85%, transparent), transparent 70%); opacity: calc(.25 + var(--lamp) * .45); transition: opacity .25s; pointer-events: none; }
.room:hover .lamp::after, .room:focus-visible .lamp::after { opacity: .85; }

.scene { position: absolute; inset: 0; z-index: 1; }
.scene > svg { position: absolute; bottom: 30px; }
.shadow { position: absolute; bottom: 26px; height: 10px; border-radius: 50%; background: rgba(0,0,0,.18); filter: blur(1px); }
.rug { position: absolute; bottom: 8px; height: 22px; border-radius: 50%; background: var(--rug); opacity: .85; }
.frame { position: absolute; top: 58px; width: 46px; height: 36px; background: var(--card); border: 4px solid #8a5a3c; box-shadow: 2px 2px 0 rgba(0,0,0,.12); }
.frame::after { content: ""; position: absolute; inset: 4px; background: linear-gradient(160deg, var(--f1, #9fd3ee) 0 55%, var(--f2, #7cbf5e) 55%); }
.window { position: absolute; top: 54px; width: 70px; height: 64px; background: linear-gradient(var(--window), color-mix(in srgb, var(--window) 60%, #fff)); border: 5px solid #fff; outline: 3px solid var(--frame); }
.window::before, .window::after { content: ""; position: absolute; background: #fff; }
.window::before { left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; }
.window::after { top: 50%; left: 0; right: 0; height: 4px; margin-top: -2px; }
.curtain { position: absolute; top: 48px; width: 18px; height: 80px; background: var(--c); opacity: .75; border-radius: 0 0 10px 10px; }

.resident { position: absolute; bottom: 28px; width: 48px; height: 66px; z-index: 2; }
.plaque { position: absolute; z-index: 3; left: 10px; top: 10px; display: flex; align-items: center; gap: 8px; background: var(--card); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; padding: 4px 10px 4px 5px; font-size: 14px; box-shadow: 0 3px 0 var(--c); transition: transform .15s; }
.plaque .icon { width: 24px; height: 24px; border-radius: 8px; background: var(--t); color: #fff; display: grid; place-items: center; font-size: 13px; }
.plaque b { font-weight: 900; }
.plaque small { background: color-mix(in srgb, var(--c) 18%, var(--card)); border-radius: 99px; padding: 0 7px; font-weight: 800; font-size: 12px; }
.room:hover .plaque, .room:focus-visible .plaque { transform: translateY(-2px); }
.bubble { position: absolute; z-index: 3; max-width: 64%; background: #fff; color: #2a2833; border: 2px solid #2a2833; border-radius: 16px; padding: 7px 11px; font-size: 13.5px; line-height: 1.35; box-shadow: 3px 3px 0 var(--c); }
.bubble time { display: block; font-size: 11px; color: #6b6878; font-weight: 800; }
.bubble::after { content: ""; position: absolute; bottom: -8px; width: 12px; height: 12px; background: #fff; border-right: 2px solid #2a2833; border-bottom: 2px solid #2a2833; transform: rotate(45deg); left: var(--tail, 24px); }
.bubble.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
.enter { position: absolute; z-index: 3; right: 10px; bottom: 8px; font-size: 12px; font-weight: 900; color: #fff; background: var(--t); border-radius: 99px; padding: 2px 10px; opacity: .0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.room:hover .enter, .room:focus-visible .enter { opacity: 1; transform: none; }
@media (hover: none) { .enter { opacity: 1; transform: none; } }

/* stairwell */
.stairs { position: relative; background: #e9dcc4; overflow: hidden; }
.stairs::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.12), transparent 30%, transparent 70%, rgba(0,0,0,.12)); }
.stairs svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }

.attic { --wall: #efe2c8; min-height: 236px; border-radius: 4px; }
.room-attic .round { position: absolute; left: 50%; top: 20px; width: 56px; height: 56px; margin-left: -28px; border-radius: 50%; background: var(--window); border: 5px solid #fff; outline: 3px solid var(--frame); }
.room-attic .beam { position: absolute; top: 0; bottom: 40px; width: 12px; background: #c9a77a; opacity: .7; }
.cobweb { position: absolute; right: 0; top: 0; width: 60px; height: 60px; }

/* ground, fence, basement */
.yard { position: relative; z-index: 1; height: 34px; background: linear-gradient(var(--grass) 0 55%, var(--grass2) 55%); }
.fence { position: absolute; left: 0; right: 0; bottom: 30px; height: 40px; background: repeating-linear-gradient(90deg, transparent 0 6px, #fff 6px 18px, transparent 18px 28px); -webkit-mask: linear-gradient(#000, #000); pointer-events: none; z-index: 0; }
.fence::after { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 6px; background: #fff; }
@media (prefers-color-scheme: dark) { .fence { opacity: .35; } }
.flowers { position: absolute; bottom: 30px; height: 18px; z-index: 2; background: radial-gradient(circle, #ff7a9c 0 4px, transparent 5px) 0 0 / 22px 18px, radial-gradient(circle, #ffd45c 0 4px, transparent 5px) 11px 6px / 22px 18px; }
.porch { position: absolute; z-index: 2; bottom: 0; left: 50%; margin-left: -50px; width: 100px; height: 16px; background: #b5aea4; border: 3px solid var(--frame2); border-bottom: 0; border-radius: 4px 4px 0 0; }
.tree { position: absolute; z-index: 2; bottom: 28px; width: 92px; height: 130px; }
.mailbox { position: absolute; z-index: 3; bottom: 28px; text-decoration: none; display: flex; flex-direction: column; align-items: center; font-size: 12px; font-weight: 900; width: 86px; }
.mailbox .note { background: var(--card); border: 2px solid var(--ink); border-radius: 10px; padding: 3px 7px; margin-bottom: 6px; text-align: center; line-height: 1.2; box-shadow: 0 3px 0 var(--intelligent); }
.mailbox .box { width: 52px; height: 34px; background: #3b82c4; border-radius: 20px 20px 4px 4px; border: 3px solid #2a2833; position: relative; }
.mailbox .box::after { content: ""; position: absolute; right: -10px; top: 3px; width: 8px; height: 18px; background: #e8962f; border: 2px solid #2a2833; }
.mailbox .post { width: 8px; height: 40px; background: #6e4a33; }

.underground { background: repeating-linear-gradient(135deg, var(--dirt) 0 18px, var(--dirt2) 18px 20px); padding: 0 16px 30px; }
.basement { width: min(900px, 100%); margin: 0 auto; background: var(--frame); padding: 8px; border-radius: 0 0 8px 8px; }
.basement .room { --wall: #948a80; min-height: 236px; }
.basement .room .floor { background: repeating-linear-gradient(90deg, #6d655e 0 34px, #5e5650 34px 36px); }
.pipes { position: absolute; top: 0; left: 30%; right: 0; height: 40px; }

/* ================= below ================= */
section { padding: 40px 0 0; }
section > h2 { font-size: 24px; margin: 0 0 4px; letter-spacing: -.01em; }
section > p.lead { margin: 0 0 16px; color: var(--muted); }
.below { background: var(--paper); padding-bottom: 10px; }

/* memories: a cork board of polaroids and printouts */
.board { position: relative; border-radius: 18px; padding: 34px 26px 30px; border: 10px solid #8a5a3c; box-shadow: inset 0 0 0 2px rgba(0,0,0,.12), inset 0 8px 24px rgba(0,0,0,.18), 0 6px 0 rgba(0,0,0,.08);
  background: radial-gradient(circle at 20% 30%, rgba(0,0,0,.08) 0 1.5px, transparent 2px) 0 0 / 14px 14px, radial-gradient(circle at 70% 60%, rgba(255,255,255,.12) 0 1.5px, transparent 2px) 0 0 / 18px 18px, #c99d68; }
@media (prefers-color-scheme: dark) { .board { background-color: #8c6a45; border-color: #5f3f2b; } }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.label-tape { display: inline-block; background: #fff8e0; color: #2a2833; font-weight: 900; padding: 4px 14px; transform: rotate(-1.5deg); box-shadow: 0 2px 0 rgba(0,0,0,.12); font-size: 15px; }
.board-head a { font-weight: 900; font-size: 14px; color: #2a2833; background: #fff8e0; padding: 4px 12px; border-radius: 99px; text-decoration: none; box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.memories { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 30px 24px; align-items: start; }

.memory { position: relative; display: block; text-decoration: none; color: #2a2833; transform: rotate(var(--r, -1.5deg)); transition: transform .2s, box-shadow .2s; }
.memory:hover, .memory:focus-visible { transform: rotate(0) translateY(-6px) scale(1.02); z-index: 2; }
.memory .read { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 900; color: var(--t); }
.pin { position: absolute; z-index: 3; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff8 0 3px, transparent 4px), var(--pc, #d9577a); box-shadow: 0 3px 3px rgba(0,0,0,.35); }
.tape { position: absolute; z-index: 3; top: -12px; left: 50%; width: 86px; height: 24px; margin-left: -43px; background: rgba(255, 240, 190, .8); transform: rotate(var(--tr, 3deg)); box-shadow: 0 1px 2px rgba(0,0,0,.1); }

/* polaroid */
.polaroid { background: #fffefb; padding: 10px 10px 14px; border-radius: 3px; box-shadow: 0 12px 22px rgba(0,0,0,.25), 0 2px 0 rgba(0,0,0,.08); }
.photo { position: relative; height: 150px; overflow: hidden; border-radius: 1px; background: var(--pw); }
.photo .pp { position: absolute; inset: 0 0 30px; background: var(--pattern); opacity: .6; }
.photo .pf { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: repeating-linear-gradient(90deg, #cfa274 0 36px, #b98a5d 36px 38px); }
.photo svg { position: absolute; bottom: 20px; }
.photo .who { bottom: 18px; width: 52px; height: 72px; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.25), transparent 40%), radial-gradient(ellipse at 50% 120%, transparent 55%, rgba(0,0,0,.18)); pointer-events: none; }
.stamp-date { position: absolute; z-index: 1; left: 8px; bottom: 6px; font: 700 13px/1 ui-monospace, "SF Mono", Menlo, monospace; color: #ffb070; background: rgba(40,20,10,.55); padding: 2px 4px; border-radius: 3px; letter-spacing: .08em; text-shadow: 0 0 4px rgba(255,138,60,.7); }
.say { position: absolute; z-index: 1; top: 10px; left: 10px; max-width: 70%; background: #fff; border: 2px solid #2a2833; border-radius: 12px; padding: 3px 8px; font-size: 12px; font-weight: 800; line-height: 1.3; }
.say::after { content: ""; position: absolute; bottom: -6px; left: var(--t, 70%); width: 9px; height: 9px; background: #fff; border-right: 2px solid #2a2833; border-bottom: 2px solid #2a2833; transform: rotate(45deg); }
.sticker { position: absolute; z-index: 2; right: -14px; top: 114px; width: 68px; height: 68px; border-radius: 50%; background: var(--t); color: #fff; border: 4px solid #fff; box-shadow: 0 3px 6px rgba(0,0,0,.25); display: grid; place-items: center; text-align: center; line-height: 1; transform: rotate(10deg); }
.sticker span { font-size: 18px; display: block; }
.sticker small { display: block; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; margin-top: 2px; }
.polaroid blockquote { margin: 14px 4px 6px; font-family: "Iowan Old Style", Georgia, serif; font-size: 16.5px; line-height: 1.45; }
.polaroid .hand { margin: 8px 4px 0; font-family: "Bradley Hand", "Segoe Print", "Comic Neue", ui-rounded, cursive; font-size: 16px; color: #46424f; }

/* printout for shell moments */
.receipt { background: #fffefa; padding: 16px 16px 18px; margin-bottom: 10px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; line-height: 1.45; box-shadow: 0 12px 22px rgba(0,0,0,.22); }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: conic-gradient(from 135deg at 50% 0, #fffefa 90deg, #0000 0) 0 0 / 16px 10px repeat-x; }
.receipt .rh { text-align: center; font-weight: 800; letter-spacing: .14em; border-bottom: 2px dashed #c9c3b6; padding-bottom: 8px; margin-bottom: 10px; }
.receipt .rh small { display: block; letter-spacing: 0; font-weight: 600; color: #7a7585; margin-top: 2px; }
.receipt .line { color: #7a7585; }
.receipt .out { margin: 8px 0; padding: 8px; background: #f3efe6; border-left: 4px solid var(--c); overflow-wrap: anywhere; }
.receipt .rf { border-top: 2px dashed #c9c3b6; margin-top: 10px; padding-top: 8px; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.receipt .kind { font-weight: 900; color: var(--t); }
.receipt .read { font-family: ui-rounded, system-ui, sans-serif; }

/* fridge calendar */
.fridge { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; background: linear-gradient(90deg, #dfe6ea, #f3f6f8 40%, #dfe6ea); border: 3px solid #b8c3ca; border-radius: 22px; padding: 22px; position: relative; }
@media (prefers-color-scheme: dark) { .fridge { background: linear-gradient(90deg, #3a4450, #4a5562 40%, #3a4450); border-color: #5b6775; } }
.fridge::before { content: ""; position: absolute; right: 18px; top: 30%; width: 10px; height: 90px; border-radius: 6px; background: #b8c3ca; }
.cal { background: #fff; color: #2a2833; border-radius: 6px; padding: 12px 12px 10px; box-shadow: 0 4px 0 rgba(0,0,0,.08); position: relative; }
.cal::before { content: ""; position: absolute; top: -8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--m, #d9577a); box-shadow: inset -3px -3px 0 rgba(0,0,0,.18); }
.cal h3 { margin: 4px 0 8px; text-align: center; font-size: 15px; }
.cal table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: 11px; color: #8a8696; font-weight: 800; padding-bottom: 4px; }
.cal td { text-align: center; padding: 2px; height: 38px; vertical-align: top; }
.cal td a, .cal td span { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; font-size: 12px; font-weight: 800; border-radius: 8px; padding: 3px 0; }
.cal td a:hover { background: #f1ece2; }
.cal td span { color: #c2bfcc; font-weight: 600; }
.cal i { display: block; height: 6px; border-radius: 99px; background: #d9577a; width: calc(var(--n) * 3px + 2px); }
.cal .note { font-size: 11px; color: #8a8696; text-align: center; margin: 6px 0 0; }

/* household */
.household { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.sim { background: var(--card); border: 3px solid var(--line); border-radius: 22px; padding: 16px; text-decoration: none; display: grid; grid-template-columns: 90px 1fr; gap: 4px 14px; }
.sim:hover { border-color: var(--c); }
.portrait { grid-row: span 3; width: 90px; height: 104px; border-radius: 20px; background: radial-gradient(circle at 50% 125%, color-mix(in srgb, var(--c) 35%, #fff) 0 62%, color-mix(in srgb, var(--c) 14%, #fff) 63%); border: 3px solid var(--c); display: grid; place-items: end center; overflow: hidden; }
.sim h3 { margin: 2px 0 0; font-size: 20px; }
.sim .sub { color: var(--muted); font-size: 13px; }
.sim .facts { display: flex; gap: 6px; flex-wrap: wrap; }
.sim .facts span { font-size: 12px; font-weight: 800; background: var(--paper); border-radius: 99px; padding: 2px 9px; }
.needs { grid-column: 1 / -1; margin: 10px 0 0; padding: 12px; list-style: none; display: grid; gap: 7px; background: color-mix(in srgb, var(--c) 7%, var(--card)); border-radius: 14px; }
.needs .cap { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 900; }
.needs li:not(.cap) { display: grid; grid-template-columns: 20px 84px 1fr 26px; align-items: center; gap: 8px; font-size: 13px; }
.needs .i { color: var(--k); text-align: center; }
.seg { height: 12px; border-radius: 99px; background: color-mix(in srgb, var(--k) 18%, var(--card)); overflow: hidden; position: relative; }
.seg::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), var(--card) calc(10% - 2px) 10%); }
.seg span { position: absolute; inset: 0 auto 0 0; background: var(--k); }

/* house rules sign */
.rules { background: #fff8e8; color: #2a2833; border: 6px solid #8a5a3c; border-radius: 10px; padding: 18px 22px; box-shadow: 0 8px 0 rgba(0,0,0,.08); position: relative; max-width: 820px; }
.rules::before, .rules::after { content: ""; position: absolute; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: #8a5a3c; }
.rules::before { left: 10px; } .rules::after { right: 10px; }
.rules h3 { margin: 0 0 10px; text-align: center; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.rules ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.rules p { margin: 12px 0 0; font-size: 14px; color: #625f70; }
.rules a { font-weight: 900; }

footer { padding: 34px 0 40px; font-size: 14px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .tree, .mailbox { display: none; } }
@media (max-width: 760px) {
  .floors { grid-template-columns: 1fr; }
  .stairs { display: none; }
  .roof { margin: 0 -8px; padding: 16px 11% 10px; }
  .eave { margin: 0 -12px; }
  .lot { margin-top: 70px; }
  .bubble { left: 12px !important; right: auto !important; max-width: calc(100% - 24px) !important; }
  .flowers { display: none; }
  .room, .attic, .basement .room { min-height: 290px; }
  .stats b { font-size: 17px; }
}
@media (prefers-reduced-motion: no-preference) {
  .cloud { animation: drift 70s linear infinite alternate; }
  .resident { animation: bob 3.4s ease-in-out infinite; }
  .floors .room:nth-of-type(3n) .resident { animation-delay: -1.2s; }
  .smoke { animation: puff 4s ease-in-out infinite; }
  @keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(80px); } }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
  @keyframes puff { 0%, 100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(-6px); opacity: .3; } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ===== inner pages (house.css) ===== */
/* header band */
.skyband { position: relative; background: linear-gradient(var(--sky1), var(--sky2)); overflow: hidden; padding-bottom: 18px; border-bottom: 10px solid #7cbf5e; }
@media (prefers-color-scheme: dark) { .skyband { border-bottom-color: #3f6b3a; } }
.cloud { position: absolute; height: 22px; border-radius: 99px; background: #fff; opacity: .9; }
.cloud::before { content: ""; position: absolute; width: 30px; height: 30px; left: 12px; top: -14px; background: #fff; border-radius: 50%; }
@media (prefers-color-scheme: dark) { .cloud { opacity: .15; } }
header { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 0 0; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; text-decoration: none; }
nav[aria-label="Main"] { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
nav[aria-label="Main"] a { text-decoration: none; padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--card) 85%, transparent); font-weight: 800; font-size: 14px; box-shadow: 0 2px 0 color-mix(in srgb, var(--ink) 18%, transparent); }

main { padding-bottom: 20px; }
.crumbs { margin: 18px 0 6px; font-size: 14px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { font-weight: 800; color: var(--ink); }
.lede { font-size: 19px; max-width: 64ch; margin: 6px 0 18px; }
.lede a { font-weight: 800; }
.pagetitle, .dayhead h1 { font-size: clamp(28px, 4.6vw, 42px); line-height: 1.1; margin: 8px 0 6px; letter-spacing: -.02em; }
section > h2 { font-size: 23px; margin: 30px 0 12px; }
.fine { font-size: 13px; color: var(--muted); }
.more { font-weight: 900; }
.btn { display: inline-block; text-decoration: none; font-weight: 900; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); box-shadow: 0 3px 0 color-mix(in srgb, var(--ink) 40%, transparent); }
.btn.ghost { background: var(--card); color: var(--ink); border: 2px solid var(--ink); }
.panel { background: var(--card); border: 3px solid var(--line); border-radius: 20px; padding: 18px; }
.panel h2 { margin: 0 0 8px; font-size: 20px; }

/* a room banner (shared with the home page's rooms) */
.banner { border: 8px solid var(--frame); border-radius: 10px; min-height: 240px; }
.banner.has-bubble { min-height: 330px; }
.bigbubble.flow { position: relative; left: auto; top: auto; transform: none; margin: 62px auto 112px; }
.bigbubble pre.art { margin: 0; font: 14px/1.45 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre; overflow-x: auto; }
body.inner { background: var(--bg); }
.bigbubble { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); top: 62px; width: min(640px, calc(100% - 32px)); background: #fff; color: #2a2833; border: 3px solid #2a2833; border-radius: 22px; padding: 14px 20px; font-family: "Iowan Old Style", Georgia, serif; font-size: clamp(18px, 2.4vw, 23px); line-height: 1.4; box-shadow: 5px 5px 0 var(--c); }
.bigbubble .bwho { display: block; font: 800 12px/1.4 ui-rounded, system-ui, sans-serif; color: #6b6878; margin-bottom: 4px; }
.bigbubble::after { content: ""; position: absolute; bottom: -10px; left: 66%; width: 16px; height: 16px; background: #fff; border-right: 3px solid #2a2833; border-bottom: 3px solid #2a2833; transform: rotate(45deg); }
/* highlight page */
.hl-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-top: 22px; }
.ctx p { font-size: 17px; margin: 0 0 10px; }
.facts dl { margin: 0 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.facts dt { color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; font-weight: 800; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 22px 0 0; }
.pager a { text-decoration: none; font-weight: 900; background: var(--card); border: 3px solid var(--line); border-radius: 16px; padding: 10px 16px; }
.pager small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.pager .next { text-align: right; }

/* compact memory cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.mcard { display: flex; flex-direction: column; gap: 10px; text-decoration: none; background: #fffefb; color: #2a2833; border-radius: 6px; padding: 0 0 12px; box-shadow: 0 8px 18px rgba(0,0,0,.10), 0 2px 0 rgba(0,0,0,.05); overflow: hidden; transition: transform .2s; }
.mcard:hover, .mcard:focus-visible { transform: translateY(-4px) rotate(-.5deg); }
.mtop { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--wall); border-bottom: 4px solid var(--c); font-weight: 900; font-size: 13px; position: relative; height: 46px; }
.mi { width: 24px; height: 24px; border-radius: 8px; background: var(--t); color: #fff; display: grid; place-items: center; font-size: 13px; }
.mres { position: absolute; right: 10px; bottom: -4px; width: 30px; height: 42px; }
.mcard blockquote { margin: 0 14px; font-family: "Iowan Old Style", Georgia, serif; font-size: 16px; line-height: 1.45; }
.mcard .out { margin: 0 12px; font: 13px/1.45 ui-monospace, "SF Mono", Menlo, monospace; background: #f3efe6; border-left: 4px solid var(--c); padding: 8px; overflow-wrap: anywhere; }
.mcard .art { margin: 0 12px; font: 12.5px/1.45 ui-monospace, "SF Mono", Menlo, monospace; background: #fff; border: 6px solid #8a5a3c; box-shadow: inset 0 0 0 2px #e9dcc4; padding: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mcap { margin: auto 14px 0; font-size: 12px; color: #6b6878; font-weight: 700; }

/* room page */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 0; }
.filters > a { text-decoration: none; font-weight: 800; padding: 6px 14px; border-radius: 99px; background: var(--card); border: 2px solid var(--line); }
.filters > a[aria-current] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.filters small { opacity: .75; }
.rooms-nav { margin-left: auto; font-size: 14px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.rooms-nav a { font-weight: 800; color: var(--ink); }
.month small { font-size: 14px; color: var(--muted); font-weight: 700; margin-left: 6px; }
section > h2 .fine { font-weight: 700; margin-left: 8px; }

/* the closet: one storage box per month, on a shelf */
.shelf { margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 26px 18px; padding: 8px 18px 0; border-bottom: 14px solid #8a5a3c; box-shadow: 0 6px 0 rgba(0,0,0,.08); background: linear-gradient(transparent calc(100% - 1px), rgba(0,0,0,.08) 0); }
.box { position: relative; width: 180px; height: 132px; margin-top: 14px; text-decoration: none; color: #3d2a1c; background: linear-gradient(#d9b27c, #c99d68); border: 3px solid #8a5a3c; border-radius: 4px 4px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0 10px 12px; transition: transform .15s; }
.box:hover, .box:focus-visible { transform: translateY(-6px); }
.box .flap { position: absolute; left: -3px; right: -3px; top: -16px; height: 18px; background: #e3bf8b; border: 3px solid #8a5a3c; border-radius: 4px 4px 0 0; }
.box .flap::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 34px; margin-left: -17px; background: rgba(255, 240, 190, .7); }
.box .tag { position: absolute; top: 18px; left: 16px; right: 16px; background: #fffdf6; border: 2px solid #3d2a1c; border-radius: 4px; text-align: center; font-family: "Bradley Hand", "Segoe Print", "Comic Neue", ui-rounded, cursive; font-size: 20px; line-height: 1.1; padding: 4px 0; transform: rotate(-2deg); }
.box .tag b { display: block; font: 900 12px/1.2 ui-rounded, system-ui, sans-serif; letter-spacing: .1em; }
.box .bcount { font-weight: 900; font-size: 15px; }
.box .bwho { font-size: 11px; font-weight: 700; opacity: .8; }

/* monthly archive: one compact row per moment */
.mi.big { display: inline-grid; width: 40px; height: 40px; font-size: 22px; vertical-align: middle; border-radius: 12px; background: var(--emotional); color: #fff; place-items: center; }
.list { list-style: none; margin: 18px 0 0; padding: 0; background: var(--card); border: 3px solid var(--line); border-radius: 18px; overflow: hidden; }
.list li + li { border-top: 2px dashed var(--line); }
.lrow { display: grid; grid-template-columns: 52px 30px 1fr 20px; gap: 12px; align-items: center; padding: 12px 16px; text-decoration: none; }
.lrow:hover, .lrow:focus-visible { background: color-mix(in srgb, var(--c) 8%, var(--card)); }
.lrow time { text-align: center; border-radius: 10px; background: color-mix(in srgb, var(--c) 14%, var(--card)); padding: 4px 0; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--muted); line-height: 1.1; }
.lrow time b { display: block; font-size: 20px; color: var(--ink); }
.lres { width: 30px; height: 42px; }
.ltext { min-width: 0; }
.lq { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: "Iowan Old Style", Georgia, serif; font-size: 16px; line-height: 1.4; }
.lmeta { display: block; font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.go { font-weight: 900; color: var(--t); }
@media (max-width: 520px) { .lrow { grid-template-columns: 44px 1fr 16px; } .lres { display: none; } .box { width: calc(50% - 9px); } }

/* agent page */
.profile { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.cardbig { display: grid; grid-template-columns: auto 1fr; gap: 18px; background: var(--card); border: 3px solid var(--c); border-radius: 24px; padding: 20px; box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 35%, transparent); }
.cardbig h1 { margin: 0; font-size: 34px; line-height: 1.1; }
.role { margin: 2px 0 10px; color: var(--muted); font-weight: 800; }
.portrait.big { width: 130px; height: 160px; border-radius: 24px; background: radial-gradient(circle at 50% 125%, color-mix(in srgb, var(--c) 35%, #fff) 0 62%, color-mix(in srgb, var(--c) 14%, #fff) 63%); border: 3px solid var(--c); display: grid; place-items: end center; overflow: hidden; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.chips span { font-size: 12px; font-weight: 800; background: var(--paper); border-radius: 99px; padding: 3px 10px; }
.prompt { margin: 0; padding: 12px 14px; background: var(--paper); border-left: 5px solid var(--c); border-radius: 0 12px 12px 0; font-family: "Iowan Old Style", Georgia, serif; font-size: 16px; }
.prompt cite { display: block; margin-top: 6px; font: 700 12px/1.4 ui-rounded, system-ui, sans-serif; color: var(--muted); font-style: normal; }
.panel .needs { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; background: none; }
.panel .needs li { display: grid; grid-template-columns: 20px 92px 1fr 30px; align-items: center; gap: 8px; font-size: 14px; }
.needs a { font-weight: 800; }
.needs .i { color: var(--k); text-align: center; }
.seg { height: 13px; border-radius: 99px; background: color-mix(in srgb, var(--k) 18%, var(--card)); overflow: hidden; position: relative; }
.seg::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), var(--card) calc(10% - 2px) 10%); }
.seg span { position: absolute; inset: 0 auto 0 0; background: var(--k); }

/* day page */
.dayhead { display: flex; gap: 20px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.calpage { width: 96px; flex: none; text-align: center; background: #fff; color: #2a2833; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 0 rgba(0,0,0,.1); border: 2px solid #2a2833; }
.calpage span { display: block; background: #d9577a; color: #fff; font-weight: 900; padding: 4px 0; letter-spacing: .1em; }
.calpage b { display: block; font-size: 44px; line-height: 1.1; }
.calpage small { display: block; font-weight: 800; color: #8a8696; padding-bottom: 6px; }
.dayhead .lede { margin-bottom: 10px; }
.links { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.week { display: flex; gap: 8px; margin: 22px 0 6px; overflow-x: auto; padding-bottom: 6px; }
.week a, .week span { flex: 1 0 56px; text-align: center; text-decoration: none; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 6px 0; font-weight: 900; font-size: 18px; }
.week small { display: block; font-size: 11px; color: var(--muted); font-weight: 800; }
.week span { opacity: .45; }
.week .on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.week .on small { color: inherit; }
.timeline { list-style: none; margin: 18px 0 0; padding: 0 0 0 26px; border-left: 4px dashed var(--line); }
.tpart { position: relative; margin: 0 0 26px; }
.tdot { position: absolute; left: -38px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 4px solid var(--ink); }
.tpart h3 { margin: 0 0 10px; font-size: 18px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.tpart h3 a { font-size: 13px; font-weight: 800; color: var(--muted); }

/* methodology */
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.step { position: relative; border-top: 6px solid var(--c); }
.step .num { position: absolute; right: 14px; top: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--t); color: #fff; display: grid; place-items: center; font-weight: 900; }
.step p { margin: 0 0 8px; }
.step a, .srcs a { font-weight: 900; }
.limits { margin-top: 18px; border-style: dashed; }
.qa { background: var(--card); border: 3px solid var(--line); border-radius: 16px; padding: 0 16px; margin: 0 0 10px; }
.qa summary { cursor: pointer; font-weight: 900; padding: 12px 0; font-size: 17px; }
.qa p { margin: 0 0 14px; }
.srcs { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
code { font-family: ui-monospace, Menlo, monospace; font-size: .92em; background: var(--paper); padding: 1px 5px; border-radius: 4px; }

footer { padding: 34px 16px 40px; font-size: 14px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hl-grid, .profile { grid-template-columns: 1fr; }
  .cardbig { grid-template-columns: 1fr; }
  .bigbubble { top: 56px; }
  .banner:has(.bigbubble) { min-height: 450px !important; }
  .rooms-nav { margin-left: 0; }
  .banner .furn { transform: scale(.8); transform-origin: bottom; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ===== home placements the mockup set inline ===== */
.sky.home .cloud.c1 { left: 8%; top: 84px; width: 92px; }
.sky.home .cloud.c2 { left: 54%; top: 150px; width: 70px; }
.sky.home .cloud.c3 { left: 78%; top: 300px; width: 60px; }
.lot .tree { left: max(10px, calc(50% - 560px)); }
.flowers.fl { left: 4%; width: 16%; }
.flowers.fr { right: 4%; width: 16%; }
.status .faces .cat-intelligent, .status .faces .cat-emotional { --c: inherit; }
.status .faces .cat-intelligent { --c: var(--a); }
.status .faces .cat-emotional { --c: var(--b); }
.res-a-card { --c: var(--a); --t: var(--a-ink); }
.res-b-card { --c: var(--b); --t: var(--b-ink); }
.memory .photo .who { left: 50%; margin-left: -26px; }

/* The resident outside a room: in-flow, sized for where it sits (the mockups sized it inline). */
.status .faces .resident { position: static; width: 30px; height: 42px; animation: none; }
.portrait .resident { position: static; width: 60px; height: 84px; animation: none; }
.portrait.big .resident { width: 96px; height: 134px; }
.photo .resident.who { bottom: 18px; width: 52px; height: 72px; }
.lrow .resident.lres { position: static; width: 30px; height: 42px; animation: none; }
.mtop .resident.mres { animation: none; }

/* Sized so nothing reaches past the screen at 360px (spec 020 B13): an SVG with only left and
   right set falls back to its natural width, and the eave's overhang must stay inside. */
.lot .hills { width: 100%; }
.room .pipes { width: 70%; }
@media (max-width: 760px) { .eave { margin: 0 -8px; } }
@media (max-width: 420px) { .eave, .roof { margin-left: 0; margin-right: 0; } }
.polaroid pre.art { margin: 12px 4px 6px; font: 12.5px/1.45 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.cat-funny { --c: var(--funny); --t: var(--funny-ink); --k: var(--funny); --wall: #fff6e1; --pw: #fff6e1; --pattern: repeating-linear-gradient(90deg,transparent 0 22px,#f4dfb4 22px 30px); }
.cat-emotional { --c: var(--emotional); --t: var(--emotional-ink); --k: var(--emotional); --wall: #fff0f3; --pw: #fff0f3; --pattern: radial-gradient(circle at 10px 10px,#f3c3cf 2.5px,transparent 3px) 0 0/26px 26px; }
.cat-intelligent { --c: var(--intelligent); --t: var(--intelligent-ink); --k: var(--intelligent); --wall: #eef4fc; --pw: #eef4fc; --pattern: linear-gradient(#d6e4f5 2px,transparent 2px) 0 0/100% 22px; }
.cat-weird { --c: var(--weird); --t: var(--weird-ink); --k: var(--weird); --wall: #efe2c8; --pw: #efe2c8; --pattern: repeating-linear-gradient(90deg,transparent 0 46px,#d8c6a3 46px 50px); }
.cat-artsy { --c: var(--artsy); --t: var(--artsy-ink); --k: var(--artsy); --wall: #eefaf3; --pw: #eefaf3; --pattern: repeating-linear-gradient(45deg,transparent 0 14px,#cdebdc 14px 16px); }
.cat-risky { --c: var(--risky); --t: var(--risky-ink); --k: var(--risky); --wall: #e4ded7; --pw: #e4ded7; --pattern: linear-gradient(90deg,#a1958a 2px,transparent 2px) 0 0/44px 100%,linear-gradient(#a1958a 2px,transparent 2px) 0 0/100% 22px; }
.tone-funny { --c: var(--funny); --t: var(--funny-ink); }
.tone-emotional { --c: var(--emotional); --t: var(--emotional-ink); }
.tone-intelligent { --c: var(--intelligent); --t: var(--intelligent-ink); }
.tone-weird { --c: var(--weird); --t: var(--weird-ink); }
.tone-artsy { --c: var(--artsy); --t: var(--artsy-ink); }
.tone-risky { --c: var(--risky); --t: var(--risky-ink); }
.res-a { color: var(--a); }
.res-b { color: var(--b); }
.res-unknown { color: #8a8696; }
.w-0 { width: 0%; }
.w-1 { width: 1%; }
.w-2 { width: 2%; }
.w-3 { width: 3%; }
.w-4 { width: 4%; }
.w-5 { width: 5%; }
.w-6 { width: 6%; }
.w-7 { width: 7%; }
.w-8 { width: 8%; }
.w-9 { width: 9%; }
.w-10 { width: 10%; }
.w-11 { width: 11%; }
.w-12 { width: 12%; }
.w-13 { width: 13%; }
.w-14 { width: 14%; }
.w-15 { width: 15%; }
.w-16 { width: 16%; }
.w-17 { width: 17%; }
.w-18 { width: 18%; }
.w-19 { width: 19%; }
.w-20 { width: 20%; }
.w-21 { width: 21%; }
.w-22 { width: 22%; }
.w-23 { width: 23%; }
.w-24 { width: 24%; }
.w-25 { width: 25%; }
.w-26 { width: 26%; }
.w-27 { width: 27%; }
.w-28 { width: 28%; }
.w-29 { width: 29%; }
.w-30 { width: 30%; }
.w-31 { width: 31%; }
.w-32 { width: 32%; }
.w-33 { width: 33%; }
.w-34 { width: 34%; }
.w-35 { width: 35%; }
.w-36 { width: 36%; }
.w-37 { width: 37%; }
.w-38 { width: 38%; }
.w-39 { width: 39%; }
.w-40 { width: 40%; }
.w-41 { width: 41%; }
.w-42 { width: 42%; }
.w-43 { width: 43%; }
.w-44 { width: 44%; }
.w-45 { width: 45%; }
.w-46 { width: 46%; }
.w-47 { width: 47%; }
.w-48 { width: 48%; }
.w-49 { width: 49%; }
.w-50 { width: 50%; }
.w-51 { width: 51%; }
.w-52 { width: 52%; }
.w-53 { width: 53%; }
.w-54 { width: 54%; }
.w-55 { width: 55%; }
.w-56 { width: 56%; }
.w-57 { width: 57%; }
.w-58 { width: 58%; }
.w-59 { width: 59%; }
.w-60 { width: 60%; }
.w-61 { width: 61%; }
.w-62 { width: 62%; }
.w-63 { width: 63%; }
.w-64 { width: 64%; }
.w-65 { width: 65%; }
.w-66 { width: 66%; }
.w-67 { width: 67%; }
.w-68 { width: 68%; }
.w-69 { width: 69%; }
.w-70 { width: 70%; }
.w-71 { width: 71%; }
.w-72 { width: 72%; }
.w-73 { width: 73%; }
.w-74 { width: 74%; }
.w-75 { width: 75%; }
.w-76 { width: 76%; }
.w-77 { width: 77%; }
.w-78 { width: 78%; }
.w-79 { width: 79%; }
.w-80 { width: 80%; }
.w-81 { width: 81%; }
.w-82 { width: 82%; }
.w-83 { width: 83%; }
.w-84 { width: 84%; }
.w-85 { width: 85%; }
.w-86 { width: 86%; }
.w-87 { width: 87%; }
.w-88 { width: 88%; }
.w-89 { width: 89%; }
.w-90 { width: 90%; }
.w-91 { width: 91%; }
.w-92 { width: 92%; }
.w-93 { width: 93%; }
.w-94 { width: 94%; }
.w-95 { width: 95%; }
.w-96 { width: 96%; }
.w-97 { width: 97%; }
.w-98 { width: 98%; }
.w-99 { width: 99%; }
.w-100 { width: 100%; }
.n-1 { --n: 1; }
.n-2 { --n: 2; }
.n-3 { --n: 3; }
.n-4 { --n: 4; }
.n-5 { --n: 5; }
.n-6 { --n: 6; }
.n-7 { --n: 7; }
.n-8 { --n: 8; }
.n-9 { --n: 9; }
.tilt-1 { --r: -2.5deg; }
.tilt-2 { --r: 2deg; }
.tilt-3 { --r: 1.5deg; }
.tilt-4 { --r: -1deg; }
.pin-red { --pc: #d9577a; }
.pin-blue { --pc: #3b82c4; }
.pin-green { --pc: #2b9b72; }
.mag-red { --m: #d9577a; }
.mag-blue { --m: #3b82c4; }
.room-living-room .lamp { --lx:70%; }
.room-living-room .bubble { left:104px;top:54px;--tail:28%; }
.room-living-room .p1 { left:22px; }
.room-living-room .p2 { right:40px;top:64px;width:60px;--f1:#9fd3ee;--f2:#e8962f; }
.room-living-room .p3 { left:28%;width:60%;--rug:#f2c98e; }
.room-living-room .p4 { right:12px;width:156px; }
.room-living-room .p5 { right:12px; }
.room-living-room .shadow.under-res { left:calc(40% - 4px);width:56px; }
.room-living-room .resident { left: 40%; }
.room-bedroom .lamp { --lx:62%; }
.room-bedroom .bubble { left:12px;top:54px;--tail:72%; }
.room-bedroom .p1 { right:96px; }
.room-bedroom .p2 { right:24px; }
.room-bedroom .p3 { right:10px; }
.room-bedroom .p4 { left:150px;--f1:#f3c3cf;--f2:#d9577a; }
.room-bedroom .p5 { left:20%;width:48%;--rug:#f3c3cf; }
.room-bedroom .p6 { left:10px;width:160px; }
.room-bedroom .p7 { left:8px; }
.room-bedroom .shadow.under-res { left:calc(54% - 4px);width:56px; }
.room-bedroom .resident { left: 54%; }
.room-study .lamp { --lx:30%; }
.room-study .bubble { left:14px;top:54px;--tail:66%; }
.room-study .p1 { left:150px;top:62px;--f1:#d6e4f5;--f2:#3b82c4; }
.room-study .p2 { left:8%;width:50%;--rug:#c9dbf2; }
.room-study .p3 { right:14px;width:80px; }
.room-study .p4 { right:14px; }
.room-study .p5 { left:18px;width:124px; }
.room-study .p6 { left:18px; }
.room-study .shadow.under-res { left:calc(46% - 4px);width:56px; }
.room-study .resident { left: 46%; }
.room-attic .bubble { right:12%;top:64px;--tail:68%; }
.room-attic .p1 { left:22%; }
.room-attic .p2 { right:22%; }
.room-attic .p3 { left:6%;width:110px; }
.room-attic .p4 { left:6%; }
.room-attic .shadow.under-res { left:calc(66% - 4px);width:56px; }
.room-attic .resident { left: 66%; }
.room-studio .lamp { --lx:40%; }
.room-studio .bubble { left:64px;top:56px;--tail:22px;max-width:50%; }
.room-studio .p1 { left:24px;top:136px;--f1:#ffd45c;--f2:#2b9b72; }
.room-studio .p2 { left:84px;top:128px;width:36px;height:46px;--f1:#8456c0;--f2:#d9577a; }
.room-studio .p3 { right:10%;width:46%;--rug:#cdebdc; }
.room-studio .p4 { right:24px;width:100px; }
.room-studio .p5 { right:22px; }
.room-studio .p6 { left:14px;width:42px; }
.room-studio .p7 { left:14px; }
.room-basement .lamp { --lx:46%; }
.room-basement .bubble { left:14px;top:56px;--tail:62%;max-width:min(470px,72%); }
.room-basement .p1 { right:20px;width:180px; }
.room-basement .p2 { right:20px; }
.room-basement .shadow.under-res { left:calc(42% - 4px);width:56px; }
.room-basement .resident { left: 42%; }
.room-attic .lamp { display: none; }
.room-studio .resident { left: 56%; }
.room-studio .shadow.under-res { left: calc(56% - 4px); width: 56px; }
