/* Our House: scenes and activities. */

.room-scene { position: absolute; inset: 0; overflow: hidden; }

/* ---------- first run ---------- */
.ob { position: absolute; inset: 0; background: var(--cream); display: flex; flex-direction: column; overflow: hidden; }
.ob-plain { padding: calc(var(--top) + 18px) 20px calc(var(--bottom) + 20px); overflow-y: auto; }
.ob-scene { position: absolute; inset: 0; overflow: hidden; touch-action: none; background: #8FD08A; }
.ob-world { position: absolute; left: 0; top: 0; }
.ob-over { position: absolute; left: 0; top: 0; pointer-events: none; }
.ob-card {
  position: absolute; left: 12px; right: 12px; bottom: calc(var(--bottom) + 12px); z-index: 5; background: var(--cream);
  border-radius: 28px; padding: 22px 18px 14px; box-shadow: var(--shadow); animation: up .5s var(--spring);
}
.ob-card.short { padding: 12px; }
.ob-card h1 { margin: 0 0 6px; font-size: 30px; font-weight: 600; line-height: 1.1; }
.ob-card p { margin: 0 0 16px; color: var(--ink2); font-size: 17px; line-height: 1.4; }
.ob-h { font-size: 28px; font-weight: 600; margin: 8px 0 6px; line-height: 1.15; }
.ob-h2 { font-size: 24px; font-weight: 600; margin: 0 0 12px; }
.ob-p { color: var(--ink2); font-size: 17px; line-height: 1.45; margin: 0 0 18px; }
.ob-top { display: flex; align-items: center; gap: 10px; }
.ob-foot { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 18px; }
.ob-dots { position: absolute; top: calc(var(--top) + 30px); left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 6; }
.ob-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .3s var(--spring), background .3s; }
.ob-dots i.on { background: var(--pink); }
.ob-dots i.now { width: 22px; background: var(--pink); }
.ob-walker { position: absolute; width: 184px; height: 230px; animation: walkIn 1.6s var(--ease) both; }
.ob-walker.left { --from: -420px; }
.ob-walker.right { --from: 420px; animation-delay: .15s; }
.ob-walker svg { width: 100%; height: 100%; animation: walk .32s ease-in-out 5; }
@keyframes walkIn { from { transform: translateX(var(--from)); } }
.ob-meet { position: absolute; width: 60px; height: 60px; animation: meet 3.2s var(--spring) 1.7s both; }
@keyframes meet { 0% { transform: scale(0); opacity: 0; } 20% { transform: scale(1.3); opacity: 1; } 35% { transform: scale(1); } 100% { transform: translateY(-40px); opacity: 1; } }

