/* 클레이 하우스 인트로 */
.house-intro{overflow:auto;background:radial-gradient(circle at 50% 30%,#f3e4c7,#d9bd91 72%,#b68d5f)}
.intro-house{position:relative;width:min(790px,92vw);margin:115px auto 30px;padding:26px;border:14px solid #3f271a;border-radius:12px 12px 20px 20px;background:repeating-linear-gradient(0deg,#9f4f37 0 24px,#6a362a 25px 29px),repeating-linear-gradient(90deg,transparent 0 58px,#653426 59px 64px);box-shadow:0 30px 55px #4b2d1e66,inset 0 0 0 5px #bd7552}
.house-roof{position:absolute;z-index:2;left:-70px;right:-70px;top:-130px;height:155px;clip-path:polygon(50% 0,100% 85%,94% 100%,50% 29%,6% 100%,0 85%);background:linear-gradient(90deg,#3d251b,#76503b 47%,#3c251c 53%,#76503b);filter:drop-shadow(0 10px 4px #3d241c66)}
.house-roof:before,.house-roof:after{content:'';position:absolute;left:9%;right:9%;height:18px;border-radius:12px;background:#2f1d16;transform-origin:center}.house-roof:before{top:71px;transform:rotate(-31deg)}.house-roof:after{top:71px;transform:rotate(31deg)}
.house-roof i{position:absolute;left:49%;top:13px;width:20px;height:135px;border-radius:12px;background:#2c1b14}.house-roof b{position:absolute;left:22%;right:22%;bottom:25px;height:15px;border-radius:10px;background:#2c1b14}
.house-chimney{position:absolute;z-index:1;right:55px;top:-155px;width:82px;height:120px;padding:8px;border:8px solid #4b2a1e;background:repeating-linear-gradient(0deg,#aa5b3e 0 20px,#5a3024 21px 25px);transform:rotate(2deg)}
.house-chimney i{position:absolute;width:30px;height:12px;border-radius:50%;border:6px solid #8d6a4b;border-bottom-color:transparent;opacity:.65;animation:chimney-smoke 3.5s ease-in-out infinite}.house-chimney i:nth-child(1){left:32px;top:-31px}.house-chimney i:nth-child(2){left:45px;top:-56px;animation-delay:.7s}.house-chimney i:nth-child(3){left:27px;top:-81px;animation-delay:1.4s}
.house-frame{position:relative;z-index:3;padding:10px;border:10px solid #4a2d20;background:#7d442f}.house-plaster{position:relative;min-height:390px;padding:38px 42px 135px;text-align:center;border:4px solid #d4b682;border-radius:8px;background:#f5e9cf;background-image:radial-gradient(#c9ac7d30 1px,transparent 1px);background-size:17px 19px;box-shadow:inset 0 0 30px #a8875050;color:#4a2d20}
.house-plaster>p{margin:0;color:#895e36;font:700 12px 'DM Mono';letter-spacing:.22em}.house-plaster h1{margin:28px 0 5px;font:700 clamp(42px,7vw,68px) 'Gowun Batang';letter-spacing:-.07em}.house-plaster h2{margin:0;color:#a94536;font:700 clamp(20px,3vw,29px) 'Gowun Batang'}
.clay-mail-slot{position:absolute;left:50%;bottom:103px;width:170px;height:34px;display:grid;place-items:center;transform:translateX(-18%);border-radius:11px;background:#aa4934;color:#fff7e7;font:700 10px 'DM Mono';letter-spacing:.13em;text-shadow:0 1px 2px #6f291f;box-shadow:inset 0 -6px #813424,0 5px 9px #63412d33}.wax-seal{position:absolute;right:70px;bottom:25px;width:73px;height:73px;display:grid;place-items:center;border-radius:50%;background:#ae4d38;color:#edc796;font:700 25px Georgia;box-shadow:inset 0 0 0 7px #8c3b2b,0 7px 10px #61412d44}
.clay-door{position:absolute;left:36px;bottom:-4px;width:115px;height:145px;padding:0;border:12px solid #6d3b29;border-radius:58px 58px 5px 5px;background:repeating-linear-gradient(90deg,#c57a27 0 25px,#8c501d 26px 30px);color:#fff4d8;box-shadow:inset 0 0 18px #7a421b,0 0 0 5px #9c5a3e;transition:transform .25s,filter .25s;overflow:visible}.clay-door:hover{transform:perspective(300px) rotateY(-8deg);filter:brightness(1.1)}.clay-door i{position:absolute;right:13px;top:68px;width:10px;height:10px;border-radius:50%;background:#f0c569;box-shadow:0 0 0 3px #714719}.clay-door span{position:absolute;left:50%;bottom:-36px;width:105px;transform:translateX(-50%);padding:6px;border-radius:999px;background:#4b2d20;font-size:11px;white-space:nowrap}

/* 열쇠를 직접 돌려 여는 문 */
.door-unlock-modal{width:min(520px,94vw)}.door-unlock-scene{display:grid;place-items:center;min-height:335px;perspective:850px}.unlock-arch{position:relative;width:255px;height:300px;overflow:hidden;border:13px solid #6f4528;border-radius:128px 128px 8px 8px;background:#27170f;box-shadow:inset 0 0 0 6px #3c2417,0 15px 25px #0004}.unlock-door{position:absolute;top:0;bottom:0;width:50%;background:repeating-linear-gradient(90deg,#8d5b34 0 42px,#56341e 43px 48px);transition:transform .75s cubic-bezier(.4,0,.2,1)}.unlock-door.left{left:0;border-right:3px solid #3e2517;transform-origin:left}.unlock-door.right{right:0;border-left:3px solid #3e2517;transform-origin:right}.keyhole{position:absolute;z-index:3;left:50%;top:57%;width:72px;height:72px;display:grid;place-items:center;transform:translate(-50%,-50%);border:7px solid #7a511f;border-radius:50%;background:#d1a547;box-shadow:0 0 0 7px #4d3018,0 7px 14px #0005}.keyhole:after{content:'';position:absolute;top:55px;width:17px;height:39px;clip-path:polygon(35% 0,65% 0,100% 100%,0 100%);background:#2a1a12}.key-in-lock{position:relative;z-index:4;width:100px;height:24px;transform:rotate(var(--turn,0deg));transform-origin:34px 12px;transition:transform .08s linear}.key-in-lock i{position:absolute;left:0;top:-9px;width:42px;height:42px;border:10px solid #f0c45d;border-radius:50%;background:#3e2819}.key-in-lock b{position:absolute;left:36px;top:5px;width:62px;height:13px;background:#f0c45d;box-shadow:34px 10px 0 -2px #f0c45d}.turn-control{display:block;text-align:center}.turn-control span{display:block;margin-bottom:8px;color:#72563a;font-size:12px;font-weight:700}.turn-control input{width:min(360px,90%);accent-color:#b34a37;cursor:grab}.turn-control input:active{cursor:grabbing}.door-unlock-scene.opening .unlock-door.left{transform:rotateY(-92deg)}.door-unlock-scene.opening .unlock-door.right{transform:rotateY(92deg)}.door-unlock-scene.opening .keyhole{animation:lock-release .45s both}
.final-letter.cryptic h3{line-height:1.6;color:#8f3f34}.final-letter.cryptic p{font-family:'Gowun Batang',serif;line-height:1.95}
@keyframes chimney-smoke{0%{opacity:0;transform:translateY(8px) scale(.7)}40%{opacity:.7}100%{opacity:0;transform:translate(20px,-35px) scale(1.25)}}@keyframes lock-release{to{opacity:0;transform:translate(-50%,-50%) scale(.3) rotate(100deg)}}
@media(max-width:700px){.intro-house{margin-top:95px;padding:13px;border-width:9px}.house-roof{left:-35px;right:-35px;top:-100px;height:120px}.house-chimney{right:24px;top:-126px;transform:scale(.78)}.house-frame{border-width:7px}.house-plaster{min-height:360px;padding:30px 16px 130px}.house-plaster h1{margin-top:20px}.clay-door{left:18px;width:95px;height:125px}.clay-mail-slot{width:125px;transform:translateX(-5%)}.wax-seal{right:20px;width:58px;height:58px}.room-title{margin-top:48px!important}.door-unlock-scene{min-height:300px}.unlock-arch{width:215px;height:260px}}

/* Mobile intro: keep the complete house usable inside one portrait viewport */
@media(max-width:700px) and (orientation:portrait){
  .house-intro{display:flex;align-items:center;justify-content:center;overflow:hidden;padding:calc(env(safe-area-inset-top) + 72px) 10px calc(env(safe-area-inset-bottom) + 22px)}
  .intro-house{width:min(350px,92vw);margin:0 auto;padding:10px;border-width:8px;border-radius:10px 10px 16px 16px}
  .house-roof{left:-28px;right:-28px;top:-82px;height:100px}.house-roof:before,.house-roof:after{top:55px;height:13px}.house-roof i{height:105px}.house-roof b{bottom:18px;height:11px}
  .house-chimney{right:20px;top:-105px;transform:scale(.68)}
  .house-frame{padding:6px;border-width:6px}.house-plaster{min-height:340px;padding:23px 12px 116px;border-width:3px}
  .house-plaster>p{font-size:9px;letter-spacing:.13em;white-space:nowrap}.house-plaster h1{margin:18px 0 7px;font-size:40px;line-height:1.15}
  .house-plaster h2{width:min(270px,100%);margin:0 auto;color:#a94536;font-size:18px;line-height:1.45;letter-spacing:-.03em;word-break:keep-all;overflow-wrap:normal}
  .clay-door{left:14px;bottom:-3px;width:88px;height:112px;border-width:9px}.clay-door i{top:51px}.clay-door span{bottom:-31px;width:95px;font-size:10px}
  .clay-mail-slot{bottom:86px;width:122px;height:30px;transform:translateX(-7%);font-size:8px}.wax-seal{right:14px;bottom:20px;width:52px;height:52px;font-size:21px}
}
