@font-face{font-family:HouseJua;src:url(/games/house-memory/Jua.ttf)format("truetype");font-display:swap}.house-memory-engine{--bg:#b9c48f;--dot:#ece7c9;--ink:#5a3a22;--card:#fff6d8;--card-line:#fff;--accent:#f07400;--accent-deep:#b85900;--shutter:#343c4c;--frame:#fff;--light:#f3d97c;--light-hot:#ffeaa8;--sill:#6b4a35;--plate:#c5997a;--muted:#8a6a52;--gold:#f2b705;--silver:#b9c0c9;--bronze:#d08a52;--font:HouseJua, "Apple SD Gothic Neo", sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}.house-memory-engine *{box-sizing:border-box}.house-memory-engine,.house-memory-engine{min-height:100%}.house-memory-engine{background-color:var(--bg);font-family:var(--font);color:var(--ink);padding-block:12px 24px;padding-left:max(16px, env(safe-area-inset-left,0px));padding-right:max(16px, env(safe-area-inset-right,0px));overflow-x:hidden}.house-memory-engine:before{content:"";z-index:-1;background:var(--bg) url(/games/house-memory/asset-0.jpg) center / cover no-repeat;position:absolute;inset:0}.house-memory-engine button,.house-memory-engine input{font-family:inherit}.house-memory-engine .wrap{flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:20px;display:flex}.house-memory-engine .game{flex-direction:column;align-items:center;gap:10px;min-width:0;display:flex}.house-memory-engine .hud{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.house-memory-engine .pill{background:var(--card);border:3px solid var(--card-line);text-align:center;font-variant-numeric:tabular-nums;border-radius:999px;min-width:86px;padding:5px 14px;font-size:17px}.house-memory-engine .pill b{color:var(--accent);font-weight:400}.house-memory-engine .btn{border:3px solid var(--card-line);background:var(--accent);color:#fff;cursor:pointer;box-shadow:0 3px 0 var(--accent-deep);border-radius:999px;padding:5px 18px;font-size:17px}.house-memory-engine .btn:active{box-shadow:0 1px 0 var(--accent-deep);transform:translateY(2px)}.house-memory-engine .btn:focus-visible,.house-memory-engine .win:focus-visible,.house-memory-engine input:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.house-memory-engine .stage{aspect-ratio:880/1080;-webkit-user-select:none;user-select:none;width:min(100vw - 32px,81.4815vh - 65.1852px,680px);max-width:100%;position:relative;left:10px;overflow:hidden;container-type:inline-size}.house-memory-engine .stage>.bg{pointer-events:none;width:122.727%;max-width:none;position:absolute;top:0;left:-13.6364%}.house-memory-engine .sill{background:var(--sill);border-radius:2px;position:absolute}.house-memory-engine .plate{background:var(--plate);color:#4a2e1c;border-radius:.5cqw .5cqw .3cqw .3cqw;justify-content:center;align-items:center;font-size:2.1cqw;line-height:1;display:flex;position:absolute}.house-memory-engine .win{perspective:600px;cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:2px;position:absolute}.house-memory-engine .clip{position:absolute;inset:0}.house-memory-engine .win.arch .clip{border-radius:50% 50% 0 0 / var(--rv) var(--rv) 0 0}.house-memory-engine .room{border-radius:inherit;background:radial-gradient(circle at 50% 35%, var(--light-hot), var(--light) 70%);border:2px solid var(--frame);position:absolute;inset:0;overflow:hidden}.house-memory-engine .room img{object-fit:contain;opacity:0;width:94%;height:94%;transition:opacity .25s .15s,transform .35s cubic-bezier(.3,1.6,.5,1) .15s;position:absolute;top:3%;left:3%;transform:scale(.6)}.house-memory-engine .win.arch .room img{height:88%;top:10%}.house-memory-engine .win.open .room img{opacity:1;transform:scale(1)}.house-memory-engine .shutter{background:var(--shutter);border:2px solid var(--frame);backface-visibility:hidden;z-index:2;width:50%;transition:transform .45s cubic-bezier(.5,0,.3,1);position:absolute;top:0;bottom:0}.house-memory-engine .shutter:after{content:"";background:var(--frame);height:2px;position:absolute;top:32%;left:0;right:0}.house-memory-engine .shutter.l{transform-origin:0;border-right-width:1px;left:0}.house-memory-engine .shutter.r{transform-origin:100%;border-left-width:1px;right:0}.house-memory-engine .win.arch .shutter.l{border-top-left-radius:100% var(--rv)}.house-memory-engine .win.arch .shutter.r{border-top-right-radius:100% var(--rv)}.house-memory-engine .win.arch .shutter:after{top:42%}.house-memory-engine .win.open .shutter.l{transform:rotateY(-115deg)}.house-memory-engine .win.open .shutter.r{transform:rotateY(115deg)}.house-memory-engine .win:not(.open):hover .shutter{filter:brightness(1.25)}.house-memory-engine .win:not(.open):hover .shutter.l{transform:rotateY(-12deg)}.house-memory-engine .win:not(.open):hover .shutter.r{transform:rotateY(12deg)}.house-memory-engine .win.matched .room{animation:.5s pop;box-shadow:0 0 0 3px #fff,0 0 16px 5px #fff3b0}@keyframes pop{0%{transform:scale(1)}40%{transform:scale(1.12)}to{transform:scale(1)}}.house-memory-engine .win.wrong .clip{animation:.4s shake}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-4px)}50%{transform:translate(4px)}75%{transform:translate(-3px)}}.house-memory-engine .spark{pointer-events:none;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);z-index:5;background:#fff;width:10px;height:10px;animation:.8s ease-out forwards fly;position:absolute}@keyframes fly{0%{opacity:1;transform:translate(0)scale(1)}to{transform:translate(var(--dx), var(--dy)) scale(.2);opacity:0}}.house-memory-engine .board{background:var(--card);border:4px solid var(--card-line);border-radius:22px;width:280px;max-width:100%;margin-top:48px;padding:16px 16px 14px}.house-memory-engine .board h2{color:var(--accent);text-align:center;margin:0;font-size:24px;font-weight:400}.house-memory-engine .board .sub{color:var(--muted);text-align:center;margin:2px 0 12px;font-size:14px}.house-memory-engine .ranks{gap:6px;margin:0;padding:0;list-style:none;display:grid}.house-memory-engine .ranks li{background:#fffdf2;border-radius:12px;grid-template-columns:30px 1fr auto;align-items:center;gap:8px;min-height:42px;padding:7px 10px;font-size:17px;display:grid}.house-memory-engine .ranks li.me{box-shadow:0 0 0 2px var(--accent) inset;background:#ffe7c2}.house-memory-engine .ranks li.empty{color:#c4ab90}.house-memory-engine .medal{width:28px;height:28px;color:var(--ink);background:#eadbc2;border-radius:50%;justify-content:center;align-items:center;font-size:15px;display:flex}.house-memory-engine .r1 .medal{background:var(--gold);color:#fff}.house-memory-engine .r2 .medal{background:var(--silver);color:#fff}.house-memory-engine .r3 .medal{background:var(--bronze);color:#fff}.house-memory-engine .rname{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.house-memory-engine .rtime{text-align:right;font-variant-numeric:tabular-nums;line-height:1.1}.house-memory-engine .rtime small{color:var(--muted);font-size:12px;display:block}.house-memory-engine .note{color:var(--muted);text-align:center;min-height:1em;margin:10px 0 0;font-size:13px}@media (max-width:1180px){.house-memory-engine .board{width:min(100%,420px);margin-top:0}}.house-memory-engine .modal{z-index:20;background:#282d1473;justify-content:center;align-items:center;padding:16px;display:flex;position:absolute;inset:0}.house-memory-engine .card{background:var(--card);border:5px solid var(--card-line);text-align:center;border-radius:24px;width:min(100%,360px);padding:24px 26px;animation:.4s pop}.house-memory-engine .card h3{color:var(--accent);margin:0 0 6px;font-size:28px;font-weight:400}.house-memory-engine .card p{margin:4px 0 14px;font-size:17px}.house-memory-engine .bigtime{color:var(--ink);font-variant-numeric:tabular-nums;font-size:40px}.house-memory-engine .entry{flex-direction:column;gap:8px;margin:4px 0 14px;display:flex}.house-memory-engine .entry label{color:var(--accent);font-size:16px}.house-memory-engine .entry .row{gap:8px;display:flex}.house-memory-engine .entry input{min-width:0;color:var(--ink);background:#fff;border:3px solid #f0d9b5;border-radius:12px;flex:1;padding:6px 12px;font-size:18px}.house-memory-engine .msg{color:var(--muted);min-height:1em;margin:0 0 12px;font-size:14px}.house-memory-engine .pill.level{background:var(--accent);color:#fff}.house-memory-engine .pill.level b{color:#fff}.house-memory-engine .pill.danger b{color:#d7261e}.house-memory-engine .pill.danger{animation:1s infinite beat}@keyframes beat{0%,to{transform:scale(1)}50%{transform:scale(1.06)}}.house-memory-engine .win.off{cursor:default;pointer-events:none;opacity:.45}.house-memory-engine .plate.off{opacity:0}.house-memory-engine .card .kicker{color:var(--muted);margin:0 0 2px;font-size:18px}.house-memory-engine .card .goal{color:var(--ink);margin:0 0 6px;font-size:30px;line-height:1.25}.house-memory-engine .card .goal b{color:var(--accent);font-weight:400}.house-memory-engine .steps{justify-content:center;gap:8px;margin:2px 0 16px;display:flex}.house-memory-engine .steps span{width:34px;height:34px;color:var(--ink);background:#eadbc2;border-radius:50%;justify-content:center;align-items:center;font-size:16px;display:flex}.house-memory-engine .steps span.done{color:#fff;background:#7bb661}.house-memory-engine .steps span.now{background:var(--accent);color:#fff}.house-memory-engine .card .btn.big{padding:8px 28px;font-size:22px}.house-memory-engine .btn.snd{background:var(--card);color:var(--ink);padding:5px 12px;box-shadow:0 3px #d9c39a}.house-memory-engine .btn.snd.off{opacity:.55;text-decoration:line-through}.house-memory-engine .hud .ico{display:none}@media (max-width:640px){.house-memory-engine .hud{flex-wrap:nowrap;gap:4px;max-width:100%}.house-memory-engine .hud .pill,.house-memory-engine .hud .btn{white-space:nowrap;border-width:2px;flex:none;min-width:0;padding:4px 8px;font-size:13.5px}.house-memory-engine .hud .btn{box-shadow:0 2px 0 var(--accent-deep)}.house-memory-engine .hud .btn.snd{padding:4px 7px;box-shadow:0 2px #d9c39a}.house-memory-engine .hud .lbl{display:none}.house-memory-engine .hud .ico{display:inline}}@media (max-width:360px){.house-memory-engine .hud .pill,.house-memory-engine .hud .btn{padding:3px 7px;font-size:12.5px}}.house-memory-engine .card .pbody{text-wrap:balance}.house-memory-engine br.mbr{display:none}@media (max-width:480px){.house-memory-engine .card.story{padding:22px 16px}.house-memory-engine .card .ptitle{font-size:24px}.house-memory-engine .card .phead{font-size:20px}.house-memory-engine .card .pbody{font-size:15px}.house-memory-engine br.mbr{display:inline}.house-memory-engine #modal .stamp{width:76px;height:76px;bottom:-30px;right:-8px}}.house-memory-engine #again{margin-top:-5px}.house-memory-engine .rankview{margin-top:10px}.house-memory-engine .ranks.reveal li{opacity:0;text-align:left;transform:translate(40px)}.house-memory-engine .ranks.reveal li.in{animation:.25s cubic-bezier(.2,.9,.3,1.2) forwards slidein}@keyframes slidein{to{opacity:1;transform:translate(0)}}.house-memory-engine .ranks.reveal li.me.glow{animation:.25s forwards slidein,1.5s ease-out 50ms forwards glow}@keyframes glow{0%{box-shadow:0 0 0 2px var(--accent) inset, 0 0 0 0 #ffbe4600;background:#ffe7c2;transform:scale(1)}40%{box-shadow:0 0 0 3px var(--accent) inset, 0 0 22px 6px #ffbe46e6;background:#fff4d0;transform:scale(1.08)}to{box-shadow:0 0 0 3px var(--accent) inset, 0 0 12px 3px #ffbe46bf;background:#fff1c9;transform:scale(1.03)}}.house-memory-engine .rankview .note{animation:none}.house-memory-engine #modal .card,.house-memory-engine .stampzone{position:relative}.house-memory-engine .stamp{pointer-events:none;opacity:0;width:104px;height:104px;position:absolute;bottom:-40px;right:-38px;transform:rotate(-14deg)}.house-memory-engine .stamp.go{opacity:.9;animation:.55s cubic-bezier(.5,0,.7,1) forwards stamp}@keyframes stamp{0%{opacity:0;transform:translate(30px,-40px)scale(2.6)rotate(-4deg)}65%{opacity:1;transform:translate(0)scale(.92)rotate(-14deg)}80%{transform:scale(1.04)rotate(-14deg)}to{opacity:.9;transform:scale(1)rotate(-14deg)}}.house-memory-engine .card.thud{animation:.3s thud}@keyframes thud{0%,to{transform:translate(0)}30%{transform:translate(2px,3px)}60%{transform:translate(-2px,-1px)}}.house-memory-engine .card.story{width:min(100%,410px)}.house-memory-engine .card .ptitle{color:var(--accent);letter-spacing:.5px;margin:0 0 6px;font-size:27px;line-height:1.2}.house-memory-engine .card .phead{color:var(--ink);justify-content:center;align-items:center;gap:6px;margin:0 0 8px;font-size:22px;display:flex}.house-memory-engine .card .phead[hidden]{display:none}.house-memory-engine .headimg{width:52px;height:52px;animation:1.6s ease-in-out infinite bob}@keyframes bob{0%,to{transform:translateY(0)rotate(-4deg)}50%{transform:translateY(-4px)rotate(4deg)}}.house-memory-engine .card .pbody{color:var(--muted);word-break:keep-all;margin:0 0 14px;font-size:16px;line-height:1.6}.house-memory-engine .card .ptime{background:#fff;border-radius:999px;margin:0 0 16px;padding:4px 16px;font-size:17px;display:inline-block}.house-memory-engine .card .ptime b{color:var(--accent);font-weight:400}.house-memory-engine .toast{background:var(--accent);color:#fff;white-space:nowrap;pointer-events:none;opacity:0;z-index:6;border:4px solid #fff;border-radius:999px;padding:.5em 1.1em;font-size:5cqw;position:absolute;top:50%;left:41%;transform:translate(-50%,-50%);box-shadow:0 6px 18px #3c280a40}.house-memory-engine .toast.show{animation:1s forwards toast}@keyframes toast{0%{opacity:0;transform:translate(-50%,-30%)scale(.8)}15%{opacity:1;transform:translate(-50%,-50%)scale(1.05)}75%{opacity:1;transform:translate(-50%,-50%)scale(1)}to{opacity:0;transform:translate(-50%,-70%)}}@media (prefers-reduced-motion:reduce){.house-memory-engine *,.house-memory-engine :before,.house-memory-engine :after{transition:none!important;animation:none!important}}.house-memory-engine{isolation:isolate;min-height:calc(100dvh - 80px);padding:12px 16px 24px;position:relative}.house-memory-engine:before{z-index:-1}.house-memory-engine .stage{left:0}.house-memory-engine .wrap{max-width:none}.house-memory-engine [hidden]{display:none!important}@media (prefers-reduced-motion:reduce){.house-memory-engine *{transition:none!important;animation:none!important}}
.house-game-overlay{height:100dvh;z-index:var(--z-index-overlay);color:#5a3a22;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);background:#b9c48f;flex-direction:column;margin:0;font-family:HouseJua,Apple SD Gothic Neo,sans-serif;display:flex;position:fixed;inset:0}.house-game-header{text-align:center;border-bottom:1px solid #5a3a2220;flex-shrink:0;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;height:56px;padding:0 16px;display:grid}.house-game-header button{-webkit-text-stroke:.6px currentColor;min-width:44px;min-height:44px;font-family:inherit;font-size:24px;font-weight:700}.house-game-scroll{overscroll-behavior:contain;flex:1;min-height:0;overflow-y:auto}.house-game-content{max-width:390px;margin:auto;padding:20px 16px 32px}.house-game-card{text-align:center;background:#fff6d8;border:3px solid #fff;border-radius:22px;padding:18px 16px}.house-game-house{object-fit:contain;width:76px;height:76px;margin:0 auto 6px}.house-game-eyebrow{letter-spacing:.07em;color:#8a6a52;margin:0 0 6px;font-size:11px}.house-game-card h1{margin:6px 0;font-size:25px;font-weight:400}.house-game-score{margin:10px 0 4px;font-size:56px;line-height:1.1}.house-game-score small{margin-left:4px;font-size:24px}.house-game-name{text-align:left;margin:14px 0;font-size:13px}.house-game-name>div{gap:8px;margin-top:4px;display:flex}.house-game-name input{background:#fffdf2;border:1px solid #d8cbae;border-radius:8px;flex:1;min-width:0;padding:8px;font-size:16px}.house-game-name button{min-height:44px;padding:8px;text-decoration:underline}.house-game-tabs{background:#eae3c6;border-radius:12px;margin:10px 0;padding:4px;display:flex}.house-game-tabs button{border-radius:9px;flex:1;min-height:40px}.house-game-tabs [aria-selected=true]{background:#fffdf2}.house-game-room{color:#8a6a52;overflow-wrap:anywhere;margin-top:12px;font-size:13px}.house-game-rank-heading{justify-content:space-between;gap:8px;margin:14px 0 8px;font-size:13px;display:flex}.house-game-ranks{text-align:left;gap:5px;margin:0;padding:0;list-style:none;display:grid}.house-game-ranks li{background:#fffdf2;border-radius:9px;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:6px;padding:9px 8px;font-size:14px;display:grid}.house-game-ranks .is-me{background:#ffe7c2;box-shadow:inset 0 0 0 1.5px #f07400}.house-game-rank-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.house-game-ranks li>span:last-child{text-align:right;font-size:18px}.house-game-ranks small{color:#8a6a52;margin-left:4px;font-size:11px}.house-game-goal{background:#f1edce;border-radius:9px;margin:10px 0 12px;padding:10px;font-size:14px;line-height:1.5}.house-game-actions{gap:8px;margin-top:14px;display:flex}.house-game-actions button{background:#fffdf2;border:1px solid #e4d4ad;border-radius:13px;flex:1;min-height:46px;padding:11px 8px;font-size:17px}.house-game-actions .is-primary{color:#fff;background:#f07400;border-color:#f07400;box-shadow:0 3px #b85900}.house-game-text{text-underline-offset:3px;min-height:44px;margin:auto;padding:10px 0;font-size:13px;text-decoration:underline;display:block}.house-game-result-head{text-align:left;justify-content:center;align-items:center;gap:12px;display:flex}.house-game-result-head .house-game-house{flex-shrink:0;width:64px;height:64px;margin:0}.house-game-result-head h1{word-break:keep-all;margin:2px 0 0}.house-game-recorded{justify-content:center;align-items:center;gap:12px;margin:6px 0 0;font-size:14px;display:flex}.house-game-recorded button{text-underline-offset:3px;color:#8a6a52;min-height:44px;text-decoration:underline}.house-game-next{padding:24px 4px 0}.house-game-next-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.house-game-next .house-game-eyebrow{margin:0}.house-game-next h2{margin:6px 0 10px;font-size:22px;font-weight:400;line-height:1.4}.house-game-date{background:#fff6d8;border:3px solid #fff;border-radius:14px;flex-shrink:0;place-items:center;width:72px;height:72px;margin-top:18px;font-size:28px;line-height:1;display:grid;transform:rotate(6deg)}.house-game-date small{font-size:11px}.house-game-next p{margin:0;font-size:15px;line-height:1.6}.house-game-next button{color:#fff;background:#5a3a22;border-radius:12px;width:100%;min-height:52px;margin-top:16px;padding:12px;font-size:16px}.house-game-status,.house-game-error{text-align:center;overflow-wrap:anywhere;max-width:390px;margin:0 auto 16px;padding:12px 16px}.house-game-error{color:#9b3015;background:#fff6d8;border-radius:10px}.house-game-empty{color:#8a6a52;padding:16px 0;font-size:14px}.house-game-overlay button:disabled{opacity:.55}.house-game-overlay:focus{outline:none}.house-game-overlay button:focus-visible,.house-game-overlay input:focus-visible{outline-offset:3px;outline:3px solid #5a3a22}