.ob-maker { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(var(--top) + 18px) 16px 0; }
.ob-stagearea { position: relative; height: 34%; min-height: 190px; display: grid; place-items: center; }
.ob-halo { position: absolute; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, #FFE1EA 0, #FFE1EA 55%, transparent 56%); }
.ob-av { position: relative; height: 100%; max-height: 270px; width: auto; aspect-ratio: 120/150; }
.ob-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; background: var(--paper); margin: 0 -16px; padding: 16px 16px calc(var(--bottom) + 16px); border-radius: 30px 30px 0 0; box-shadow: 0 -8px 30px rgba(74, 55, 67, .08); }
.ob-panel .ob-h { margin: 0; font-size: 24px; }
.ob-tabs { display: flex; gap: 6px; }
.ob-tabs button { flex: 1; padding: 9px 4px; border-radius: 12px; font-weight: 600; color: var(--ink2); background: var(--cream); font-size: 15px; }
.ob-tabs button.on { background: var(--ink); color: #fff; }
.ob-opts { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; }
.ob-styles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ob-style { aspect-ratio: 1; border-radius: 14px; background: var(--cream); display: grid; place-items: center; padding: 3px; transition: transform .15s var(--spring); }
.ob-style svg { width: 100%; height: 100%; }
.ob-style.on { background: var(--pink-l); box-shadow: inset 0 0 0 2.5px var(--pink); transform: scale(1.04); }
.ob-modes { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.ob-mode { background: var(--paper); border-radius: 26px; padding: 18px; text-align: center; box-shadow: 0 4px 0 var(--line), var(--shadow-s); transition: transform .15s; }
.ob-mode:active { transform: scale(.97); }
.ob-mode.on { box-shadow: 0 0 0 3px var(--pink), 0 4px 0 var(--line); }
.ob-mode b { display: block; font-size: 20px; font-weight: 600; margin-top: 8px; }
.ob-mode small { color: var(--ink2); font-size: 15px; }
.ob-mode-art { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ob-hint { position: absolute; top: calc(var(--top) + 18px); left: 16px; right: 16px; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  background: rgba(255, 253, 249, .95); border-radius: 22px; padding: 14px 16px; box-shadow: var(--shadow-s); pointer-events: none; }
.ob-hint b { font-size: 20px; font-weight: 600; }
.ob-hint span { color: var(--ink2); font-size: 15px; }
.ob-builder { position: absolute; width: 160px; height: 200px; transition: transform .3s var(--spring); }
.ob-builder svg { width: 100%; height: 100%; }
.ob-builder.now { transform: translateY(-14px) scale(1.06); }
.ob-builder.now::after { content: ''; position: absolute; left: 50%; top: -10px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--butter); box-shadow: 0 0 0 5px rgba(255, 216, 115, .5); }
.ob-builder.cheer svg { animation: hop .6s ease-in-out infinite; }
.ob-tap { position: absolute; left: 50%; top: 52%; width: 70px; height: 70px; margin-left: -35px; pointer-events: none; animation: tapHint 1.2s ease-in-out infinite; z-index: 4; }
@keyframes tapHint { 0%, 100% { transform: scale(1); } 50% { transform: scale(.82) translateY(8px); } }

/* ---------- coach, demo flag, long-distance card ---------- */
.coach { position: absolute; left: 12px; right: 12px; top: calc(var(--top) + 74px); z-index: 3500; background: #fff; border-radius: 24px; padding: 14px; box-shadow: var(--shadow); animation: toastIn .5s var(--spring); }
.coach-box { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.coach-box b { font-size: 18px; font-weight: 600; }
.coach-box p { margin: 4px 0 0; color: var(--ink2); font-size: 15px; line-height: 1.4; }
.demo-flag { position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--top) + 68px); z-index: 2900; background: var(--ink); color: #fff; font-size: 13px; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.demo-flag button { color: var(--butter); text-decoration: underline; font-size: 13px; }
.apart { position: absolute; left: 12px; right: 12px; top: calc(var(--top) + 70px); z-index: 2800; background: rgba(255, 253, 249, .95); border-radius: 18px; padding: 8px 14px; box-shadow: var(--shadow-s); text-align: left; font-size: 15px; }
.apart .sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.apart small { display: block; color: var(--ink2); font-size: 13px; margin-top: 2px; }

/* ---------- the map ---------- */
.map { background: #FFF1E3; border-radius: 26px; padding: 14px 12px; position: relative; }
.map-floor { background: #fff; border-radius: 18px; padding: 10px; margin-bottom: 10px; box-shadow: 0 3px 0 var(--line); }
.map-floor-name { font-weight: 600; color: var(--ink2); font-size: 14px; margin: 0 0 8px 4px; }
.map-rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.map-room { background: var(--cream); border-radius: 16px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; transition: transform .1s; }
.map-room:active { transform: scale(.95); }
.map-room .spr { width: 40px; height: 40px; }
.map-room b { font-size: 14px; font-weight: 600; line-height: 1.15; }
.map-room small { font-size: 12px; color: var(--ink2); }
.map-room:not(.built) .spr { filter: grayscale(.8) opacity(.55); }
.map-room.ready { box-shadow: inset 0 0 0 2.5px var(--butter); background: var(--butter-l); }
.map-room.ready .spr { filter: none; }
.map-room.here { box-shadow: inset 0 0 0 2.5px var(--pink); background: var(--pink-l); }
.map-out { width: 100%; display: flex; align-items: center; gap: 10px; background: #DDF5E9; border-radius: 18px; padding: 10px 14px; text-align: left; }
.map-out.here { box-shadow: inset 0 0 0 2.5px var(--mint-d); }
.map-out b { font-weight: 600; }
.map-out small { color: var(--ink2); margin-left: auto; font-size: 13px; }

/* ---------- building a room ---------- */
.building { position: absolute; inset: 0; z-index: 6400; background: rgba(255, 246, 236, .96); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; animation: fade .25s; }
.building b { font-size: 20px; font-weight: 600; }
.building .bar { width: 200px; }
.b-fill { transform-origin: left; animation: fill 1.6s var(--ease) forwards; transform: scaleX(0); }
@keyframes fill { to { transform: scaleX(1); } }
.b-stage { position: relative; width: 240px; height: 200px; }
.b-brick { position: absolute; bottom: calc(var(--i) / 4 * 0px); width: 52px; height: 52px; animation: brickDrop .5s var(--spring) both; top: calc(110px - (var(--i) / 4) * 0px); }
.b-brick:nth-child(n+5) { top: 70px; }
.b-brick:nth-child(n+9) { top: 30px; }
@keyframes brickDrop { from { transform: translateY(-220px) rotate(-20deg); opacity: 0; } }
.b-hammer { position: absolute; right: -24px; top: -10px; width: 64px; height: 64px; animation: hammer .22s ease-in-out infinite alternate; transform-origin: 80% 80%; }
@keyframes hammer { to { transform: rotate(-35deg); } }
.b-room { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; animation: popBig .6s var(--spring) 1.3s both; }

/* ---------- decorating ---------- */
.deco-drawer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3100; height: var(--dh, 300px); background: var(--cream); border-radius: 26px 26px 0 0; box-shadow: 0 -10px 30px rgba(74, 55, 67, .16); display: flex; flex-direction: column; animation: up .35s var(--spring); }
.dd-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 6px; }
.dd-head b { display: block; font-weight: 600; font-size: 16px; }
.dd-head small { display: block; color: var(--ink2); font-size: 12.5px; line-height: 1.25; }
.dd-head .stat { box-shadow: none; background: #fff; height: 36px; }
.dd-tabs { padding: 4px 14px 6px; }
.dd-body { flex: 1; overflow-y: auto; padding: 4px 14px calc(var(--bottom) + 14px); }
.dd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.dd-item { position: relative; background: #fff; border-radius: 16px; padding: 8px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 3px 0 var(--line); transition: transform .1s; }
.dd-item:active { transform: scale(.94); }
.dd-item small { font-size: 11.5px; line-height: 1.15; text-align: center; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-item em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--pink-d); display: flex; align-items: center; gap: 2px; }
.dd-item.poor { opacity: .55; }
.dd-item.locked { opacity: 1; background: var(--cream); }
.dd-item.locked .spr, .dd-item.locked svg.drawn { filter: grayscale(.85) opacity(.5); }
.dd-item em.soon { color: var(--ink2); }
.dd-item .badge { top: 4px; right: 4px; }

/* ---------- the streak ---------- */
.streak-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 8px 0 0; }
.sd { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sd i { width: 30px; height: 30px; border-radius: 10px; background: var(--sand); }
.sd.both i { background: var(--pink); box-shadow: 0 3px 0 var(--pink-d); }
.sd.one i { background: var(--pink-l); box-shadow: inset 0 0 0 2px var(--pink); }
.sd.today i { outline: 2px dashed var(--ink3); outline-offset: 2px; }
.sd small { font-size: 11px; color: var(--ink2); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 3px; }
.dot.both { background: var(--pink); }
.dot.one { background: var(--pink-l); box-shadow: inset 0 0 0 1.5px var(--pink); }

/* ---------- shared activity pieces ---------- */
.h3 { font-size: 18px; font-weight: 600; margin: 18px 4px 10px; }
.head-pic { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none; border: 2px solid #fff; box-shadow: 0 2px 0 rgba(74, 55, 67, .08); }
.head-pic svg { width: 112%; height: 112%; margin-top: 12%; }
.answer-box { background: #fff; border-radius: 22px; padding: 14px; margin-top: 12px; box-shadow: 0 3px 0 var(--line); }
.answer-box b { font-weight: 600; }
.both { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.said { border-radius: 20px; padding: 12px; background: #fff; box-shadow: 0 3px 0 var(--line); animation: popBig .5s var(--spring) both; }
.said.a { background: #FFF0F4; }
.said.b { background: #EEF6FD; animation-delay: .12s; }
.said b { font-weight: 600; font-size: 15px; }
.said-text { font-size: 16px; line-height: 1.4; white-space: pre-wrap; }
.said-text.hidden { color: var(--ink3); font-style: italic; font-size: 14px; }
.said-done { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 10px 12px; margin-top: 10px; color: var(--ink2); font-size: 15px; box-shadow: 0 3px 0 var(--line); }
.waiting { display: flex; align-items: center; gap: 10px; background: var(--sand); border-radius: 18px; padding: 10px 12px; margin-top: 10px; color: var(--ink2); font-size: 15px; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--ink3); animation: bob 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
.section { margin-bottom: 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 10px; }
.section-head h3 { margin: 0; font-size: 18px; font-weight: 600; }

/* question cards */
.qcard { position: relative; background: var(--tint, #fff); border-radius: 26px; padding: 18px 18px 22px; box-shadow: 0 5px 0 rgba(74, 55, 67, .08), var(--shadow-s); z-index: 2; animation: cardIn .45s var(--spring); }
.qcard.daily { --tint: #fff; background: linear-gradient(160deg, #F3EDFF, #FFF0F5); }
.qcard-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.qtext { font-size: 23px; font-weight: 600; line-height: 1.28; margin: 0; }
@keyframes cardIn { from { transform: translateX(60px) rotate(6deg); opacity: 0; } }
.deck { position: relative; margin: 4px 0 14px; }
.deck-back { position: absolute; inset: 0; border-radius: 26px; background: #fff; box-shadow: var(--shadow-s); }
.deck-back.b1 { transform: rotate(-3deg) translateY(6px); background: #FBF4EE; }
.deck-back.b2 { transform: rotate(3deg) translateY(10px); background: #F6EDE5; }
.turn { display: flex; align-items: center; gap: 10px; margin: 6px 4px 10px; font-size: 16px; }
.picks { display: grid; gap: 10px; }
.picks.two { grid-template-columns: 1fr 1fr; }
.opt { background: #fff; border-radius: 20px; padding: 16px 14px; font-size: 18px; font-weight: 600; line-height: 1.25; box-shadow: 0 4px 0 var(--line); transition: transform .12s; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.opt:active { transform: scale(.96); }
.opt.person b { font-size: 17px; }
.result { animation: popBig .5s var(--spring); }
.result .opt.picked { flex-direction: row; justify-content: space-between; text-align: left; margin-bottom: 8px; cursor: default; }
.result .opt .heads { display: flex; gap: 4px; }
.verdict { text-align: center; font-size: 20px; font-weight: 600; margin: 14px 0 0; color: var(--pink-d); }
.card.past { margin-bottom: 10px; }
.card.past b { display: block; margin: 4px 0 2px; font-weight: 600; }

/* today */
.task { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border-radius: 20px; padding: 10px 14px 10px 10px; box-shadow: 0 3px 0 var(--line); transition: transform .1s; }
.task:active { transform: scale(.98); }
.task b { display: block; font-weight: 600; font-size: 16px; }
.task small { display: block; font-size: 13px; color: var(--ink2); }
.task.done { background: #F2FBF6; }
.task.done b { color: var(--ink2); text-decoration: line-through; text-decoration-color: var(--mint); text-decoration-thickness: 2px; }
.tick { width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: #fff; display: grid; place-items: center; flex: none; }
.challenge b { font-weight: 600; }
.news { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 8px 12px; font-size: 15px; box-shadow: 0 2px 0 var(--line); }

/* sit together */
.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mood { background: #fff; border-radius: 16px; padding: 8px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 3px 0 var(--line); transition: transform .15s var(--spring); }
.mood small { font-size: 11.5px; color: var(--ink2); text-align: center; line-height: 1.1; }
.mood.on { background: var(--pink-l); box-shadow: inset 0 0 0 2.5px var(--pink); transform: scale(1.05); }
.mood:active { transform: scale(.92); }
.hugs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hug { background: #fff; border-radius: 18px; padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 3px 0 var(--line); transition: transform .12s; }
.hug:active { transform: scale(.9) rotate(-4deg); }
.hug small { font-size: 13px; font-weight: 500; }

/* the balcony railing, in front of everything */
.railing { position: absolute; left: 0; top: 820px; height: 180px; z-index: 990; pointer-events: none;
  background:
    linear-gradient(#FFFFFF, #FFFFFF) 0 0 / 100% 16px no-repeat,
    linear-gradient(#E9DFD6, #E9DFD6) 0 16px / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 38px, #FFFFFF 38px 50px) 0 22px / 100% 140px no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) 0 150px / 100% 14px no-repeat;
  filter: drop-shadow(0 4px 0 rgba(74, 55, 67, .08)); border-radius: 8px; }

/* today: the shortcuts */
.shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.shortcut { background: #fff; border-radius: 18px; padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 3px; box-shadow: 0 3px 0 var(--line); transition: transform .1s; }
.shortcut:active { transform: scale(.94); }
.shortcut small { font-size: 12px; text-align: center; line-height: 1.15; }
.shortcut em { font-style: normal; font-size: 10.5px; color: var(--ink2); text-align: center; line-height: 1.1; }
.shortcut.shut { background: var(--cream); }
.shortcut.shut .spr { filter: grayscale(.8) opacity(.5); }
